/* ==========================================================================
   Free IT Foundation — feuille de styles du site freeit.world
   Code sous licence GNU AGPL v3 ou ultérieure.
   Polices : Open Sans et Source Serif 4 (SIL OFL 1.1), servies localement.
   ========================================================================== */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/source-serif-4-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/source-serif-4-latin-italic.woff2") format("woff2"); }

/* --------------------------------------------------------------------------
   Jetons de design
   -------------------------------------------------------------------------- */
:root {
  --night: #0e2330;
  --night-2: #15313f;
  --blue: #2b5b75;
  --blue-2: #2d5e79;
  --blue-ink: #1f4a60;
  --cyan: #43bff0;
  --cyan-ink: #a9e1f7;
  --cyan-soft: #e8f5fb;
  --ink: #16232b;
  --text: #36434b;
  --muted: #637079;
  --line: #dce3e7;
  --line-2: #c6d2d9;
  --tint: #f3f5f6;
  --paper: #ffffff;
  --tbc-bg: #fff0bf;
  --tbc-line: #d39b00;
  --tbc-ink: #4d3a00;
  --ok: #1f6b45;
  --err: #a1302a;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1200px;
  --prose: 70ch;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
  --radius: 4px;
  --cut: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; color: var(--ink); }
a { color: var(--blue-2); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--cyan-soft); color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: 0.6rem 1rem; background: var(--paper); color: var(--blue-2); font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.picto { fill: currentColor; stroke: none; flex: none; }

