/* ==========================================================================
   KW Department — v2 design system
   Marque : bleu marine + filet or (logo KWD) ; vert = signal Qualité (KWD QMS)
   Display : Bricolage Grotesque  ·  Texte : Archivo  ·  Données : IBM Plex Mono
   ========================================================================== */

/* --- 1. Jetons ----------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Neutres biaisés vers le bleu de marque (jamais de gris pur) */
  --ground:      #F3F5F9;
  --surface:     #FFFFFF;
  --surface-alt: #EAEDF5;
  --ink:         #101A3D;
  --ink-soft:    #38425F;
  --muted:       #5F6881;
  --line:        #DCE1EE;
  --line-strong: #C3CADD;

  /* Marque */
  --navy:        #22337A;
  --navy-lift:   #33499E;
  --navy-deep:   #0A1130;
  --navy-deep-2: #131C44;
  --gold:        #E0A116;
  --gold-lift:   #F5BE3E;
  --qms:         #4E9E56;
  --qms-lift:    #6FBF73;

  /* Rôles sur fond sombre (constants dans les deux thèmes) */
  --on-dark:      #EEF1FA;
  --on-dark-soft: #A9B3D2;
  --on-dark-line: #26315C;

  --focus: #F5BE3E;

  /* Hauteur de l'en-tete collant : sert au calage des sections pleine page. */
  --head: 68px;
  /* Une section centree verticalement n'a pas besoin du rembourrage
     genereux d'une bande classique : il la ferait deborder de l'ecran. */
  --band-full: clamp(2.25rem, 1.5rem + 2.4vh, 4rem);

  /* Typographie */
  --f-display: "Bricolage Grotesque", "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", "Consolas", ui-monospace, monospace;

  /* Échelle typographique (fluide) */
  --t-hero:  clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  --t-h1:    clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
  --t-h2:    clamp(1.7rem, 1.2rem + 2.1vw, 2.9rem);
  --t-h3:    clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --t-lead:  clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --t-body:  1.0rem;
  --t-small: 0.875rem;
  --t-label: 0.72rem;

  /* Rythme */
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 3rem);
  --band:   clamp(4.5rem, 2.5rem + 7vw, 9.5rem);
  --max:    1240px;
  --measure: 66ch;

  --r-s: 3px;
  --r-m: 6px;
  --r-l: 14px;

  --shadow-lift: 0 1px 2px rgba(16, 26, 61, .05), 0 12px 32px -12px rgba(16, 26, 61, .18);
  --shadow-deep: 0 24px 64px -24px rgba(10, 17, 48, .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground:      #070C1E;
    --surface:     #0F1734;
    --surface-alt: #16203F;
    --ink:         #E8ECF8;
    --ink-soft:    #C3CBE3;
    --muted:       #96A0BE;
    --line:        #202B52;
    --line-strong: #2E3B69;
    --navy:        #8DA0E4;
    --navy-lift:   #A9B9F0;
    --navy-deep:   #050916;
    --navy-deep-2: #0D1533;
    --gold:        #F0B429;
    --gold-lift:   #FFCE5C;
    --qms:         #6FBF73;
    --qms-lift:    #8ED492;
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
    --shadow-deep: 0 24px 64px -24px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground:      #070C1E;
  --surface:     #0F1734;
  --surface-alt: #16203F;
  --ink:         #E8ECF8;
  --ink-soft:    #C3CBE3;
  --muted:       #96A0BE;
  --line:        #202B52;
  --line-strong: #2E3B69;
  --navy:        #8DA0E4;
  --navy-lift:   #A9B9F0;
  --navy-deep:   #050916;
  --navy-deep-2: #0D1533;
  --gold:        #F0B429;
  --gold-lift:   #FFCE5C;
  --qms:         #6FBF73;
  --qms-lift:    #8ED492;
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-deep: 0 24px 64px -24px rgba(0, 0, 0, .8);
}

/* --- 2. Socle ------------------------------------------------------------ */

*, *::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;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-lift); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-s);
}

h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.12; }
p { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #1A1200; padding: .75rem 1.25rem;
  font-weight: 600; border-radius: 0 0 var(--r-m) 0;
}
.skip:focus { left: 0; }

/* --- 3. Mise en page ----------------------------------------------------- */

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

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * .62); }

.band--dark {
  background: var(--navy-deep);
  color: var(--on-dark);
}
.band--dark h2, .band--dark h3 { color: var(--on-dark); }
.band--dark p { color: var(--on-dark-soft); }

.band--paper { background: var(--surface); }

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* --- 4. Étiquettes & titres ---------------------------------------------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
  flex: none;
}
.band--dark .eyebrow { color: var(--on-dark-soft); }
.eyebrow--qms::before { background: var(--qms-lift); }

