/* NILAURA Advisory — sous-pages
   Chargée après styles.css : même papier pointillé, mêmes traits, même fil d’encre.
   Les textes juridiques : une tête de page, puis un sommaire collé à gauche (le fil des pôles :
   tirets marine, l’encre rouge descend jusqu’à l’article lu) et le texte à droite.
   Les pages des pôles : la tête et sa planche, les sections en articles, les formules en fiches.
   Le cabinet, les Insights et leur article, le contact : les mêmes pièces, et celles de l’accueil. */

/* ---------- Tête de page ---------- */

.page-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(32px, 5vw, 80px) var(--pad-x) clamp(44px, 5vw, 80px);
  border-bottom: 1px solid rgba(var(--navy-rgb), .14);
}
.crumbs { grid-column: 1 / -1; margin-bottom: clamp(32px, 4.4vw, 64px); }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  margin: 0; padding: 0; list-style: none;
  font-size: 13px; color: rgba(var(--navy-rgb), .6);
}
.crumbs li + li::before { content: "·"; margin-right: 10px; }
.crumbs a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--navy); }
.page-head__label {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 15px;
}
.page-head__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }
.page-head__title {
  grid-column: 1 / span 9;
  margin-top: 18px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -.02em;
  text-wrap: balance;
}
.page-head__lead {
  grid-column: 1 / span 6;
  max-width: 34em; margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55;
  color: rgba(var(--navy-rgb), .78);
}

/* ---------- Texte juridique : sommaire et articles ---------- */

.legal-page {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  padding: clamp(48px, 6vw, 96px) var(--pad-x) clamp(80px, 9vw, 140px);
}

/* le sommaire : collé à gauche en grand écran (son résumé n’est qu’un intitulé), replié sur téléphone */
.toc {
  grid-column: 1 / span 4;
  position: sticky; top: 32px;
  max-height: calc(100svh - 64px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(var(--navy-rgb), .2) transparent;
  padding-right: 8px;
}
.toc__label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  font-family: var(--serif); font-style: italic; font-size: 15px;
  list-style: none; cursor: default;
}
.toc__label::-webkit-details-marker { display: none; }
.toc__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }

/* le fil : tirets d’un bout à l’autre ; l’encre rouge le recouvre jusqu’à --p (posé par page.js) */
.toc__list {
  --ring: 9px;
  --line: 20px;
  position: relative;
  margin: 0; padding: 0 0 0 calc(var(--ring) + 16px); list-style: none;
  font-size: 14px; line-height: var(--line);
}
.toc__list::before, .toc__list::after {
  content: ""; position: absolute; top: calc(var(--line) / 2); bottom: 0; left: calc(var(--ring) / 2); width: 0;
}
.toc__list::before { border-left: 1px dashed rgba(var(--navy-rgb), .4); }
.toc__list::after {
  border-left: 1.5px solid var(--red-logo); margin-left: -.25px;
  transform-origin: top; transform: scaleY(var(--p, 1));
  transition: transform .45s cubic-bezier(.3, .6, .3, 1);
}
.toc__item + .toc__item { margin-top: 10px; }
.toc__group {
  margin: 26px 0 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(var(--navy-rgb), .55);
}
.toc__group:first-child { margin-top: 0; }
.toc__item a {
  position: relative; display: block;
  color: rgba(var(--navy-rgb), .82); text-decoration: none;
  transition: color .25s, opacity .25s;
}
.toc__num { font-family: var(--serif); font-style: italic; color: var(--red-logo); }
/* l’anneau sur le fil, à hauteur de la première ligne, et son point d’encre */
.toc__item a::before, .toc__item a::after {
  content: ""; position: absolute; border-radius: 50%;
  left: calc(-1 * (var(--ring) + 16px)); top: calc(var(--line) / 2 - var(--ring) / 2);
}
.toc__item a::before {
  width: var(--ring); height: var(--ring);
  background: var(--paper); border: 1.5px solid var(--navy);
  transition: border-color .25s, scale .25s;
}
.toc__item a::after {
  width: 3px; height: 3px; margin: calc(var(--ring) / 2 - 1.5px);
  background: var(--red-logo);
  transition: opacity .25s;
}
.toc__item a:hover { color: var(--blue); }
/* lecture suivie : l’article lu est à l’encre pleine, anneau rouge ; les autres pâlissent
   (en grand écran seulement : replié sur téléphone, le sommaire n’est qu’une table) */
@media (min-width: 901px) {
.toc.is-live .toc__item a { opacity: .58; }
.toc.is-live .toc__item a::after { opacity: 0; }
.toc.is-live .toc__item.is-reached a::after { opacity: 1; }
.toc.is-live .toc__item.is-on a { opacity: 1; color: var(--navy); }
.toc.is-live .toc__item.is-on a::before { border-color: var(--red-logo); scale: 1.15; }
.toc.is-live .toc__item a:hover { opacity: 1; }
}

.legal {
  grid-column: 6 / -1;
  max-width: 46em;
  font-size: 16px; line-height: 1.7;
  color: rgba(var(--navy-rgb), .86);
}
.legal p { margin: 0 0 14px; }
.legal strong { font-weight: 600; color: var(--navy); }

