/* NILAURA Advisory — hero V4 « gravure »
   Couleurs : Brand V1. Typographies : Libre Baskerville (titres) et Archivo (texte). */

/* polices hébergées sur le site (aucune ressource tierce), variables, sous-ensembles latin et latin-ext.
   Libre Baskerville est plus large et plus haute d’œil que Fraunces, pour laquelle les tailles ont été réglées :
   size-adjust la ramène à la même hauteur d’x, sans toucher aux tailles. */
@font-face { font-family: "Libre Baskerville"; src: url("assets/fonts/libre-baskerville-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; size-adjust: 86%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; src: url("assets/fonts/libre-baskerville-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; size-adjust: 86%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Baskerville"; src: url("assets/fonts/libre-baskerville-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; size-adjust: 86%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Baskerville"; src: url("assets/fonts/libre-baskerville-italic-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; size-adjust: 86%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #182640;
  --navy-rgb: 24, 38, 64;
  --blue: #1c4482;
  --bright: #005cdd;
  --red: #b73b3b;
  --teal: #62b1b7;         /* espace OHADA sur le globe */
  --red-logo: #c72c35;
  --paper: #f7f8fb;
  --paper-rgb: 247, 248, 251;
  --white: #fff;
  --ink: #4b5263;          /* encre des dessins */

  --serif: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad-x: clamp(20px, 6vw, 100px);
  --nav-h: 84px;
  --cut: 10px; /* coin chanfreiné de la charte */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  /* papier pointillé, comme une feuille de dessin */
  background:
    radial-gradient(circle, rgba(var(--navy-rgb), .14) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--paper);
}
img { display: block; }
p, figure, h1, h2 { margin: 0; }

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

a:focus-visible, button:focus-visible { outline: 2px solid var(--red-logo); outline-offset: 4px; }

/* ---------- Bouton ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px 13px 24px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background .25s;
}
.btn svg { transition: transform .25s; }
.btn:hover { background: var(--blue); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--small { padding: 10px 16px 10px 18px; font-size: 13px; --cut: 8px; }

/* ---------- Navigation ---------- */

.nav {
  position: relative; z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
}
.nav__logo { justify-self: start; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a {
  position: relative; white-space: nowrap;
  color: var(--navy);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
}
.nav__links a[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--red-logo);
}
.nav__links a:hover { color: var(--blue); }
.nav__contact { justify-self: end; white-space: nowrap; }
.nav__menu { display: none; }

/* sélecteur de langue : la langue courante en navy soulignée de rouge, l’autre en lien */
.nav__end { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.lang { display: flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lang__opt {
  position: relative; display: grid; place-items: center;
  min-width: 30px; height: 32px; padding: 0 4px;
  color: rgba(var(--navy-rgb), .45); text-decoration: none;
}
.lang__opt + .lang__opt::before {
  content: ""; position: absolute; left: -.5px; top: 10px; bottom: 10px; width: 1px;
  background: rgba(var(--navy-rgb), .25); transform: skewX(-18deg);
}
.lang__opt[aria-current] { color: var(--navy); }
.lang__opt[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 12px; height: 1.5px; margin-left: -6px;
  background: var(--red-logo);
}
a.lang__opt { transition: color .2s; }
a.lang__opt:hover { color: var(--blue); }
a.lang__opt:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- Hero ---------- */

.hero {
  --s: 0;          /* avancement du scroll, pour les bandes de couleur */
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100svh - var(--nav-h));
  text-align: center;
}

.hero__text {
  position: relative; z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(20px, 4svh, 48px) var(--pad-x) 0;
}
.title {
  max-width: 13.5em;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, min(4.2vw, 6.8svh), 62px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
/* hero : la phrase du site de base, coupée en titre (le sujet) et sous-titre (la suite) */
.title--hero {
  max-width: 21em;
  font-size: clamp(24px, min(2.3vw, 4svh), 34px);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin-bottom: clamp(10px, 1.6svh, 16px);
}
.hero__sub {
  max-width: 34em;
  margin: 0 auto clamp(20px, 3.4svh, 32px);
  font-size: clamp(15px, min(1.2vw, 2.1svh), 17.5px);
  line-height: 1.5;
  color: rgba(var(--navy-rgb), .72);
  text-wrap: balance;
}
.hero__sub .mark { color: var(--navy); }
.title__soft { color: rgba(var(--navy-rgb), .5); }
.title__dot { color: var(--red-logo); }

/* Mot entouré à la main (le tracé vient de script.js) */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.mark__ring path {
  fill: none;
  stroke: var(--red-logo);
  stroke-width: max(1.6px, .045em);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mark.is-drawn .mark__ring path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mark__ring path { transition: stroke-dashoffset 1.1s cubic-bezier(.55, .08, .3, 1) var(--wait, .35s); }
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 clamp(12px, 2svh, 20px);
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: rgba(var(--navy-rgb), .72);
}
.hero__kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.hero__actions .hero__more { margin-top: 0; }
.lead {
  max-width: 600px;
  margin: clamp(14px, 2.2svh, 22px) auto clamp(20px, 3.4svh, 32px);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: rgba(var(--navy-rgb), .7);
  text-wrap: pretty;
}

/* ---------- Planche : les deux bâtiments et la balance ---------- */

/* La planche prend la hauteur restante du hero. Tout y est placé depuis l’axe central :
   --ph hauteur de la planche, mesurée par script.js (cqh ne suit pas une hauteur venue du flex)
   --h  hauteur des dessins (bornée par la place en hauteur et par la largeur)
   --B  bande du haut, où passe le fléau ; --C  bande du bas, pour les légendes
   --gap  écart entre les deux bâtiments ; --arm  demi-fléau, jusqu’à l’axe de chaque bâtiment */
.plate {
  --B: 64px;
  --C: 56px;
  --wf: 29cqw;
  --ph: 440px;
  --h: min((var(--ph) - var(--B) - var(--C)) / .92, var(--wf));
  --gap: max(16px, 3cqw);
  --arm: calc(var(--gap) / 2 + var(--h) * .9);
  --ground: calc(var(--B) + var(--h) * .92);
  position: relative;
  flex: 1 0 auto;
  /* les dessins gardent au moins 44svh de haut : la planche passe un peu sous la ligne de flottaison
     plutôt que de rétrécir les bâtiments */
  min-height: max(380px, var(--B) + var(--C) + min(var(--wf), 44svh) * .92);
  /* quand la largeur borne les dessins, la planche ne grandit pas plus qu’eux
     (ici, sur la planche elle-même, cqw vaut la largeur de l’écran) */
  max-height: calc(var(--B) + var(--C) + var(--wf) * .92);
  container-type: inline-size;
  overflow: clip;
}

.draw {
  position: absolute; top: var(--B);
  height: var(--h);
  aspect-ratio: var(--ratio);
}
.draw--dakar   { --ratio: 1600 / 915; --img: url("/assets/dakar-plateau-ink.webp");   right: calc(50% + var(--gap) / 2); }
.draw--abidjan { --ratio: 1600 / 914; --img: url("/assets/abidjan-plateau-ink.webp"); left:  calc(50% + var(--gap) / 2); }

/* l’encre est le masque ; le fond donne la couleur : l’encre grise, sans bande teintée */
.draw__ink {
  width: 100%; height: 100%;
  -webkit-mask: var(--img) center / 100% 100% no-repeat;
          mask: var(--img) center / 100% 100% no-repeat;
  /* au survol, une loupe de couleur suit la souris : sous elle, la gravure prend la teinte du bureau
     (--mx, --my posés par script.js ; --lens s’ouvre et se referme en transition) */
  background:
    radial-gradient(circle var(--lens) at var(--mx, 50%) var(--my, 50%), var(--tint) 62%, transparent 100%),
    var(--ink);
  transition: --lens .5s cubic-bezier(.2, .7, .2, 1);
}
@property --lens { syntax: "<length>"; inherits: false; initial-value: 0px; }
.draw--dakar   .draw__ink { --tint: var(--red); }
.draw--abidjan .draw__ink { --tint: var(--bright); }

/* dessin au chargement (script.js) : la plume trace les bâtiments dans un canvas posé sur l’encre.
   draw-pending (posé dans le <head>) cache l’encre avant le premier rendu ; si le script ne prend
   pas la main, elle apparaît d’elle-même au bout de 4 s. draw-live : le canvas a pris le relais. */
.draw-pending .draw__ink,
.draw-pending .draw figcaption { opacity: 0; animation: show .6s 4s forwards; }
.draw-live .draw:not(.is-drawn) .draw__ink,
.draw-live .draw:not(.is-drawn) figcaption { opacity: 0; }
.draw figcaption { transition: opacity .7s; }
.draw__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* survol (souris seulement) : le bâtiment visé se soulève à peine et prend la loupe, l’autre s’efface */
@media (hover: hover) and (pointer: fine) {
  .draw { transition: opacity .5s, scale .6s cubic-bezier(.2, .7, .2, 1); transform-origin: 50% 92%; }
  .draw:hover { scale: 1.015; }
  .draw:hover .draw__ink { --lens: clamp(70px, 9vw, 150px); }
  .plate:has(.draw:hover) .draw:not(:hover) { opacity: .45; }
  .draw:hover figcaption { color: var(--navy); }
}

/* légende de planche, sous la ligne de sol */
.draw figcaption {
  position: absolute; left: 50%; top: calc(92% + 16px);
  translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(var(--navy-rgb), .72);
  white-space: nowrap;
}
.draw figcaption::before {   /* pastille : la couleur de la bande du dessin */
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tint);
}
.draw--dakar   figcaption { --tint: var(--red); }
.draw--abidjan figcaption { --tint: var(--bright); }

.plate__ground {
  position: absolute; left: 0; right: 0; top: var(--ground);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--navy-rgb), .55) 10%, rgba(var(--navy-rgb), .55) 90%, transparent);
}

/* balance : tracé de construction, au trait */
.scale { position: absolute; inset: 0; z-index: 2; pointer-events: none; --y: 22px; }
.scale > * { position: absolute; }
.scale__beam {
  left: calc(50% - var(--arm)); width: calc(var(--arm) * 2);
  top: var(--y); height: 1.5px; margin-top: -.75px;
  background: var(--red-logo);
}
.scale__beam::before, .scale__beam::after {   /* œillets aux extrémités */
  content: ""; position: absolute; top: 50%;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--red-logo);
}
.scale__beam::before { left: 0; }
.scale__beam::after  { left: 100%; }
.scale__pivot {
  left: 50%; top: var(--y);
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--navy);
}
/* la marque du logo (chevron marine, barre marine, barre rouge) : la pointe du chevron sous le pivot */
.scale__needle {
  left: 50%; top: calc(var(--y) + 7px);
  width: 46px; height: 33.2px; margin-left: -29.7px;
  overflow: visible;
}
.scale__needle path { fill: var(--navy); }
.scale__needle .scale__needle-red { fill: var(--red-logo); }
/* axe central : de la marque du logo à la ligne de sol, entre les deux bâtiments */
.scale__axis {
  left: 50%; top: calc(var(--y) + 47px); bottom: calc(100% - var(--ground));
  border-left: 1px dashed rgba(var(--navy-rgb), .35);
}
/* fils à plomb : du fléau au toit de chaque gravure, terminés par un petit anneau ;
   --roof est la hauteur du toit au centre du dessin, en fraction de --h */
.scale__plumb {
  top: var(--y);
  height: calc(var(--B) - var(--y) + var(--h) * var(--roof));
  border-left: 1px dashed rgba(var(--navy-rgb), .5);
}
.scale__plumb::after {
  content: ""; position: absolute; left: -4px; bottom: -8px;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--navy); background: var(--paper);
}
.scale__plumb[data-side="left"]  { left: calc(50% - var(--arm)); --roof: .25; }
.scale__plumb[data-side="right"] { left: calc(50% + var(--arm)); --roof: .1; }

/* tracé une seule fois au chargement : le fléau part du centre, puis les fils descendent */
@media (prefers-reduced-motion: no-preference) {
  .scale__beam  { animation: draw-x 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .scale__plumb { animation: draw-y .8s cubic-bezier(.2, .7, .2, 1) 1.1s both; transform-origin: top; }
  .scale__axis  { animation: draw-y 1s cubic-bezier(.2, .7, .2, 1) .5s both; transform-origin: top; }
  .scale__plumb::after { animation: fade .4s 1.8s both; }
}
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes fade   { from { opacity: 0; } }
@keyframes show   { to { opacity: 1; } }

/* ---------- Repères : quatre chiffres, chacun posé sur sa règle graduée ---------- */

/* La règle porte autant de traits que le chiffre (un plus long tous les cinq). script.js pose --d
   (0 → 1) sur chaque repère : le trait k se dresse quand d·n passe k, et le chiffre affiche le nombre
   de traits dressés. Sans script ou sous mouvement réduit, --d vaut 1 : tout est tracé. */
.facts {
  --big: clamp(52px, 5.6vw, 84px);
  position: relative; z-index: 4;
  padding: clamp(72px, 9vw, 140px) var(--pad-x) 0;
}
.facts__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-block: 1px solid rgba(var(--navy-rgb), .14);
}
.fact {
  --rule: rgba(var(--navy-rgb), .14);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 2.6vw, 36px) clamp(16px, 2vw, 32px) clamp(22px, 2.4vw, 32px);
  transition: opacity .35s;
}
.fact + .fact { border-left: 1px solid var(--rule); }
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; }

.fact__num {
  box-sizing: border-box;
  min-height: var(--big);
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--big); line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--navy);
  opacity: calc(.3 + .7 * clamp(0, var(--d) * 4, 1));
}
/* les deux villes, plus petites, sur la même ligne de pied que les chiffres */
.fact--offices .fact__num {
  padding-top: calc(var(--big) * .9 - .82em);
  font-size: clamp(22px, 2.4vw, 36px); font-style: italic;
  letter-spacing: -.01em;
  opacity: 1;
}
.fact__city:first-child { opacity: calc(.25 + .75 * clamp(0, var(--d) * 4, 1)); }
.fact__city:last-child { opacity: calc(.25 + .75 * clamp(0, (var(--d) - .85) * 6.67, 1)); }

/* la règle : un filet, et les traits qui s’y dressent */
.fact__rule {
  display: flex; align-items: flex-end; gap: 6px;
  height: 18px;
  margin: clamp(14px, 1.6vw, 20px) 0 clamp(12px, 1.4vw, 18px);
  padding-right: 6px;
  border-bottom: 1px solid rgba(var(--navy-rgb), .3);
}
.fact__rule i {
  display: block; flex: none; width: 2px; height: 10px;
  background: var(--tint, var(--navy));
  transform-origin: 50% 100%;
  scale: 1 clamp(0, var(--d) * var(--n) - var(--k), 1);
}
.fact__rule i:nth-child(5n) { height: 18px; }
.fact__rule .is-office { height: 18px; width: 2.5px; }   /* le Sénégal et la Côte d’Ivoire, pleine hauteur */

/* Dakar · Abidjan : un fil en tirets entre les deux bureaux ; l’encre va du rouge au bleu */
.fact__rule--line {
  position: relative;
  width: min(100%, 152px); padding: 0;
  border-bottom: 0;
}
.fact__rule--line::before, .fact__rule--line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
}
.fact__rule--line::before { border-top: 1px dashed rgba(var(--navy-rgb), .35); }
.fact__rule--line::after {
  height: 2px; margin-bottom: -.5px;
  background: linear-gradient(90deg, var(--red), var(--bright));
  transform-origin: 0 50%;
  scale: clamp(0, var(--d), 1) 1;
}
.fact__rule--line i {
  --c: var(--red);
  position: absolute; z-index: 1; bottom: 0; left: -4px;
  width: 10px; height: 10px;
  border: 1.5px solid var(--c); border-radius: 50%;
  background: var(--paper);
}
.fact__rule--line i + i { --c: var(--bright); left: auto; right: -4px; }
.fact__rule--line i::after {
  content: ""; position: absolute; inset: 1.5px;
  border-radius: 50%; background: var(--c);
  scale: clamp(0, var(--d) * 8, 1);
}
.fact__rule--line i + i::after { scale: clamp(0, (var(--d) - .9) * 10, 1); }

.fact__label {
  max-width: 15em; margin: 0;
  font-size: 14.5px; line-height: 1.5;
  color: rgba(var(--navy-rgb), .72);
  text-wrap: pretty;
  opacity: calc(.25 + .75 * clamp(0, var(--d) * 2.5, 1));
}

/* survol : le repère désigné reste à l’encre pleine, les autres pâlissent */
@media (hover: hover) and (pointer: fine) {
  .facts__list:has(.fact:hover) .fact:not(:hover) { opacity: .4; }
}