.display {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.h-section {
  margin-bottom: .35em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-h2);
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.lead {
  font-size: var(--t-lead);
  color: var(--ink-soft);
  max-width: var(--measure);
  line-height: 1.6;
}
.band--dark .lead { color: var(--on-dark-soft); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { font-size: var(--t-h3); font-family: var(--f-display); font-weight: 600; margin-top: 2.2em; }
.prose ul { padding-left: 1.15rem; margin-block: 1.1em; }
.prose li { margin-block: .45em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose dfn { font-style: normal; font-weight: 600; border-bottom: 2px solid var(--gold); }

/* --- 5. En-tête ---------------------------------------------------------- */

.masthead {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead__in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand img { width: 54px; height: auto; background: #fff; border-radius: var(--r-s); padding: 2px; }
.brand__txt {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  display: none;
}
@media (min-width: 1000px) { .brand__txt { display: block; } }

.nav { margin-left: auto; display: none; }
@media (min-width: 1000px) { .nav { display: block; } }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: var(--t-small);
  font-weight: 500;
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--navy); }

.masthead .btn { flex: none; }
.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  font: 500 var(--t-small)/1 var(--f-body);
  padding: .6rem .85rem; border-radius: var(--r-m); cursor: pointer;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.nav-drawer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.nav-drawer ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.nav-drawer a {
  display: block; padding: .8rem var(--gutter);
  text-decoration: none; color: var(--ink); font-weight: 500;
}
.nav-drawer a:hover { background: var(--surface-alt); }

/* --- 6. Boutons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 var(--t-small)/1 var(--f-body);
  letter-spacing: .01em;
  padding: .85rem 1.4rem;
  border-radius: var(--r-m);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--gold  { background: var(--gold); color: #1A1200; }
.btn--gold:hover { background: var(--gold-lift); color: #1A1200; }
.btn--navy  { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-lift); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--on-dark { border-color: rgba(238, 241, 250, .32); color: var(--on-dark); background: transparent; }
.btn--on-dark:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(238, 241, 250, .06); }
.btn--qms { background: var(--qms); color: #fff; }
.btn--qms:hover { background: var(--qms-lift); color: #06240A; }

.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: .92;
}
/* Sous 900px la mise en page est sur une colonne : le graphe s'efface
   au-dessus du texte et ne subsiste que dans le bas du hero, autour du
   curseur qui le commande. */
@media (max-width: 899px) {
  .hero__canvas {
    opacity: .85;
    /* Les bornes viennent du script : elles suivent la bande reservee. */
    -webkit-mask-image: linear-gradient(to bottom,
      transparent var(--m0, 55%), #000 var(--m1, 62%),
      #000 var(--m2, 88%), transparent var(--m3, 96%));
    mask-image: linear-gradient(to bottom,
      transparent var(--m0, 55%), #000 var(--m1, 62%),
      #000 var(--m2, 88%), transparent var(--m3, 96%));
  }
  /* La bande que le graphe occupe, ouverte au-dessus de son panneau. */
  .chaos { margin-top: 210px; background: rgba(10, 17, 48, .62); }
}

/* Le graphe s'efface sous la colonne de texte : aucune collision possible. */
@media (min-width: 900px) {
  .hero__canvas {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 20%, #000 46%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 20%, #000 46%);
  }
}
.hero__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 72% 40%, rgba(45, 84, 173, .55), transparent 70%),
    radial-gradient(60% 60% at 12% 85%, rgba(224, 161, 22, .14), transparent 70%),
    var(--navy-deep);
  z-index: 0;
}
.hero__in {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(3rem, 2rem + 4vw, 5rem);
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 1000px) {
  .hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-hero);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-lift);
}
.hero__kicker {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.hero__kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); flex: none; }
.hero__lead {
  font-size: var(--t-lead);
  color: #C6CFE8;
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero .actions { margin-bottom: 1.25rem; }
.hero__note {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  color: #8D99BF;
  letter-spacing: .04em;
}

/* Panneau de contrôle chaos → structure : c'est la démonstration du produit */
.chaos {
  background: rgba(10, 17, 48, .58);
  border: 1px solid rgba(169, 179, 210, .22);
  border-radius: var(--r-l);
  padding: 1.35rem 1.4rem 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-deep);
  max-width: 420px;
}
.chaos__hd {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-lift);
  margin-bottom: .85rem;
}
.chaos__scale {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: var(--t-label);
  color: var(--on-dark-soft); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .4rem;
}
.chaos input[type="range"] {
  width: 100%; margin: 0; accent-color: var(--gold);
  height: 28px; background: transparent; cursor: grab;
}
.chaos input[type="range"]:active { cursor: grabbing; }
.chaos__read {
  margin-top: .65rem;
  font-size: var(--t-small);
  color: #C6CFE8;
  line-height: 1.5;
  min-height: 3.2em;
}
.chaos__read b { color: #fff; font-weight: 600; }

/* --- 8. Bandeau de preuve ------------------------------------------------ */

.proof {
  background: var(--navy-deep-2);
  border-top: 1px solid rgba(169, 179, 210, .14);
  color: var(--on-dark);
}
.proof__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(169, 179, 210, .14);
  border-inline: 1px solid rgba(169, 179, 210, .14);
}
.proof__cell { background: var(--navy-deep-2); padding: 1.6rem 1.4rem; }
.proof__n {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  font-weight: 600;
  color: var(--gold-lift);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.proof__l {
  margin-top: .5rem;
  font-size: var(--t-small);
  color: var(--on-dark-soft);
  line-height: 1.45;
}

/* --- 9. Grilles de contenu ---------------------------------------------- */

.split {
  display: grid;
  gap: clamp(1.8rem, 1rem + 3vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--rail { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* Six missions : 3 x 2 en grand ecran, 2 x 3 en tablette, 1 colonne en mobile.
   Un nombre de colonnes que les elements remplissent - jamais de case vide. */
.grid-3 {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
@media (min-width: 620px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Les services ne sont pas des « cartes » : ce sont les cases d'un tableau de bord */
.svc {
  background: var(--surface);
  padding: 1.75rem 1.6rem 1.9rem;
  display: flex; flex-direction: column; gap: .7rem;
  position: relative;
  transition: background-color .2s ease;
}
.svc:hover { background: var(--surface-alt); }
.svc__ref {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.svc h3 {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3);
  color: var(--ink);
}
.svc p { color: var(--muted); font-size: var(--t-small); line-height: 1.6; }
.svc__more {
  margin-top: auto; padding-top: .6rem;
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
}
.svc__more:hover { text-decoration: underline; }

/* --- 10. Liste de capacités (QMS) --------------------------------------- */

.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.caps li {
  position: relative;
  padding: .8rem 0 .8rem 1.9rem;
  border-bottom: 1px solid var(--on-dark-line);
  font-size: var(--t-small);
  color: var(--on-dark-soft);
  line-height: 1.55;
}
.caps li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 9px; height: 9px;
  border: 2px solid var(--qms-lift);
  border-radius: 50%;
}
.caps--light li { border-bottom-color: var(--line); color: var(--ink-soft); }

/* --- 11. Blocs figure ---------------------------------------------------- */

.figure {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.figure img { width: 100%; }
.figure figcaption {
  padding: .85rem 1.1rem;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .06em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.figure--dark { border-color: rgba(169, 179, 210, .2); background: var(--navy-deep-2); }
.figure--dark figcaption { background: var(--navy-deep-2); border-top-color: rgba(169, 179, 210, .2); color: var(--on-dark-soft); }

/* --- 12. Galerie écran --------------------------------------------------- */

.shots {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

/* --- 13. Étapes de mission ----------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: var(--t-small);
  color: var(--gold);
  letter-spacing: .08em;
  padding-top: .15rem;
}
.steps h3 { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 600; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: var(--t-small); max-width: 62ch; }

/* --- 14. Articles -------------------------------------------------------- */

.posts {
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.post { display: flex; flex-direction: column; gap: .85rem; }
.post__img {
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  max-width: 100%;
}
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post:hover .post__img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .post:hover .post__img img { transform: none; } }
.post__meta {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
}
.post__meta .tag { color: var(--navy); }
.post h3 { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 600; }
.post h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; }
.post:hover h3 a { background-size: 100% 2px; }
.post p { color: var(--muted); font-size: var(--t-small); }

/* --- 15. FAQ (optimisé moteurs de réponse) ------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 1.4rem; color: var(--gold); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div {
  padding-bottom: 1.4rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.faq details > div > * + * { margin-top: .8em; }

/* --- 16. Formulaire ------------------------------------------------------ */

.form { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  font: 400 var(--t-body)/1.5 var(--f-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  padding: .8rem .9rem;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.consent { display: flex; gap: .65rem; align-items: start; font-size: var(--t-small); color: var(--muted); }
.consent input { margin-top: .25rem; flex: none; width: auto; }
.form__note { font-size: var(--t-small); color: var(--muted); }

/* --- 17. Encarts --------------------------------------------------------- */

.callout {
  border-left: 3px solid var(--gold);
  padding: 1.1rem 0 1.1rem 1.4rem;
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.6;
}
.callout--qms { border-left-color: var(--qms); }
.callout b { color: var(--ink); }

.quote {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 24ch;
  color: var(--ink);
}
.band--dark .quote { color: #fff; }
.quote__by {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-top: 1.2rem; font-style: normal;
}
.band--dark .quote__by { color: var(--on-dark-soft); }

/* --- 18. Fiche personne -------------------------------------------------- */

.person {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) { .person { grid-template-columns: 220px 1fr; } }
.person__ph {
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  max-width: 100%;
}
.person__ph img { width: 100%; height: 100%; object-fit: cover; }
.person__role {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .9rem;
}

/* --- 19. Bande CTA ------------------------------------------------------- */

.cta {
  background: var(--navy-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 85% 10%, rgba(224, 161, 22, .16), transparent 62%);
  pointer-events: none;
}
.cta__in { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.cta h2 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h2); color: #fff; letter-spacing: -0.02em; }

/* --- 20. Pied de page ---------------------------------------------------- */

.foot {
  background: var(--navy-deep-2);
  color: var(--on-dark-soft);
  font-size: var(--t-small);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 2rem;
}
.foot__grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(169, 179, 210, .16);
}
.foot h2 {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  margin-bottom: 1rem; font-weight: 500;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { color: var(--on-dark-soft); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__brand img { width: 74px; margin-bottom: 1rem; background: #fff; border-radius: var(--r-s); padding: .35rem; }
.foot__legal {
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center;
  font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .06em;
  color: #8D99BF;
}
.foot__legal a { color: #8D99BF; }

/* --- 21. Fil d'Ariane ---------------------------------------------------- */

.crumbs {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding-block: 1.1rem;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* --- 22. En-tête de page intérieure -------------------------------------- */

.phead {
  background: var(--navy-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.phead::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 88% 0%, rgba(51, 73, 158, .5), transparent 65%);
  pointer-events: none;
}
.phead__in { position: relative; z-index: 1; padding-block: clamp(2.8rem, 2rem + 4vw, 5.5rem); }
.phead h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-h1); letter-spacing: -0.025em; color: #fff;
  margin-bottom: 1.25rem;
}
.phead .lead { color: #C6CFE8; }
.phead .crumbs, .phead .crumbs a { color: var(--on-dark-soft); }
.phead .crumbs li + li::before { color: rgba(169, 179, 210, .45); }
.phead .crumbs a:hover { color: #fff; }

/* --- 23. Réponse courte (AEO) ------------------------------------------- */
/* Bloc « réponse directe » : 40-60 mots, extractible par un moteur de réponse */

.answer {
  border: 0;
  border-top: 2px solid var(--gold);
  background: transparent;
  padding: 1.5rem 0 0;
  max-width: 50ch;
}
.answer__l {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .5rem;
}
.answer p {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.answer p strong { font-weight: 600; color: var(--navy); }
.band--dark .answer p { color: #fff; }
.band--dark .answer p strong { color: var(--gold-lift); }

/* --- 24. Tableau de données --------------------------------------------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-small); background: var(--surface); }
table.data th, table.data td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
table.data th {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500;
  background: var(--surface-alt);
}
table.data tr:last-child td { border-bottom: 0; }
table.data td { color: var(--ink-soft); vertical-align: top; }

/* --- 25. Logos partenaires ---------------------------------------------- */

.logos { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; }
.logos img { height: 30px; width: auto; opacity: .85; }

/* --- 26. (retire) ---------------------------------------------------------
   L'ancien systeme .rise / [data-stagger] est remplace par la construction
   de section (bloc 34). Ses transitions residuelles rejouaient le masquage
   a l'envers : le contenu s'effacait au chargement. Les attributs restants
   dans le HTML sont inertes.                                              */

/* --- 27. Entrée du hero : une séquence, pas des effets éparpillés -------- */

@keyframes kwd-lift {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.js .hero__in > div > * { animation: kwd-lift .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero__kicker  { animation-delay: .05s; }
.js .hero h1       { animation-delay: .15s; }
.js .hero__lead    { animation-delay: .28s; }
.js .hero .actions { animation-delay: .40s; }
.js .hero__note    { animation-delay: .50s; }
.js .chaos         { animation: kwd-lift 1s cubic-bezier(.2,.7,.2,1) .62s both; }
@media (prefers-reduced-motion: reduce) {
  .js .hero__in > div > *, .js .chaos { animation: none; }
}

/* --- 29. Encarts pleine hauteur, pilotés depuis le bas ------------------- */

.stage {
  background: var(--navy-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.stage::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(62% 100% at 78% 8%, rgba(51, 73, 158, .42), transparent 64%);
  pointer-events: none;
}
.stage__in {
  position: relative;
  z-index: 1;
  padding-block: var(--band);
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}
.stage__hd { max-width: 60ch; }
.stage__hd h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-h2); letter-spacing: -0.02em; color: #fff;
}

.stage__track {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: clamp(1.25rem, 3vw, 3rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stage__track::-webkit-scrollbar { display: none; }

.stage__panel {
  scroll-snap-align: start;
  display: grid;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-content: center;
  min-width: 0;
}
@media (min-width: 920px) {
  .stage__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}
.stage__panel h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-h3); color: #fff; margin-bottom: .6rem;
}
.stage__panel p { color: var(--on-dark-soft); font-size: var(--t-small); line-height: 1.6; max-width: 46ch; }
.stage__ref {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lift);
  margin-bottom: .9rem;
}
.stage__shot {
  border: 1px solid rgba(169, 179, 210, .24);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--navy-deep-2);
  box-shadow: var(--shadow-deep);
  max-width: 100%;
}
.stage__shot img { width: 100%; display: block; }

.stage__foot {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  border-top: 1px solid rgba(169, 179, 210, .2);
  padding-top: 1.25rem;
}
.stage__dots { display: flex; gap: .45rem; align-items: center; }
.stage__dot {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 99px;
  background: rgba(169, 179, 210, .38);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.stage__dot[aria-current="true"] { width: 26px; background: var(--gold); }
.stage__nav { margin-left: auto; display: flex; gap: .5rem; }
.stage__btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(238, 241, 250, .3);
  border-radius: 50%;
  background: transparent; color: var(--on-dark);
  font-size: 1rem; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
}
.stage__btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-lift); }
.stage__btn:disabled { opacity: .3; cursor: default; }
.stage__progress {
  flex: 1 1 120px; min-width: 90px; height: 2px;
  background: rgba(169, 179, 210, .2); overflow: hidden;
}
.stage__bar {
  display: block; height: 2px; background: var(--gold);
  transform-origin: left center; transform: scaleX(0);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

/* --- 30. Spécifications techniques (VAF) -------------------------------- */

.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 720px) { .spec { grid-template-columns: repeat(2, 1fr); } }
.spec li { background: var(--surface); padding: 1.35rem 1.4rem; display: grid; gap: .4rem; }
.spec b {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .13em; text-transform: uppercase; color: var(--navy); font-weight: 500;
}
.spec span { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.55; }

/* --- 31. Portrait carré ------------------------------------------------- */

.person__ph { aspect-ratio: 1 / 1; }
@media (min-width: 720px) { .person { grid-template-columns: 240px 1fr; } }

/* --- 32. Marqueur de section IA ----------------------------------------- */

.eyebrow--ai::before { background: var(--navy); }
.band--dark .eyebrow--ai::before { background: #8DA0E4; }

/* --- 33. Sections pleine hauteur + pastille de défilement ---------------- */

/* Les ancres et les sauts de section dégagent l'en-tête collant. */
html { scroll-padding-top: var(--head); }

.full {
  /* L'en-tete colle par-dessus : une section « pleine page » vaut donc
     un ecran moins cette bande, sinon son bas (et sa pastille) deborde. */
  min-height: calc(100vh - var(--head));
  min-height: calc(100svh - var(--head));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.full > .shell { width: 100%; }
/* On reserve la place de la pastille pour qu'elle ne recouvre jamais le contenu. */
.full { padding-block: var(--band-full) max(var(--band-full), 96px); }
.hero.full { padding-block: 0 96px; }

/* Le .stage gère déjà sa propre hauteur : on ne l'empile pas deux fois. */
.stage.full { display: block; }
.stage.full { padding-block: 0; }
.stage.full .stage__in {
  min-height: calc(100svh - var(--head));
  padding-block: var(--band-full) max(var(--band-full), 96px);
}

.cue {
  /* Ancree en bas de l'ecran : c'est la convention d'un indicateur de defilement. */
  position: absolute;
  left: 50%;
  bottom: clamp(1.1rem, 2.5vh, 2.2rem);
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font: 500 var(--t-label) / 1 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cue__ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.cue:hover .cue__ring { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.cue:focus-visible { outline: none; }
.cue:focus-visible .cue__ring { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Sur fond sombre, la pastille reprend les rôles clairs. */
.hero .cue, .band--dark .cue, .stage .cue, .cta .cue, .proof .cue { color: var(--on-dark-soft); }
.hero .cue__ring, .band--dark .cue__ring, .stage .cue__ring, .cta .cue__ring { border-color: rgba(238, 241, 250, .3); }

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
.cue__arrow { display: block; animation: cue-bob 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cue__arrow { animation: none; } }

/* Calage doux d'une section à l'autre : jamais bloquant (proximity). */
@media (prefers-reduced-motion: no-preference) {
  html.snap { scroll-snap-type: y proximity; }
  html.snap .full.snap-fit { scroll-snap-align: start; }
}

/* Le hero est deja centre par .full : son rembourrage interne ferait
   deborder la pastille sous la ligne de flottaison sur un ecran de portable. */
.hero.full .hero__in { padding-block: 0; }

/* Le hero suit l'en-tete collant dans le flux : sans cette soustraction,
   il depasse d'une hauteur d'en-tete et la pastille passe sous la ligne
   de flottaison. Les sections suivantes, elles, occupent bien un ecran. */
.hero.full { min-height: calc(100svh - var(--head)); }

/* --- 34. Construction dynamique des sections ----------------------------
   Une section ne « fond » pas : elle se compose, dans l'ordre où on la lit.
   Le filet d'abord (il pose la règle), le titre se dévoile derrière cette
   règle comme une ligne qui s'imprime, puis le texte monte, puis les objets
   s'inscrivent un à un. Cinq gestes, une seule cadence (--i).

   Deux règles de sûreté :
   - on ne masque que ce qui est déjà hors de l'écran au chargement ;
   - la transition n'existe QUE sur .is-built, donc à la construction.
     Sans cela, poser l'état masqué après le premier rendu ferait jouer
     l'animation à l'envers : le contenu s'effacerait sous les yeux.      */

.js .to-build [data-build] { opacity: 0; will-change: opacity, transform; }

[data-build].is-built {
  transition:
    opacity .66s cubic-bezier(.2, .7, .2, 1),
    transform .72s cubic-bezier(.2, .7, .2, 1),
    clip-path .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 58ms);
}

/* 1. Le filet : il se trace de gauche à droite. */
.js .to-build [data-build="rule"] { transform: translateY(8px); }
.eyebrow::before { transform-origin: left center; }
.js .to-build .eyebrow::before { transform: scaleX(0); }
.eyebrow.is-built::before {
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 58ms + 70ms);
}

/* 2. Le titre : révélé par le bas, comme une ligne qui s'imprime. */
[data-build="title"] { clip-path: inset(-25% -12% -25% 0); }
.js .to-build [data-build="title"] {
  clip-path: inset(0 -12% 100% 0);
  transform: translateY(14px);
}

/* 3. Le texte courant : il monte. */
.js .to-build [data-build="text"] { transform: translateY(22px); }

/* 4. Les objets d'une grille : ils s'inscrivent, légèrement en retrait. */
.js .to-build [data-build="card"] { transform: translateY(30px) scale(.985); }

/* 5. Les lignes d'une liste : elles arrivent par la gauche, puce en dernier. */
.js .to-build [data-build="row"] { transform: translateX(-16px); }
.js .to-build .caps li::before { transform: scale(0); opacity: 0; }
.caps li.is-built::before {
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .4s ease;
  transition-delay: calc(var(--i, 0) * 58ms + 180ms);
}

/* Les filets de séparation se tracent aussi. */
hr.rule { transform-origin: left center; }
.js hr.rule.to-draw { transform: scaleX(0); }
hr.rule.drawn { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  [data-build].is-built, .eyebrow.is-built::before,
  .caps li.is-built::before, hr.rule.drawn { transition: none !important; }
  .js .to-build [data-build] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .to-build .eyebrow::before, .js .to-build .caps li::before { transform: none !important; opacity: 1 !important; }
  .js hr.rule.to-draw { transform: none !important; }
}

/* --- 35. Article de blog ------------------------------------------------ */

.article-body { max-width: 68ch; }
.article-body h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  margin-top: 2.4em; margin-bottom: .6em;
}
.article-body h3 { font-size: var(--t-h3); margin-top: 2em; }
.article-body p, .article-body li { line-height: 1.75; }
.article-body > p:first-child {
  font-size: var(--t-lead);
  color: var(--ink);
}
.article-body figure { margin: 2em 0; }
.article-body img { border-radius: var(--r-m); border: 1px solid var(--line); }
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--t-small); margin: 1.75em 0; }
.article-body th, .article-body td {
  text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body th { color: var(--muted); font-weight: 600; background: var(--surface-alt); }

/* Signature de l'auteur */
.article-sign {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  max-width: 68ch; margin: 3.5rem auto 0;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--muted);
}
.article-sign img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex: none; border: 1px solid var(--line);
}
.article-sign p { margin: 0; }
.article-sign strong { color: var(--ink); }

/* --- 36. Page validation des fournisseurs --------------------------------- */

/* Schéma du cycle de vie : version large, version verticale sur mobile */
.diagram { margin: 2.5rem 0 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .svg-tall { display: none; max-width: 360px; margin-inline: auto; }
@media (max-width: 759px) {
  .diagram .svg-wide { display: none; }
  .diagram .svg-tall { display: block; }
}
.diagram .edge      { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.diagram .edge-dash { stroke-dasharray: 5 4; }
.diagram .edge-loop { fill: none; stroke: var(--qms); stroke-width: 1.8; stroke-dasharray: 6 4; }
.diagram .e-label       { fill: var(--qms); font: 600 13px var(--f-body); }
.diagram .e-label-muted { fill: var(--muted); font: 400 12px var(--f-body); }
.diagram .n-rect  { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.diagram .n-std   { fill: var(--surface-alt); }
.diagram .n-crit  { stroke: var(--gold); stroke-width: 2; }
.diagram .n-wait  { stroke: var(--navy); stroke-width: 2; }
.diagram .n-ok    { fill: color-mix(in srgb, var(--qms) 14%, var(--surface)); stroke: var(--qms); stroke-width: 2; }
.diagram .n-off   { stroke-dasharray: 5 4; }
.diagram .n-title { fill: var(--ink); font: 600 16px var(--f-body); }
.diagram .n-sub   { fill: var(--muted); font: 400 12.5px var(--f-body); }

/* Parcours daté : une étape = quand / qui, puis ce que vous faites et ce que fait l'outil */
.journey { list-style: none; margin: 3rem 0 0; padding: 0; }
.journey > li {
  display: grid; gap: 1rem 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.journey > li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .journey > li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.journey__date {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--qms);
  margin-bottom: .4rem;
}
.journey h3 { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 600; margin-bottom: .3rem; }
.journey__who { color: var(--muted); font-size: var(--t-small); }
.journey__do { display: grid; gap: .9rem; max-width: 70ch; }
.journey__do p { color: var(--ink-soft); line-height: 1.65; }
.journey__do b { color: var(--ink); }

/* Sous-titre de colonne */
.h-sub {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3);
  margin-bottom: 1rem;
}

/* Rôles : qui fait, qui reçoit, qui voit */
.roles {
  display: grid; gap: 1px; margin-top: 2.5rem;
  grid-template-columns: 1fr;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden;
}
@media (min-width: 760px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.roles article { background: var(--surface); padding: 1.6rem 1.5rem; }
.roles h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); margin-bottom: 1rem; }
.roles dl { margin: 0; display: grid; gap: .7rem; }
.roles dt {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .13em; text-transform: uppercase; color: var(--qms);
}
.roles dd { margin: .15rem 0 0; font-size: var(--t-small); color: var(--ink-soft); line-height: 1.6; }

/* Bandeau de repères en texte (la page fournisseurs n'affiche pas de chiffres) */
.proof__n { overflow-wrap: anywhere; }

/* --- 37. Police des titres : Bricolage Grotesque --------------------------
   Bodoni Moda avait des deliés trop fins : invisibles sur un ecran de
   telephone. Bricolage n'a pas d'italique : l'accent passe par la couleur. */
.hero h1 em, .quote, .display em { font-style: normal; }
.hero h1 { letter-spacing: -0.035em; }
.h-section, .phead h1, .cta h2, .stage__hd h2 { letter-spacing: -0.025em; }
.answer p { font-weight: 450; letter-spacing: -0.01em; }
.quote { font-weight: 500; }


/* Trois colonnes (piliers) et grille 2 x 2 (quatre cartes) */
.cols-3 { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 1000px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 620px) { .grid-3.grid-2x2 { grid-template-columns: repeat(2, 1fr); } }


/* --- 38. Les trois piliers : cartes entierement cliquables --------------- */

.piliers {
  display: grid; gap: 1.25rem; margin-top: 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .piliers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pilier {
  display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pilier:hover, .pilier:focus-visible {
  border-color: var(--qms);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) { .pilier:hover, .pilier:focus-visible { transform: none; } }

.pilier__ico {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--qms) 14%, transparent);
  color: var(--qms);
}
.pilier__ico svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pilier h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-h3); letter-spacing: -0.015em;
}
.pilier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pilier li {
  font-size: var(--t-small); color: var(--ink-soft); line-height: 1.5;
  padding-left: 1rem; position: relative;
}
.pilier li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--qms);
}
.pilier__more {
  margin-top: auto; padding-top: .6rem;
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--qms);
}


/* --- 39. Pages de detail KWD QMS : mode article + fil conducteur ----------
   Ces pages se lisent, elles ne se parcourent pas ecran par ecran : une
   colonne, des titres au-dessus du texte, pas de bandes sombres. Une barre
   collante garde le fil d'Ariane visible et permet de passer d'une page a
   l'autre sans remonter.                                                  */

html:has(.subnav) { scroll-padding-top: calc(var(--head) + 56px); }

.subnav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--head));
  z-index: 45;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav__in { display: flex; align-items: center; gap: 1rem; min-height: 50px; }
.subnav .crumbs {
  flex: 1; min-width: 0; padding-block: .7rem;
  overflow-x: auto; scrollbar-width: none;
}
.subnav .crumbs::-webkit-scrollbar { display: none; }
.subnav .crumbs ol { flex-wrap: nowrap; white-space: nowrap; }
.subnav .crumbs [aria-current="page"] { color: var(--ink); }
.subnav__step { display: flex; align-items: center; gap: .35rem; flex: none; }
.subnav__count {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .1em; color: var(--muted); min-width: 3.2em; text-align: center;
}
.subnav__arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  text-decoration: none; font-size: .95rem; line-height: 1;
  transition: border-color .2s ease, color .2s ease;
}
a.subnav__arrow:hover { border-color: var(--qms); color: var(--qms); }
span.subnav__arrow { opacity: .3; }

/* Mode article */
.doc .shell { max-width: 880px; }
.doc .phead__in { padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.doc .phead h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.doc .band { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); background: transparent; }
.doc .band--tight { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.doc hr.rule { max-width: 880px; margin-inline: auto; }
.doc .split { display: block; }
.doc .split > * + * { margin-top: 1.25rem; }
.doc .h-section { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); max-width: none; }
.doc .prose, .doc .lead, .doc .answer { max-width: none; }
.doc .lead { font-size: 1.08rem; }

/* Les bandes sombres redeviennent du texte courant */
.doc .band--dark { background: transparent; color: var(--ink); }
.doc .band--dark h2, .doc .band--dark h3 { color: var(--ink); }
.doc .band--dark p, .doc .band--dark .lead { color: var(--ink-soft); }
.doc .band--dark .caps li { color: var(--ink-soft); border-bottom-color: var(--line); }
.doc .band--dark strong, .doc .band--dark b { color: var(--ink) !important; }
.doc .band--dark .callout { color: var(--ink-soft) !important; }
.doc .proof { background: var(--surface-alt); color: var(--ink); border-top: 0; }
.doc .proof__in { background: var(--line); border-inline-color: var(--line); }
.doc .proof__cell { background: var(--surface); }
.doc .proof__n { color: var(--qms); font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
.doc .proof__l { color: var(--ink-soft); }
.doc .stage__in { min-height: 0 !important; }
.doc .grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .doc .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .doc .piliers, .doc .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .doc .journey > li { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); } }

/* Fil conducteur en fin d'article */
.docnav { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.docnav__lbl {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}
.docnav__lbl a { color: var(--muted); }
.docnav__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .docnav__row { grid-template-columns: 1fr 1fr; } }
.docnav__link {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.docnav__link--next { text-align: right; align-items: flex-end; }
a.docnav__link:hover { border-color: var(--qms); transform: translateY(-2px); color: var(--ink); }
.docnav__link--vide { border: 0; background: none; }
.docnav__dir {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--qms);
}
.docnav__title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); }
@media (prefers-reduced-motion: reduce) { a.docnav__link:hover { transform: none; } }


/* --- 40. Vignette flottante et visionneuse ------------------------------ */

.figure--vignette {
  float: right; width: 180px; max-width: 42%;
  margin: .25rem 0 1rem 1.5rem;
}
.figure--vignette figcaption { font-size: .62rem; padding: .55rem .7rem; line-height: 1.4; }
.figure--vignette + .prose::after { content: ""; display: block; clear: both; }

.has-zoom { position: relative; }
img.is-zoomable { cursor: zoom-in; }
.zoom-badge {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: zoom-in;
  background: rgba(10, 17, 48, .72); color: #fff;
  backdrop-filter: blur(6px);
  opacity: .85; transition: opacity .2s ease, transform .2s ease;
}
.zoom-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.has-zoom:hover .zoom-badge { opacity: 1; transform: scale(1.06); }
.figure .tablewrap + .zoom-badge, .figure > .zoom-badge { top: .6rem; }

html.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem;
  padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  background: rgba(5, 9, 22, .93);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none !important; }
.lightbox__stage {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: var(--r-m); background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.lightbox.can-full .lightbox__img { cursor: zoom-in; }
.lightbox.is-full .lightbox__stage { overflow: auto; justify-content: flex-start; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.lightbox.is-full .lightbox__img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox__cap {
  max-width: 70ch; text-align: center; color: #D6DDF2;
  font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .06em; line-height: 1.5;
}
.lightbox__hint { color: #8D99BF; font-size: .72rem; min-height: 1em; }
.lightbox__close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + .75rem); right: .9rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(238, 241, 250, .3); background: transparent; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold-lift); }