/* le fondement : un encart blanc, coin chanfreiné */
.legal__intro {
  margin-bottom: clamp(48px, 5vw, 72px);
  padding: 22px 26px 22px 28px;
  background: var(--white);
  box-shadow: inset 2px 0 var(--navy);
  font-size: 15px; line-height: 1.65;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.legal__intro p:last-child { margin-bottom: 0; }

/* chaque article : un filet, son numéro en rouge italique, son titre */
.legal__art {
  position: relative;
  margin: clamp(56px, 6vw, 84px) 0 18px; padding-top: 24px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px); line-height: 1.16; letter-spacing: -.01em;
  color: var(--navy);
  text-wrap: balance;
  scroll-margin-top: 32px;
}
.legal__art::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(var(--navy-rgb), .18); transform-origin: left;
}
.art__num {
  display: block; margin-bottom: 8px;
  font-style: italic; font-size: 15px; letter-spacing: 0;
  color: var(--red-logo);
}
.legal__intro + .legal__art, .legal__part + .legal__art { margin-top: 0; }
/* les titres des conditions d’utilisation (Titre I., II.…) : un intitulé sur deux filets */
.legal__part {
  margin: clamp(80px, 8vw, 120px) 0 clamp(28px, 3vw, 40px); padding: 14px 0;
  border-block: 1.5px solid var(--navy);
  font-family: var(--sans); font-weight: 600;
  font-size: 12.5px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy);
  scroll-margin-top: 32px;
}
.legal__intro + .legal__part { margin-top: 0; }
.legal h3 {
  margin: 30px 0 8px;
  font-size: 16px; font-weight: 600; line-height: 1.4;
  color: var(--navy);
}

/* listes : un tiret rouge ; listes numérotées : chiffres italiques rouges */
.legal ul { margin: 0 0 16px; padding: 0; list-style: none; }
.legal ul li { position: relative; padding-left: 24px; }
.legal ul li::before {
  content: ""; position: absolute; left: 2px; top: .82em;
  width: 10px; height: 1.5px; background: var(--red-logo);
}
.legal ol { margin: 0 0 16px; padding-left: 1.6em; }
.legal ol li::marker { font-family: var(--serif); font-style: italic; color: var(--red-logo); }
.legal li + li { margin-top: 6px; }

/* tableaux : un registre, filet marine en tête, rubriques en italique */
.table-wrap {
  margin: 18px 0 26px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-top: 1.5px solid var(--navy);
}
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.legal table.is-wide { min-width: 680px; }
.legal th {
  padding: 12px 18px 10px 0;
  border-bottom: 1px solid rgba(var(--navy-rgb), .3);
  text-align: left; vertical-align: bottom;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy);
}
.legal td {
  padding: 12px 18px 12px 0;
  border-bottom: 1px solid rgba(var(--navy-rgb), .12);
  vertical-align: top;
}
.legal td:first-child { font-family: var(--serif); font-style: italic; color: var(--navy); }
.legal th:last-child, .legal td:last-child { padding-right: 0; }

/* .ph (à compléter avant mise en ligne) est dans styles.css, l’accueil s’en sert aussi */

.legal__date {
  margin-top: clamp(56px, 6vw, 80px) !important; padding-top: 18px;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: rgba(var(--navy-rgb), .62);
}

/* ---------- Mouvement : la tête monte, chaque filet d’article se tire de la gauche ---------- */

@media (prefers-reduced-motion: no-preference) {
  .page-head > * { animation: page-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .page-head__label { animation-delay: .08s; }
  .page-head__title { animation-delay: .16s; }
  .page-head__lead { animation-delay: .28s; }
  .legal-page { animation: page-rise .9s cubic-bezier(.2, .7, .2, 1) .4s both; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .legal__art::before {
      animation: draw-rule linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
  }
}
@keyframes page-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes draw-rule { from { scale: 0 1; } }

/* ---------- Téléphone et tablette ---------- */

@media (max-width: 900px) {
  .page-head__title { grid-column: 1 / -1; }
  .page-head__lead { grid-column: 1 / -1; }
  .toc {
    grid-column: 1 / -1;
    position: static; max-height: none; overflow: visible; padding-right: 0;
    border-block: 1px solid rgba(var(--navy-rgb), .14);
  }
  .toc__label {
    justify-content: flex-start; margin: 0; padding: 16px 0;
    cursor: pointer;
  }
  .toc__label::after {
    content: ""; width: 7px; height: 7px; margin-left: auto;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    rotate: 45deg; translate: 0 -2px;
    transition: rotate .25s;
  }
  .toc[open] .toc__label::after { rotate: 225deg; translate: 0 2px; }
  .toc__list { padding-bottom: 22px; }
  .legal { grid-column: 1 / -1; margin-top: clamp(40px, 8vw, 56px); }
}
@media (max-width: 760px) {
  .legal { font-size: 15.5px; }
  .legal__intro { padding: 18px 20px 18px 22px; }
}

/* ---------- Pages des pôles ---------- */

/* la tête : le titre à gauche, la planche du pôle à droite (celle de l’accueil), tracée au chargement */
.page-head--pole { row-gap: 0; align-items: start; }
.page-head--pole .page-head__label { grid-column: 1 / span 7; }
.page-head--pole .page-head__title { grid-column: 1 / span 7; font-size: clamp(40px, 4.8vw, 76px); }
.page-head__title em { font-style: italic; color: var(--red-logo); }
.page-head__actions {
  grid-column: 1 / span 7;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  margin-top: clamp(28px, 3vw, 40px);
}
.page-head__actions .firm__link { margin-top: 0; }
.page-head__art { grid-column: 8 / -1; grid-row: 2 / span 4; align-self: center; width: min(100%, 520px); justify-self: end; }
/* la couverture : le numéro du pôle en très grand, au trait, derrière la planche (qui grandit) */
.page-head--pole .page-head__art { position: relative; z-index: 1; width: min(100%, 600px); }
.page-head__num {
  grid-column: 8 / -1; grid-row: 2 / span 4; justify-self: end; align-self: start;
  display: flex; align-items: flex-start; gap: 10px;
  margin: clamp(-48px, -3vw, -16px) 0 0;
  font-family: var(--serif); font-weight: 400; line-height: .78; letter-spacing: -.04em;
  pointer-events: none; user-select: none;
}
.page-head__num span {
  font-size: clamp(150px, 21vw, 340px); font-variant-numeric: lining-nums;
  color: transparent; -webkit-text-stroke: 1.2px rgba(var(--navy-rgb), .3);
}
.page-head__num small {
  padding-top: .5em;
  font-style: italic; font-size: clamp(15px, 1.3vw, 19px); letter-spacing: 0; color: var(--red-logo);
}

/* l’enjeu : la phrase en grand, son explication en dessous à droite */
.pole-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(80px, 9vw, 140px) var(--pad-x) clamp(40px, 5vw, 72px);
}
.pole-intro__quote {
  grid-column: 1 / span 10; max-width: 22em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -.02em;
  text-wrap: pretty;
}
.pole-intro__text {
  grid-column: 7 / -1; max-width: 34em;
  margin-top: clamp(24px, 3vw, 44px);
  font-size: 17px; line-height: 1.65; color: rgba(var(--navy-rgb), .74);
  text-wrap: pretty;
}

/* les sections du pôle : des articles, le numéro et le titre à gauche, le texte à droite */
.pole-arts { padding: clamp(24px, 3vw, 48px) var(--pad-x) clamp(80px, 9vw, 140px); }
.pole-art {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(32px, 3.4vw, 52px) 0;
  scroll-margin-top: 24px;
}
.pole-art::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(var(--navy-rgb), .2); transform-origin: left;
}
.pole-art__head { grid-column: 1 / span 5; }
.pole-art__num { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--red-logo); }
.pole-art__title {
  margin-top: 10px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.015em;
  text-wrap: balance;
}
.pole-art__body { grid-column: 7 / -1; max-width: 36em; font-size: 16px; line-height: 1.65; color: rgba(var(--navy-rgb), .82); }
.pole-art__body > p { margin: 0 0 18px; text-wrap: pretty; }
.pole-art__body strong { font-weight: 600; color: var(--navy); }

