/* ==========================================================================
   Angèle — Design System
   R-Lab SARL · Charte v2.1 (pack logo, septembre 2026)
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Palette de marque (source : 06_Charte/angele-couleurs.css) */
  --brand-encre:      #102A43;
  --brand-intel:      #2962FF;
  --brand-turquoise:  #20C4B7;
  --brand-corail:     #FF7A66;
  --brand-brume:      #F6F8FB;
  --brand-gris:       #44546A;
  --brand-gradient:   linear-gradient(45deg, #2962FF 0%, #20C4B7 100%);

  /* Échelle typographique fluide */
  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.38vw, 1.44rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 1.92rem);
  --step-3:  clamp(1.73rem, 1.49rem + 1.20vw, 2.56rem);
  --step-4:  clamp(2.07rem, 1.68rem + 1.95vw, 3.41rem);
  --step-5:  clamp(2.49rem, 1.86rem + 3.14vw, 4.55rem);
  --step-6:  clamp(2.55rem, 1.72rem + 4.60vw, 6.00rem);

  /* Rythme */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --wrap: 1200px;
  /* Colonne de lecture. Identique à la mesure du texte : sur tout le site,
     un bloc de texte commence et finit au même endroit, quelle que soit
     la page et quel que soit le composant. */
  --wrap-narrow: 47rem;
  /* Mesure du texte courant. Valeur absolue et non en « ch » : l'unité ch
     dépend de la taille de police de l'élément, ce qui donnait une colonne
     différente pour un chapeau, une note et un intertitre. */
  --measure: 47rem;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .5s;

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Thème sombre — par défaut */
:root,
:root[data-theme="dark"] {
  --bg:            #08192a;
  --bg-alt:        #0c2237;
  --surface:       #102a43;
  --surface-2:     #16344f;
  --surface-3:     #1d405e;
  --line:          rgba(246,248,251,.11);
  --line-strong:   rgba(246,248,251,.20);
  --text:          #F6F8FB;
  --text-2:        #a9bcd2;
  --text-3:        #7f95af;
  --accent:        #37D4C7;
  --accent-2:      #4A7CFF;
  --cta:           #FF7A66;
  --cta-ink:       #2A0E08;
  --glow:          rgba(41,98,255,.30);
  --glow-2:        rgba(32,196,183,.26);
  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 18px 50px -20px rgba(0,0,0,.75);
  --shadow-lift:   0 1px 2px rgba(0,0,0,.4), 0 34px 80px -28px rgba(0,0,0,.85);
  --logo-filter:   none;
  color-scheme: dark;
}

/* Thème clair */
:root[data-theme="light"] {
  --bg:            #F6F8FB;
  --bg-alt:        #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #EEF3F9;
  --surface-3:     #E1EAF4;
  --line:          rgba(16,42,67,.12);
  --line-strong:   rgba(16,42,67,.22);
  --text:          #102A43;
  --text-2:        #44546A;
  --text-3:        #5A6B82;
  --accent:        #0A7268;
  --accent-2:      #2962FF;
  --cta:           #FF7A66;
  --cta-ink:       #2A0E08;
  --glow:          rgba(41,98,255,.16);
  --glow-2:        rgba(32,196,183,.16);
  --shadow:        0 1px 2px rgba(16,42,67,.06), 0 14px 40px -18px rgba(16,42,67,.22);
  --shadow-lift:   0 1px 2px rgba(16,42,67,.06), 0 30px 70px -26px rgba(16,42,67,.30);
  --logo-filter:   none;
  color-scheme: light;
}

/* ---------------------------------------------------------- 2. Base / reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

h1,h2,h3,h4,h5 { margin: 0 0 var(--sp-4); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -.016em; }
h4 { font-size: var(--step-1); letter-spacing: -.012em; }
p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
li { margin-bottom: .4em; }
li::marker { color: var(--accent); }
strong { font-weight: 600; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }
::selection { background: var(--accent); color: #04121f; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4); z-index: 999;
  background: var(--cta); color: var(--cta-ink); padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill); font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- 3. Layout */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 2rem, var(--wrap)); } }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow > * { max-width: var(--wrap-narrow); }
@media (max-width: 640px) { .wrap-narrow { width: min(100% - 2rem, var(--wrap)); } }