/* ---------- Une maison d’expertise : la phrase, puis la chaîne juridique ---------- */

.house {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(64px, 7vw, 112px) var(--pad-x) clamp(48px, 6vw, 88px);   /* les repères sont juste au-dessus */
}

/* les repères des bureaux, posés sur un filet comme les légendes de la planche (sous l’appel final) */
.house__marks {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 3vw, 44px);
  margin: 0; padding: 16px 0 0; list-style: none;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--navy);
}
.house__marks li { display: flex; align-items: center; gap: 8px; }
.house__marks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); }

/* la carte : un bloc marine aux coins arrondis, chanfreiné en haut à droite (la charte), avec dans son
   angle bas droit la gravure du point lu. Sans JS, la gravure s’y pose avec un liseré de papier ; script.js
   découpe ensuite la carte autour d’elle (clip-path: path(), .is-cut), et le papier pointillé se voit dans
   l’entaille. Le texte occupe la colonne de gauche : la phrase en haut, les étiquettes en bas. */
.bento {
  --nw: 38cqw;                       /* largeur de la gravure (3:2) */
  --g: 12px;                         /* l’entaille autour d’elle */
  --rr: 16px;                        /* ses coins */
  --pad: clamp(26px, 3.2vw, 52px);
  grid-column: 1 / -1;
  position: relative;
  container-type: inline-size;
}
/* la piste (posée par script.js, pas sous mouvement réduit) : la carte reste collée, centrée sous la navigation */
.house__track { --run: 180svh; grid-column: 1 / -1; height: calc(100svh - var(--nav-h) + var(--run)); }
.house__stage {
  position: sticky; top: var(--nav-h);
  display: grid; align-content: center;
  height: calc(100svh - var(--nav-h)); box-sizing: border-box;
  padding-block: clamp(12px, 3svh, 32px);
}
.bento__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: calc(var(--nw) / 1.5 / .56);
  box-sizing: border-box;
  padding: var(--pad) calc(var(--nw) + var(--g) + var(--pad)) var(--pad) var(--pad);
  border-radius: 22px; border-top-right-radius: 30px;
  corner-shape: round bevel round round;
  background: var(--navy);
  color: var(--paper);
}
.bento__card > :not(.bento__waves) { position: relative; }

/* les ondes : un faisceau de sinusoïdes gravées, l’une en rouge ; elles se tracent avec --d */
.bento__waves {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask: linear-gradient(105deg, rgba(0, 0, 0, .2) 18%, #000 58%);
          mask: linear-gradient(105deg, rgba(0, 0, 0, .2) 18%, #000 58%);
}
.wave {
  fill: none; stroke: rgba(var(--paper-rgb), .34); stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, var(--d) * 1.7 - var(--i) * .7, 1));
}
.wave--red { stroke: var(--red-logo); stroke-width: 1.6; }

.house__title {
  max-width: 17em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.9vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--paper);
  text-wrap: pretty;
}
.house__text {
  max-width: 30em;
  margin: clamp(16px, 1.6vw, 24px) 0 0;
  font-size: 16px; line-height: 1.6;
  color: rgba(var(--paper-rgb), .66);
}

/* les quatre points d’intervention : des étiquettes de papier jetées en bas de la carte, chacune de
   travers (--r, --y). Elles tombent avec --d (posé par script.js) ; celle du point lu (.is-on) se
   redresse, se soulève et passe au rouge (--on, transitionné). */
@property --on { syntax: "<number>"; inherits: false; initial-value: 0; }
.tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 6px;
  margin: auto 0 0; padding: clamp(28px, 3vw, 44px) 0 0;
  list-style: none;
}
.tag {
  --d: 1;
  display: inline-flex; align-items: baseline; gap: .45em;
  padding: .8em 1.25em .84em;
  border-radius: 999px;
  background: var(--paper); color: var(--navy);
  font-size: clamp(14px, 1.1vw, 17px); font-weight: 500; line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 14px 22px -14px rgba(0, 0, 0, .85);
  rotate: calc(var(--r, 0deg) * (1 + (1 - var(--d)) * 2.5) * (1 - var(--on)));
  translate: 0 calc(var(--y, 0px) * (1 - var(--on)) - var(--on) * 6px - (1 - var(--d)) * 260%);
  opacity: clamp(0, var(--d) * 4, 1);
  transition: --on .5s cubic-bezier(.2, .7, .2, 1), background-color .35s, color .35s;
}
.tag__num {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em;
  color: var(--red-logo);
  transition: color .35s;
}
.tag.is-on { --on: 1; background: var(--red-logo); color: var(--paper); }
.tag.is-on .tag__num { color: var(--paper); }

/* la gravure : une fenêtre 3:2 sur la planche 2×2 (2680 × 1800 px, tuiles de 1320 × 880, gouttière de 40),
   placée sur la tuile du point lu ; son numéro dans un anneau rouge */
.bento__shot {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: var(--nw); aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--rr);
  background: #fff;
  box-shadow: 0 0 0 var(--g) var(--paper);
}
.bento.is-cut .bento__shot { box-shadow: none; outline: 1px solid rgba(var(--navy-rgb), .12); outline-offset: -1px; }
.bento__shot .etch--maison {   /* plus fort que .etch (relative, plus bas) : sinon Safari étire la fenêtre */
  position: absolute;
  left: calc(var(--col, 0) * -103.0303%); top: calc(var(--row, 0) * -104.5455%);
  width: 203.0303%; aspect-ratio: 2680 / 1800;
}
.bento__num {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 30px; height: 30px; box-sizing: border-box;
  border: 1.5px solid var(--paper); border-radius: 50%;
  background: var(--red-logo); color: var(--paper);
  box-shadow: 0 0 0 1.5px var(--navy), 0 6px 14px -6px rgba(var(--navy-rgb), .6);
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 13px; line-height: 1;
}

/* ---------- Gravures de personnes : des photos libres gravées à la plume (assets/people) ---------- */

/* comme les bâtiments du hero : l’encre est un masque, le fond donne la couleur (gris, et une bande
   teintée de --a0 à --b0 % de la largeur s’il y en a une). script.js pose par-dessus un canvas qui
   dessine la gravure (.is-gl cache alors l’encre CSS). Sous la souris, une loupe ouvre la photo.
   Ces personnes illustrent les situations : ce ne sont ni l’équipe ni des clients. */
.etch { position: relative; margin: 0; }
.etch__ink, .etch__photo, .etch__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.etch__ink {
  --a: calc(var(--a0, -1) * 1%);
  --b: calc(var(--b0, -1) * 1%);
  -webkit-mask: var(--img) center / 100% 100% no-repeat;
          mask: var(--img) center / 100% 100% no-repeat;
  background: linear-gradient(90deg,
    var(--ink) var(--a), var(--tint, var(--ink)) var(--a), var(--tint, var(--ink)) var(--b), var(--ink) var(--b));
}
.etch.is-gl .etch__ink { visibility: hidden; }
.etch__canvas { pointer-events: none; }

/* la loupe : la photo, découpée en disque autour de la souris ; --lens s’ouvre en transition */
.etch__photo {
  display: block; object-fit: cover;
  -webkit-mask: radial-gradient(circle var(--lens) at var(--mx, 50%) var(--my, 50%), #000 calc(100% - 1px), transparent 100%);
          mask: radial-gradient(circle var(--lens) at var(--mx, 50%) var(--my, 50%), #000 calc(100% - 1px), transparent 100%);
  transition: --lens .5s cubic-bezier(.2, .7, .2, 1);
}
/* son cerclage : un anneau rouge et un anneau de construction en tirets */
.etch__lens {
  position: absolute; left: var(--mx, 50%); top: var(--my, 50%); z-index: 2;
  width: calc(var(--R) * 2); height: calc(var(--R) * 2); margin: calc(var(--R) * -1);
  border: 1.5px solid var(--red-logo); border-radius: 50%;
  pointer-events: none; opacity: 0; scale: .2;
  transition: opacity .3s, scale .5s cubic-bezier(.2, .7, .2, 1);
}
.etch__lens::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px dashed rgba(var(--navy-rgb), .5);
}
/* sur un écran tactile, pas de loupe : la photo n’est même pas chargée (lazy + display: none) */
@media not ((hover: hover) and (pointer: fine)) {
  .etch__photo, .etch__lens { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .etch:is(:hover, .is-peek) .etch__photo { --lens: var(--R); }
  .etch:is(:hover, .is-peek) .etch__lens { opacity: 1; scale: 1; }
}


/* les médaillons des pôles : un portrait gravé dans un ovale, son cadre tracé à la plume ;
   au survol, la photo s’ouvre depuis le centre, découpée dans l’ovale */
.etch--medal {
  --R: 140px;
  flex: none;
  width: clamp(76px, 6.8vw, 108px);
  aspect-ratio: 4 / 5;
}
.etch--medal .etch__photo { clip-path: ellipse(48.5% 46.5% at 50% 48%); }
.etch__frame {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: var(--navy); stroke-width: 1.25; vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.etch__frame ellipse:first-child { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--d)); }
.etch__frame-in { stroke: rgba(var(--navy-rgb), .45); stroke-width: 1; stroke-dasharray: 3 5; }

/* ---------- Quelle est votre situation ? : une à la fois ---------- */

/* la table des renvois : à gauche les huit situations, chacune suivie de points de conduite jusqu’au
   nom de son pôle, à droite les cinq pôles. Chaque lien mène à l’article du pôle, que script.js
   signale à l’arrivée (.is-called). Avec le script et le mouvement permis, le plateau ci-dessous les montre une à une. */
.situations {
  --w: 1;
  counter-reset: sit;
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  padding: clamp(40px, 5vw, 80px) var(--pad-x) 0;
}
.situations__head { grid-column: 1 / span 6; grid-row: 1; }
.situations__title {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.7vw, 56px); line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance;
}
.situations__list {
  grid-column: 1 / span 6; grid-row: 2;
  display: grid; grid-template-columns: minmax(0, 1fr);
  margin: clamp(40px, 4vw, 64px) 0 0; padding: 0; list-style: none;
}
.situations__list > li { border-top: 1px solid rgba(var(--navy-rgb), .14); }
.situations__list > li:last-child { border-bottom: 1px solid rgba(var(--navy-rgb), .14); }
/* la phrase, puis en dessous le renvoi : des points de conduite jusqu’au nom du pôle */
.situation {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px 12px;
  padding: clamp(16px, 1.6vw, 22px) 0 clamp(14px, 1.4vw, 18px);
  color: var(--navy); text-decoration: none;
}
.situation__q {
  grid-column: 1 / -1;
  max-width: 30em;
  font-family: var(--serif); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.3;
  text-wrap: pretty;
}
.situation__lead {
  height: 0; align-self: center; translate: 0 .2em;
  border-bottom: 1.5px dotted rgba(var(--navy-rgb), .32);
}
.situation__to {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: rgba(var(--navy-rgb), .72);
  white-space: nowrap;
}
.situation svg { align-self: center; translate: 0 .1em; }
.situation:focus-visible { outline-offset: 2px; }
/* survolée, ou lue (.is-on) */
.situation:is(:hover, :focus-visible, .is-on) .situation__lead { border-color: var(--red-logo); }
.situation:is(:hover, :focus-visible, .is-on) .situation__to { color: var(--red-logo); }
.situation:is(:hover, :focus-visible, .is-on) svg { translate: 4px .1em; }
@media (prefers-reduced-motion: no-preference) {
  .situation__lead, .situation__to { transition: border-color .3s, color .3s; }
  .situation svg { transition: translate .3s cubic-bezier(.2, .7, .2, 1); }
}
@media (hover: hover) and (pointer: fine) {
  .situation { transition: opacity .3s; }
  .situations__list:has(.situation:hover) .situation:not(:hover) { opacity: .45; }
}

/* les pôles, répartis sur la hauteur des situations : le médaillon, puis le nom */
.poles {
  position: relative; z-index: 1;
  grid-column: 10 / -1; grid-row: 2; align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  margin: clamp(40px, 4vw, 64px) 0 0; padding: 0; list-style: none;
}
.pole__link {
  display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px);
  color: var(--navy); text-decoration: none;
}
.pole__name {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(16px, 1.3vw, 20px); line-height: 1.2;
  text-wrap: balance;
}
/* script actif : le pôle de la situation lue est à l’encre pleine, son cadre en rouge ; les autres pâlissent */
.situations.is-live .pole { opacity: .5; }
.situations.is-live .pole.is-on { opacity: 1; }
.pole.is-on .pole__name { color: var(--red-logo); }
.pole.is-on .etch__frame ellipse:first-child { stroke: var(--red-logo); stroke-width: 2; }
.pole.is-on .etch--medal { scale: 1.06; }
@media (prefers-reduced-motion: no-preference) {
  .pole { transition: opacity .45s; }
  .pole__name { transition: color .3s; }
  .etch--medal { transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
}

/* une à la fois : le plateau (.sit-stage, créé par script.js) reste collé sous la navigation pendant que
   .sit-track défile ; le scroll se partage en cinq pas, un par situation (une par compétence) : ses mots s’encrent, le renvoi
   se tire jusqu’au nom de son pôle, et le médaillon du pôle se grave à droite (dessous sur téléphone).
   La réglette compte. Sans script ou sous mouvement réduit, pas de plateau : la table des renvois. */
.sit-track, .sit-stage { display: contents; }
.sit-rail { display: none; }
.sit-w { display: inline-block; }

.situations.is-pinned .sit-track {
  display: block; grid-column: 1 / -1; grid-row: 1;
  height: calc(100svh - var(--nav-h) + 250svh);
}
.situations.is-pinned .sit-stage {
  position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head head" "q pole" "rail rail"; align-items: center;
  column-gap: clamp(32px, 6vw, 110px);
  padding-block: clamp(16px, 3svh, 40px) clamp(28px, 5svh, 56px);
}
.is-pinned .situations__head { grid-area: head; }
/* collé, le titre ne suit pas le scroll : il reste à l’encre pleine */
.situations.is-pinned :is(.situations__label, .situations__title) { animation: none; }

/* les situations, empilées dans une même case : celle du pas en cours est seule visible ; les passées
   sont montées, les suivantes attendent dessous */
.is-pinned .situations__list { grid-area: q; display: grid; margin: 0; }
.situations.is-pinned .situations__list > li {
  grid-area: 1 / 1; border: 0;
  opacity: 0; translate: 0 36px; pointer-events: none;
  animation: none;
}
.situations.is-pinned .situations__list > li.is-past { translate: 0 -36px; }
.situations.is-pinned .situations__list > li:has(.is-on) { opacity: 1; translate: 0 0; pointer-events: auto; }
.is-pinned .situation { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: clamp(14px, 2.6svh, 30px); padding: 0; }
.is-pinned .situation::before {
  counter-increment: sit;
  content: counter(sit, decimal-leading-zero) " / 05";
  grid-column: 1 / -1;
  font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--red-logo);
}
.is-pinned .situation__q {
  max-width: 15em;
  font-size: clamp(30px, 3.9vw, 62px); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.is-pinned .situation__lead { border-bottom-width: 2px; }
/* le renvoi se tire quand sa situation arrive, pas avec la frise de lecture de la page (collé, il ne bouge pas) */
.situations.is-pinned .situation__lead { animation: none; }
.is-pinned .situation__to { font-size: clamp(18px, 1.6vw, 24px); }

/* le pôle : son médaillon seul, à droite ; le nom est déjà au bout du renvoi */
.is-pinned .poles {
  grid-area: pole; position: relative; top: auto;
  display: grid; margin: 0; padding: 0; background: none; border: 0;
}
.situations.is-pinned .pole { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 18px; }
.situations.is-pinned .pole.is-on { opacity: 1; visibility: visible; translate: 0 0; }
.is-pinned .etch--medal { width: clamp(170px, 18vw, 280px); }
.is-pinned .pole.is-on .etch--medal { scale: 1; }
.is-pinned .pole__name {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* la réglette : un cran par situation ; le filet rouge avance avec le scroll */
.is-pinned .sit-rail {
  grid-area: rail; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0; padding: 16px 0 0; list-style: none;
  font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--navy);
}
.is-pinned .sit-rail::before,
.is-pinned .sit-rail::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgba(var(--navy-rgb), .16);
}
.is-pinned .sit-rail::after {
  height: 2px; top: -.5px; background: var(--red-logo);
  transform-origin: left; scale: var(--w) 1;
}
.is-pinned .sit-rail li {
  position: relative;
  opacity: calc(.3 + clamp(0, var(--w) * 5 - var(--i), 1) * .7);
}
.is-pinned .sit-rail li::before {
  content: ""; position: absolute; left: 0; top: -19.5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 1.25px var(--navy);
}
.is-pinned .sit-rail li.is-on { color: var(--red-logo); }
.is-pinned .sit-rail li.is-on::before { background: var(--red-logo); box-shadow: 0 0 0 1.25px var(--red-logo), 0 0 0 5px rgba(183, 59, 59, .16); }