/* listes : un alinéa par ligne, un tiret rouge, un filet entre chacun */
.pole-list { margin: 0; padding: 0; list-style: none; }
.pole-list li {
  position: relative; padding: 11px 0 11px 26px;
  border-top: 1px solid rgba(var(--navy-rgb), .1);
}
.pole-list li:last-child { border-bottom: 1px solid rgba(var(--navy-rgb), .1); }
.pole-list li::before {
  content: ""; position: absolute; left: 2px; top: calc(11px + .82em);
  width: 11px; height: 1.5px; background: var(--red-logo);
}

/* le corps du pôle : le sommaire devenu fil de lecture, collé à gauche (celui des textes juridiques),
   le texte à droite ; sous 1180 px, le sommaire se replie au-dessus du texte */
.pole-body {
  display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px);
  align-items: start;
  padding: clamp(48px, 6vw, 96px) var(--pad-x) 0;
}
.toc--pole { grid-column: 1; }
.toc--pole .toc__list { font-size: 15px; }
.toc--pole .toc__item + .toc__item { margin-top: 16px; }
.toc--pole .toc__num { margin-right: .15em; }
.toc__desc {
  display: block; margin-top: 4px;
  font-size: 13px; line-height: 1.45; color: rgba(var(--navy-rgb), .62);
  text-wrap: pretty;
}
.pole-main { grid-column: 2; min-width: 0; }
.pole-main > :is(.pole-intro, .pole-arts) { padding-inline: 0; }
.pole-main > .pole-intro { padding-top: 0; }
.pole-main > .pole-intro .pole-intro__quote { grid-column: 1 / -1; }
.pole-main > .pole-intro .pole-intro__text { grid-column: 6 / -1; }

/* les sections en accordéon : une ligne par section (numéro, titre, bouton), une seule ouverte à la fois */
.pole-arts:has(.pole-art__fold) { --numw: 165px; border-bottom: 1px solid rgba(var(--navy-rgb), .2); padding-bottom: 0; }
.pole-art:has(> .pole-art__fold) { display: block; padding: 0; }
.pole-art__fold > .pole-art__head {
  display: grid; grid-template-columns: var(--numw) minmax(0, 1fr) 44px; align-items: center; column-gap: 24px;
  padding: clamp(22px, 2.4vw, 34px) 0;
  font-size: 15px; list-style: none; cursor: pointer;
}
.pole-art__fold > .pole-art__head::-webkit-details-marker { display: none; }
.pole-art__fold .pole-art__title { margin: 0; font-size: clamp(24px, 2.3vw, 36px); transition: translate .45s cubic-bezier(.2, .7, .2, 1), color .3s; }
.pole-art__icon {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(var(--navy-rgb), .3);
  transition: background-color .3s, border-color .3s, rotate .45s cubic-bezier(.3, .6, .2, 1);
}
.pole-art__icon::before, .pole-art__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: var(--navy); transition: background-color .3s, rotate .45s cubic-bezier(.3, .6, .2, 1);
}
.pole-art__icon::after { rotate: 90deg; }
.pole-art__fold[open] .pole-art__icon { background: var(--navy); border-color: var(--navy); }
.pole-art__fold[open] .pole-art__icon::before { background: var(--paper); }
.pole-art__fold[open] .pole-art__icon::after { background: var(--paper); rotate: 0deg; }
.pole-art__fold > .pole-art__head:hover .pole-art__title { translate: 6px 0; }
.pole-art__fold > .pole-art__head:hover .pole-art__icon { border-color: var(--red-logo); }
.pole-art__fold > .pole-art__head:focus-visible { outline: 2px solid var(--red-logo); outline-offset: 4px; }
.pole-art__fold > .pole-art__body {
  display: block; max-width: calc(var(--numw) + 24px + 40em);
  padding: 0 68px clamp(32px, 3.4vw, 52px) calc(var(--numw) + 24px);
  font-size: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .pole-art__fold { interpolate-size: allow-keywords; }
    .pole-art__fold::details-content {
      block-size: 0; overflow: clip;
      transition: block-size .55s cubic-bezier(.3, .6, .2, 1), content-visibility .55s allow-discrete;
    }
    .pole-art__fold[open]::details-content { block-size: auto; }
    .pole-art__fold > .pole-art__body { opacity: 0; translate: 0 10px; transition: opacity .4s .1s, translate .55s cubic-bezier(.2, .7, .2, 1) .05s; }
    .pole-art__fold[open] > .pole-art__body { opacity: 1; translate: 0 0; }
  }
}