section { position: relative; }
.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
.section--alt + .section--alt { padding-top: 0; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 900px) {
  .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)); }
}

/* ------------------------------------------------------------ 4. Typo utils */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 1.9em; height: 2px; border-radius: 2px;
  background: var(--brand-gradient);
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-2); font-weight: 400; }
.muted { color: var(--text-2); }
.small { font-size: var(--step--1); color: var(--text-2); }
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
[data-theme="light"] .gradient-text { background: linear-gradient(45deg,#1E4FD8 0%,#0A7268 100%); -webkit-background-clip: text; background-clip: text; }
.section-head { max-width: var(--measure); margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head > * { max-width: 100%; }
.section-head.center .eyebrow { justify-content: center; }

/* --------------------------------------------------------------- 5. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.6em; border-radius: var(--radius-pill);
  font-family: inherit; font-size: var(--step-0); font-weight: 600; line-height: 1;
  letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease), background-color .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform .28s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--cta); color: var(--cta-ink); box-shadow: 0 6px 18px -10px rgba(255,122,102,.55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(255,122,102,.7); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { transform: translateY(-2px); opacity: .9; }

.btn--sm { padding: .62em 1.15em; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--accent); font-size: var(--step-0);
  transition: gap .25s var(--ease-out);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease-out); }
.link-arrow:hover { gap: .7em; }
.link-arrow:hover::after { transform: translateX(2px); }

/* ---------------------------------------------------------------- 6. Header */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.header.is-stuck {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .header.is-stuck { background: var(--bg); } }

.header__inner { display: flex; align-items: center; gap: var(--sp-5); min-height: 74px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.brand__light { display: none; }
[data-theme="light"] .brand__dark  { display: none; }
[data-theme="light"] .brand__light { display: block; }

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav a {
  position: relative; padding: .5em .78em; border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 500; color: var(--text-2);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .78em; right: .78em; bottom: .12em;
  height: 2px; border-radius: 2px; background: var(--brand-gradient);
}

.header__tools { display: flex; align-items: center; gap: var(--sp-2); flex: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease-out);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .icon-sun { display: none; }
[data-theme="light"] .icon-btn .icon-sun  { display: block; }
[data-theme="light"] .icon-btn .icon-moon { display: none; }

.lang {
  display: inline-flex; align-items: center; gap: 1px; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.lang a {
  padding: .25em .62em; border-radius: var(--radius-pill);
  font-size: var(--step--2); font-weight: 700; letter-spacing: .06em;
  color: var(--text-3); transition: all .25s var(--ease);
}
.lang a[aria-current="true"] { background: var(--surface-3); color: var(--text); }
.lang a:hover { color: var(--text); }

.burger { display: none; }

@media (max-width: 1080px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-4) var(--sp-5) var(--sp-7);
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 72dvh; overflow-y: auto; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease-out);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .85em .5em; font-size: var(--step-1); border-radius: 10px; }
  .nav a[aria-current="page"]::after { left: .5em; right: auto; width: 24px; bottom: .5em; }
  .burger { display: inline-grid; }
  .header__tools { margin-left: auto; }
}

/* ------------------------------------------------------------------ 7. Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 6rem); }
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 26%, #000 52%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 26%, #000 52%, #000 100%);
}
@media (max-width: 939px) {
  .hero__canvas {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 38%, #000 68%);
            mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 38%, #000 68%);
    opacity: .8;
  }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 75% at 50% 0%, transparent 35%, var(--bg) 96%);
}
.hero__inner { position: relative; z-index: 2; }

.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

.hero h1 { font-size: var(--step-6); letter-spacing: -.032em; margin-bottom: var(--sp-5); }
.hero__claim { display: block; }
.hero__claim--2 { color: var(--text-2); }
.hero__sub { font-size: var(--step-1); color: var(--text-2); max-width: 46ch; margin-bottom: var(--sp-6); }

.hero__mark { display: flex; justify-content: center; }
.hero__mark img { width: min(340px, 68vw); filter: drop-shadow(0 30px 60px rgba(41,98,255,.28)); }

.trustbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--text-3); font-weight: 500;
}
.trustbar span { display: inline-flex; align-items: center; gap: .45em; }
.trustbar span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ------------------------------------------------------------- 8. Page hero */
.pagehead { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); }
.pagehead::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 8% 0%, var(--glow) 0%, transparent 62%),
    radial-gradient(50% 80% at 92% 10%, var(--glow-2) 0%, transparent 60%);
  opacity: .85;
}
.pagehead > * { position: relative; z-index: 1; }
.pagehead h1 { font-size: var(--step-5); max-width: 20ch; }
.pagehead .lead { max-width: 60ch; }