@media (prefers-reduced-motion: no-preference) {
  .situations.is-pinned .situations__list > li { transition: opacity .45s, translate .7s cubic-bezier(.2, .7, .2, 1); }
  .situations.is-pinned .pole { transition: opacity .45s, translate .7s cubic-bezier(.2, .7, .2, 1), visibility 0s .7s; }
  .situations.is-pinned .pole.is-on { transition-delay: .15s, .15s, 0s; }
  .is-pinned .sit-rail li { transition: color .3s; }
  /* la situation qui arrive : ses mots s’encrent l’un après l’autre, puis le renvoi se tire */
  .is-pinned .sit-w { opacity: .1; translate: 0 .3em; transition: opacity .2s, translate .2s; }
  .situations.is-pinned.is-seen li:has(.is-on) .sit-w {
    opacity: 1; translate: 0 0;
    transition: opacity .5s calc(.1s + var(--k) * 55ms), translate .7s cubic-bezier(.2, .7, .2, 1) calc(.1s + var(--k) * 55ms);
  }
  .is-pinned .situation__lead,
  .is-pinned .situation__to,
  .is-pinned .situation > svg { transition: clip-path .2s, opacity .2s, translate .3s; }
  .is-pinned .situation__lead { clip-path: inset(0 100% 0 0); }
  .is-pinned .situation__to,
  .is-pinned .situation > svg { opacity: 0; }
  .situations.is-pinned.is-seen .situation.is-on .situation__lead {
    clip-path: inset(0); transition: clip-path .8s cubic-bezier(.5, 0, .2, 1) .55s, border-color .3s;
  }
  .situations.is-pinned.is-seen .situation.is-on :is(.situation__to, svg) {
    opacity: 1; transition: opacity .4s 1.2s, translate .3s, color .3s;
  }
}

@media (max-width: 900px) {
  /* téléphone : la question en haut, la situation et son médaillon groupés au milieu, la réglette en bas */
  .situations.is-pinned .sit-stage {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
    grid-template-areas: "head" "." "q" "pole" "." "rail"; row-gap: 0;
  }
  .is-pinned .situations__title { font-size: clamp(28px, 8vw, 38px); }
  .is-pinned .situation__q { font-size: clamp(25px, 7.4vw, 36px); }
  .is-pinned .situation__to { font-size: 17px; }
  .is-pinned .poles { justify-self: start; margin-top: 24px; }
  .is-pinned .pole { flex: none; }
  .is-pinned .etch--medal { width: clamp(84px, 24vw, 120px); }
  .is-pinned .sit-rail { font-size: 12px; }
}

/* l’article d’un pôle, quand on y arrive par un renvoi : son anneau bat deux fois */
@media (prefers-reduced-motion: no-preference) {
  .offer.is-called .offer__num::before { animation: called 1.1s cubic-bezier(.3, .6, .3, 1) 2; }
}
@keyframes called {
  35% { scale: 2; border-color: var(--red-logo); box-shadow: 0 0 0 3px rgba(199, 44, 53, .14); }
}

/* ---------- Nos offres : cinq articles le long d’un fil ---------- */

/* le titre reste en place à gauche pendant que les articles défilent à droite ;
   script.js pose --p (avancée de l’encre sur le fil), .is-reached, .is-on et le compteur */
.offers {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  padding: clamp(80px, 9vw, 140px) var(--pad-x) clamp(16px, 2vw, 32px);
}
.offers__head {
  grid-column: 1 / span 5;
  position: sticky; top: clamp(48px, 16svh, 160px);
}
.offers__label, .firm__label, .method__label, .situations__label, .distinct__label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 15px;
}
.offers__label::before, .firm__label::before, .method__label::before, .situations__label::before,
.distinct__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }
.offers__title {
  max-width: 9em;
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.7vw, 56px); line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance;
}
/* compteur de l’article lu (seulement quand script.js le tient à jour) */
.offers__count { display: none; align-items: baseline; gap: 10px; margin-top: clamp(28px, 4vw, 60px); font-family: var(--serif); }
.offers.is-live .offers__count { display: flex; }
.offers__now { font-size: clamp(56px, 6vw, 92px); line-height: .9; font-variant-numeric: lining-nums tabular-nums; color: var(--red-logo); }
.offers__of { font-style: italic; font-size: 18px; color: rgba(var(--navy-rgb), .55); }

/* le fil : en tirets d’un filet à l’autre ; l’encre rouge le recouvre jusqu’à --p */
.offers__list {
  --ring: 11px;
  grid-column: 7 / -1;
  position: relative;
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
}
.offers__list::before, .offers__list::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--ring) / 2); width: 0;
}
.offers__list::before { border-left: 1px dashed rgba(var(--navy-rgb), .45); }
.offers__list::after  { border-left: 1.5px solid var(--red-logo); margin-left: -.25px; transform-origin: top; transform: scaleY(var(--p, 1)); }

.offer {
  display: grid; grid-template-columns: 4.4em minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding: clamp(26px, 2.6vw, 38px) 0 clamp(28px, 2.8vw, 40px) calc(var(--ring) + 22px);
  border-bottom: 1px solid rgba(var(--navy-rgb), .14);
}
.offer__num {
  position: relative;
  font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.2;
  color: var(--red-logo);
}
/* l’anneau sur le fil, à hauteur du numéro, et son point d’encre */
.offer__num::before, .offer__num::after {
  content: ""; position: absolute; border-radius: 50%;
  left: calc(-1 * (var(--ring) + 22px)); top: calc(50% - var(--ring) / 2);
}
.offer__num::before {
  width: var(--ring); height: var(--ring); box-sizing: border-box;
  background: var(--paper); border: 1.5px solid var(--navy);
}
.offer__num::after {
  width: 3px; height: 3px; margin: calc(var(--ring) / 2 - 1.5px);
  background: var(--red-logo);
}
.offer__title {
  grid-column: 2;
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.01em;
}
.offer__text {
  grid-column: 2;
  max-width: 30em; margin-top: 10px;
  font-size: 15px; line-height: 1.6;
  color: rgba(var(--navy-rgb), .7);
  text-wrap: pretty;
}
/* les rubriques de l’offre (reprises de sa page sur le site de base), en alinéas a. b. c. ;
   chacune s’encre quand la planche avance (--q, posé par script.js ; 1 par défaut) */
.offer__points {
  grid-column: 2;
  max-width: 30em; margin: 18px 0 0; padding: 0; list-style: none;
  counter-reset: pt;
}
.offer__points li {
  --on: clamp(0, var(--q, 1) * (var(--n) + 1) - var(--j) + 1, 1);
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(var(--navy-rgb), .1);
  font-family: var(--serif); font-size: 17px; line-height: 1.3;
  counter-increment: pt;
  opacity: calc(.12 + .88 * var(--on));
  translate: calc((1 - var(--on)) * 8px) 0;
}
.offer__points li::before {
  content: counter(pt, lower-alpha) ".";
  min-width: 1.3em;
  font-style: italic; font-size: 14px; color: var(--red-logo);
}
/* « Voir le pôle » : l’action qui clôt l’article, un bouton à coin chanfreiné comme « Prendre contact » */
.offer__link {
  --cut: 8px;
  grid-column: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 12px 18px 12px 20px;
  background: var(--navy); color: var(--white);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.offer__link svg { transition: translate .3s cubic-bezier(.2, .7, .2, 1); }
.offer__link:hover, .offer__link:focus-visible { background: var(--blue); }
.offer__link:hover svg, .offer__link:focus-visible svg { translate: 4px 0; }
/* le coin chanfreiné (clip-path) couperait le contour de focus : un liseré rouge à l’intérieur le remplace */
.offer__link:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--red-logo); }

/* lecture : l’article au repère est à l’encre pleine, les autres pâlissent ;
   les anneaux que l’encre a atteints reçoivent leur point */
.offers.is-live .offer:not(.is-on) :is(.offer__title, .offer__text, .offer__points, .offer__link) { opacity: .38; }
.offers.is-live .offer:not(.is-on) .offer__num { opacity: .6; }
.offers.is-live .offer:not(.is-reached) .offer__num::after { opacity: 0; scale: .2; }
.offers.is-live .offer.is-on .offer__num::before { border-color: var(--red-logo); scale: 1.3; }
@media (prefers-reduced-motion: no-preference) {
  .offer :is(.offer__title, .offer__text, .offer__points, .offer__link, .offer__num) { transition: opacity .45s, background-color .25s; }
  .offer__num::before, .offer__num::after { transition: scale .4s cubic-bezier(.2, .7, .2, 1), opacity .3s, border-color .3s; }
}
@media (hover: hover) and (pointer: fine) {
  .offers.is-live .offer:hover :is(.offer__title, .offer__text, .offer__points, .offer__link, .offer__num) { opacity: 1; }
}

/* planches : chaque offre a son dessin à la plume, en perspective isométrique.
   --d (0 → 1) fait avancer la plume : chaque trait part à son --o et se trace sur .4 (moins s’il part
   après .6, pour finir à 1), puis viennent les hachures, les tracés de construction et le lavis rouge */
@property --d { syntax: "<number>"; inherits: true; initial-value: 1; }
.plate-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.plate-defs path { stroke: var(--ink); stroke-width: .7; }
.plate-art { display: block; width: 100%; height: auto; overflow: visible; }
.plate-art [pathLength] {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--d) - var(--o, 0)) / min(.4, 1 - var(--o, 0)), 1));
}
.plate-art .vl { stroke: var(--navy); stroke-width: 1.3; }
.plate-art .vf { stroke: var(--ink); stroke-width: .8; }
.plate-art .vt { stroke: var(--red-logo); stroke-width: 1.3; }
.plate-art .vt-thin { stroke-width: 1; }
.plate-art .vt-bold { stroke-width: 2.4; }
.plate-art .vp { fill: var(--paper); stroke: none; opacity: clamp(0, var(--d) * 4, 1); }
.plate-art .vt-in { stroke: var(--red-logo); stroke-width: 1; }
.plate-art .vh { stroke: none; opacity: clamp(0, (var(--d) - .5) * 3, 1); }
.plate-art .vh-a { fill: url(#vh-a); }
.plate-art .vh-b { fill: url(#vh-b); }
.plate-art .vs { opacity: calc(clamp(0, (var(--d) - .5) * 3, 1) * .45); }
.plate-art .vd { fill: none; stroke: var(--ink); stroke-width: .8; stroke-dasharray: 3 3; opacity: calc(clamp(0, (var(--d) - .3) * 3, 1) * .7); }
.plate-art .vtf { fill: var(--red-logo); stroke: none; opacity: calc(clamp(0, (var(--d) - .75) * 4, 1) * .18); }
.plate-art .vg { fill: none; stroke: rgba(var(--navy-rgb), .4); stroke-width: 1; opacity: clamp(0, var(--d) * 3, 1); }

/* sans script (ou sans animation) : la planche coiffe son article, entièrement tracée */
.offer__art { grid-column: 2 / -1; grid-row: 1; width: min(100%, 300px); margin-bottom: 18px; }
.offer__num, .offer__title { grid-row: 2; }
.offer__text { grid-row: 3; }
.offer__points { grid-row: 4; }
.offer__link { grid-row: 5; }
/* grand écran, script actif : une seule planche, dans la colonne du titre, suit l’article lu */
.offers__plate { display: none; position: relative; aspect-ratio: 400 / 260; width: min(100%, 34svh * 400 / 260); margin-top: clamp(24px, 3vw, 44px); }
.offers__plate .plate-art { position: absolute; inset: 0; opacity: 0; }
.offers__plate .plate-art.is-on { opacity: 1; }
/* script actif, la plume suit le scroll : script.js pose --d sur chaque planche.
   Sur grand écran, chaque article reçoit assez de hauteur pour que sa planche se trace en entier */
.offer { scroll-margin-top: 12svh; }
@media (min-width: 901px) {
  .offer { scroll-margin-top: 24svh; }
  .offers.is-live .offers__plate { display: block; }
  .offers.is-live .offer__art { display: none; }
  .offers.is-live .offer { min-height: clamp(240px, 34svh, 340px); align-content: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .offers__plate .plate-art { transition: opacity .3s; }
}

/* ---------- Espace OHADA : globe gravé ---------- */

.ohada {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 104px);
  padding: clamp(96px, 11vw, 160px) var(--pad-x) clamp(72px, 8vw, 120px);
  overflow-x: clip;
}

.globe { position: relative; }
.globe__art {
  position: relative;
  aspect-ratio: 1;
  margin: 6% 6% 19%;        /* place pour le méridien (rayon 1,116) et le pied */
}
/* la gravure : un canvas un peu plus grand que le globe, pour le trait du contour.
   Le disque y a un rayon de 0,95 : le canvas déborde donc de 2,632 % de chaque côté. */
.globe__canvas, .globe__still {
  position: absolute; inset: -2.632%;
  width: 105.263%; height: 105.263%;
}
.globe__canvas {
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;       /* sur téléphone, le glissé vertical reste au scroll */
  -webkit-tap-highlight-color: transparent;
  outline-offset: -6%;
  border-radius: 50%;
}
.globe__canvas:active { cursor: grabbing; }
.globe.is-live .globe__canvas { opacity: 1; }
.globe.is-live .globe__still { visibility: hidden; }

.globe__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.globe__frame * { fill: none; vector-effect: non-scaling-stroke; }
.globe__ring  { stroke: rgba(var(--navy-rgb), .45); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--g, 1)); }
.globe__ticks { stroke: rgba(var(--navy-rgb), .45); stroke-width: 1; opacity: var(--g, 1); }
.globe__stem  { stroke: var(--navy); stroke-width: 1.5; }
.globe__frame .globe__mark path { fill: var(--navy); }
.globe__frame .globe__mark .globe__mark-red { fill: var(--red-logo); }
.globe__ground { stroke: rgba(var(--navy-rgb), .4); stroke-width: 1; }

/* bureau : un anneau sur la ville ; script.js le déplace avec le globe et l’efface au revers */
.pin {
  position: absolute; left: 0; top: 0;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--navy);
  pointer-events: none;
  will-change: transform, opacity;
}
.globe:not(.is-live) .pin { display: none; }
.pin__label {
  position: absolute; right: calc(100% + 30px); top: 50%; translate: 0 -50%;
  display: flex; align-items: center; gap: 7px;
  padding: 1px 6px;
  background: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--navy);
  white-space: nowrap;
}
.pin__label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tint); }
.pin__label::after {     /* fil de rappel jusqu’à l’anneau */
  content: ""; position: absolute; left: 100%; top: 50%; width: 26px;
  border-top: 1px dashed rgba(var(--navy-rgb), .6);
}
.pin--low .pin__label { top: calc(50% + 22px); }
.pin--low .pin__label::after { width: 30px; rotate: -36deg; transform-origin: left; }

.globe__hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: -1% 0 22px;
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: rgba(var(--navy-rgb), .55);
}
.globe:not(.is-live) .globe__hint { visibility: hidden; }

.globe__legend {
  max-width: 34em;
  margin: 0 6%;
  font-size: 13px; line-height: 1.6;
  color: rgba(var(--navy-rgb), .6);
  text-wrap: pretty;
}
/* clé des couleurs : une pastille hachurée comme sur le globe */
.globe__key {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin: 0 0 12px; padding: 0; list-style: none;
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--navy);
}
.globe__key li { display: flex; align-items: center; gap: 8px; }
.globe__key li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 1px solid var(--tint);
  background:
    repeating-linear-gradient(45deg, var(--tint) 0 1.2px, transparent 1.2px 3.5px),
    repeating-linear-gradient(-45deg, var(--tint) 0 1px, transparent 1px 3.5px);
}
/* script actif : chaque entrée de la clé devient un bouton qui tourne le globe */
.globe__go {
  padding: 2px 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left;
  cursor: pointer;
  text-decoration: underline dotted rgba(var(--navy-rgb), .35); text-underline-offset: 4px;
}
.globe__go:hover, .globe__go:focus-visible { text-decoration-color: var(--tint); text-decoration-style: solid; }
.globe__key li:has(.globe__go:hover)::before { border-width: 1.5px; }
/* le repère du bureau qu’on désigne dans la clé */
.pin { outline: 1.5px solid transparent; outline-offset: 1px; }
.pin.is-hl { outline-color: var(--tint); outline-offset: 4px; }
.pin.is-hl .pin__label { color: var(--tint); }
@media (prefers-reduced-motion: no-preference) {
  .pin { transition: outline-offset .35s cubic-bezier(.2, .7, .2, 1), outline-color .25s; }
  .pin__label { transition: color .25s; }
}
.globe__legend strong { margin-right: 6px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; color: var(--navy); }