/* les formules : un tableau comparatif, une colonne par formule (une fiche blanche, la signature en marine),
   une rangée par rubrique, son intitulé debout dans la marge ; sur tablette et téléphone, des onglets
   (page.js) n’en montrent qu’une à la fois */
.compare { overflow-x: auto; scrollbar-width: thin; }
.compare__table {
  width: 100%; table-layout: fixed;
  border-collapse: separate; border-spacing: 10px 0; margin-inline: -10px; width: calc(100% + 20px);
  font-size: 15px; line-height: 1.55; color: rgba(var(--navy-rgb), .82);
}
.compare__corner, .compare__rub { width: 34px; }
.compare__table .compare__corner { padding: 0; background: none; box-shadow: none; border: 0; }
.compare__table thead th {
  --cut: 22px;
  padding: clamp(22px, 2.2vw, 32px) clamp(18px, 1.8vw, 26px) 24px;
  background: var(--white); box-shadow: inset 0 3px var(--navy);
  text-align: left; vertical-align: top; font-weight: 400;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.compare__table thead .formula__name { font-size: clamp(22px, 1.9vw, 30px); }
.compare__table thead .formula__pitch { font-size: 16px; }
.compare__table td {
  padding: 18px clamp(18px, 1.8vw, 26px) 22px;
  background: var(--white); vertical-align: top;
  border-top: 1px solid rgba(var(--navy-rgb), .12);
}
.compare__table tbody tr:last-child td { padding-bottom: clamp(26px, 2.6vw, 36px); }
.compare__table td p { margin: 0; }
.compare__rub { position: relative; padding: 18px 0; vertical-align: top; text-align: center; }
.compare__rub span {
  display: inline-block;
  writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(var(--navy-rgb), .55);
}
.compare__rub::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(var(--navy-rgb), .2); }
.compare__table tbody tr:first-child .compare__rub::before { background: var(--navy); }
/* la mission signature : la colonne marine */
.compare__table .is-sign { background: var(--navy); color: rgba(var(--paper-rgb), .78); border-color: rgba(var(--paper-rgb), .16); }
.compare__table thead .is-sign { box-shadow: inset 0 3px var(--red-logo); }
.compare__table .is-sign :is(.formula__name, .formula__pitch) { color: var(--paper); }
.compare__table .is-sign .formula__tag { color: var(--teal); }
.compare__table .is-sign .formula__checks li::before { border-color: var(--teal); }
/* survol : la colonne pointée reste à l’encre pleine, les autres pâlissent */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .compare__table :is(th, td)[data-c] { transition: opacity .3s; }
  .compare__table:has([data-c="1"]:hover) [data-c]:not([data-c="1"]),
  .compare__table:has([data-c="2"]:hover) [data-c]:not([data-c="2"]),
  .compare__table:has([data-c="3"]:hover) [data-c]:not([data-c="3"]),
  .compare__table:has([data-c="4"]:hover) [data-c]:not([data-c="4"]) { opacity: .5; }
}
.compare__tabs { display: none; }

/* les autres sections du pôle : une tête (intitulé, titre, chapeau), puis leur contenu */
.pole-sec { scroll-margin-top: 24px; padding: clamp(80px, 9vw, 140px) var(--pad-x); }
.pole-sec + .pole-sec, .pole-sec + .pole-cta { padding-top: 0; }
.pole-sec__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.pole-sec__label, .pole-label {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: 15px;
}
.pole-sec__label::before, .pole-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-logo); }
.pole-sec__title {
  grid-column: 1 / span 8; margin-top: 16px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 60px); line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance;
}
.pole-sec__title em { font-style: italic; color: var(--red-logo); }
.pole-sec__intro {
  grid-column: 1 / span 6; max-width: 32em; margin-top: clamp(18px, 2vw, 26px);
  font-size: 17px; line-height: 1.6; color: rgba(var(--navy-rgb), .74);
}
.formula__tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-logo);
}
.formula__name {
  display: block; margin: 12px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.015em;
  color: var(--navy);
}
.formula__pitch { display: block; margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--navy); }
/* chaque point : une coche rouge, tracée comme un trait de plume */
.formula__checks { margin: 0; padding: 0; list-style: none; }
.formula__checks li { position: relative; padding-left: 24px; }
.formula__checks li + li { margin-top: 7px; }
.formula__checks li::before {
  content: ""; position: absolute; left: 3px; top: .42em;
  width: 5px; height: 9px;
  border-right: 1.5px solid var(--red-logo); border-bottom: 1.5px solid var(--red-logo);
  rotate: 40deg;
}
/* la mission signature : la fiche marine */
.pole-note {
  max-width: 40em; margin-top: clamp(28px, 3vw, 40px); padding-top: 16px;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
  font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5;
  color: rgba(var(--navy-rgb), .7);
}