.crumbs { font-size: var(--step--1); color: var(--text-3); margin-bottom: var(--sp-5); }
.crumbs a { color: var(--text-3); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 .45em; opacity: .5; }

/* ----------------------------------------------------------------- 9. Cards */
.card {
  position: relative; padding: var(--sp-6);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease-out), border-color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.card > :last-child { margin-bottom: 0; }
.card--hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.card__num {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .1em;
  color: var(--accent); margin-bottom: var(--sp-4); display: block;
}
.card h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.card p { color: var(--text-2); font-size: var(--step-0); }

.card--pillar { padding: var(--sp-7) var(--sp-6); overflow: hidden; }
.card--pillar::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--brand-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.card--pillar.is-in::before, .card--pillar:hover::before { transform: scaleX(1); }
.card--pillar h3 { font-size: var(--step-2); margin-bottom: var(--sp-4); }

.icon-box {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: var(--sp-5);
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--accent);
}
.icon-box svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------- 10. Ribbon */
.ribbon { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: var(--step--1); font-weight: 500; color: var(--text-2);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ----------------------------------------------------------------- 11. Flow */
.flow { display: grid; gap: var(--sp-4); counter-reset: flow; }
.flow__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5);
  padding: var(--sp-5) 0; border-top: 1px solid var(--line);
}
.flow__item:last-child { border-bottom: 1px solid var(--line); }
.flow__n {
  counter-increment: flow; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: var(--step--1);
  color: var(--accent); flex: none;
}
.flow__n::before { content: counter(flow, decimal-leading-zero); }
.flow__body h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.flow__body p { color: var(--text-2); margin-bottom: var(--sp-2); }
.flow__out { font-size: var(--step--1); color: var(--text-3); }
.flow__out strong { color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------- 12. Split media */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } .split--rev > :first-child { order: 2; } }

/* ------------------------------------------------------------------ 13. Tabs */
.tabs__list {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-2);
}
.tabs__btn {
  padding: .6em 1.15em; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font-family: inherit; font-size: var(--step--1); font-weight: 600; cursor: pointer;
  transition: all .28s var(--ease);
}
.tabs__btn:hover { color: var(--text); border-color: var(--line-strong); }
.tabs__btn[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs__panel[hidden] { display: none; }

.usecase {
  display: grid; gap: var(--sp-4); padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .usecase { grid-template-columns: 230px 1fr 260px; gap: var(--sp-6); align-items: start; } }
.usecase:last-child { border-bottom: 1px solid var(--line); }
.usecase__role { font-weight: 600; font-size: var(--step-0); color: var(--text); }
.usecase__body { color: var(--text-2); font-size: var(--step-0); }
.usecase__metas { display: grid; gap: var(--sp-4); }
.usecase__meta { font-size: var(--step--1); color: var(--text-3); }
.usecase__meta strong { display: block; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .35em; font-weight: 700; }

/* -------------------------------------------------------------- 14. Accordion */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-5);
  width: 100%; padding: var(--sp-5) 0; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: var(--step-1); font-weight: 600; line-height: 1.3;
  color: var(--text); text-align: left; letter-spacing: -.012em;
  transition: color .25s var(--ease);
}
.acc__btn:hover { color: var(--accent); }
.acc__icon { flex: none; width: 22px; height: 22px; margin-top: .18em; position: relative; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 2px; border-radius: 2px;
  background: var(--accent); transition: transform .35s var(--ease-out);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease-out); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--text-2); padding-bottom: var(--sp-5); max-width: 78ch; }
.acc__panel p:last-child { padding-bottom: var(--sp-5); }

/* ------------------------------------------------------------------ 15. Quote */
.quote {
  padding: var(--sp-7); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.quote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-gradient);
}
.quote p { font-size: var(--step-2); line-height: 1.35; font-weight: 500; letter-spacing: -.018em; color: var(--text); }