.ohada__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.ohada__lead {
  max-width: 34em;
  margin: 20px 0 clamp(28px, 3vw, 44px);
  font-size: 15px; line-height: 1.6;
  color: rgba(var(--navy-rgb), .7);
  text-wrap: pretty;
}

/* ---------- Le cabinet : le réseau, puis les valeurs ---------- */

/* script.js pose --w (avancée des fils, 0 → 1) sur .net et --d (avancée de la plume) sur chaque
   profession et chaque valeur ; sans lui, ou sous mouvement réduit, tout est tracé (valeur 1) */
.firm {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
  padding: clamp(80px, 9vw, 140px) var(--pad-x) clamp(80px, 9vw, 140px);
}
.firm__head { grid-column: 1 / span 5; }
.firm__title {
  max-width: 10em;
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.7vw, 56px); line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance;
}
.firm__text {
  max-width: 30em;
  margin-top: clamp(20px, 2vw, 28px);
  font-size: 16px; line-height: 1.65;
  color: rgba(var(--navy-rgb), .72);
  text-wrap: pretty;
}
.firm__link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(22px, 2.4vw, 32px); padding: 6px 0;
  color: var(--navy); font-size: 14px; font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--navy-rgb), .25);
}
.firm__link svg { transition: translate .3s cubic-bezier(.2, .7, .2, 1); }
.firm__link:hover svg, .firm__link:focus-visible svg { translate: 4px 0; }

/* les photographies (Unsplash, à titre d’illustration) : noir et blanc teinté du marine de la charte,
   coin biseauté ; au survol la couleur revient. .shot sert aussi aux valeurs. */
.shot {
  --cut: 28px;
  position: relative; margin: 0; overflow: hidden;
  background: var(--navy);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--navy); mix-blend-mode: screen; opacity: .85;
}
/* un voile marine : les blancs (une table, un mur) restent plus sombres que le papier, et le
   biseau se lit encore */
.shot::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(var(--navy-rgb), .12);
}
@media (prefers-reduced-motion: no-preference) {
  .shot img { transition: filter .7s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.2, .7, .2, 1); }
  .shot::before, .shot::after { transition: opacity .7s cubic-bezier(.2, .7, .2, 1); }
}
@media (hover: hover) and (pointer: fine) {
  .shot:hover img, .value:hover .shot img { filter: none; scale: 1.03; }
  .shot:hover::before, .shot:hover::after, .value:hover .shot::before, .value:hover .shot::after { opacity: 0; }
}

/* à côté du titre : une grande photographie, une petite qui la chevauche en bas à gauche, et une
   équerre en tirets au coin, comme un trait de construction */
.firm__photos {
  --off: clamp(28px, 4.4vw, 64px);
  grid-column: 7 / -1; position: relative;
  padding: 0 0 var(--off) var(--off);
}
.shot--main { --cut: 40px; aspect-ratio: 5 / 4; }
.firm__side {
  --cut: 26px;
  position: absolute; left: 0; bottom: 0; width: 44%;
  padding: 10px 10px 0 0;
  background: var(--paper);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.firm__side .shot { --cut: 20px; aspect-ratio: 720 / 661; }
.firm__photos::before, .firm__photos::after { content: ""; position: absolute; pointer-events: none; }
.firm__photos::before {
  right: -14px; bottom: calc(var(--off) - 14px); width: 32%; height: 38%;
  border-right: 1px dashed rgba(var(--navy-rgb), .45); border-bottom: 1px dashed rgba(var(--navy-rgb), .45);
}
.firm__photos::after {
  right: -19px; bottom: calc(var(--off) - 19px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--red-logo);
}

/* le réseau : NILAURA sur le triangle du logo, comme sur un pivot ; un fil descend jusqu’à une
   traverse, puis un fil vers chaque profession. Fils en tirets, que l’encre rouge recouvre. */
.net {
  --ring: 11px; --stem: 34px; --drop: 42px;
  grid-column: 1 / -1;
  width: 100%; max-width: 980px; margin: clamp(72px, 8vw, 120px) auto 0;
}
.net__hub {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-bottom: var(--stem);
}
.net__mark { display: block; width: 58px; height: auto; }
.net__name { font-family: var(--serif); font-style: italic; font-size: 15px; }
.net__hub::before, .net__hub::after,
.net__nodes::before, .net__nodes::after,
.net__drop::before, .net__drop::after { content: ""; position: absolute; }
.net__hub::before, .net__hub::after { left: 50%; bottom: 0; height: calc(var(--stem) - 8px); }
.net__hub::before { border-left: 1px dashed rgba(var(--navy-rgb), .45); }
.net__hub::after  { border-left: 1.5px solid var(--red-logo); margin-left: -.25px; transform-origin: top; scale: 1 clamp(0, var(--w, 1) / .15, 1); }

.net__nodes {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(8px, 1.4vw, 24px);
  margin: 0; padding: 0; list-style: none;
}
.net__nodes::before, .net__nodes::after { top: 0; left: calc(100% / 6); right: calc(100% / 6); }
.net__nodes::before { border-top: 1px dashed rgba(var(--navy-rgb), .45); }
.net__nodes::after  { border-top: 1.5px solid var(--red-logo); margin-top: -.25px; scale: clamp(0, (var(--w, 1) - .15) / .2, 1) 1; }   /* du centre vers les deux bouts */

.net__node {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding-top: var(--drop);
  text-align: center;
}
/* l’anneau sur la traverse, et son point d’encre quand la plume part */
.net__node::before, .net__node::after { content: ""; position: absolute; z-index: 1; top: calc(var(--ring) / -2); left: calc(50% - var(--ring) / 2); border-radius: 50%; }
.net__node::before { width: var(--ring); height: var(--ring); background: var(--paper); border: 1.5px solid var(--navy); }
.net__node::after  { width: 3px; height: 3px; margin: calc(var(--ring) / 2 - 1.5px); background: var(--red-logo); scale: clamp(.2, var(--d) * 12, 1); opacity: clamp(0, var(--d) * 12, 1); }
.net__drop { position: absolute; left: 50%; top: calc(var(--ring) / 2); height: calc(var(--drop) - var(--ring) / 2 - 6px); }
.net__drop::before, .net__drop::after { top: 0; bottom: 0; }
.net__drop::before { border-left: 1px dashed rgba(var(--navy-rgb), .45); }
.net__drop::after  { border-left: 1.5px solid var(--red-logo); margin-left: -.25px; transform-origin: top; scale: 1 clamp(0, var(--d) / .12, 1); }
.net__art { width: 100%; max-width: 230px; }
.net__label {
  margin-top: 4px;
  font-family: var(--serif); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.25;
  text-wrap: balance;
  opacity: calc(.18 + .82 * clamp(0, (var(--d) - .3) / .4, 1));
}
.net__desc {
  max-width: 17em; margin-top: 6px;
  font-size: 13px; line-height: 1.5; color: rgba(var(--navy-rgb), .66);
  text-wrap: pretty;
  opacity: calc(.18 + .82 * clamp(0, (var(--d) - .4) / .4, 1));
}

/* les valeurs : trois paragraphes, chacun avec son emblème ; le texte s’encre avec la plume */
.values {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px);
  margin: clamp(72px, 8vw, 120px) 0 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
}
.value {
  --lit: clamp(0, (var(--d) - .3) / .45, 1);
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; align-content: start;
  padding: clamp(28px, 3vw, 44px) 0 0;
}
/* la photographie, et l’emblème posé dessus comme un cachet, à cheval sur son bord */
.value__top { grid-column: 1 / -1; position: relative; margin-bottom: 40px; }
.value__shot {
  --cut: 24px; aspect-ratio: 3 / 2;
  opacity: clamp(0, var(--d) / .25, 1); translate: 0 calc((1 - clamp(0, var(--d) / .4, 1)) * 16px);
}
.value__art {
  position: absolute; left: 16px; bottom: -26px; width: 118px;
  padding: 8px 10px 4px;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgba(var(--navy-rgb), .16);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.value__num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--red-logo); }
.value__name {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.01em;
}
.value__text {
  grid-column: 2;
  max-width: 24em; margin-top: 10px;
  font-size: 15px; line-height: 1.6;
  color: rgba(var(--navy-rgb), .7);
  text-wrap: pretty;
}
.value :is(.value__num, .value__name, .value__text) { opacity: calc(.14 + .86 * var(--lit)); translate: 0 calc((1 - var(--lit)) * 10px); }
/* survol : la profession ou la valeur désignée reste à l’encre pleine, sa planche se soulève ;
   pour une profession, son fil et son anneau passent au rouge */
@media (hover: hover) and (pointer: fine) {
  .net__node, .value { transition: opacity .3s; }
  .net__art, .value__art { transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
  .net__node::before { transition: scale .4s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
  .net__drop::before { transition: border-color .3s; }
  .net__nodes:has(.net__node:hover) .net__node:not(:hover),
  .values:has(.value:hover) .value:not(:hover) { opacity: .45; }
  .net__node:hover .net__art, .value:hover .value__art { translate: 0 -6px; }
  .net__node:hover::before { scale: 1.4; border-color: var(--red-logo); }
  .net__node:hover .net__drop::before { border-left-style: solid; border-color: var(--red-logo); }
}

/* ---------- Ce qui nous distingue : la table vue d’en haut ---------- */

/* Une table ronde vue d’en haut : quatre personnes détourées, en noir et blanc, autour d’un plateau en
   quatre pièces de puzzle aux couleurs de la charte ; sur la table, les feuilles a, b, c (les trois points)
   et leurs flèches vers la feuille du milieu, la décision. Le titre se pose en bas à gauche, sous la table.
   script.js pose --d sur .rt (l’arrivée de la table) : les pièces s’emboîtent, les feuilles se posent, les
   flèches se tracent. Sans JS ou sous mouvement réduit, --d vaut 1 : tout est posé. */
.distinct {
  padding: clamp(56px, 7vw, 112px) var(--pad-x) clamp(64px, 8vw, 128px);
}
.distinct__stage {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  width: min(100%, 1240px); margin-inline: auto;
}
.rt {
  --d: 1;
  grid-column: 6 / -1; grid-row: 1;
  position: relative; width: 100%; max-width: 720px; justify-self: end;
  aspect-ratio: 980 / 870; margin: 0;
}
.rt__back, .rt__people { position: absolute; inset: 0; width: 100%; height: 100%; }
.rt__back { overflow: visible; }
/* le titre descend sous la table et en chevauche le bas, comme la légende d’une planche */
.distinct__head {
  grid-column: 1 / span 6; grid-row: 2;
  position: relative; z-index: 1;
  margin-top: clamp(-300px, -18vw, -40px);
}
.distinct__title {
  max-width: 6.2em;
  margin: 18px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.2vw, 108px); line-height: .98; letter-spacing: -.035em;
  color: var(--navy);
  text-wrap: balance;
}
.distinct__title em { font-style: italic; color: var(--red-logo); }

/* le plateau : chaque pièce arrive de son coin, légèrement tournée, et s’emboîte ; un filet de papier
   marque les joints */
.rt__piece {
  --p: clamp(0, var(--d) / .5, 1);
  --e: calc(1 - var(--p));
  stroke: var(--paper); stroke-width: 3; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: center;
  opacity: clamp(0, var(--d) * 6, 1);
}
.rt__piece--tl { fill: var(--blue);     translate: calc(var(--e) * -46px) calc(var(--e) * -46px); rotate: calc(var(--e) * -7deg); }
.rt__piece--tr { fill: var(--teal);     translate: calc(var(--e) * 46px) calc(var(--e) * -46px);  rotate: calc(var(--e) * 6deg); }
.rt__piece--br { fill: var(--bright);   translate: calc(var(--e) * 46px) calc(var(--e) * 46px);   rotate: calc(var(--e) * -5deg); }
.rt__piece--bl { fill: var(--red);      translate: calc(var(--e) * -46px) calc(var(--e) * 46px);  rotate: calc(var(--e) * 8deg); }
.rt__people { opacity: clamp(0, (var(--d) - .1) / .3, 1); }

/* les feuilles : posées de haut, comme lâchées sur la table (a, b, c, puis la décision). Quand la table
   tourne (--turn, posé par script.js), l’ombre reste portée vers le bas : son décalage local est le bas de
   l’écran tourné en sens inverse (θ = --turn + --r) */
.rt__sheet, .rt__hub {
  --l: clamp(0, (var(--d) - .42 - var(--i, 3) * .07) / .2, 1);
  --th: calc(var(--turn, 0deg) + var(--r));
  --sy: calc(3px + (1 - var(--l)) * 14px + var(--lift, 0) * 8px);
  translate: var(--x) calc(var(--y) - (1 - var(--l)) * 30px - var(--lift, 0) * 12px);
  rotate: calc(var(--r) + (1 - var(--l)) * 9deg);
  scale: calc(1 + (1 - var(--l)) * .14 + var(--lift, 0) * .06);
  opacity: var(--l);
  filter: drop-shadow(calc(sin(var(--th)) * var(--sy)) calc(cos(var(--th)) * var(--sy)) calc(5px + (1 - var(--l)) * 14px + var(--lift, 0) * 6px) rgba(var(--navy-rgb), .28));
}
@property --lift { syntax: "<number>"; inherits: false; initial-value: 0; }
.rt__sheet[data-k="a"] { --i: 0; }
.rt__sheet[data-k="b"] { --i: 1; }
.rt__sheet[data-k="c"] { --i: 2; }
/* le sceau, au centre de la table, ne tourne pas avec elle : tout tourne autour de la décision */
.rt__hub { --r: calc(var(--turn, 0deg) * -1); }
.rt__paper, .rt__seal { fill: var(--white); }
.rt__seal { stroke: var(--navy); stroke-width: 1.6; }
.rt__ring { fill: none; stroke: rgba(var(--navy-rgb), .35); stroke-width: 1; stroke-dasharray: 3 4; }
.rt__key { fill: none; stroke: var(--navy); stroke-width: 1.6; }
/* les lettres restent droites quand la table tourne */
.rt__letter {
  font-family: var(--serif); font-style: italic; font-size: 19px; text-anchor: middle; fill: var(--red-logo);
  transform-box: fill-box; transform-origin: center; rotate: calc(var(--turn, 0deg) * -1 - var(--r));
}
.rt__line { stroke: rgba(var(--navy-rgb), .22); stroke-width: 5; stroke-linecap: round; }
.rt__word { font-family: var(--serif); font-style: italic; font-size: 26px; text-anchor: middle; fill: var(--navy); }
.rt__tri { stroke: var(--red-logo); stroke-width: 3; stroke-linecap: round; }
/* les flèches : tracées à la plume, une fois les feuilles posées */
.rt__arrow {
  --a: clamp(0, (var(--d) - .78) / .2, 1);
  fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.rt__arrow > path:first-child { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--a)); }
.rt__head { opacity: clamp(0, (var(--a) - .9) * 10, 1); }
/* la feuille lue (.is-on, posée par script.js sur la table qui tourne) se soulève, sa pastille et sa
   flèche passent au rouge */
.rt__sheet.is-on { --lift: 1; }
.rt__sheet.is-on .rt__key { fill: var(--red-logo); stroke: var(--red-logo); }
.rt__sheet.is-on .rt__letter { fill: var(--paper); }
.rt__arrow.is-on { stroke: var(--red-logo); }
@media (prefers-reduced-motion: no-preference) {
  .rt__key, .rt__letter, .rt__arrow { transition: fill .3s, stroke .3s; }
  .rt__sheet { transition: --lift .4s cubic-bezier(.2, .7, .2, 1); }
}

/* les trois points, sous la table, en trois colonnes */
.points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px);
  width: min(100%, 1240px);
  margin: clamp(40px, 5vw, 72px) auto 0; padding: 0; list-style: none;
}
.point {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-content: start;
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid rgba(var(--navy-rgb), .14);
}
.point__key {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 26px; height: 26px; margin-top: .15em; border-radius: 50%; box-sizing: border-box;
  border: 1px solid var(--navy);
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1; color: var(--red-logo);
}
.point__name {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -.01em;
  text-wrap: balance;
}
.point__text {
  max-width: 30em; margin: 8px 0 0;
  font-size: 15px; line-height: 1.6;
  color: rgba(var(--navy-rgb), .7);
  text-wrap: pretty;
}