/* les publics : trois colonnes entre deux filets */
.audiences {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--pad-x); padding: 0; list-style: none;
  border-block: 1px solid rgba(var(--navy-rgb), .18);
}
.audience { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 40px); }
.audience:first-child { padding-left: 0; }
.audience:last-child { padding-right: 0; }
.audience + .audience { border-left: 1px solid rgba(var(--navy-rgb), .14); }
.audience__name {
  margin: 0;
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.15;
}
.audience__text { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: rgba(var(--navy-rgb), .74); text-wrap: pretty; }
.pole-sec .audiences { margin: 0; }

/* un intertitre dans le texte d’un article (Contrats) */
.pole-art__sub {
  margin: 30px 0 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(var(--navy-rgb), .6);
}
.pole-art__title em { font-style: italic; color: var(--red-logo); }
.pole-list + p { margin-top: 18px; }

/* un registre (Création) : comme les tableaux des textes juridiques, la rubrique de ligne en italique */
.pole-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.pole-table th {
  padding: 14px 22px 12px 0;
  border-bottom: 1px solid rgba(var(--navy-rgb), .3);
  text-align: left; vertical-align: bottom;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy);
}
.pole-table tbody th {
  padding-top: 18px; padding-bottom: 18px; vertical-align: top;
  border-bottom-color: rgba(var(--navy-rgb), .12);
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; line-height: 1.25;
  letter-spacing: 0; text-transform: none;
}
.pole-table td {
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid rgba(var(--navy-rgb), .12);
  vertical-align: top; color: rgba(var(--navy-rgb), .8);
}
.pole-table :is(th, td):last-child { padding-right: 0; }
.pole-table tbody tr { transition: background-color .3s; }
@media (hover: hover) and (pointer: fine) {
  .pole-table tbody tr:hover { background: rgba(var(--navy-rgb), .035); }
}

/* les secteurs (Contrats) : un index en quatre colonnes, un tiret rouge par entrée */
.sectors {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  margin: 0; padding: 0; list-style: none;
  border-bottom: 1px solid rgba(var(--navy-rgb), .14);
}
.sector {
  position: relative; padding: 16px 0 18px 24px;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
  font-family: var(--serif); font-size: 19px; line-height: 1.25;
}
.sector::before {
  content: ""; position: absolute; left: 1px; top: calc(16px + .66em);
  width: 12px; height: 1.5px; background: var(--red-logo);
}

/* les modules (Formation) : des fiches blanches chanfreinées ; le programme sur mesure en marine */
.modules {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
  margin: 0; padding: 0; list-style: none;
}
.module {
  --cut: 24px;
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 38px);
  background: var(--white); box-shadow: inset 0 3px var(--navy);
  font-size: 15px; line-height: 1.6; color: rgba(var(--navy-rgb), .8);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.module__num { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-logo); }
.module__name {
  margin: 12px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(23px, 2vw, 28px); line-height: 1.12; letter-spacing: -.01em;
  color: var(--navy); text-wrap: balance;
}
.module__text { margin: 12px 0 0; text-wrap: pretty; }
.module__public {
  margin: auto 0 0; padding-top: 14px;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.45; color: var(--navy);
}
.module__text + .module__public { margin-top: 22px; }
.module--custom { justify-content: center; background: var(--navy); box-shadow: inset 0 3px var(--red-logo); color: rgba(var(--paper-rgb), .76); }
.module--custom .module__name { color: var(--paper); }
.module--custom .firm__link { align-self: start; color: var(--paper); border-color: rgba(var(--paper-rgb), .35); }