/* ------------------------------------------------------------------- 16. CTA */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 120% at 12% 100%, var(--glow) 0%, transparent 60%),
    radial-gradient(60% 110% at 88% 0%, var(--glow-2) 0%, transparent 58%);
}
.cta-band > * { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ 17. Form */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 680px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--sp-2); }
.field > label { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.field .hint { font-size: var(--step--2); color: var(--text-3); }
.field .req { color: var(--cta); }

.input, .select, .textarea {
  width: 100%; padding: .85em 1em; font-family: inherit; font-size: var(--step-0);
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f95af' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.8rem; cursor: pointer;
}
.select option { background: var(--surface); color: var(--text); }

.choice-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: block; padding: .9em 1.1em; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: var(--step--1); font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: all .25s var(--ease);
}
.choice span:hover { border-color: var(--line-strong); color: var(--text); }
.choice input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); color: var(--text); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.check input { margin-top: .3em; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.check label { font-size: var(--step--1); color: var(--text-2); line-height: 1.5; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form__note { font-size: var(--step--2); color: var(--text-3); }
.form__status { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); font-size: var(--step--1); font-weight: 500; }
.form__status[data-state="ok"]  { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.form__status[data-state="err"] { background: color-mix(in srgb, var(--cta) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--cta) 40%, transparent); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------------------------------------------------------------- 18. Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: var(--sp-8) var(--sp-6); }
.footer__grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; margin-bottom: var(--sp-7); }
@media (min-width: 780px)  { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand img { height: 40px; margin-bottom: var(--sp-4); }
.footer__brand p { font-size: var(--step--1); color: var(--text-2); max-width: 34ch; }
.footer h4 { font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--sp-4); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--sp-3); }
.footer li a { font-size: var(--step--1); color: var(--text-2); transition: color .22s var(--ease); }
.footer li a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center;
  padding-top: var(--sp-5); border-top: 1px solid var(--line);
  font-size: var(--step--2); color: var(--text-3);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-left: auto; }
.footer__bottom a:hover { color: var(--accent); }

/* ------------------------------------------------------------- 19. Rich text */
.prose { max-width: var(--wrap-narrow); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { margin-bottom: var(--sp-5); }
.prose .todo {
  display: inline-block; padding: .1em .5em; border-radius: 5px;
  background: color-mix(in srgb, var(--cta) 20%, transparent);
  border: 1px dashed color-mix(in srgb, var(--cta) 55%, transparent);
  color: var(--text); font-size: .9em; font-weight: 600;
}
.prose__meta { font-size: var(--step--1); color: var(--text-3); margin-bottom: var(--sp-7); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.toc { padding: var(--sp-5) var(--sp-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--sp-7); }
.toc h4 { font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--sp-3); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .3em; font-size: var(--step--1); }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- 20. Motion */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-fx [data-reveal] { opacity: 1; transform: none; }

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

/* ----------------------------------------------------- 21. Listes marquées */
.list-check, .list-cross { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.list-check li, .list-cross li {
  position: relative; padding-left: 2rem; margin: 0;
  color: var(--text-2); font-size: var(--step-0); line-height: 1.55;
}
.list-check li::before, .list-cross li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.list-check li::before {
  background-color: color-mix(in srgb, var(--accent) 20%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320C4B7' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E");
}
.list-cross li::before {
  background-color: color-mix(in srgb, var(--cta) 18%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A66' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* --------------------------------------------------- 22. Bande connecteurs */
.conn {
  display: grid; gap: var(--sp-6); align-items: center;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 1000px) {
  .conn { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: clamp(2rem, 4vw, 4rem); }
  .conn__col--in  { justify-items: end; }
  .conn__col--in .conn__label { text-align: right; }
  .conn__col--in .ribbon { justify-content: flex-end; }
}
.conn__col { display: grid; align-content: center; }
.conn__label {
  font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; margin-bottom: var(--sp-4);
}
.conn__node { display: grid; justify-items: center; gap: var(--sp-1); text-align: center; }
.conn__node strong { font-size: var(--step-1); letter-spacing: -.015em; }
.conn__ring {
  position: relative; display: grid; place-items: center;
  width: 92px; height: 92px; margin-bottom: var(--sp-4);
  border-radius: 50%; border: 1px solid var(--line-strong);
}
.conn__ring::before, .conn__ring::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  animation: connPulse 3.4s var(--ease-out) infinite;
}
.conn__ring::after { animation-delay: 1.7s; }
@keyframes connPulse {
  0%   { transform: scale(.82); opacity: 0; }
  35%  { opacity: .75; }
  100% { transform: scale(1.28); opacity: 0; }
}
.conn__core {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent);
}
.conn__out { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.conn__out li {
  position: relative; padding-left: 1.4rem; margin: 0;
  font-size: var(--step--1); color: var(--text-2); line-height: 1.55;
}
.conn__out li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 2px; border-radius: 2px; background: var(--brand-gradient);
}
@media (prefers-reduced-motion: reduce) { .conn__ring::before, .conn__ring::after { animation: none; opacity: .3; } }

/* --------------------------------------------------------- 23. Aside étapes */
.aside-steps { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); }
.aside-step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.aside-step > span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: var(--step--2); font-weight: 700; color: var(--accent);
}
.aside-step strong { display: block; margin-bottom: .2em; font-size: var(--step-0); }
.aside-step p { margin: 0; }

/* ------------------------------------------------------------ 24. Ressource */
.res .state {
  display: inline-block; padding: .28em .8em; border-radius: var(--radius-pill);
  border: 1px dashed var(--line-strong); font-size: var(--step--2);
  font-weight: 600; color: var(--text-3); letter-spacing: .04em;
}

/* --------------------------------------------------------- 25. Tables prose */
.prose table, .table-wrap table {
  width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5);
  font-size: var(--step--1);
}
.prose table th, .prose table td {
  text-align: left; padding: .78em 1em; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--text-2);
}
.prose table th { color: var(--text); font-weight: 600; border-bottom-color: var(--line-strong); }
.prose table tr:last-child td { border-bottom: 0; }
.prose { overflow-x: auto; }