@media (hover: hover) and (pointer: fine) {
  .point { transition: opacity .3s; }
  .point__key { transition: scale .4s cubic-bezier(.2, .7, .2, 1), background-color .3s, border-color .3s, color .3s; }
  /* le point survolé, sa feuille et sa flèche s’allument ; les deux autres points pâlissent */
  .distinct:not(.is-pinned):has(.point:hover) .point:not(:hover) { opacity: .4; }
  .point:hover .point__key { scale: 1.15; background: var(--red-logo); border-color: var(--red-logo); color: var(--paper); }
  .distinct:has(.point[data-k="a"]:hover) .rt__sheet[data-k="a"],
  .distinct:has(.point[data-k="b"]:hover) .rt__sheet[data-k="b"],
  .distinct:has(.point[data-k="c"]:hover) .rt__sheet[data-k="c"] { --lift: 1; }
  .distinct:has(.point[data-k="a"]:hover) [data-k="a"] .rt__key,
  .distinct:has(.point[data-k="b"]:hover) [data-k="b"] .rt__key,
  .distinct:has(.point[data-k="c"]:hover) [data-k="c"] .rt__key { fill: var(--red-logo); stroke: var(--red-logo); }
  .distinct:has(.point[data-k="a"]:hover) [data-k="a"] .rt__letter,
  .distinct:has(.point[data-k="b"]:hover) [data-k="b"] .rt__letter,
  .distinct:has(.point[data-k="c"]:hover) [data-k="c"] .rt__letter { fill: var(--paper); }
  .distinct:has(.point[data-k="a"]:hover) .rt__arrow[data-k="a"],
  .distinct:has(.point[data-k="b"]:hover) .rt__arrow[data-k="b"],
  .distinct:has(.point[data-k="c"]:hover) .rt__arrow[data-k="c"] { stroke: var(--red-logo); }
}

/* la table qui tourne : script.js range la scène (titre, table et points) dans .distinct__track et ajoute
   .is-pinned ; la scène reste collée sous la navigation pendant trois écrans. Le titre et le point lu à
   gauche, la table à droite ; elle tourne pour amener la feuille lue face au texte (dessous sur
   téléphone). Les points sont empilés dans une même case : seul le point lu est visible, il arrive du
   côté de la table. Sans script ou sous mouvement réduit, pas de scène : la table, le titre, les trois
   colonnes. */
.distinct.is-pinned { padding-block: 0; view-timeline: --distinct; }
.distinct__track { height: calc(100svh - var(--nav-h) + 300svh); }
.is-pinned .distinct__stage {
  position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); box-sizing: border-box;
  container-type: size;
  grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
  padding-block: clamp(16px, 3svh, 40px);
}
.is-pinned .rt {
  grid-column: 6 / -1; grid-row: 1 / -1; align-self: center; justify-self: center;
  /* le disque balayé par la table et les chaises fait 1,112 fois sa largeur */
  width: calc(min(56cqw, 100cqh - 2 * clamp(16px, 3svh, 40px)) / 1.112); max-width: none;
  transform-origin: 50% 48.276%;   /* le centre du plateau (490, 420 sur 980 × 870) */
  rotate: var(--turn, 0deg);
}
.is-pinned .distinct__head { grid-column: 1 / span 5; grid-row: 2; margin-top: 0; }
.is-pinned .distinct__title { font-size: clamp(40px, 5vw, 80px); }
.is-pinned .points {
  grid-column: 1 / span 5; grid-row: 3;
  display: grid; grid-template-columns: minmax(0, 1fr); width: auto;
  margin: clamp(28px, 5svh, 56px) 0 0;
}
.distinct.is-pinned .point {
  grid-area: 1 / 1;
  opacity: 0; translate: 48px 0; pointer-events: none; animation: none;
  transition: opacity .45s, translate .6s cubic-bezier(.2, .7, .2, 1);
}
.is-pinned .point.is-past { translate: -32px 0; }
.is-pinned .point.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.is-pinned .point.is-on .point__key { background: var(--red-logo); border-color: var(--red-logo); color: var(--paper); }
.is-pinned .point__name { font-size: clamp(24px, 2.3vw, 32px); }
.is-pinned .point__text { font-size: 16px; }

@media (max-width: 900px) {
  /* sur téléphone : le titre en haut, la table au milieu, le point lu dessous */
  .is-pinned .distinct__stage { grid-template-rows: auto minmax(0, 1fr) auto; }
  .is-pinned .distinct__head { grid-column: 1 / -1; grid-row: 1; }
  .is-pinned .distinct__title { font-size: clamp(32px, 9vw, 52px); }
  .is-pinned .rt { grid-column: 1 / -1; grid-row: 2; width: auto; height: min(79.8%, 79.8cqw); }
  .is-pinned .points { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
  .is-pinned .point { translate: 0 32px; }
  .is-pinned .point.is-past { translate: 0 -24px; }
  .is-pinned .point__name { font-size: 21px; }
  .is-pinned .point__text { font-size: 15px; }
}

/* ---------- Notre méthode : trois temps sur un fil, du constat à la durée ---------- */

/* script.js pose --w (avancée de l’encre sur le fil, 0 → 1) sur .steps et --d (la plume) sur chaque
   temps ; sans lui, ou sous mouvement réduit, tout est tracé. Chaque temps porte son morceau de fil,
   de son anneau jusqu’au suivant ; le dernier file jusqu’au bord : la durée. */
.method {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(56px, 6vw, 96px) var(--pad-x) clamp(40px, 4vw, 64px);   /* l’OHADA laisse déjà du blanc au-dessus */
}
.method__head { grid-column: 1 / span 7; }
.method__title {
  max-width: 12em;
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.7vw, 56px); line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance;
}
.steps {
  --ring: 11px;
  --gut: clamp(20px, 3vw, 48px);
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(48px, 5vw, 80px) 0 0; padding: 0; list-style: none;
}
.step {
  --lit: clamp(0, (var(--d) - .3) / .45, 1);
  --seg: clamp(0, (var(--w, 1) - var(--i) / 3) * 3, 1);    /* part de son morceau de fil déjà encrée */
  padding-right: var(--gut);
}
.step__art { width: min(100%, 300px); margin-bottom: clamp(20px, 2.2vw, 32px); }
.step__mark { position: relative; display: block; height: var(--ring); margin-bottom: 22px; }
.step__mark::before, .step__mark::after {
  content: ""; position: absolute; top: calc(var(--ring) / 2); left: calc(var(--ring) / 2); right: calc(-1 * var(--gut)); height: 0;
}
.step__mark::before { border-top: 1px dashed rgba(var(--navy-rgb), .45); }
.step__mark::after  { border-top: 1.5px solid var(--red-logo); margin-top: -.25px; transform-origin: left; transform: scaleX(var(--seg)); }
.step__mark b {        /* l’anneau, et le point d’encre posé quand le trait arrive */
  position: absolute; z-index: 1; left: 0; top: 0;
  width: var(--ring); height: var(--ring); box-sizing: border-box;
  border-radius: 50%; background: var(--paper); border: 1.5px solid var(--navy);
}
.step__mark b::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 3px; height: 3px; border-radius: 50%;
  background: var(--red-logo); opacity: clamp(0, (var(--w, 1) - var(--i) / 3) * 60, 1);
}
.step__num { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--red-logo); }
.step__num sup { font-size: .7em; line-height: 0; }
.step__name {
  margin: 6px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.01em;
}
.step__text {
  max-width: 22em; margin: 10px 0 0;
  font-size: 15px; line-height: 1.6;
  color: rgba(var(--navy-rgb), .7);
  text-wrap: pretty;
}
.step :is(.step__num, .step__name, .step__text) { opacity: calc(.14 + .86 * var(--lit)); translate: 0 calc((1 - var(--lit)) * 10px); }
@media (hover: hover) and (pointer: fine) {
  .step { transition: opacity .3s; }
  .step__mark b { transition: scale .4s cubic-bezier(.2, .7, .2, 1); }
  .steps:has(.step:hover) .step:not(:hover) { opacity: .5; }
  .step:hover .step__mark b { scale: 1.45; }
}

/* ---------- La fondatrice : un panneau marine, et son sceau ---------- */

/* script.js pose --d (la plume) sur la section : les anneaux du sceau se tracent, puis les
   graduations, la devise, le monogramme et le triangle rouge ; le filet rouge se tire en pied.
   Sans lui, ou sous mouvement réduit, tout est tracé. */
.founder { padding: clamp(32px, 4vw, 64px) var(--pad-x) 0; }
.founder__panel {
  --cut: 28px;
  position: relative;
  display: grid; grid-template-columns: minmax(150px, 250px) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 6vw, 96px);
  background: var(--navy); color: rgba(var(--paper-rgb), .72);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.founder__panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red-logo); transform-origin: left;
  transform: scaleX(clamp(0, (var(--d) - .3) / .6, 1));
}
.seal { display: block; width: 100%; height: auto; overflow: visible; }
.seal [pathLength] {
  fill: none; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--d) - var(--o, 0)) / .4, 1));
}
.seal .sr { stroke: rgba(var(--paper-rgb), .85); stroke-width: 1.2; }
.seal .sk { stroke: rgba(var(--paper-rgb), .55); stroke-width: .8; }
.seal .sd { fill: none; stroke: rgba(var(--paper-rgb), .35); stroke-width: .8; stroke-dasharray: 2 3; opacity: clamp(0, (var(--d) - .35) * 4, 1); }
.seal .st { stroke: var(--red-logo); stroke-width: 1.4; stroke-linejoin: round; }
.seal__text {
  font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: .14em;
  fill: rgba(var(--paper-rgb), .7);
  opacity: clamp(0, (var(--d) - .4) * 4, 1);
}
.seal__mono {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 54px; letter-spacing: .02em;
  fill: var(--paper); text-anchor: middle;
  opacity: clamp(0, (var(--d) - .5) * 4, 1);
}
.seal__turn { transform-box: view-box; transform-origin: 120px 120px; }

.founder__label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(var(--paper-rgb), .72);
}
.founder__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }
.founder__name {
  margin: 14px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.4vw, 52px); line-height: 1.06; letter-spacing: -.02em;
  color: var(--paper);
}
.founder__role {
  margin: 12px 0 0;
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal);
}
.founder__bio { max-width: 38em; margin: clamp(18px, 2vw, 26px) 0 0; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.founder__links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: clamp(22px, 2.4vw, 32px); }
.founder__link {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(var(--paper-rgb), .3);
  transition: border-color .2s;
}
.founder__link svg { transition: translate .3s cubic-bezier(.2, .7, .2, 1); }
.founder__link:hover, .founder__link:focus-visible { border-color: var(--paper); }
.founder__link:hover svg, .founder__link:focus-visible svg { translate: 3px -1px; }
.founder__link[href="#cabinet"]:hover svg, .founder__link[href="#cabinet"]:focus-visible svg { translate: 4px 0; }
.founder__link:focus-visible { outline-color: var(--paper); }
/* au survol d’un lien, la bague du sceau tourne d’un quart */
@media (prefers-reduced-motion: no-preference) {
  .seal__turn { transition: rotate 1.1s cubic-bezier(.3, .6, .2, 1); }
  .founder:has(.founder__link:is(:hover, :focus-visible)) .seal__turn { rotate: 90deg; }
}

/* ---------- Appel final : la clause, puis l’acte qu’on signe ---------- */

/* .close__art reste pour l’en-tête de contact.html (script.js n’y pose plus --d) */
.close {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  overflow-x: clip;
  padding: clamp(80px, 9vw, 140px) var(--pad-x) clamp(96px, 10vw, 160px);
}
.close__text { grid-column: 1 / span 6; position: sticky; top: calc(var(--nav-h) + 48px); }
.close__title {
  max-width: 11em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.02em;
  text-wrap: balance;
}
.close__lead {
  max-width: 28em;
  margin-top: clamp(22px, 2.2vw, 32px);
  font-size: 17px; line-height: 1.6;
  color: rgba(var(--navy-rgb), .72);
  text-wrap: pretty;
}
.close__text .btn { margin-top: clamp(28px, 3vw, 40px); }
.close__marks { margin-top: clamp(44px, 5vw, 72px); }
.close__art { grid-column: 7 / -1; }

/* L’acte devient le formulaire (celui de la page contact du site de base, mot pour mot). Sans JS ou
   sous mouvement réduit : la feuille à plat, les champs posés. Avec script.js (.is-live), la feuille part
   de la planche isométrique (rotateX 54,74°, rotateZ 45°, sans perspective : la même projection que
   les dessins), ses lignes et sa signature tracées, la plume posée dessus ; au scroll elle se redresse
   face au lecteur (--p de 0 à 1), les lignes s’effacent et les champs s’encrent un à un (--i). */
.deed { grid-column: 7 / -1; position: relative; }
.deed__sheet {
  --p: 1;
  position: relative;
  width: 100%;                           /* sinon une hauteur posée par script.js redonnerait la largeur */
  aspect-ratio: 179.6 / 252.6;           /* la page de la planche, un A4 */
  padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.2vw, 48px);
  background: var(--white);
  border: 1.5px solid var(--navy);
  transform-origin: 0 0;
  transform-style: preserve-3d;
}
/* la feuille de dessous, et l’ombre hachurée au sol : derrière la feuille en z, elles ne se voient
   qu’en perspective (et la seconde feuille dépasse un peu à plat) */
.deed__sheet::before, .deed__sheet::after {
  content: ""; position: absolute; inset: -1.5px; pointer-events: none;
}
.deed__sheet::before {
  translate: 9px 9px;
  transform: translateZ(-6px);
  background: var(--paper);
  border: 1px solid rgba(var(--navy-rgb), .55);
}
.deed__sheet::after {
  transform: translateZ(-26px);
  background: repeating-linear-gradient(-45deg, rgba(var(--navy-rgb), .3) 0 1px, transparent 1px 7px);
  opacity: calc(1 - var(--p));
}
.deed__decor, .deed__pen { display: none; }
.deed.is-live .deed__decor {
  display: block;
  position: absolute; inset: 0 0 auto; height: auto;
  opacity: calc(1 - clamp(0, (var(--p) - .2) / .35, 1));
  pointer-events: none;
}
.deed__decor .vf { stroke: var(--navy); stroke-width: .7; }
.deed__decor .vt { stroke-width: 1.1; }
.deed.is-live .deed__pen {
  display: block;
  position: absolute; left: 0; top: 0; width: 181px; height: auto;
  transform-origin: 0 0;
  pointer-events: none;
}