/* l’appel : un panneau marine, coin chanfreiné, un filet rouge en pied */
.pole-cta { padding: clamp(80px, 9vw, 140px) var(--pad-x) clamp(48px, 5vw, 80px); }
.pole-cta__panel {
  --cut: 28px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 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%);
}
.pole-cta__panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red-logo); transform-origin: left;
}
.pole-cta__title {
  max-width: 14em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.8vw, 58px); line-height: 1.06; letter-spacing: -.02em;
  color: var(--paper); text-wrap: balance;
}
.pole-cta__lead { max-width: 30em; margin-top: 16px; font-size: 17px; line-height: 1.6; }
.btn--light { background: var(--paper); color: var(--navy); }
.btn--light:hover { background: var(--white); }
.btn--light:focus-visible { outline-color: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .page-head__actions { animation-delay: .36s; }
  .page-head__art { animation-delay: .1s; }
  /* la planche se trace au chargement : --d (enregistrée par styles.css) monte de 0 à 1 */
  .page-head__art .plate-art { animation: plate-draw 2.6s cubic-bezier(.45, .1, .3, 1) .35s both; }
  .page-head__num { animation-delay: .04s; }
  .pole-body { animation: page-rise .9s cubic-bezier(.2, .7, .2, 1) .44s both; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    :is(.pole-intro__quote, .pole-intro__text, .pole-sec__head, .pole-note, .audience, .pole-table, .sector) {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .pole-intro__text { animation-range: entry 10% entry 80%; }
    .pole-art > * {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .pole-art__body { animation-range: entry 8% entry 68%; }
    .pole-art::before, .pole-cta__panel::after {
      animation: draw-rule linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
    .sector:nth-child(4n + 2) { animation-range: entry 5% entry 75%; }
    .sector:nth-child(4n + 3) { animation-range: entry 10% entry 80%; }
    .sector:nth-child(4n) { animation-range: entry 15% entry 85%; }
    :is(.compare, .module) {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .compare { animation-range: entry 0% entry 24%; }
    .module:nth-child(3n + 2) { animation-range: entry 6% entry 46%; }
    .module:nth-child(3n) { animation-range: entry 12% entry 52%; }
    .audience:nth-child(2) { animation-range: entry 6% entry 76%; }
    .audience:nth-child(3) { animation-range: entry 12% entry 82%; }
  }
}
@keyframes plate-draw { from { --d: 0; } }

@media (max-width: 900px) {
  .page-head--pole :is(.page-head__label, .page-head__title), .page-head__actions { grid-column: 1 / -1; }
  .page-head__art { grid-column: 1 / -1; grid-row: auto; justify-self: start; width: min(100%, 400px); margin-top: clamp(32px, 6vw, 48px); }
  .pole-intro__quote, .pole-intro__text { grid-column: 1 / -1; }
  .pole-art__head, .pole-art__body { grid-column: 1 / -1; }
  .pole-art__body { margin-top: 20px; }
  .pole-art__fold > .pole-art__body { margin-top: 0; }
  .pole-sec__title, .pole-sec__intro { grid-column: 1 / -1; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  /* sans JS, le tableau défile de côté ; avec, des onglets n’en montrent qu’une colonne */
  .compare__table { min-width: 720px; }
  .compare.is-tabbed .compare__table { min-width: 0; }
  .compare.is-tabbed :is(table, thead, tbody, tr, th, td) { display: block; }
  .compare.is-tabbed .compare__table { width: 100%; margin: 0; }
  .compare.is-tabbed .compare__corner { display: none; }
  .compare.is-tabbed .compare__rub { width: auto; height: auto; padding: 18px clamp(18px, 1.8vw, 26px) 0; background: var(--white); }
  .compare.is-tabbed .compare__rub span { position: static; translate: none; rotate: none; writing-mode: horizontal-tb; }
  .compare.is-tabbed td { border-top: 0; padding-top: 8px; }
  .compare.is-tabbed.is-sign-on .compare__rub { background: var(--navy); }
  .compare.is-tabbed.is-sign-on .compare__rub span { color: rgba(var(--paper-rgb), .55); }
  .compare.is-tabbed.is-sign-on .compare__rub::before { background: rgba(var(--paper-rgb), .16); }
  .compare.is-tabbed .is-off { display: none; }
  .compare.is-tabbed .compare__tabs {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad-x)) 18px; padding: 2px var(--pad-x);
  }
  .compare__tabs button {
    flex: none; padding: 9px 15px;
    border: 1px solid rgba(var(--navy-rgb), .3); border-radius: 999px; background: var(--paper);
    font: 500 14px/1.2 var(--sans); color: var(--navy); cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
  }
  .compare__tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
  .compare__tabs button:focus-visible { outline: 2px solid var(--red-logo); outline-offset: 2px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pole-table table { min-width: 680px; }
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .audience, .audience:first-child, .audience:last-child { padding: 24px 0; }
  .audience + .audience { border-left: 0; border-top: 1px solid rgba(var(--navy-rgb), .14); }
  .pole-cta__panel { grid-template-columns: minmax(0, 1fr); align-items: start; }
  /* la couverture : le numéro à droite de l’intitulé, la planche sous les boutons */
  .page-head__num { grid-column: 1 / -1; grid-row: 2 / span 2; margin-top: -8px; }
  .page-head__num span { font-size: clamp(96px, 26vw, 180px); }
  .page-head--pole .page-head__title { position: relative; z-index: 1; padding-right: clamp(0px, 14vw, 120px); }
}
/* sous 1180 px : le sommaire se replie au-dessus du texte, comme celui des textes juridiques sur téléphone */
@media (max-width: 1180px) {
  .pole-body { display: block; }
  .toc--pole {
    position: static; max-height: none; overflow: visible; padding-right: 0;
    margin-bottom: clamp(48px, 7vw, 80px);
    border-block: 1px solid rgba(var(--navy-rgb), .14);
  }
  .toc--pole .toc__label { justify-content: flex-start; margin: 0; padding: 16px 0; cursor: pointer; }
  .toc--pole .toc__label::after {
    content: ""; width: 7px; height: 7px; margin-left: auto;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    rotate: 45deg; translate: 0 -2px;
    transition: rotate .25s;
  }
  .toc--pole[open] .toc__label::after { rotate: 225deg; translate: 0 2px; }
  .toc--pole .toc__list { padding-bottom: 22px; }
  .pole-main > .pole-intro .pole-intro__text { grid-column: 5 / -1; }
}
@media (max-width: 760px) {
  .pole-arts:has(.pole-art__fold) { --numw: 0px; }
  .pole-art__fold > .pole-art__head { grid-template-columns: minmax(0, 1fr) 40px; row-gap: 8px; column-gap: 16px; }
  .pole-art__fold .pole-art__num { grid-column: 1; }
  .pole-art__fold .pole-art__title { grid-column: 1; }
  .pole-art__fold .pole-art__icon { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .pole-art__fold > .pole-art__body { padding: 0 0 32px; }
  .pole-main > .pole-intro .pole-intro__text { grid-column: 1 / -1; }
}

/* ---------- Le cabinet ---------- */

/* la signature : la phrase en grand sous son intitulé */
.pole-intro--sign { row-gap: clamp(18px, 2vw, 28px); }
.pole-intro__quote em { font-style: italic; color: var(--red-logo); }
/* les engagements : les articles des pôles, posés dans une section */
.pole-arts--flat { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(var(--navy-rgb), .2); }
/* les valeurs : un registre, le paragraphe en rouge italique, le nom, puis sa ligne */
.registry { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(var(--navy-rgb), .2); }
.registry__row {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: baseline;
  padding: clamp(22px, 2.4vw, 34px) 0;
  border-top: 1px solid rgba(var(--navy-rgb), .2);
  transition: opacity .35s;
}
.registry__num { grid-column: 1 / span 1; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--red-logo); }
.registry__name {
  grid-column: 2 / span 4; margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.015em;
}
.registry__text { grid-column: 7 / -1; max-width: 34em; margin: 0; font-size: 16px; line-height: 1.6; color: rgba(var(--navy-rgb), .78); text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .registry:has(.registry__row:hover) .registry__row:not(:hover) { opacity: .45; }
}
.firm__title em { font-style: italic; color: var(--red-logo); }
/* la fondatrice et le réseau gardent l’espacement de l’accueil ; le réseau suit le panneau */
.pole-sec + .founder { padding-top: 0; }

/* ---------- Insights ---------- */

.insights { margin: 0; padding: clamp(48px, 6vw, 96px) var(--pad-x) 0; list-style: none; }
.insight {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  padding: clamp(32px, 3.4vw, 52px) 0;
  border-block: 1px solid rgba(var(--navy-rgb), .2);
}
.insight__meta {
  grid-column: 1 / span 3; grid-row: 1 / span 3; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; line-height: 1.4; color: rgba(var(--navy-rgb), .66);
}
.insight__cat { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-logo); }
.insight__by { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--navy); }
.insight__title {
  grid-column: 4 / span 8; margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 46px); line-height: 1.1; letter-spacing: -.015em;
  text-wrap: balance;
}
.insight__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--red-logo), var(--red-logo)) 0 100% / 0 1.5px no-repeat; transition: background-size .5s cubic-bezier(.3, .6, .2, 1); }
.insight__title a:hover, .insight__title a:focus-visible { background-size: 100% 1.5px; }
.insight__text { grid-column: 4 / span 6; max-width: 36em; margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: rgba(var(--navy-rgb), .78); text-wrap: pretty; }
.insight .firm__link { grid-column: 4 / -1; justify-self: start; margin-top: 24px; }