/* ------------------------------------------------------------- 26. Divers */
.center-h2 { max-width: 22ch; margin-inline: auto; }


/* --------------------------------------------------- 27. Ancrages et divers */
:target { scroll-margin-top: 100px; }
h2[id], h3[id], .acc__item { scroll-margin-top: 100px; }
.section-head { max-width: var(--measure); }
.pagehead .lead, .pagehead p { max-width: var(--measure); }
.pagehead h1 { max-width: var(--measure); }

/* Note de bas de section : même colonne que le chapeau, même respiration. */
.note {
  max-width: var(--measure);
  margin-top: var(--sp-6);
  margin-bottom: 0;
  font-size: var(--step--1);
  color: var(--text-2);
}
.after { margin-top: var(--sp-6); margin-bottom: 0; }


/* ------------------------------------------------------------- 28. Mobile */
@media (max-width: 939px) {
  /* Le symbole est déjà présent dans l'en-tête : on évite de doubler la hauteur du hero. */
  .hero__mark { display: none; }
  .hero { padding-block: clamp(2.25rem, 7vw, 4rem) clamp(2.5rem, 7vw, 4rem); }
  .hero__sub { margin-bottom: var(--sp-5); }
  .trustbar { margin-top: var(--sp-6); }
  .btn-row .btn { width: 100%; }
  .quote { padding: var(--sp-6) var(--sp-5); }
  .quote p { font-size: var(--step-1); }
}
@media (max-width: 520px) {
  .card { padding: var(--sp-5); }
  .flow__item { grid-template-columns: 1fr; gap: var(--sp-3); }
  .flow__n { width: 34px; height: 34px; }
  .acc__btn { font-size: var(--step-0); gap: var(--sp-4); }
}

/* ------------------------------------------------------- 29. Pages légales */
.legal-body > * { max-width: var(--wrap-narrow); }
.legal-body .prose { max-width: var(--wrap-narrow); }
.legal-body h1 { font-size: var(--step-4); max-width: var(--measure); }