/* Coin biseauté du picto « IT » */
.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* --------------------------------------------------------------------------
   Typographie utilitaire
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); }
.eyebrow--light { color: var(--cyan-ink); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--text); max-width: 62ch; }
.statement {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.35;
  color: var(--ink); max-width: 30ch; text-wrap: balance;
}
.statement em { font-style: italic; color: var(--blue); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Boutons et liens d'action
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.45rem; border: 1px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff;
  font: 600 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; box-shadow: inset 0 -3px 0 var(--cyan); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--light { background: #fff; border-color: #fff; color: var(--night); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--blue-ink); }
.btn--ghost { background: transparent; color: var(--blue-2); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn .icon { width: 1.1em; height: 1.1em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--blue-2); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--cyan); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--blue-ink); border-bottom-color: var(--blue-ink); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform 0.2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #fff; border-bottom-color: #fff; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   En-tête et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px rgba(14, 35, 48, 0.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: auto; height: 38px; }

.nav__list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  position: relative; display: block; padding: 0.55rem 0.8rem;
  color: var(--ink); font-size: 0.93rem; font-weight: 600; text-decoration: none;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after, .nav__list a.is-section::after { transform: scaleX(1); }
.nav__list a[aria-current="page"], .nav__list a.is-section { color: var(--blue-2); }
.nav__list .nav__cta a { margin-left: 0.6rem; padding: 0.6rem 1.1rem; border: 1px solid var(--blue); border-radius: var(--radius); color: var(--blue-2); }
.nav__list .nav__cta a::after { display: none; }
.nav__list .nav__cta a:hover, .nav__list .nav__cta a[aria-current="page"] { background: var(--blue); color: #fff; }
.nav__list .nav__lang a { margin-left: 0.4rem; padding: 0.55rem 0.5rem; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; }
.nav__list .nav__lang a::after { left: 0.5rem; right: 0.5rem; }
.nav__list .nav__lang a:hover { color: var(--blue-2); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav__list {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(14, 35, 48, 0.08);
  }
  .site-header.is-open .nav__list { display: flex; }
  .nav__list a { padding: 0.95rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
  .nav__list a::after { left: 0; right: auto; width: 2.5rem; bottom: 0.5rem; }
  .nav__list .nav__cta a { margin: 1rem 0 0; text-align: center; border-top: 1px solid var(--blue); padding: 0.85rem 1rem; }
  .nav__list .nav__lang a { margin: 0.75rem 0 0; padding: 0.6rem 0; border-top: 0; text-align: center; }
  .nav__list .nav__lang a::after { display: none; }
  .brand img { height: 32px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--tint); }
.section--rule { border-top: 1px solid var(--line); }
.section--dark { background: var(--night); color: rgba(255, 255, 255, 0.82); }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark .eyebrow { color: var(--cyan-ink); }
.section--dark a:not(.btn) { color: #fff; }
.section--dark .lead, .section--dark p { color: rgba(255, 255, 255, 0.8); }
h2 + .lead, h2 + .prose-block { margin-top: 1.25rem; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p:not(.eyebrow) { margin: 1.1rem 0 0; font-size: 1.12rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--form { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--center { align-items: center; }
.split > .sticky { position: sticky; top: calc(var(--header-h) + 32px); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.prose-block { max-width: var(--prose); }
.prose-block > p { font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Bandeau d'accueil
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: rgba(255, 255, 255, 0.84);
  padding-block: clamp(72px, 10vw, 136px) clamp(80px, 11vw, 148px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 191, 240, 0.5), transparent);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero .lead { color: rgba(255, 255, 255, 0.84); margin-top: 1.75rem; }
.hero__visual { position: relative; }
.hero__visual svg { display: block; width: 100%; height: auto; }

.mesh .halo { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; stroke-dasharray: 2 5; }
.mesh .edge { stroke: rgba(255, 255, 255, 0.26); stroke-width: 1; }
.mesh .peer { stroke: rgba(67, 191, 240, 0.55); stroke-width: 1; stroke-dasharray: 3 6; }
.mesh .node { fill: rgba(255, 255, 255, 0.82); }
.mesh .local { fill: var(--cyan); }
.mesh .local-ring { fill: none; stroke: rgba(67, 191, 240, 0.45); stroke-width: 1; }

/* En-tête des pages intérieures */
.page-hero { background: var(--tint); padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero__aside { border-left: 2px solid var(--cyan); padding: 0.25rem 0 0.25rem 1.25rem; font-size: 0.98rem; }
.page-hero__aside p { margin: 0; }
.page-hero__aside strong { display: block; margin-bottom: 0.25rem; }

.breadcrumb { margin: 0 0 1.5rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-2); text-decoration: underline; }

.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.75rem; padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }

/* --------------------------------------------------------------------------
   Composants
   -------------------------------------------------------------------------- */

/* Triade éditoriale : trois colonnes séparées par des filets */
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.triad > li { border-top: 1px solid var(--line-2); padding-top: 1.5rem; }
.triad__num { display: block; margin-bottom: 1rem; font: 600 0.85rem/1 var(--sans); letter-spacing: 0.1em; color: var(--blue-2); }
.triad h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.25; margin-bottom: 0.75rem; }
.triad p { margin: 0; }
.section--dark .triad > li { border-top-color: rgba(255, 255, 255, 0.2); }
.section--dark .triad__num { color: var(--cyan-ink); }

/* Cartes */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: #fff; border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.section--tint .card { border-color: transparent; }
a.card:hover { border-color: var(--line-2); box-shadow: 0 14px 30px rgba(14, 35, 48, 0.08); color: var(--text); }
.card__num { font: 600 0.82rem/1 var(--sans); letter-spacing: 0.1em; color: var(--blue-2); margin-bottom: 1.6rem; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.75rem; }
.card p { margin: 0 0 1rem; }
.card__more { margin-top: auto; padding-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--blue-2); font-weight: 600; font-size: 0.93rem; }
.card__more .icon { width: 1em; height: 1em; transition: transform 0.2s ease; }
a.card:hover .card__more .icon { transform: translateX(3px); }
.card--line { border: 0; border-top: 2px solid var(--blue); padding-inline: 0; background: transparent; }
.card--accent { border-top: 3px solid var(--cyan); }

/* Liste numérotée en lignes (engagements, étapes) */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.rows > li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.45rem 1.25rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.rows > li > :not(.rows__num) { grid-column: 2; }
.rows > li > .rows__num { grid-row: 1 / span 2; }
.rows__num { font: 600 0.85rem/1 var(--sans); letter-spacing: 0.1em; color: var(--blue-2); }
.rows h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.rows p { margin: 0; }
.section--dark .rows { border-top-color: rgba(255, 255, 255, 0.25); }
.section--dark .rows > li { border-bottom-color: rgba(255, 255, 255, 0.14); }
.section--dark .rows__num { color: var(--cyan-ink); }

/* Étapes horizontales */
.steps { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding: 0 1.5rem 0 0; counter-increment: step; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.25rem;
  border: 1px solid var(--blue); border-radius: 50%; background: #fff;
  font: 600 0.85rem/1 var(--sans); color: var(--blue-2); position: relative; z-index: 1;
}
.steps > li::after { content: ""; position: absolute; top: 1.3rem; left: 2.6rem; right: 0; height: 1px; background: var(--line-2); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; font-size: 0.97rem; }
.steps--verbs > li::before { background: var(--blue); color: #fff; border-color: var(--blue); }
.steps--verbs > li:last-child::before { background: var(--cyan); border-color: var(--cyan); color: var(--night); }
.steps--verbs h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--blue); }
.steps--5 { --steps: 5; }
.loop-note { margin: 1.75rem 0 0; font-size: 0.93rem; color: var(--muted); }
.statement--after { margin: clamp(40px, 5vw, 64px) 0 0; }

/* Image de partage (générée au build, 1200 × 630) */
.share-card { margin: 0; width: 1200px; height: 630px; overflow: hidden; background: var(--night); }
.share-card__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 96px; border-left: 14px solid var(--cyan); }
.share-card__title { margin: 0; font-family: var(--serif); font-size: 84px; line-height: 1.05; color: #fff; letter-spacing: -0.015em; }
.share-card__sub { margin: 40px 0 0; font-size: 26px; color: rgba(255, 255, 255, 0.78); }
.share-card .eyebrow { font-size: 18px; }
.loop-note strong { color: var(--blue-2); }

/* Fiche de faits */
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.15rem; }
.facts dd { margin: 0; color: var(--ink); }

/* Tableaux */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 1.05rem 1.25rem 1.05rem 0; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.table tbody th { color: var(--ink); font-weight: 700; width: 30%; }
.table td:last-child, .table th:last-child { padding-right: 0; }

/* Listes à coches */
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 1.1rem; height: 1.1rem; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section--dark .checks li::before { background: var(--cyan); }
.dashes { margin: 0; padding: 0; list-style: none; }
.dashes li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; }
.dashes li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.75rem; height: 1px; background: var(--blue-2); }

/* Citation */
.quote { margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--cyan); }
.quote p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: var(--ink); margin: 0 0 0.75rem; }
.quote footer { font-size: 0.9rem; color: var(--muted); }