/* l’article : le sommaire des cinq clauses à gauche, le texte à droite, comme les textes juridiques */
.page-head__title--essay { grid-column: 1 / span 10; font-size: clamp(34px, 4.2vw, 64px); }
.essay__quote {
  margin: 0 0 clamp(24px, 3vw, 36px) !important;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.01em;
  color: var(--navy); text-wrap: pretty;
}
.essay__intro { font-size: 17px; }
.essay__intro + .legal__art { margin-top: clamp(40px, 4vw, 56px); }
.essay__take {
  --cut: 22px;
  margin: clamp(48px, 5vw, 72px) 0 0; padding: 24px 28px 24px 30px;
  background: var(--white); box-shadow: inset 0 3px var(--red-logo);
  font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--navy);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.essay__take strong { font-style: italic; font-weight: 400; color: var(--red-logo); }
.essay__disclaimer {
  margin-top: clamp(32px, 3vw, 44px) !important; padding-top: 16px;
  border-top: 1px solid rgba(var(--navy-rgb), .14);
  font-size: 14px; line-height: 1.6; color: rgba(var(--navy-rgb), .64);
}
.essay__disclaimer a { color: var(--navy); }
.essay__back { margin-top: 28px; }
.essay__back svg { margin: 0 10px 0 0; }

/* ---------- Contact ---------- */

.contact { padding: clamp(48px, 6vw, 96px) var(--pad-x) clamp(80px, 9vw, 140px); }
.offices {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
  margin: 0; padding: 0; list-style: none;
}
.office {
  --cut: 24px;
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--white); box-shadow: inset 0 3px var(--navy);
  font-size: 15.5px; line-height: 1.55; color: rgba(var(--navy-rgb), .8);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: opacity .35s;
}
/* chaque bureau porte la gravure de l’accueil, à l’encre seule (le masque donne le dessin) */
.office__ink {
  aspect-ratio: var(--ratio); margin: 0 0 22px;
  -webkit-mask: var(--img) center / 100% 100% no-repeat;
          mask: var(--img) center / 100% 100% no-repeat;
  background: var(--ink);
}
.office--dakar   { --ratio: 1600 / 915; --img: url("/assets/dakar-plateau-ink.webp");   --tint: var(--red); }
.office--abidjan { --ratio: 1600 / 914; --img: url("/assets/abidjan-plateau-ink.webp"); --tint: var(--bright); }
.office__kind { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--navy-rgb), .62); }
.office__kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tint, var(--navy)); }
.office__city {
  margin: 10px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.02em; color: var(--navy);
}
.office__addr { margin: 14px 0 0; text-wrap: pretty; }
.office__tel { margin: auto 0 0; padding-top: 16px; }
.office__addr + .office__tel { margin-top: 18px; }
.office__tel a, .office__mail a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(var(--navy-rgb), .3); transition: border-color .3s, color .3s; }
.office__tel a { font-family: var(--serif); font-size: 19px; font-variant-numeric: lining-nums tabular-nums; }
.office__tel a:hover, .office__mail a:hover { color: var(--blue); border-color: currentColor; }
.office--write { justify-content: flex-start; background: var(--navy); box-shadow: inset 0 3px var(--red-logo); color: rgba(var(--paper-rgb), .72); }
.office--write .office__kind { color: rgba(var(--paper-rgb), .6); }
.office--write .office__kind::before { background: var(--red-logo); }
.office__mail { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; overflow-wrap: anywhere; }
.office--write .office__mail a { color: var(--paper); border-color: rgba(var(--paper-rgb), .35); }
.office--write .office__addr { font-size: 14.5px; }
.office--write .firm__link { align-self: start; margin-top: auto; padding-top: 16px; color: var(--paper); border-color: rgba(var(--paper-rgb), .35); }
.office--write .office__addr + .firm__link { margin-top: 28px; }
.contact .pole-note { margin-top: clamp(32px, 3.4vw, 48px); }
@media (hover: hover) and (pointer: fine) {
  .offices:has(.office:hover) .office:not(:hover) { opacity: .5; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    :is(.registry__row, .insight, .essay__take, .office) {
      animation: rise-small linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 50%;
    }
    .office:nth-child(2) { animation-range: entry 6% entry 56%; }
    .office:nth-child(3) { animation-range: entry 12% entry 62%; }
  }
}