[data-theme="light"] .list-check li::before {
  background-color: color-mix(in srgb, var(--accent) 16%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7268' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E");
}
[data-theme="light"] .list-cross li::before {
  background-color: color-mix(in srgb, #C8391F 14%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8391F' stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* ================================================= 30. Diagramme de flux
   Récit de marque : dispersion -> orchestration -> valeur métier.
   Le SVG prend le relais à partir de 900 px ; en dessous, la version
   empilée « .conn » reste lisible sur un écran étroit.
   ==================================================================== */
.diagram { display: none; margin: 0; }
.diagram__svg { width: 100%; height: auto; overflow: visible; }

@media (min-width: 900px) {
  .diagram { display: block; }
  .conn    { display: none; }
}

.dg__cap {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; fill: var(--text-3);
}
.dg__label {
  font-family: var(--font); font-size: 15px; font-weight: 500; fill: var(--text-2);
}
.dg__hubname {
  font-family: var(--font); font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; fill: var(--text);
}
.dg__hubsub { font-family: var(--font); font-size: 13px; font-weight: 500; fill: var(--text-3); }

.dg__flows { fill: none; }
.dg__line  { stroke-width: 1.4; opacity: .30; }
.dg__dot   { opacity: .9; }

.dg__pulse {
  stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 7 93; stroke-dashoffset: 100;
  animation: dgFlow 3.6s linear infinite;
  animation-delay: calc(var(--i) * .42s);
}
.dg__pulse--out { animation-duration: 3s; animation-delay: calc(1.4s + var(--i) * .5s); }
@keyframes dgFlow { to { stroke-dashoffset: 0; } }

.dg__ring { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.dg__ring--in { stroke: var(--accent); opacity: .55; }
.dg__wave {
  fill: none; stroke: var(--accent); stroke-width: 1.2;
  transform-origin: 520px 240px; opacity: 0;
  animation: dgWave 3.8s var(--ease-out) infinite;
}
.dg__wave--2 { animation-delay: 1.9s; }
@keyframes dgWave {
  0%   { transform: scale(.86); opacity: 0; }
  30%  { opacity: .5; }
  100% { transform: scale(1.32); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dg__pulse { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: .5; }
  .dg__wave  { animation: none; opacity: .18; }
}
.no-fx .dg__pulse { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: .5; }
.no-fx .dg__wave  { animation: none; opacity: .18; }

/* ==================================================== 31. Texte justifié
   Le corps de texte est justifié avec césure automatique : sans césure,
   la justification creuse des rivières blanches en français.
   La justification n'est appliquée qu'au-dessus d'un empan suffisant.
   Les libellés courts, les listes et le texte d'affichage restent
   alignés à gauche, où le drapeau tient mieux que la justification.
   ==================================================================== */
@media (min-width: 900px) {
  .lead,
  .hero__sub,
  .grid-2 .card p,
  .split .card p,
  .flow__body p,
  .acc__panel p,
  .usecase__body,
  .prose p,
  .prose li {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  /* Les cartes étroites gardent le drapeau : trop peu de mots par ligne
     pour que la justification tienne sans creuser de trous. */
  .grid-3 .card p, .grid-4 .card p, .res p, .aside-step p, .footer__brand p,
  .card--pillar p { text-align: left; hyphens: manual; }
}

/* Disque du moyeu : masque les traits qui passeraient sous le nœud. */
.dg__hubfill { fill: var(--bg-alt); }
.dg__ring    { stroke-width: 1.6; }
.dg__ring--in { stroke-width: 1.3; }

/* ============================================ 32. Sélecteur de cas d'usage
   Une liste de métiers à gauche, une seule fiche affichée à droite :
   le tableau complet était trop dense pour être parcouru.
   ==================================================================== */
.pick { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .pick { grid-template-columns: 260px 1fr; gap: var(--sp-7); align-items: start; } }

.pick__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (min-width: 900px) {
  .pick__list { flex-direction: column; flex-wrap: nowrap; gap: 2px; position: sticky; top: 96px; }
}
.pick__btn {
  padding: .62em 1em; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); font-family: inherit;
  font-size: var(--step--1); font-weight: 500; text-align: left; cursor: pointer;
  transition: background-color .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}
@media (max-width: 899px) { .pick__btn { border-color: var(--line); border-radius: var(--radius-pill); } }
.pick__btn:hover { color: var(--text); background: var(--surface-2); }
.pick__btn[aria-selected="true"] {
  background: var(--surface-2); color: var(--text); font-weight: 600;
  border-color: var(--line-strong); position: relative;
}
@media (min-width: 900px) {
  .pick__btn[aria-selected="true"]::before {
    content: ""; position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 3px; border-radius: 3px; background: var(--brand-gradient);
  }
}
.pick__panel[hidden] { display: none; }
.pick__panel h3 { font-size: var(--step-2); margin-bottom: var(--sp-4); }
.pick__lead { font-size: var(--step-1); color: var(--text-2); line-height: 1.5; margin-bottom: var(--sp-6); }
.pick__metas { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) { .pick__metas { grid-template-columns: 1fr 1fr; } }
.pick__meta {
  padding: var(--sp-5); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.pick__meta strong {
  display: block; font-size: var(--step--2); letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5em; font-weight: 700;
}
.pick__meta p { margin: 0; font-size: var(--step--1); color: var(--text-2); }

/* --------------------------------------------- 33. Puces cliquables */
.ribbon--lg .chip { font-size: var(--step-0); padding: .62em 1.15em; }
.chip--link { cursor: pointer; }
.chip--link:hover { border-color: var(--accent); color: var(--text); }

/* ------------------------------- 34. Résultat d'étape, mis en avant */
.flow__out {
  display: inline-flex; align-items: baseline; gap: .55em; flex-wrap: wrap;
  margin-top: var(--sp-3); padding: .5em .9em; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  font-size: var(--step--1); color: var(--text-2);
}
.flow__out span {
  font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
}

/* En-tête réduit : la page livre son contenu sans faire défiler. */
.pagehead--compact { padding-block: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem); }
.pagehead--compact h1 { font-size: var(--step-4); }
.pagehead--compact + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* FAQ complète : familles et état des filtres. Reprend les composants
   existants (.tabs__btn, .acc, .input) — aucun nouveau style de marque. */
.faq-fam { margin-top: var(--sp-8); }
.faq-fam:first-of-type { margin-top: var(--sp-7); }
.faq-fam[hidden] { display: none; }
.faq-fam__title { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.faq-fam__intro { margin-bottom: var(--sp-5); }
.acc__item[hidden] { display: none; }
.tabs__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.card__sub {
  display: block; margin: -.35rem 0 .7rem; font-size: var(--step--2);
  letter-spacing: .11em; text-transform: uppercase; font-weight: 700; color: var(--text-3);
}

/* ============================================ 35. Schéma d'architecture
   Vos sources -> Angèle -> les modèles -> vos usages. Même palette et
   mêmes composants que le reste : cartes, filets, dégradé de marque.
   ==================================================================== */
.ar { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 1060px) {
  .ar { grid-template-columns: 1fr 18px 1.35fr 18px 1fr 18px 1fr; gap: var(--sp-4); }
}
.ar__label {
  font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; margin-bottom: var(--sp-4);
}
.ar__label--hub { color: var(--accent); }
.ar__col, .ar__hub {
  padding: var(--sp-5); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); height: 100%;
}
.ar__hub { border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.ar__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.ar__list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; margin: 0; }
.ar__list strong { display: block; font-size: var(--step--1); font-weight: 600; color: var(--text); }
.ar__list span:not(.ar__ic) { display: block; font-size: var(--step--2); color: var(--text-3); line-height: 1.5; }
.ar__ic {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
}
.ar__ic svg { width: 15px; height: 15px; }
.ar__bricks { display: grid; gap: var(--sp-3); grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .ar__bricks { grid-template-columns: 1fr; } }
.ar__brick {
  padding: var(--sp-4); border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); display: grid; gap: .3rem; justify-items: start;
}
.ar__brick strong { font-size: var(--step--1); }
.ar__brick span:not(.ar__ic) { font-size: var(--step--2); color: var(--text-3); line-height: 1.45; }
.ar__brick .ar__ic { margin-bottom: .35rem; }
.ar__arrow { display: none; }
@media (min-width: 1060px) {
  .ar__arrow { display: grid; place-items: center; align-self: center; }
  .ar__arrow::before {
    content: ""; width: 18px; height: 10px;
    background: var(--brand-gradient);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M0 6h18M14 1l5 6-5 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M0 6h18M14 1l5 6-5 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  }
}
.ar__band { align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.ar__band > strong { font-size: var(--step--1); margin-right: var(--sp-2); }

/* ---------------------------------- 36. Chaîne d'usage traçable */
.ch { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); counter-reset: ch; }
@media (min-width: 900px) { .ch { grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); } }
.ch__step {
  position: relative; margin: 0; padding: var(--sp-5);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  display: grid; gap: .35rem; align-content: start;
}
@media (min-width: 900px) {
  .ch__step:not(:last-child)::after {
    content: ""; position: absolute; right: calc(var(--sp-3) * -1 - 1px); top: 50%;
    width: var(--sp-3); height: 1px; background: var(--line-strong);
  }
}
.ch__ic {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: var(--sp-2);
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
}
.ch__ic svg { width: 17px; height: 17px; }
.ch__step strong { font-size: var(--step-0); }
.ch__k {
  font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-top: .3rem;
}
.ch__v { font-size: var(--step--1); color: var(--text-2); line-height: 1.5; }

/* ------------------------ 37. Colonnes de responsabilités */
.rc__sub { font-size: var(--step--1); color: var(--text-3); margin-bottom: var(--sp-5); }
.rc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.rc__list li { margin: 0; padding-left: 1.1rem; position: relative; font-size: var(--step--1); color: var(--text-2); line-height: 1.55; }
.rc__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.rc__list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .15em; }

/* ------------------------------------- 38. Partenaires nommés */
.pa__names {
  margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line);
  font-size: var(--step--1); font-weight: 600; color: var(--text);
}

/* Appel à l'action dans l'en-tête, comme sur la proposition CDU. */
.nav__cta { margin-left: var(--sp-3); }
@media (max-width: 1080px) {
  .nav__cta { margin: var(--sp-4) .5em 0; justify-content: center; }
}
@media (min-width: 1081px) and (max-width: 1300px) {
  .nav a:not(.nav__cta) { padding: .5em .58em; }
  .nav__cta { margin-left: var(--sp-2); }
}

/* Écarts de fin de bloc, harmonisés. Trois valeurs suffisent :
   .after pour un élément qui suit un contenu, --tight quand il suit
   immédiatement le texte auquel il se rattache. */
.after--tight { margin-top: var(--sp-4); }
.card .after, .card .after--tight { margin-bottom: 0; }
.res .after--tight { margin-top: var(--sp-5); }

/* Une responsabilité sans précision : le titre se suffit à lui-même. */
.rc__list strong:only-child { margin-bottom: 0; }

/* L'en-tête de page porte déjà sa respiration : la section qui suit
   n'a pas besoin d'y ajouter un blanc complet. */
.pagehead + .section { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* ======================================== 40. Rangée de libellés (strip)
   Le pendant léger d'une grille de cartes : quand les titres suffisent,
   on retire les encadrés et on garde un simple filet de séparation.
   ==================================================================== */
.strip {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-5);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; }
  .strip li + li { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
}
.strip li { margin: 0; padding-top: var(--sp-5); }
@media (max-width: 759px) { .strip li + li { border-top: 1px solid var(--line); } }
.strip strong {
  display: block; font-size: var(--step-1); font-weight: 600;
  letter-spacing: -.015em; color: var(--text);
}
.strip span {
  display: block; margin-top: .35em; font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700;
}

/* ============================ 41. Chaîne de traçabilité, version allégée
   Cinq jalons sur une ligne plutôt que cinq encadrés : la page respire.
   ==================================================================== */
.ch {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-6); counter-reset: ch;
  position: relative;
}
@media (min-width: 900px) { .ch { grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); } }
.ch__step {
  position: relative; margin: 0; padding: 0; border: 0; background: none;
  display: grid; gap: .3rem; align-content: start;
}
.ch__step::before {
  content: ""; counter-increment: ch;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  margin-bottom: var(--sp-4); position: relative; z-index: 1;
}
.section--alt .ch__step::before { background: var(--bg-alt); }
@media (min-width: 900px) {
  .ch__step:not(:last-child)::after {
    content: ""; position: absolute; left: 13px; top: 5.5px; right: calc(var(--sp-5) * -1);
    height: 1px; background: var(--line-strong);
  }
}
.ch__ic { display: none; }
.ch__step strong { font-size: var(--step-0); letter-spacing: -.01em; }
.ch__k {
  font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-top: .35rem;
}
.ch__v { font-size: var(--step--1); color: var(--text-2); line-height: 1.5; }

/* Étiquette posée sur une carte : sert à marquer une option, pas un mode. */
.card__tag {
  position: absolute; top: calc(var(--sp-5) * -1 + 2px); left: var(--sp-6);
  padding: .3em .85em; border-radius: var(--radius-pill);
  background: var(--brand-gradient); color: #04121f;
  font-size: var(--step--2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.card:has(.card__tag) { margin-top: var(--sp-4); }