/* Encadré */
.notice { padding: 1.25rem 1.5rem; background: var(--cyan-soft); border-left: 3px solid var(--blue); color: var(--ink); }
.notice p { margin: 0; }

/* Axes de recherche */
.axis { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line-2); }
.axis:last-child { border-bottom: 1px solid var(--line-2); }
.axis__label { font: 600 0.82rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 1rem; }
.axis h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.axis__question { margin: 1.25rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: var(--blue); }
.axis__body p { font-size: 1.05rem; }
.axis__body h4 { margin: 1.5rem 0 0.75rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Conseil de fondation */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; padding: 1.6rem; background: #fff; border: 1px solid var(--line); }
.person__mono {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem;
  background: var(--night); color: #fff; font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.person h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.person__role { margin: 0.2rem 0 0.75rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-2); }
.person p:last-child { margin: 0; font-size: 0.97rem; }

/* Cartes d'articles */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.article-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2rem); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.section--tint .article-card { border-color: transparent; }
.article-card:hover { border-color: var(--line-2); box-shadow: 0 14px 30px rgba(14, 35, 48, 0.08); color: var(--text); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-bottom: 1.1rem; font-size: 0.82rem; color: var(--muted); }
.article-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.42rem; line-height: 1.25; margin-bottom: 0.9rem; color: var(--ink); }
.article-card p { margin: 0 0 1.25rem; font-size: 0.98rem; }
.article-card .card__more { margin-top: auto; }
.articles--list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.articles--list .article-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 1rem 3rem; padding: 2.25rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.articles--list .article-card:hover { box-shadow: none; }
.articles--list .article-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.articles--list .article-card__side { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); }

/* Bandeau d'appel final */
.cta-band { background: var(--night); color: rgba(255, 255, 255, 0.82); padding-block: clamp(64px, 8vw, 104px); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0.9rem 0 0; font-size: 1.1rem; }