@media (max-width: 900px) {
  .page-head__title--essay { grid-column: 1 / -1; }
  .registry__num { grid-column: 1 / -1; }
  .registry__name { grid-column: 1 / -1; margin-top: 6px; }
  .registry__text { grid-column: 1 / -1; margin-top: 12px; }
  .insight__meta { grid-column: 1 / -1; grid-row: auto; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 18px; }
  :is(.insight__title, .insight__text, .insight .firm__link) { grid-column: 1 / -1; }
  .offices { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

/* ---------- Pied de page : la page affichée est marquée dans ses liens ---------- */

.foot [aria-current="page"] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--red-logo); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ---------- Références (references.html) ---------- */

/* Sans JS ou sous mouvement réduit : les dossiers en planche, deux par ligne, sur le papier bleu.
   Avec library.js : la scène tient sous la navigation, la pile au centre et l’index à gauche ;
   --s (0 → n − 1) fait partir chaque feuille à son tour, vers le haut et la gauche, et redresse
   la suivante (--pe, --up). */
.refs-page { padding: 0 var(--pad-x); }
.refs-page__stage {
  --cut: 28px;
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  padding: clamp(48px, 5vw, 80px) clamp(20px, 4vw, 64px);
}
.refs-page__side { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 32px); }
.refs-page__count {
  font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 6vw, 96px); line-height: 1;
  letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; color: rgba(var(--navy-rgb), .35);
}
.refs-page__count b { font-weight: 400; color: var(--red-logo); }
.refs-page__rail { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(var(--navy-rgb), .2); }
.refs-page__rail li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(var(--navy-rgb), .12);
  font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(var(--navy-rgb), .55);
  transition: color .3s;
}
.refs-page__rail li::before {
  content: ""; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%;
  transition: background .3s, border-color .3s;
}
.refs-page__rail li.is-on { color: var(--navy); }
.refs-page__rail li.is-on::before { background: var(--red-logo); border-color: var(--red-logo); }
/* sans la pile tenue, le compteur et l’index n’ont rien à suivre */
.refs-page:not(.is-pinned) .refs-page__side { display: none; }
.refs-page .dossiers { grid-column: 1 / -1; width: auto; margin-top: 12px; }
.refs-page .dossiers__clip, .refs-page .dossiers__pclip { display: none; }
.refs-page .dossiers__tape { top: -20px; right: auto; left: 8px; rotate: -4deg; transform-origin: left; }
.refs-page .dossiers__pile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.refs-page .dossier { grid-area: auto; z-index: auto; translate: none; rotate: calc(var(--r) * .4); }

/* la pile tenue */
.refs-page.is-pinned .refs-page__track { height: calc(100svh - var(--nav-h) + var(--n) * 70svh); }
.refs-page.is-pinned .refs-page__stage {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h) - clamp(16px, 2vw, 32px)); align-items: center;
  overflow: hidden;
}
.refs-page.is-pinned .refs-page__side { position: static; }
.refs-page.is-pinned .dossiers { grid-column: 5 / span 7; justify-self: center; width: min(460px, 100%); }
.refs-page.is-pinned .dossiers__clip, .refs-page.is-pinned .dossiers__pclip { display: block; }
.refs-page.is-pinned .dossiers__tape { top: 64%; left: auto; right: -38px; rotate: 7deg; transform-origin: right; }
.refs-page.is-pinned .dossiers__pile { grid-template-columns: none; gap: 0; }
.refs-page.is-pinned .dossier {
  --pe: 0; --up: 0;
  grid-area: 1 / 1; z-index: calc(var(--n) - var(--i));
  /* la feuille lue part vers le haut, hors de la scène, un peu de biais */
  translate: calc(var(--x, 0px) * (1 - var(--up)) - var(--pe) * 30%) calc(var(--y, 0px) * (1 - var(--up)) - var(--pe) * 125%);
  rotate: calc(var(--r) * (1 - var(--up)) - var(--pe) * 9deg);
  opacity: clamp(0, (1 - var(--pe)) * 4, 1);
}
.refs-page.is-pinned .dossier.is-lifting { z-index: 20; }
.refs-page.is-pinned .dossier:not(.is-on) .dossier__body { opacity: .5; }

@media (max-width: 900px) {
  .refs-page__side { grid-column: 1 / -1; position: static; display: flex; align-items: baseline; gap: 20px; }
  .refs-page__rail { display: none; }
  .refs-page .dossiers { grid-column: 1 / -1; margin-top: 28px; }
  .refs-page .dossiers__pile { grid-template-columns: 1fr; }
  .refs-page.is-pinned .refs-page__stage { align-content: center; row-gap: 56px; }
  .refs-page.is-pinned .dossiers { grid-column: 1 / -1; width: min(420px, 100%); margin-top: 0; }
  .refs-page.is-pinned .dossiers__tape { right: -10px; }
}
@media (max-width: 760px) {
  .refs-page .dossiers__tape, .refs-page.is-pinned .dossiers__tape { top: auto; bottom: -14px; right: -6px; left: auto; rotate: -4deg; transform-origin: right; }
  /* la feuille porte déjà son numéro : sur un téléphone, la pile prend toute la scène */
  .refs-page__side { display: none !important; }
  .refs-page.is-pinned .refs-page__stage { padding-block: 32px; }
}

/* mentions légales : la date de mise à jour rejoint l’article 7 (retours du 12 novembre 2026) */
.legal__date--art { margin-top: 10px !important; padding-top: 0; border-top: 0; }