.deed__form, .deed__fields { display: grid; gap: clamp(18px, 1.8vw, 24px); min-width: 0; }
.deed__fields { margin: 0; padding: 0; border: 0; }
.deed__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; }
.deed .field {
  --k: clamp(0, (var(--p) - .5 - var(--i, 0) * .045) / .14, 1);
  opacity: var(--k);
  translate: 0 calc((1 - var(--k)) * 10px);
}
.deed label {
  display: block; margin-bottom: 2px;
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.35;
  color: var(--navy);
}
.deed .req { color: var(--red); font-style: normal; }
.deed :is(input:not([type="checkbox"]), select, textarea) {
  display: block; width: 100%;
  padding: 6px 0 8px;
  font: 16px/1.5 var(--sans); color: var(--navy);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(var(--navy-rgb), .4); border-radius: 0;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.deed select {
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23182640' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center / 11px no-repeat;
}
/* les lignes d’un acte à remplir */
.deed textarea {
  min-height: calc(28px * 4 + 8px); resize: vertical;
  padding: 0 0 8px; line-height: 28px;
  background: repeating-linear-gradient(transparent 0 27px, rgba(var(--navy-rgb), .14) 27px 28px);
}
.deed :is(input, select, textarea):focus-visible {
  outline: none;
  border-bottom-color: var(--red);
  box-shadow: 0 1px 0 var(--red);
}
.deed__fields:disabled :is(input, select, textarea, label) { cursor: not-allowed; }
.deed__consent { display: flex; align-items: flex-start; gap: 12px; }
.deed__consent label { margin: 0; font-family: var(--sans); font-style: normal; font-size: 14px; line-height: 1.5; }
.deed input[type="checkbox"] {
  flex: none; width: 16px; height: 16px; margin: 3px 0 0;
  border: 1.5px solid var(--navy); border-radius: 0; background: var(--white);
  appearance: none;
}
.deed input[type="checkbox"]:checked {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.deed input[type="checkbox"]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
/* la ligne de signature (la croix, puis les tirets), et le bouton au bout */
.deed__sign { display: flex; align-items: flex-end; gap: 16px; margin-top: 8px; }
.deed__line {
  flex: 1; height: 1px; margin-bottom: 14px; position: relative;
  background: repeating-linear-gradient(90deg, rgba(var(--navy-rgb), .45) 0 4px, transparent 4px 8px);
}
.deed__line::before {
  content: "×"; position: absolute; left: 0; bottom: 2px;
  font-size: 16px; line-height: 1; color: rgba(var(--navy-rgb), .6);
}
.deed__fields:disabled .btn { background: rgba(var(--navy-rgb), .38); cursor: not-allowed; }
.deed__fields:disabled .btn svg { transform: none; }
.deed__off {
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5;
  color: var(--navy);
  text-wrap: pretty;
}
.deed__off::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px;
  border-radius: 50%; background: var(--red); vertical-align: .12em;
}
.deed__off a { color: var(--red); text-underline-offset: 2px; }
/* l’envoi : le piège à robots, hors de vue ; un champ signalé ; les messages (affichés par script.js,
   ou par :target quand la fonction renvoie sans JavaScript sur #envoi-ok ou #envoi-erreur) */
.deed__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.deed [aria-invalid="true"]:not([type="checkbox"]) { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.deed input[type="checkbox"][aria-invalid="true"] { border-color: var(--red); }
.deed__status { display: contents; }
.deed__msg {
  display: none; margin: 0;
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5;
  color: var(--navy); text-wrap: pretty;
}
.deed__msg::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px;
  border-radius: 50%; background: var(--teal); vertical-align: .12em;
}
.deed__msg--err::before { background: var(--red); }
.deed__msg a { color: var(--red); text-underline-offset: 2px; }
.deed__msg.is-shown, .deed__msg:target { display: block; }
.deed__msg:focus { outline: none; }
.deed__form[aria-busy="true"] .btn { opacity: .6; cursor: progress; }
.deed .field:has([aria-invalid="true"]) label { color: var(--red); }
/* l’erreur : un encadré rouge, bien visible, qui tremble à chaque nouvel échec */
.deed__msg--err.is-shown, .deed__msg--err:target {
  display: block; position: relative;
  padding: 14px 16px 14px 48px;
  font-family: var(--sans); font-style: normal; font-size: 15px; line-height: 1.5;
  background: color-mix(in srgb, var(--red) 7%, var(--white));
  border: 1.5px solid var(--red); border-left-width: 4px;
}
.deed__msg--err::before {
  content: "!"; display: grid; place-items: center; width: 22px; height: 22px; margin: 0;
  position: absolute; left: 14px; top: 14px;
  border-radius: 50%; background: var(--red); color: var(--white);
  font: 700 14px/1 var(--sans); vertical-align: 0;
}
.deed__msg--err a { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .deed__msg--err.is-shown { animation: deed-shake .45s cubic-bezier(.36, .07, .19, .97); }
  .deed__form[aria-busy="true"] .btn svg { animation: deed-nudge .7s ease-in-out infinite; }
}
@keyframes deed-shake { 20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }
@keyframes deed-nudge { 50% { translate: 4px 0; } }

/* envoyé : les champs s’en vont, le bateau file dans l’enveloppe, puis le message et « une autre demande ».
   L’état final (enveloppe fermée, cachet posé, bateau dedans) est le style de base : c’est ce qu’on voit
   sous mouvement réduit ; les animations, sous no-preference, partent de l’état initial (fill both). */
.deed__scene, .deed__again { display: none; }
.deed.is-sent .deed__fields, .deed__form:has(#envoi-ok:target) .deed__fields { display: none; }
.deed.is-sent .deed__scene, .deed__form:has(#envoi-ok:target) .deed__scene { display: block; }
.deed.is-sent .deed__again, .deed__form:has(#envoi-ok:target) .deed__again { display: block; }
.deed.is-sent .deed__sheet, .deed__sheet:has(#envoi-ok:target) { display: grid; }
.deed.is-sent .deed__form, .deed__form:has(#envoi-ok:target) {
  align-content: center; justify-items: center; text-align: center; gap: clamp(20px, 2.4vw, 30px);
}
.deed__scene { width: min(100%, 440px); }
.sent { display: block; width: 100%; height: auto; overflow: visible; }
.sent path, .sent circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sent__sea { stroke: rgba(var(--navy-rgb), .5); stroke-width: 1.3; }
.sent__sea--2 { stroke: rgba(var(--navy-rgb), .25); }
.sent__ground { stroke: rgba(var(--navy-rgb), .35); stroke-width: 1; stroke-dasharray: 3 4; }
.sent .sent__paper { fill: var(--white); stroke: var(--navy); stroke-width: 1.6; }
.sent__fine { stroke: rgba(var(--navy-rgb), .45); stroke-width: 1; }
.sent .sent__flap { fill: var(--paper); stroke: var(--navy); stroke-width: 1.6; transform-box: view-box; transform-origin: 260px 110px; }
.sent__flap--open { scale: 1 0; }
.sent__boat { transform-box: view-box; transform-origin: 0 0; translate: 260px 198px; scale: .78; opacity: 0; }
.sent .sent__hull { fill: var(--navy); stroke: var(--navy); stroke-width: 2; }
.sent__ink { stroke: var(--navy); stroke-width: 3.4; }
.sent .sent__jib { fill: var(--paper); stroke: var(--navy); stroke-width: 2.6; }
.sent__red { stroke: var(--red-logo); stroke-width: 2.8; }
.sent .sent__wash { fill: color-mix(in srgb, var(--red-logo) 16%, var(--paper)); }
.sent__seal { transform-box: view-box; transform-origin: 260px 158px; }
.sent .sent__seal circle { fill: var(--red-logo); }
.sent__seal path { stroke: var(--paper); stroke-width: 1.8; }
.deed.is-sent .deed__msg--ok, .deed__msg--ok:target {
  max-width: 21em; margin-inline: auto;
  font-size: clamp(20px, 2vw, 27px); line-height: 1.4; text-wrap: balance;
}
.deed.is-sent .deed__msg--ok::before, .deed__msg--ok:target::before { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .deed.is-sent .sent__sea { stroke-dasharray: 1; animation: sent-draw .9s ease-out both; }
  .deed.is-sent .sent__sea--2 { animation-delay: .15s; }
  .deed.is-sent .sent__env { animation: sent-rise .5s .1s cubic-bezier(.2, .7, .3, 1) both; }
  .deed.is-sent .sent__boat { animation: sent-sail 1.8s .3s cubic-bezier(.45, .05, .35, 1) both; }
  .deed.is-sent .sent__flap--open { animation: sent-fold .22s 2.08s ease-in both; }
  .deed.is-sent .sent__flap--shut { animation: sent-unfold .28s 2.3s ease-out both; }
  .deed.is-sent .sent__seal { animation: sent-seal .42s 2.55s cubic-bezier(.3, 1.6, .5, 1) both; }
  .deed.is-sent :is(.deed__msg--ok, .deed__again) { animation: sent-text .5s 2.7s ease-out both; }
  .deed.is-sent .deed__again { animation-delay: 2.85s; }
}
@keyframes sent-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sent-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes sent-sail {
  0%   { translate: 4px 168px; rotate: -4deg; scale: 1; opacity: 0; }
  8%   { opacity: 1; }
  18%  { translate: 40px 167px; rotate: 3deg; }
  30%  { translate: 78px 169px; rotate: -3deg; }
  44%  { translate: 120px 167px; rotate: 4deg; scale: 1; }
  60%  { translate: 196px 94px; rotate: 13deg; }
  74%  { translate: 260px 66px; rotate: 0deg; scale: 1; }
  96%  { translate: 260px 198px; scale: .78; opacity: 1; }
  100% { translate: 260px 198px; rotate: 0deg; scale: .78; opacity: 0; }
}
@keyframes sent-fold { from { scale: 1 1; } to { scale: 1 0; } }
@keyframes sent-unfold { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes sent-seal { from { scale: 0; } to { scale: 1; } }
@keyframes sent-text { from { opacity: 0; translate: 0 10px; } }
/* quand on désigne « Prendre contact », la signature se retrace */
@media (prefers-reduced-motion: no-preference) {
  .close:has(.btn:is(:hover, :focus-visible)) .close__art .sig { animation: resign 1.4s cubic-bezier(.45, .1, .3, 1); }
}
@keyframes resign { from { --d: .6; } }

/* ---------- Pied de page : une bande marine, coin chanfreiné ; un filet rouge s’y tire ---------- */

.foot {
  --cut: 28px;
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(56px, 6vw, 88px) var(--pad-x) 32px;
  background: var(--navy);
  color: rgba(var(--paper-rgb), .72);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: var(--cut); height: 3px;
  background: var(--red-logo); transform-origin: left;
}
.foot a { color: rgba(var(--paper-rgb), .8); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a:focus-visible { outline-color: var(--paper); }
.foot__brand { grid-column: 1 / span 4; }
.foot__logo { display: inline-block; }
.foot__logo img { width: auto; height: 34px; }
.foot__tag { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(var(--paper-rgb), .62); }
.foot__brand + .foot__col { grid-column: 5 / span 3; }
.foot__col + .foot__col { grid-column: 10 / span 3; }
.foot .foot__col--firm { grid-column: 8 / span 2; }
.foot__head { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--paper); }
.foot ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.foot__city { display: inline-block; min-width: 4.6em; font-family: var(--serif); font-style: italic; color: rgba(var(--paper-rgb), .55); }
/* bureau : la ville, l’adresse, puis le numéro, chacun sur sa ligne */
.foot__office { display: grid; gap: 2px; }
.foot__office .foot__city { font-size: 15px; }
.foot__office a { justify-self: start; }
.foot__legal {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 22px;
  border-top: 1px solid rgba(var(--paper-rgb), .14);
  font-size: 13px; color: rgba(var(--paper-rgb), .6);
}
.foot__mentions { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__disclaimer { grid-column: 1 / -1; max-width: 760px; margin-top: 18px; font-size: 13px; line-height: 1.6; color: rgba(var(--paper-rgb), .6); }
.foot__credits { grid-column: 1 / -1; max-width: 760px; margin-top: 18px; font-size: 12px; line-height: 1.6; color: rgba(var(--paper-rgb), .42); }
.foot__credits a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- Menu replié ---------- */

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto auto; column-gap: 12px; }
  .nav__menu {
    order: 2;
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -8px;
    border: 0; background: none; cursor: pointer;
  }
  .nav__menu i, .nav__menu i::before, .nav__menu i::after {
    display: block; width: 20px; height: 1.5px; background: var(--navy); content: "";
    transition: transform .25s, opacity .25s;
  }
  .nav__menu i { position: relative; }
  .nav__menu i::before { position: absolute; top: -6px; }
  .nav__menu i::after { position: absolute; top: 6px; }
  .nav[data-open="true"] .nav__menu i { background: transparent; }
  .nav[data-open="true"] .nav__menu i::before { transform: translateY(6px) rotate(45deg); }
  .nav[data-open="true"] .nav__menu i::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--pad-x) 16px;
    background: var(--paper);
    border-bottom: 1px solid rgba(var(--navy-rgb), .1);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__links a { padding: 12px 0 12px 14px; font-size: 16px; text-align: left; }
  .nav__links a[aria-current="page"]::before { left: 0; }
  .nav[data-open="true"] .nav__links { visibility: visible; opacity: 1; transform: none; }
}

/* ---------- Écrans moyens : les bâtiments débordent un peu de chaque côté ---------- */

@media (max-width: 1180px) {
  .plate { --wf: 42cqw; }
  /* les légendes se rangent de part et d’autre de l’axe, pour rester à l’écran */
  .draw figcaption {
    width: max-content; max-width: calc(50vw - 28px);
    translate: none; white-space: normal; line-height: 1.3;
  }
  .draw--dakar   figcaption { left: auto; right: 4px; text-align: right; flex-direction: row-reverse; }
  .draw--abidjan figcaption { left: 4px; }
  .draw figcaption::before { flex: none; align-self: flex-start; margin-top: calc(.65em - 2.5px); }
}

@media (max-width: 900px) {
  /* la carte sur une colonne : la phrase, les étiquettes, puis la gravure dans l’angle bas droit */
  .bento { --nw: min(74cqw, 440px); --g: 10px; --pad: 24px; }
  .bento__card {
    min-height: 0;
    padding: var(--pad) var(--pad) calc(var(--nw) / 1.5 + var(--g) + var(--pad));
    border-radius: 18px; border-top-right-radius: 24px;
  }
  .bento__waves {
    -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .15) 30%, #000 75%);
            mask: linear-gradient(180deg, rgba(0, 0, 0, .15) 30%, #000 75%);
  }
  .house__title { max-width: none; }
  .house__title, .house__text { grid-column: 1 / -1; }
  /* les situations sur une colonne */
  /* sans plateau, les pôles deviennent un bandeau collé sous la navigation, au-dessus des situations ;
     chaque situation garde son renvoi écrit */
  .situations__head, .situations__list { grid-column: 1 / -1; }
  .situations__list { grid-row: 3; margin-top: 0; }
  .poles {
    position: sticky; top: var(--nav-h); z-index: 4;
    grid-column: 1 / -1; grid-row: 2; align-self: start;
    flex-direction: row; justify-content: space-between; gap: 4px;
    margin: clamp(24px, 5vw, 40px) calc(var(--pad-x) * -1) 0; padding: 10px var(--pad-x) 12px;
    background: var(--paper); border-bottom: 1px solid rgba(var(--navy-rgb), .14);
  }
  .pole { flex: 1 1 0; min-width: 0; }
  .pole__link { flex-direction: column; gap: 6px; text-align: center; }
  .etch--medal { width: min(13vw, 64px); }
  .pole__name { font-size: 10px; line-height: 1.15; letter-spacing: -.01em; }

  /* les offres passent en une colonne : le titre ne reste plus en place */
  .offers__head { grid-column: 1 / -1; position: static; margin-bottom: clamp(36px, 7vw, 56px); }
  .offers.is-live .offers__count { display: none; }
  .offers__list { grid-column: 1 / -1; }
  .offer__points { display: none; }   /* sur téléphone, l’article reste court : titre, ligne, planche */

  .ohada { grid-template-columns: 1fr; }
  .globe { max-width: 560px; margin-inline: auto; width: 100%; }

  .method__head, .firm__head, .net { grid-column: 1 / -1; }
  .firm__photos { grid-column: 1 / -1; width: 100%; max-width: 620px; margin: clamp(40px, 7vw, 64px) auto 0; }
  .points { grid-template-columns: minmax(0, 1fr); row-gap: 8px; max-width: 640px; }
  /* la table au-dessus, le titre dessous */
  .rt { grid-column: 1 / -1; justify-self: center; max-width: 640px; }
  .distinct__head { grid-column: 1 / -1; margin-top: clamp(16px, 4vw, 32px); }
  .net { width: 100%; max-width: 680px; margin: clamp(48px, 8vw, 72px) auto 0; }

  .close__text, .close__art, .deed { grid-column: 1 / -1; }
  .close__text { position: static; }
  .deed { width: 100%; max-width: 600px; margin: clamp(48px, 8vw, 72px) auto 0; }

  /* les repères deux par deux */
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { padding-right: 0; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--rule); }

  .founder__panel { grid-template-columns: 1fr; justify-items: start; }
  .founder__seal { width: clamp(130px, 34vw, 180px); }
  .close__art { width: 100%; max-width: 600px; margin: clamp(48px, 8vw, 72px) auto 0; }

  .foot__brand { grid-column: 1 / -1; margin-bottom: 44px; }
  .foot__brand + .foot__col { grid-column: 1 / span 5; }
  .foot__col + .foot__col { grid-column: 9 / span 4; }
  .foot .foot__col--firm { grid-column: 6 / span 3; }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .situation__q { font-size: 18px; }
  .situation__to { font-size: 14.5px; }
  .nav { grid-template-columns: 1fr auto auto; }
  .nav__logo img { height: 24px; }
  .nav__contact { display: none; }

  .title { font-size: clamp(32px, 9.4vw, 42px); }
  .title--hero { font-size: clamp(22px, 6.2vw, 26px); line-height: 1.16; }
  .hero__sub { font-size: 14.5px; }
  .lead { font-size: 14px; }
  /* le sur-titre passe sur deux lignes : le point suit le texte au lieu de rester seul à gauche */
  .hero__kicker { display: block; font-size: 13.5px; text-wrap: balance; }
  .hero__kicker::before { display: inline-block; margin-right: 8px; vertical-align: .2em; }
  .hero__actions { gap: 10px 28px; }
  /* sur téléphone, on montre le cœur de chaque gravure : les arcades à Dakar, la tour ronde à Abidjan */
  .plate { --B: 52px; --C: 60px; --wf: 48cqw; flex: none; height: calc(112px + 44vw); min-height: 0; max-height: none; }
  .scale { --y: 16px; }
  .draw figcaption { font-size: 12.5px; gap: 6px; }

  .house__marks { font-size: 14px; }

  /* la méthode à la verticale : l’anneau face au numéro, le fil descend le long du temps,
     la planche vient sous le texte */
  .steps { grid-template-columns: 1fr; }
  .step { position: relative; display: flex; flex-direction: column; padding: 0 0 48px 34px; }
  .step:last-child { padding-bottom: 8px; }
  .step__art { order: 1; width: min(100%, 260px); margin: 20px 0 0; }
  .step__mark { position: absolute; left: 0; top: 3px; bottom: 0; width: var(--ring); height: auto; margin: 0; }
  .step__mark::before, .step__mark::after { right: auto; bottom: -3px; width: 0; height: auto; }
  .step__mark::before { border-top: 0; border-left: 1px dashed rgba(var(--navy-rgb), .45); }
  .step__mark::after  { border-top: 0; border-left: 1.5px solid var(--red-logo); margin: 0 0 0 -.25px; transform-origin: top; transform: scaleY(var(--seg)); }
  .house__text { font-size: 15px; }

  .pin__label { font-size: 14px; gap: 6px; right: calc(100% + 22px); }
  .pin__label::after { width: 18px; }
  .offer { grid-template-columns: 3.6em minmax(0, 1fr); column-gap: 10px; padding-left: calc(var(--ring) + 16px); }
  .offer__num::before, .offer__num::after { left: calc(-1 * (var(--ring) + 16px)); }
  .offer__title { font-size: 23px; }
  .offer__link { margin-top: 16px; }

  /* le réseau passe à la verticale : le fil descend sous le logo, une profession par palier ;
     chaque palier porte son bout de fil (jusqu’à son anneau pour le dernier) */
  .net { --x: 24px; --top: 72px; margin-top: 48px; }   /* --top : l’anneau, à mi-hauteur de la planche */
  .net__hub { flex-direction: row; gap: 14px; padding-bottom: 22px; }
  .net__mark { width: calc(var(--x) * 2); }
  .net__hub::before, .net__hub::after { left: var(--x); height: 22px; }
  .net__hub::after { scale: 1 var(--w, 1); }
  .net__nodes { grid-template-columns: 1fr; }
  .net__nodes::before, .net__nodes::after { display: none; }
  .net__node { display: grid; grid-template-columns: minmax(0, 220px); padding: 0 0 18px calc(var(--x) * 2 + 18px); text-align: left; }
  .net__node::before, .net__node::after { top: calc(var(--top) - var(--ring) / 2); left: calc(var(--x) - var(--ring) / 2); }
  .net__drop { left: var(--x); top: 0; bottom: 0; height: auto; }
  .net__node:last-child .net__drop { bottom: auto; height: var(--top); }
  .net__drop::after { scale: 1 clamp(0, var(--d) / .15, 1); }
  .net__label { margin-top: 0; }
  .net__desc { margin-top: 4px; }

  .values { grid-template-columns: 1fr; }
  .value { padding: 28px 0 8px; }
  .value__name { font-size: 24px; }
  .value__text { margin-top: 6px; }

  .close__title { font-size: clamp(32px, 9vw, 44px); }
  .close__lead { font-size: 16px; }
  .close__art, .deed { margin-top: 40px; }
  .deed__row--select { grid-template-columns: minmax(0, 1fr); }
  .deed__sign { flex-direction: column; align-items: stretch; }
  .deed__line { flex: none; margin-bottom: 0; }
  .deed__sign .btn { align-self: flex-start; }

  .foot { --cut: 20px; }
  .foot__logo img { height: 28px; }
  .foot__brand + .foot__col, .foot__col + .foot__col, .foot .foot__col--firm { grid-column: 1 / -1; }
  .foot__col + .foot__col { margin-top: 40px; }
  .foot__legal { flex-direction: column; }
}

/* ---------- Animations liées au scroll ----------
   En CSS (hors du fil principal), là où le navigateur les connaît ; ailleurs la page reste statique.
   On n’anime que transform et opacity. */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* hero : en quittant l’écran, le titre remonte et s’efface ; la planche descend moins vite
       que la page et recule un peu (toute d’un bloc, pour que les fils restent sur les toits) */
    .hero__text {
      animation: hero-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 75svh;
    }
    .plate {
      animation: recede linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }

    /* repères des bureaux (appel final) : ils montent ; maison d’expertise : la phrase s’encre
       mot à mot (script.js découpe les mots et donne à chacun son rang --i sur --n) */
    .house__marks {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    [data-ink] { view-timeline: --statement; }   /* chaque phrase encrée a sa propre timeline */
    .ink-w {
      animation: ink linear both;
      animation-timeline: --statement;
      animation-range: cover calc(14% + var(--i) / var(--n) * 30%) cover calc(20% + var(--i) / var(--n) * 30%);
    }
    /* collé, le titre de la table s’encre sur la timeline de sa section : celle d’un élément collé
       continuerait de courir */
    .distinct.is-pinned .ink-w {
      animation-timeline: --distinct;
      animation-range: entry calc(30% + var(--i) / var(--n) * 40%) entry calc(38% + var(--i) / var(--n) * 40%);
    }
    .house__text {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 40%;
    }
    /* nos offres : le titre monte, puis chaque article à son entrée, son filet tiré de gauche à droite
       (le fil et la lecture, eux, suivent le scroll en JS) */
    .offers__head {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
    .offer {
      position: relative;
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 90%;
    }
    .offer::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
      background: var(--navy); transform-origin: left;
      animation: rule linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 50%;
    }

    /* les situations : chaque renvoi monte à son entrée, puis ses points de conduite se tirent vers le pôle */
    .situations__list > li {
      view-timeline: --row;
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry calc(10% + var(--c, 0) * 12%) entry calc(85% + var(--c, 0) * 12%);
    }
    .situation__lead {
      animation: reveal-x linear both;   /* découpé, pas étiré : les points gardent leur pas */
      animation-timeline: --row;
      animation-range: entry calc(60% + var(--c, 0) * 12%) cover calc(45% + var(--c, 0) * 8%);
    }

    /* espace OHADA : le titre et le texte */
    .ohada__title, .ohada__lead {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 35%;
    }

    /* la méthode et le cabinet : le titre et le texte (les temps, le réseau et les valeurs, eux,
       suivent le scroll en JS) */
    .method__head, .firm__head, .firm__photos, .situations__label, .situations__title {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
    /* les trois points, l’un après l’autre sous la table */
    .distinct .point {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry calc(10% + var(--i) * 8%) cover calc(30% + var(--i) * 8%);
    }

    /* appel final : la phrase s’encre (comme celle de la maison), puis le texte, le bouton et les
       repères montent ; la planche, elle, suit le scroll en JS */
    .founder__role, .founder__bio, .founder__links {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 35%;
    }

    .close__lead, .close__text .btn, .close__marks {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 40%;
    }

    /* pied de page : le filet rouge se tire de gauche à droite à l’arrivée en bas */
    .foot { view-timeline: --foot; }
    .foot::before {
      animation: draw-x linear both;
      animation-timeline: --foot;
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes hero-out   { to { translate: 0 -10svh; opacity: 0; } }
@keyframes recede     { to { translate: 0 18%; scale: .94; } }
@keyframes rise       { from { translate: 0 80px; opacity: 0; } }
@keyframes rise-small { from { translate: 0 32px; opacity: 0; } }
@keyframes rule       { from { scale: 0 1; opacity: .9; } to { scale: 1 1; opacity: 0; } }
@keyframes ink        { from { opacity: .14; } }
@keyframes ring-on    { from { opacity: 0; scale: .2; } }
@keyframes draw-y-s   { from { scale: 1 0; } }
@keyframes reveal-x   { from { clip-path: inset(0 100% 0 0); } }

/* ---------- Mouvement réduit : balance immobile, bandes fixes ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero { --s: 0 !important; }
}

/* ---------- Champs à compléter (Références, textes juridiques) ---------- */

/* à compléter avant mise en ligne : surligné en jaune, comme dans le prototype d’Esther */
.ph {
  padding: 0 3px; border-radius: 2px;
  background: rgba(255, 196, 0, .26);
  font-family: var(--sans); font-style: normal;
  color: var(--navy);
}

/* ---------- Insights : l’étagère ---------- */

/* Un panneau marine : à gauche le colophon, « Insights » en très grand et le titre du site de base ;
   à droite l’étagère. Le seul volume publié est un vrai dos de livre, les places suivantes sont
   hachurées et vides (rien n’est inventé), la dernière penchée contre le serre-livres du logo.
   library.js pose --d (0 → 1) sur .shelf : la planche se tire, les livres glissent en place un à un,
   le dernier penche, puis la fiche s’encre. Sans lui, ou sous mouvement réduit, --d vaut 1. */
.library { padding: clamp(32px, 4vw, 64px) var(--pad-x) 0; }
.library__panel {
  --cut: 28px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4.4vw, 64px) clamp(40px, 5vw, 72px);
  background: var(--navy); color: rgba(var(--paper-rgb), .72);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.library__head { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; }
.library__colophon {
  align-self: stretch;
  display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 3vw, 48px);
  margin: 0; padding-bottom: 16px;
  border-bottom: 1px solid rgba(var(--paper-rgb), .2);
}
.library__colophon dt { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--paper-rgb), .45); }
.library__colophon dd { margin: 5px 0 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--paper); }
.library__big {
  margin: clamp(32px, 5vw, 80px) 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 9vw, 148px); line-height: .84; letter-spacing: -.05em;
  color: rgba(var(--paper-rgb), .9);
}
.library__big span {
  display: block; margin-top: .06em;
  font-style: italic; letter-spacing: -.03em; color: var(--teal);
  font-variant-numeric: lining-nums;
}
.library__title {
  margin-top: clamp(28px, 3.4vw, 48px); padding-top: 18px; max-width: 13em;
  border-top: 1px solid rgba(var(--paper-rgb), .2);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.01em;
  color: var(--paper); text-wrap: balance;
}
.library__title em { color: var(--teal); }
.library__lead { max-width: 30em; margin-top: 12px; font-size: 15.5px; line-height: 1.6; }
.library__link, .shelf__read {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 6px 0;
  color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(var(--paper-rgb), .3);
}
.library__link svg, .shelf__read svg { transition: translate .3s cubic-bezier(.2, .7, .2, 1); }
.library__link:hover svg, .library__link:focus-visible svg,
.shelf__read:hover svg, .shelf__read:focus-visible svg { translate: 4px 0; }
.library a:focus-visible { outline-color: var(--paper); }

.shelf { grid-column: 7 / -1; align-self: end; container-type: inline-size; }
.shelf__rack {
  --sh: clamp(250px, 29vw, 420px);
  position: relative;
  display: flex; align-items: flex-end; gap: 1.4cqw;
  height: var(--sh); margin-bottom: 12px; padding: 0 3cqw;
}
.shelf__books {
  display: flex; align-items: flex-end; gap: 1.4cqw;
  height: 100%; margin: 0; padding: 0; list-style: none;
}
.book {
  --p: clamp(0, (var(--d) - .16 - var(--i) * .07) / .34, 1);
  flex: none; position: relative;
  width: var(--w); height: calc(var(--h) * 100%);
  /* la dernière place penche contre le serre-livres : l’écart à sa gauche est ce que la pente lui prend */
  margin-left: calc(var(--sh) * var(--h) * sin(var(--lean, 0deg) * -1));
  translate: calc((1 - var(--p)) * 64px) 0;
  rotate: calc(var(--lean, 0deg) * clamp(0, (var(--p) - .55) / .45, 1));
  transform-origin: 0 100%;
  opacity: clamp(0, var(--p) * 2, 1);
}
.book:first-child { width: min(var(--w), 112px); }
.book__spine {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; justify-items: center;
  height: 100%; padding: 30px 0 12px;
  color: var(--navy); text-decoration: none;
  /* le dos arrondi : une ombre à chaque bord, deux filets rouges en tête et en pied */
  background:
    linear-gradient(var(--red-logo), var(--red-logo)) 0 12px / 100% 3px no-repeat,
    linear-gradient(var(--red-logo), var(--red-logo)) 0 calc(100% - 46px) / 100% 1.5px no-repeat,
    linear-gradient(90deg, rgba(var(--navy-rgb), .16), transparent 22%, transparent 76%, rgba(var(--navy-rgb), .2)),
    var(--paper);
  border-radius: 4px 4px 1px 1px;
  box-shadow: 10px 0 18px -10px rgba(0, 0, 0, .5);
  transition: translate .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.book__spine:hover, .book__spine:focus-visible { translate: 0 -16px; box-shadow: 14px 10px 22px -10px rgba(0, 0, 0, .6); }
.book__spine:focus-visible { outline-offset: 3px; }
.book__vol {
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid var(--red-logo); border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--red-logo);
}
/* sideways : l’apostrophe tourne avec le reste, au lieu de rester debout comme une ponctuation verticale */
.book__title, .book__cat { writing-mode: vertical-rl; text-orientation: sideways; rotate: 180deg; }
.book__title {
  align-self: center; max-height: 100%; padding: 14px 0; overflow: hidden;
  font-family: var(--serif); font-size: clamp(14px, 2.5cqw, 18px); line-height: 1.12; letter-spacing: -.01em;
  white-space: nowrap;
}
.book__title i { display: block; font-size: .72em; color: rgba(var(--navy-rgb), .62); }
.book__cat { padding: 10px 0 12px; font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red-logo); }
.book__date { padding-top: 10px; font-size: 10px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: rgba(var(--navy-rgb), .7); }
/* les places à venir : des dos hachurés, au trait de construction */
.book--ghost {
  border: 1px dashed rgba(var(--paper-rgb), .34); border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(rgba(var(--paper-rgb), .3), rgba(var(--paper-rgb), .3)) 0 12% / 100% 1px no-repeat,
    repeating-linear-gradient(-45deg, rgba(var(--paper-rgb), .13) 0 1px, transparent 1px 6px);
}
.shelf__end { flex: none; align-self: flex-end; width: clamp(34px, 7cqw, 52px); margin-left: auto; }
.shelf__end svg { display: block; width: 100%; height: auto; overflow: visible; }
.shelf__tri {
  fill: none; stroke: var(--red-logo); stroke-width: 2; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--d) - .5) / .3, 1));
}
.shelf__tri-in { fill: rgba(var(--paper-rgb), .14); opacity: clamp(0, (var(--d) - .7) / .2, 1); }
.shelf__board {
  position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  border-top: 1.5px solid rgba(var(--paper-rgb), .85);
  background: repeating-linear-gradient(-45deg, rgba(var(--paper-rgb), .26) 0 1px, transparent 1px 4px);
  transform-origin: left; scale: clamp(0, var(--d) / .3, 1) 1;
}
.shelf__card {
  --q: clamp(0, (var(--d) - .6) / .32, 1);
  margin-top: clamp(28px, 3vw, 40px); padding-left: 3cqw;
  opacity: var(--q); translate: 0 calc((1 - var(--q)) * 16px);
}
.shelf__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(var(--paper-rgb), .5);
}
.shelf__cat { color: var(--teal); }
.shelf__name { margin: 12px 0 0; max-width: 24em; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.2; text-wrap: balance; }
.shelf__name a { color: var(--paper); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s; }
.shelf__name a:hover, .shelf:has(.book__spine:hover) .shelf__name a { background-size: 100% 1px; }
.shelf__text { max-width: 36em; margin-top: 10px; font-size: 15px; line-height: 1.6; }