/* Diagramme d'architecture */
.diagram { margin: 0; padding: clamp(20px, 3vw, 36px); background: #fff; border: 1px solid var(--line); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 1.25rem; font-size: 0.92rem; color: var(--muted); }
.dg-zone { fill: var(--cyan-soft); stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 6 5; }
.dg-box { fill: #fff; stroke: var(--blue); stroke-width: 1.4; }
.dg-box--dark { fill: var(--night); stroke: var(--night); }
.dg-title { font: 700 15px var(--sans); fill: var(--ink); }
.dg-title--light { fill: #fff; }
.dg-text { font: 400 13px var(--sans); fill: var(--text); }
.dg-text--light { fill: rgba(255, 255, 255, 0.82); }
.dg-label { font: 700 11px var(--sans); letter-spacing: 0.12em; fill: var(--blue-2); }
.dg-link { stroke: var(--blue); stroke-width: 1.6; fill: none; }
.dg-person { fill: var(--blue-2); }
.dg-cloud { fill: #fff; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 4 4; }
.dg-cross { stroke: var(--err); stroke-width: 2; }
.dg-muted { font: 400 13px var(--sans); fill: var(--muted); }

/* Éléments « à confirmer » (version de relecture) */
.tbc { background: var(--tbc-bg); color: var(--tbc-ink); box-shadow: inset 0 -2px 0 var(--tbc-line); border-radius: 2px; padding: 0 0.2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html.tbc-off .tbc { background: none; color: inherit; box-shadow: none; padding: 0; }
.tbc.is-flash { animation: tbc-flash 1.4s ease; }
@keyframes tbc-flash { 20%, 60% { outline: 4px solid var(--tbc-line); outline-offset: 2px; } }
.review {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; max-width: calc(100% - 32px);
  padding: 0.55rem 0.6rem 0.55rem 0.9rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--tbc-line); border-radius: 6px;
  box-shadow: 0 10px 28px rgba(14, 35, 48, 0.14); font-size: 0.85rem; line-height: 1.3;
}
.review button { font: 600 0.85rem var(--sans); color: var(--blue-2); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0.35rem 0.65rem; cursor: pointer; }
.review button:hover { border-color: var(--blue); }
html.tbc-off .review__count, html.tbc-off .review__next { display: none; }

/* --------------------------------------------------------------------------
   Ateliers (formations)
   -------------------------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pills li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 0.92rem; color: var(--ink); }
.pills .pill--strong { background: var(--blue); border-color: var(--blue); color: #fff; }
.pills .pill--strong strong { color: #fff; }
.program { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; counter-reset: prog; }
.program li { counter-increment: prog; position: relative; padding: 1.1rem 1.15rem 1.15rem 3.3rem; background: var(--tint); font-size: 0.98rem; line-height: 1.55; }
.section--tint .program li { background: #fff; }
.program li::before { content: counter(prog, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1.15rem; font-weight: 700; font-size: 0.85rem; color: var(--blue-2); line-height: 1.75; }
.program li strong { color: var(--blue-ink); }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-2); }
.timeline > li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -5px; top: 0.55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline__time { display: inline-block; margin-bottom: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.82rem; font-weight: 700; }
.timeline > li:last-child .timeline__time { background: var(--cyan); color: var(--night); }
.timeline h4 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.timeline ul { margin: 0; padding-left: 1.1rem; }
.timeline li li { margin-bottom: 0.3rem; }
.takeaway { padding: 1.75rem; background: var(--cyan-soft); border-top: 3px solid var(--blue); }
.section--tint .takeaway { background: #fff; }
.takeaway h3 { margin-bottom: 1rem; }
.takeaway .btn { width: 100%; margin-top: 0.75rem; }
.takeaway .small { margin: 0.9rem 0 0; }
.not { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem 1.15rem; border: 1px dashed var(--line-2); font-size: 0.97rem; }
.not p { margin: 0; }
.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.levels li { padding: 1rem 1.15rem; background: var(--tint); border-top: 3px solid var(--blue); font-size: 0.97rem; }
.section--tint .levels li { background: #fff; }
.levels li:last-child { border-top-color: var(--cyan); }
.levels strong { display: block; margin-bottom: 0.25rem; color: var(--blue-ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--line-2); border-radius: 50%; color: var(--blue-2); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--blue); border-color: var(--blue); color: #fff; }
.faq summary:hover { color: var(--blue-2); }
.faq .faq__a { padding: 0 3rem 1.3rem 0; }
.faq .faq__a p { margin: 0; }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem;
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--cyan-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); }
.field__hint { font-size: 0.85rem; color: var(--muted); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: 0.93rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--blue); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-left: 3px solid var(--blue); background: var(--cyan-soft); color: var(--ink); }
.form-status.is-ok { border-left-color: var(--ok); background: #e9f5ee; }
.form-status.is-error { border-left-color: var(--err); background: #fbeceb; }
.form-status p { margin: 0; }

/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */
.article-head { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.article-head h1 { max-width: 24ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.article-head .chapeau { margin: 1.6rem 0 0; max-width: 64ch; font-family: var(--serif); font-size: clamp(1.18rem, 1.9vw, 1.38rem); line-height: 1.55; color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.article-tools .btn { padding: 0.65rem 1.05rem; font-size: 0.9rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 6vw, 80px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; font-size: 0.9rem; }
.toc p { margin: 0 0 0.75rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-2); }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--blue-2); }
.toc a.is-active { border-left-color: var(--cyan); color: var(--ink); font-weight: 600; }

.prose { max-width: 68ch; font-family: var(--serif); font-size: 1.2rem; line-height: 1.72; color: #222d33; }
.prose > p:first-child { font-size: 1.28rem; }
.prose h2 { margin: 3rem 0 1rem; font-size: clamp(1.55rem, 2.6vw, 1.95rem); font-weight: 500; }
.prose h3 { margin: 2.25rem 0 0.75rem; font-family: var(--sans); font-size: 1.1rem; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--blue-2); }
.prose blockquote { margin: 2.25rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 2px solid var(--cyan); font-size: 1.42rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose a { color: var(--blue-2); }
.prose table { width: 100%; margin: 1.75rem 0; border-collapse: collapse; font-family: var(--sans); font-size: 0.95rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose .references { font-family: var(--sans); font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.prose .references li { margin-bottom: 0.75em; overflow-wrap: anywhere; }
.prose-table-wrap { overflow-x: auto; }

.cite-box { margin-top: 3rem; padding: 1.5rem; background: var(--tint); font-family: var(--sans); font-size: 0.92rem; }
.cite-box h2 { margin: 0 0 0.75rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cite-box p { margin: 0 0 1rem; color: var(--ink); overflow-wrap: anywhere; }
.copy-btn { font: 600 0.85rem var(--sans); color: var(--blue-2); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0.45rem 0.8rem; cursor: pointer; }
.copy-btn:hover { border-color: var(--blue); }

/* Statuts */
.statutes { max-width: 72ch; }
.statutes h2 { margin: 3rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-2); font-family: var(--sans); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-2); }
.statutes h3 { margin: 2rem 0 0.6rem; }
.statutes blockquote { margin: 0 0 1rem; padding: 1rem 1.25rem; background: var(--cyan-soft); border-left: 3px solid var(--blue); font-size: 0.93rem; }
.statutes blockquote p { margin: 0; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: #0b1c27; color: rgba(255, 255, 255, 0.7); padding-block: clamp(56px, 7vw, 88px) 28px; font-size: 0.94rem; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2.5fr)); gap: clamp(32px, 5vw, 72px); }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; color: #fff; font-family: var(--serif); font-size: 1.35rem; }
.footer__brand .picto { width: 40px; height: 40px; color: #fff; }
.footer__sign { margin: 1.25rem 0 1.5rem; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--cyan-ink); }
.footer__id { margin: 0; line-height: 1.75; }
.site-footer h2 { margin: 0 0 1rem; font-family: var(--sans); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 0.55rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: clamp(40px, 5vw, 64px); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.84rem; color: rgba(255, 255, 255, 0.5); }
.footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__grid, .page-hero__grid, .split, .split--even, .split--form, .axis, .cta-band__inner, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 460px; }
  .split > .sticky, .toc { position: static; }
  .grid--3, .triad { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps > li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 1.25rem; padding: 0; }
  .steps > li::before { grid-row: span 2; margin: 0; }
  .steps > li::after { top: 2.6rem; bottom: -1.5rem; left: 1.3rem; right: auto; width: 1px; height: auto; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .toc { display: none; }
  .articles--list .article-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .grid--2, .grid--4, .articles, .people, .program, .levels, .form__row { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .table th, .table td { padding: 0.2rem 0; border: 0; }
  .prose { font-size: 1.1rem; }
  .faq .faq__a { padding-right: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .review { left: 16px; right: 16px; justify-content: space-between; }
  .actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Impression (articles et statuts en PDF)
   -------------------------------------------------------------------------- */
@media print {
  @page { size: A4; margin: 20mm 20mm 22mm; }
  body { font-size: 10.5pt; color: #000; }
  .site-header, .site-footer, .review, .skip-link, .toc, .article-tools, .copy-btn, .cta-band, .nav-toggle, .no-print { display: none !important; }
  .article-head, .page-hero { background: none; border: 0; padding: 0 0 8mm; }
  .print-brand { display: block !important; margin-bottom: 10mm; }
  .print-brand img { height: 12mm; width: auto; }
  .article-layout { display: block; padding: 0; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.6; }
  .prose h2 { break-after: avoid; margin-top: 8mm; }
  .prose blockquote { break-inside: avoid; }
  .prose ol { padding-left: 2em; } /* numéros à deux chiffres : la marge de page rogne ce qui dépasse */
  .cite-box { break-inside: avoid; background: none; border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
  .tbc { background: none; box-shadow: none; padding: 0; color: inherit; }
}
.print-brand { display: none; }

/* Compléments */
.sub-title { margin: 2.5rem 0 1rem; }
.notice--spaced { margin-top: 2rem; }
.legal h2 { margin: 2.5rem 0 0.75rem; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.legal h2:first-child { margin-top: 0; }