/* la page Insights : l’étagère seule, sous la tête de page */
.library--page { padding-top: clamp(48px, 6vw, 96px); }

@media (max-width: 900px) {
  .library__head, .shelf { grid-column: 1 / -1; }
  .shelf { margin-top: clamp(40px, 8vw, 64px); }
  .shelf__rack { --sh: clamp(320px, 96vw, 420px); }
  .book:first-child { width: min(26cqw, 112px); }
  .library__big { font-size: clamp(64px, 19vw, 120px); }
}

/* ---------- Références : la pile de dossiers ---------- */

/* Sur le papier pointillé de la page, la pile de fiches tenue par une pince et un trombone rouge, un
   ruban adhésif, puis le titre en très grand, son mot clé entouré à la plume. Sur l’accueil,
   library.js pose --d sur .refs__panel : les feuilles tombent sur la pile une à une, la pince se
   ferme, le trombone se trace et le ruban se colle. Sur references.html, la pile se tient sous la navigation et chaque fiche se
   détache à son tour (--s). Sans JS, ou sous mouvement réduit, tout est posé. */
@property --fan { syntax: "<number>"; inherits: true; initial-value: 0; }
.refs { padding: clamp(32px, 4vw, 64px) var(--pad-x) 0; }
.refs__panel {
  --cut: 28px;
  position: relative; overflow: hidden;
  display: grid; justify-items: center;
  padding: clamp(64px, 7vw, 112px) clamp(20px, 4vw, 64px) clamp(44px, 5vw, 80px);
}
.dossiers {
  --sw: min(440px, 80vw);
  position: relative; width: var(--sw);
}
.dossiers__pile { display: grid; }
.dossier {
  /* q : la feuille est tombée sur la pile, de la dernière (dessous) à la première */
  --q: clamp(0, (var(--d) - .06 - (var(--n) - 1 - var(--i)) * .13) / .3, 1);
  grid-area: 1 / 1; z-index: calc(var(--n) - var(--i));
  padding: 30px clamp(20px, 2.4vw, 32px) 30px;
  font-size: 13px; line-height: 1.5; color: var(--navy); text-align: left;
  background: linear-gradient(225deg, transparent 16px, var(--white) 16.5px);
  filter: drop-shadow(0 1px 0 rgba(var(--navy-rgb), .08)) drop-shadow(0 12px 18px rgba(var(--navy-rgb), .13));
  translate: calc(var(--i) * var(--fan) * 26px + var(--x, 0px)) calc((1 - var(--q)) * -110px + var(--i) * var(--fan) * -8px + var(--y, 0px));
  rotate: calc(var(--r) * (1 + var(--fan) * .8) + (1 - var(--q)) * 9deg);
  opacity: clamp(0, var(--q) * 3, 1);
  transition: --fan .5s cubic-bezier(.2, .7, .2, 1);
}
.dossier:nth-child(1) { --r: -1.2deg; }
.dossier:nth-child(2) { --r: 3.2deg; --x: 10px; --y: 6px; }
.dossier:nth-child(3) { --r: -4deg; --x: -8px; --y: 10px; }
.dossier:nth-child(4) { --r: 2deg; --x: 4px; --y: 14px; }
.dossier__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--navy);
}
.dossier__num { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--red-logo); }
.dossier__title { margin: 18px 0 0; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.dossier__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0; border-block: 1px solid rgba(var(--navy-rgb), .14);
}
.dossier__facts div { padding: 10px 10px 10px 0; }
.dossier__facts div + div { padding-left: 12px; border-left: 1px solid rgba(var(--navy-rgb), .14); }
.dossier dt { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--navy-rgb), .5); }
.dossier dd { margin: 4px 0 0; }
.dossier__body { display: grid; gap: 14px; margin: 18px 0 0; }
.dossier__body dt { font-family: var(--serif); font-style: italic; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--red-logo); }
/* la pince, le trombone et le ruban */
.dossiers__clip {
  position: absolute; z-index: 9; left: 50%; top: -52px; width: 112px; margin-left: -56px; overflow: visible;
  --c: clamp(0, (var(--d) - .5) / .18, 1);
  translate: 0 calc((1 - var(--c)) * -34px); opacity: var(--c);
}
.clip__body { fill: var(--navy); }
.clip__shine { fill: none; stroke: rgba(var(--paper-rgb), .45); stroke-width: 1.5; }
.clip__wire {
  fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--d) - .6) / .2, 1));
}
.clip__wire--in { stroke-width: 2.4; }
.dossiers__pclip {
  position: absolute; z-index: 9; left: 22px; top: -44px; width: 22px; overflow: visible; rotate: -6deg;
}
.dossiers__pclip path {
  fill: none; stroke: var(--red-logo); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--d) - .66) / .2, 1));
}
.dossiers__tape {
  position: absolute; z-index: 9; right: -38px; top: 64%;
  padding: 9px 26px 10px;
  font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--navy);
  background: rgba(255, 238, 186, .82);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
  rotate: 7deg; transform-origin: right;
  scale: clamp(0, (var(--d) - .78) / .16, 1) 1;
}
.refs__float { position: absolute; overflow: visible; opacity: clamp(0, (var(--d) - .4) / .3, 1); }
.refs__float path { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--d) - .4) / .4, 1)); }
.refs__float--folder { left: 9%; top: 22%; width: 64px; rotate: -12deg; }
.refs__float--mark { right: 11%; top: 16%; width: 26px; rotate: 14deg; }
.refs__float--mark path { fill: var(--red-logo); stroke: none; }
.refs__text { position: relative; z-index: 12; display: grid; justify-items: center; text-align: center; }
.refs__label {
  display: flex; align-items: center; gap: 8px; margin-top: clamp(36px, 4vw, 56px);
  font-family: var(--serif); font-style: italic; font-size: 15px;
}
.refs__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }
.refs__title, .page-head__title--refs {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; text-wrap: balance;
}
/* 6.6vw : en Libre Baskerville, plus large, « gouvernance, conformité. » tient encore sur une ligne */
.refs__title { max-width: 13em; margin: 16px 0 clamp(28px, 3vw, 40px); font-size: clamp(40px, 6.6vw, 104px); line-height: 1; }
/* « gouvernance » est entouré à la plume (.mark) ; la virgule reste avec lui */
.refs__nw { white-space: nowrap; }
.refs .btn { justify-self: center; }

@media (hover: hover) and (pointer: fine) {
  .dossiers:not(.dossiers--list):hover .dossier { --fan: 1; }
}
@media (max-width: 760px) {
  .refs__float { display: none; }
  /* le ruban passe sur le coin, où il ne cache aucun champ */
  .dossiers__tape { top: auto; bottom: -14px; right: -6px; padding: 7px 18px 8px; font-size: 13px; rotate: -4deg; }
  .dossiers__pclip { left: 14px; top: -46px; }
  /* l’étagère d’un téléphone : deux places à venir de moins, la rubrique reste sur la fiche */
  .book--ghost:nth-child(4), .book--ghost:nth-child(5) { display: none; }
  .book__cat { display: none; }
  .dossier { padding: 24px 18px 22px; font-size: 12px; }
  .dossier__title { margin-top: 14px; font-size: 18px; }
  .dossier__facts { margin-top: 14px; }
  .dossier__facts div + div { padding-left: 8px; }
  .dossier__body { gap: 10px; margin-top: 14px; }
}

/* ---------- Le Gouvernail : « le sillage ». Sur le papier, sans encart : la roue (une planche à la plume,
   tracée par --d) tient le cap au-dessus des vagues ; un petit bateau va de rubrique en rubrique, puis
   devient le bouton. script.js fixe --d, --turn (l’angle de la roue), --drift (les vagues), la place du
   bateau et les états. Sans JS ou sous « mouvement réduit » : pas d’épingle, pas de bateau, tout à l’encre. ---------- */
.letter { position: relative; --d: 1; --pin: 1; --run: 190svh; --face: var(--paper); }
.letter__stage {
  position: relative; container-type: inline-size; overflow: clip;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto;
  column-gap: clamp(16px, 2vw, 32px); align-items: center;
  padding: clamp(48px, 6vw, 90px) var(--pad-x) clamp(28px, 4vw, 56px);
}
.letter.is-pinned .letter__track { height: calc(100svh - var(--nav-h) + var(--run)); }
.letter.is-pinned .letter__stage {
  position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); container-type: size;
  padding-block: clamp(12px, 2.2svh, 26px);
}

/* la roue */
.letter__helm { grid-column: 1 / span 5; grid-row: 1; position: relative; z-index: 1; width: min(100%, 64cqh, 560px); justify-self: center; }
.helm .vl { stroke-width: 1.6; }
.helm .vf { stroke-width: .95; }
.helm .vt { stroke-width: 1.9; }
.helm .vt-in { stroke-width: 1.1; }
.helm .vp { fill: var(--face, var(--paper)); }
.helm .vtf { opacity: calc(clamp(0, (var(--d) - .6) * 4, 1) * .2); }
.helm__turn { transform-box: view-box; transform-origin: 0 0; rotate: var(--turn, 0deg); }
.helm__pin { fill: var(--navy); opacity: clamp(0, (var(--d) - .8) * 5, 1); }

/* le texte */
/* (en haut de sa rangée, pas centré : sous lui, les voiles du bateau-bouton et la phrase d’appel ont besoin de place) */
.letter__head { grid-column: 7 / -1; grid-row: 1; align-self: start; margin-top: clamp(0px, (100cqh - 640px) * .4, 70px); position: relative; z-index: 2; }
.letter__label { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-style: italic; font-size: 15px; }
.letter__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }
.letter__title {
  margin: 14px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em;
}
.letter__sub {
  display: block; margin-top: 14px; max-width: 16em;
  font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; letter-spacing: 0; color: var(--red-logo);
}
.letter__text { margin: 18px 0 0; max-width: 34em; font-size: 16px; line-height: 1.65; color: rgba(var(--navy-rgb), .78); text-wrap: pretty; }

/* les trois rubriques, sur l’eau : chacune a son repère, où le bateau fait escale */
.letter__list {
  grid-column: 1 / span 9; grid-row: 2; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: 0; padding: 10px 0 clamp(50px, 9cqh, 90px) clamp(0px, 3cqw, 40px); list-style: none;
}
.letter__item { display: flex; flex-direction: column; gap: 12px; max-width: 13em; font-family: var(--serif); font-size: 17px; line-height: 1.35; }
.letter__ring {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--navy); background: var(--paper); transition: border-color .3s;
}
.letter__ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--red-logo); scale: 0; transition: scale .3s; }

/* l’inscription */
.letter__join {
  grid-column: 10 / -1; grid-row: 2; align-self: start; position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; justify-content: start; align-items: center; gap: 10px 18px;
  container-type: inline-size;
}
.letter__join > * { --sw: min(100cqw, 264px); }      /* la largeur du bateau-bouton */
/* la phrase d’appel se pose au-dessus du bouton, hors flux : le bouton tombe ainsi sur la ligne des repères,
   il est la quatrième escale du bateau */
.letter__cta { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--sw) * .5464 - 21px + 14px); margin: 0; font-weight: 500; font-size: 15px; }
/* le bouton est un bateau : la coque porte « S’abonner », le mât et les voiles reprennent le petit bateau.
   Sa coque est centrée sur la ligne des repères (82,6 % de sa hauteur, d’où la marge négative). */
.letter__btn {
  display: block; position: relative; justify-self: start; width: var(--sw); aspect-ratio: 260 / 172;
  margin: calc(21px - var(--sw) * .5464) 0 0; padding: 0; border: 0; background: none;
  color: var(--paper); font: inherit; cursor: pointer; transform-origin: 47% 90%;
}
.letter__btn:disabled { cursor: not-allowed; }
.ship__in { display: block; position: absolute; inset: 0; transform-origin: 47% 96%; }
.ship__rig { display: block; width: 100%; height: 100%; overflow: visible; }
.ship__rig path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ship__rig .ship__hull { fill: var(--navy); stroke: var(--navy); stroke-width: 2; }
.ship__rig .ship__line { stroke: var(--paper); stroke-width: 1.2; opacity: .5; }
.ship__rig .ship__ink { stroke: var(--navy); stroke-width: 2.6; }
.ship__rig .ship__paper { fill: var(--paper); stroke: var(--navy); stroke-width: 1.8; }
.ship__rig .ship__fine { stroke: rgba(var(--navy-rgb), .5); stroke-width: 1; }
.ship__rig .ship__red { stroke: var(--red-logo); stroke-width: 2; }
.ship__rig .ship__wash { fill: color-mix(in srgb, var(--red-logo) 16%, var(--paper)); }      /* opaque : les vagues ne passent pas au travers */
.ship__label {
  position: absolute; left: 0; right: 8%; top: 66.3%; bottom: 3%; display: grid; place-items: center;
  font-weight: 600; font-size: clamp(17px, var(--sw) * .082, 22px); letter-spacing: .01em;
}
@media (prefers-reduced-motion: no-preference) {
  .ship__in { animation: ship-bob 4.6s ease-in-out infinite; }
}
@keyframes ship-bob { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.4deg; translate: 0 -2px; } }
.letter__terms { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(var(--navy-rgb), .62); }
.letter__off { margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; }
.letter__off::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px;
  border-radius: 50%; background: var(--red); vertical-align: .12em;
}

/* les vagues : les courbes de la carte « Ce que nous faisons », tracées à la plume ; une seule en rouge */
.letter__waves {
  position: absolute; left: 0; bottom: 0; z-index: 0; width: calc(100% + 90px); height: 48%;
  translate: var(--drift, 0px) 0;
  mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 78%, transparent);
}
.letter__waves path {
  fill: none; stroke: rgba(var(--navy-rgb), .2); stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--d) - var(--i) * .03) / .5, 1));
}
.letter__waves path:nth-child(9) { stroke: rgba(199, 44, 53, .55); }

/* le bateau et son sillage (trois traits superposés, de plus en plus courts : le sillage s’estompe) */
.letter__course { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.letter__wake { fill: none; stroke: var(--red-logo); stroke-width: 1.6; stroke-linecap: round; opacity: .2; transition: opacity .35s; }
.letter__boat {
  --bs: 50px;
  position: absolute; left: 0; top: 0; z-index: 3; width: var(--bs); pointer-events: none;
  translate: calc(var(--x, -200px) - 50%) calc(var(--y, 0px) - 84.6%);
  opacity: var(--show, 0); transition: opacity .3s;
}
.letter__boat-in { transform-origin: 50% 84.6%; rotate: var(--tilt, 0deg); scale: var(--flip, 1) 1; transition: scale .4s cubic-bezier(.3, 1.3, .5, 1); }
.letter__boat svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 84.6%; animation: boat-bob 3.2s ease-in-out infinite; }
.letter__boat path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.letter__boat .boat__paper { fill: var(--paper); stroke: var(--navy); stroke-width: 1.5; }
.letter__boat .boat__ink { stroke: var(--navy); stroke-width: 1.5; }
.letter__boat .boat__fine { stroke: var(--ink); stroke-width: .8; }
.letter__boat .boat__red { stroke: var(--red-logo); stroke-width: 1.5; }
.letter__boat .boat__wash { fill: var(--red-logo); opacity: .22; }
@keyframes boat-bob { 50% { translate: 0 -1.5px; rotate: 3deg; } }
.letter:not(.is-live) :is(.letter__course, .letter__boat) { display: none; }

/* états pilotés par le défilement */
.letter.is-live .letter__item { opacity: .3; transition: opacity .4s; }
.letter.is-live .letter__item.is-past { opacity: 1; }
.letter.is-live .letter__item.is-past .letter__ring { border-color: var(--red-logo); }
.letter.is-live .letter__item.is-past .letter__ring::after { scale: 1; }
.letter.is-live :is(.letter__cta, .letter__terms, .letter__off) { opacity: .35; transition: opacity .5s; }
.letter.is-live.is-aimed :is(.letter__cta, .letter__terms, .letter__off) { opacity: 1; }
/* à l’arrivée, le petit bateau grandit et s’efface : le bateau-bouton, parti de sa taille, prend sa place */
.letter.is-live .letter__btn { opacity: 0; scale: .2; transition: opacity .25s, scale .7s cubic-bezier(.3, 1.45, .5, 1); }
.letter.is-live.is-aimed .letter__btn { opacity: 1; scale: 1; }
.letter.is-live.is-aimed .letter__boat { opacity: 0; }
.letter.is-live.is-aimed .letter__boat-in { scale: calc(var(--flip, 1) * 1.5) 1.5; }
.letter.is-live.is-aimed .letter__wake { opacity: 0; }

@media (max-width: 900px) {
  .letter { --pin: 0; }
  .letter__stage { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 56px 20px 48px; }
  .letter__helm { width: min(70cqw, 300px); align-self: flex-start; margin-left: -6cqw; }
  .letter__text { font-size: 15px; }
  .letter__list { display: flex; flex-direction: column; gap: 34px; padding: 34px 0 0; }
  .letter__item { flex-direction: row; align-items: center; max-width: none; font-size: 16px; }
  /* l’inscription s’aligne sur les textes des rubriques : la marge des repères reste libre pour le bateau */
  .letter__head { align-self: auto; margin-top: 0; }
  .letter__join { align-self: stretch; margin-top: 30px; padding-left: 34px; }
  .letter__cta { position: static; }
  .letter__btn { margin-top: 6px; }
  /* les vagues gardent leur échelle d’ordinateur (sinon, comprimées sur 390 px, elles deviennent des dents de scie) */
  .letter__waves { width: 1500px; height: 430px; }
  .letter__boat { --bs: 36px; }
}
@media (max-height: 640px) {
  .letter { --pin: 0; }
}
