/* ==========================================================================
   D'Andrea Avocat — Proposition d'identité « Le Plan »
   Le site est traité comme un plan cadastral vivant : papier calque, encre
   noire, parcelles or (la couleur exacte du logo), annotations de géomètre
   en caractères machine. Trois voix typographiques :
   - Instrument Serif : la voix de l'avocat (titres, citations)
   - Hanken Grotesk   : la lecture (textes courants)
   - IBM Plex Mono    : le plan (numéros, légendes, coordonnées)
   ========================================================================== */

:root {
  --paper: #F2EEE4;
  --paper-2: #E7E1D3;
  --ink: #141311;
  --ink-2: #3B3934;
  --ink-3: #75716A;
  --line: rgba(20, 19, 17, 0.22);
  --gold: #F8C22E;
  --gold-2: #E0A812;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  /* Petites annotations (légendes, dates, pied de page) : la police de lecture
     en capitales finement espacées, à la place de l'ancienne police machine à écrire */
  --mono: 'Hanken Grotesk', system-ui, sans-serif;
  /* Capitales de titrage, dans l'esprit du « D'ANDREA / A V O C A T » du logo */
  --titling: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: clip;
}
/* Grain de papier très léger, pour que le fond ne soit jamais « numérique » */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, blockquote { margin: 0; font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }

.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: lining-nums; }
.label { color: var(--ink-3); margin: 0 0 28px; }
.label--gold { color: var(--gold); }
/* Toutes les pages : les titres de rubrique, plus affirmés, entre une
   parcelle or et un filet or (animés à l'entrée par app.js via --sq / --ln) */
.rubriques main .label {
  --sq: 1; --ln: 1;
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; letter-spacing: 0.1em;
  color: var(--ink); margin-bottom: 40px;
}
.rubriques main .label::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--gold); transform: scale(var(--sq)); }
.rubriques main .label::after { content: ""; flex: none; width: 64px; height: 1px; background: var(--gold-2); transform: scaleX(var(--ln)); transform-origin: left; }
.rubriques main .label--gold { color: var(--gold); }
/* Titres encore plus présents, et la mention en tête de page (toutes les pages) */
.rubriques main .label { font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; gap: 16px; margin-bottom: 48px; }
.rubriques main .label::before { width: 16px; height: 16px; }
.rubriques main .label::after { width: 96px; height: 2px; flex: 0 1 96px; min-width: 28px; }
.rubriques .kicker { font-size: clamp(15px, 1.4vw, 20px); font-weight: 600; letter-spacing: 0.08em; color: var(--ink); gap: 14px; margin-bottom: 32px; }
.rubriques .kicker .dot { width: 14px; height: 14px; flex: none; }
.rubriques .xp__phase { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: 0.08em; }
/* Titrage : Garamond en capitales espacées (remplace la police machine à
   écrire sur ces titres ; les annotations techniques gardent le mono) */
.rubriques .kicker, .rubriques main .label, .rubriques .xp__phase {
  font-family: var(--titling); font-weight: 700; line-height: 1.15; letter-spacing: 0.16em;
  font-variant-numeric: lining-nums; /* « 01 » et non « oı » (chiffres elzéviriens du Garamond) */
}
.rubriques main .label { font-size: clamp(22px, 2.1vw, 30px); }
.rubriques .kicker { font-size: clamp(18px, 1.7vw, 24px); letter-spacing: 0.14em; }
.rubriques .xp__phase { font-size: clamp(18px, 1.6vw, 23px); letter-spacing: 0.12em; color: var(--gold-2); }
.label__txt { display: inline-block; }

/* Titre présent pour Google et les lecteurs d'écran, invisible à l'œil */
.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; }
/* Pages sans en-tête (Cabinet, Expertises) : le contenu démarre sous le bandeau */
.no-hero main { padding-top: var(--nav-h, 84px); }
.no-hero .xp:first-of-type { border-top: 0; }
.no-hero .bio2, .no-hero .xp:first-of-type { padding-top: clamp(32px, 4vw, 56px); }

/* Textes courants justifiés (les titres, étiquettes, boutons et grands mots
   décoratifs restent alignés). Jamais de mot coupé par un trait d'union. */
main p:not(.mono):not(.label):not(.kicker):not(.statement):not(.lawyer__role):not(.bio2__statement),
.xp__items li span, .legal li, .legal address {
  text-align: justify;
}
html, body, body * { -webkit-hyphens: none; hyphens: none; }

/* ---------- Boutons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 100px;
  font: 500 15px/1 var(--sans);
  transform: translate(var(--mx), var(--my));
  transition: background-color 250ms, color 250ms, border-color 250ms;
  position: relative; overflow: hidden; isolation: isolate;
}
/* Le remplissage monte comme une parcelle qu'on colorie */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: translateY(101%); transition: transform 450ms var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--ink); }
.btn--line { border: 1px solid var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--paper); }

/* ---------- Curseur de géomètre (pointeur fin uniquement) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    /* plus de fusion « différence » : elle virait au bleu sur les aplats or */
    border: 1.5px solid var(--gold-2); border-radius: 50%;
    transition: width 300ms var(--ease-out), height 300ms var(--ease-out), margin 300ms var(--ease-out), background-color 300ms;
  }
  .cursor::before, .cursor::after { content: ""; position: absolute; background: var(--gold-2); }
  .cursor::before { width: 1.5px; height: 9px; }
  .cursor::after { width: 9px; height: 1.5px; }
  .cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--ink); border-color: var(--gold); }
  .cursor.is-label::before, .cursor.is-label::after { opacity: 0; }
  .cursor__label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); opacity: 0; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ---------- Loader ----------
   Reprise de l'intro du site initial : le damier se monte en 16 cases
   (balayage diagonal), puis « D'ANDREA », le filet or et son carré,
   puis « AVOCAT », un court temps d'arrêt, et un fondu léger.
   Coordonnées dans l'espace 1539×499 du logo final (assets/img/logo-final.png) :
   damier x 0–513 / y 0–499, « D'ANDREA » au-dessus de y 235, « AVOCAT »
   sous y 280, filet y 255–261 (x 560–1019 et 1090–1535), carré x 1036–1071
   / y 239–274. */
.loader {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(242, 238, 228, 0.92), rgba(242, 238, 228, 0.92)),
    url("assets/img/hero-paris.jpg") center 30% / cover no-repeat,
    var(--paper);
  transition: opacity 420ms cubic-bezier(0.45, 0, 0.15, 1), transform 420ms cubic-bezier(0.45, 0, 0.15, 1);
}
.loader[hidden] { display: none; }
.loader.is-done { opacity: 0; transform: scale(1.04); pointer-events: none; }
html.has-loader, html.has-loader body { overflow: hidden; height: 100%; }

.loader__stage {
  position: relative;
  --logo-w: 340px;
  --u: calc(var(--logo-w) / 1539); /* un pixel source */
  --logo-gold: #FDBA18; /* l'or exact du logo final */
  --l-ease: cubic-bezier(0.45, 0, 0.15, 1);
  --l-draw: cubic-bezier(0.65, 0, 0.35, 1);
  width: var(--logo-w);
  height: calc(var(--u) * 499);
  transform: scale(0.965);
  animation: loaderStageIn 700ms var(--ease-out) forwards;
}
@keyframes loaderStageIn { to { transform: scale(1); } }
@media (max-width: 640px) { .loader__stage { --logo-w: 260px; } }

/* Le damier : 16 cases (grille 4×4), chacune un recadrage exact du logo */
.loader__tile {
  position: absolute;
  width: calc(var(--u) * 128.25 + 1px);
  height: calc(var(--u) * 124.75 + 1px);
  background: url(assets/img/logo-final.png) no-repeat;
  background-size: var(--logo-w) calc(var(--u) * 499);
  opacity: 0;
  transform: translateY(13px) scale(0.88);
  animation: loaderTile 340ms var(--l-ease) forwards;
}
@keyframes loaderTile { to { opacity: 1; transform: translateY(0) scale(1); } }
.loader__tile[data-c="0"] { left: 0; background-position-x: 0; }
.loader__tile[data-c="1"] { left: calc(var(--u) * 128.25 - 1px); background-position-x: calc(var(--u) * -128.25 + 1px); }
.loader__tile[data-c="2"] { left: calc(var(--u) * 256.5 - 1px); background-position-x: calc(var(--u) * -256.5 + 1px); }
.loader__tile[data-c="3"] { left: calc(var(--u) * 384.75 - 1px); background-position-x: calc(var(--u) * -384.75 + 1px); }
.loader__tile[data-r="0"] { top: 0; background-position-y: 0; }
.loader__tile[data-r="1"] { top: calc(var(--u) * 124.75 - 1px); background-position-y: calc(var(--u) * -124.75 + 1px); }
.loader__tile[data-r="2"] { top: calc(var(--u) * 249.5 - 1px); background-position-y: calc(var(--u) * -249.5 + 1px); }
.loader__tile[data-r="3"] { top: calc(var(--u) * 374.25 - 1px); background-position-y: calc(var(--u) * -374.25 + 1px); }
/* Balayage diagonal depuis le coin haut-gauche, une case toutes les 70 ms */
.loader__tile[data-c="0"][data-r="0"] { animation-delay: 0ms; }
.loader__tile[data-c="1"][data-r="0"] { animation-delay: 70ms; }
.loader__tile[data-c="0"][data-r="1"] { animation-delay: 140ms; }
.loader__tile[data-c="2"][data-r="0"] { animation-delay: 210ms; }
.loader__tile[data-c="1"][data-r="1"] { animation-delay: 280ms; }
.loader__tile[data-c="0"][data-r="2"] { animation-delay: 350ms; }
.loader__tile[data-c="3"][data-r="0"] { animation-delay: 420ms; }
.loader__tile[data-c="2"][data-r="1"] { animation-delay: 490ms; }
.loader__tile[data-c="1"][data-r="2"] { animation-delay: 560ms; }
.loader__tile[data-c="0"][data-r="3"] { animation-delay: 630ms; }
.loader__tile[data-c="3"][data-r="1"] { animation-delay: 700ms; }
.loader__tile[data-c="2"][data-r="2"] { animation-delay: 770ms; }
.loader__tile[data-c="1"][data-r="3"] { animation-delay: 840ms; }
.loader__tile[data-c="3"][data-r="2"] { animation-delay: 910ms; }
.loader__tile[data-c="2"][data-r="3"] { animation-delay: 980ms; }
.loader__tile[data-c="3"][data-r="3"] { animation-delay: 1050ms; }

/* « D'ANDREA » puis « AVOCAT », deux recadrages de part et d'autre du filet */
.loader__word-top, .loader__word-bottom {
  position: absolute;
  left: calc(var(--u) * 545);
  width: calc(var(--u) * 994);
  background: url(assets/img/logo-final.png) no-repeat;
  background-size: var(--logo-w) calc(var(--u) * 499);
  background-position-x: calc(var(--u) * -545);
  opacity: 0;
  transform: translateY(5px);
  animation: loaderWord 300ms var(--l-ease) forwards;
}
.loader__word-top { top: 0; height: calc(var(--u) * 235); background-position-y: 0; animation-delay: 1500ms; }
.loader__word-bottom { top: calc(var(--u) * 280); height: calc(var(--u) * 219); background-position-y: calc(var(--u) * -280); animation-delay: 2150ms; }
@keyframes loaderWord { to { opacity: 1; transform: translateY(0); } }

/* Le filet : deux segments tracés à la plume, et un petit carré entre eux */
.loader__bar-l, .loader__bar-r {
  position: absolute;
  top: calc(var(--u) * 255);
  height: max(1px, calc(var(--u) * 6));
  background: var(--logo-gold);
  transform: scaleX(0); transform-origin: left;
}
.loader__bar-l { left: calc(var(--u) * 560); width: calc(var(--u) * 459); animation: loaderBar 120ms var(--l-draw) 1860ms forwards; }
.loader__bar-r { left: calc(var(--u) * 1090); width: calc(var(--u) * 445); animation: loaderBar 120ms var(--l-draw) 1950ms forwards; }
@keyframes loaderBar { to { transform: scaleX(1); } }
.loader__square {
  position: absolute;
  left: calc(var(--u) * 1036); top: calc(var(--u) * 239);
  width: calc(var(--u) * 35); height: calc(var(--u) * 35);
  background: var(--logo-gold);
  transform: scale(0);
  animation: loaderSquare 90ms var(--l-ease) 1910ms forwards;
}
@keyframes loaderSquare { to { transform: scale(1); } }

/* Petit écran : le logo fini, avec un simple fondu */
@media (max-width: 640px) {
  .loader__stage, .loader__tile, .loader__word-top, .loader__word-bottom,
  .loader__bar-l, .loader__bar-r, .loader__square {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: transform 500ms var(--ease), background-color 400ms, backdrop-filter 400ms;
}
.nav.is-solid { background: rgba(242, 238, 228, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__brand img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
/* Survol : le mot glisse vers le haut et sa copie prend sa place */
.nav__links a {
  position: relative; overflow: hidden; display: inline-block;
  font: 500 14px/1.3 var(--sans);
}
.nav__links a span { display: inline-block; transition: transform 450ms var(--ease-out); }
.nav__links a::after {
  content: attr(data-roll); position: absolute; left: 0; top: 100%;
  transition: transform 450ms var(--ease-out); color: var(--gold-2);
}
.nav__links a:hover span, .nav__links a:hover::after { transform: translateY(-100%); }
.nav__cta { font: 500 14px/1 var(--sans); padding: 12px 20px; border: 1px solid var(--ink); border-radius: 100px; transition: background-color 250ms, color 250ms; }
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__burger { display: none; }

/* Bandeau : logo et rubriques agrandis */
body { --nav-h: 98px; }
body .nav__brand img { height: 58px; }
body .nav__links { gap: 38px; }
body .nav__links a { font: 600 clamp(16px, 1.35vw, 18px)/1.3 var(--sans); letter-spacing: 0.01em; }
body .nav__links a, body .nav__cta { white-space: nowrap; }
/* Rubriques en bulles, comme le bouton « Prendre rendez-vous » (ordinateur) */
@media (min-width: 861px) {
  body .nav__links { gap: 10px; }
  body .nav__links a {
    padding: 10px 18px; border: 1px solid var(--ink); border-radius: 100px;
    transition: background-color 250ms, color 250ms, border-color 250ms;
  }
  body .nav__links a::after { display: none; }
  body .nav__links a span { transform: none !important; }
  body .nav__links a:hover { background: var(--ink); color: var(--paper); }
  /* page en cours : bulle or pleine, à la place du petit carré */
  body .nav__links a[aria-current="page"] { padding-left: 18px; background: var(--gold); border-color: var(--gold); }
  body .nav__links a[aria-current="page"]::before { display: none; }
  body .nav__links a[aria-current="page"]:hover { background: var(--ink); border-color: var(--ink); }
  /* « Prendre rendez-vous » : même taille que les bulles */
  body .nav__cta { font: 600 clamp(16px, 1.35vw, 18px)/1.3 var(--sans); padding: 10px 18px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  body .nav__links a, body .nav__cta { padding: 9px 13px; font-size: 15px; }
  body .nav__links { gap: 6px; }
}
/* le logo ne se tasse jamais ; sur écran étroit, le bouton s'efface pour laisser la place aux bulles */
body .nav__brand { flex: none; }
@media (min-width: 861px) and (max-width: 1000px) { body .nav__cta { display: none; } }
@media (min-width: 861px) and (max-width: 1100px) { body .nav__links { gap: 22px; } body .nav { gap: 22px; } }
@media (max-width: 860px) {
  body { --nav-h: 90px; }
  body .nav__brand img { height: 50px; }
  body .nav__links a { font: 400 clamp(44px, 12vw, 72px)/1.1 var(--serif); letter-spacing: 0; }
}

@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav__brand img { height: 38px; }
  /* le logo et le bouton restent cliquables au-dessus du panneau ouvert */
  .nav__brand, .nav__burger { position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    min-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; justify-content: center; gap: 8px; padding: 96px var(--gutter) 40px;
    background: var(--gold);
    clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--ease);
  }
  .nav__links a { font: 400 clamp(44px, 12vw, 72px)/1.1 var(--serif); }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav__cta { display: none; }
  .nav__burger {
    display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center;
    background: none; border: 1px solid var(--ink); border-radius: 50%; cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 300ms var(--ease); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}
/* Menu mobile ouvert : on fige le défilement de la page derrière le panneau */
body.menu-open { overflow: hidden; }

/* ---------- 01 · Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 28px;
  overflow: hidden;
}
.hero__plan {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Le plan s'efface là où se trouve le titre, pour qu'il reste lisible */
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 24% 74%, rgba(0,0,0,0.12) 28%, #000 88%);
          mask-image: radial-gradient(ellipse 75% 70% at 24% 74%, rgba(0,0,0,0.12) 28%, #000 88%);
}
.hero__plan .parcel { fill: transparent; stroke: var(--line); stroke-width: 1; transition: fill 900ms ease; }
.hero__plan .parcel.is-gold { fill: var(--gold); }
.hero__plan .parcel.is-hot { fill: var(--gold); transition-duration: 120ms; }
.hero__plan .parcel.is-built { fill: rgba(20, 19, 17, 0.045); pointer-events: none; }
.hero__plan .road { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 5 6; }
.hero__plan .num { font: 500 11px var(--mono); fill: var(--ink-2); opacity: 0; transition: opacity 600ms; }
.hero__plan .num.is-on { opacity: 1; }

.hero__content { position: relative; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; background: var(--gold); display: inline-block; }
.hero__title {
  font: 400 clamp(54px, 8.6vw, 158px)/0.92 var(--serif);
  letter-spacing: -0.035em;
}
.hero__title > span, [data-lines] > span { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title em { color: var(--ink); position: relative; }
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-top: 42px; max-width: 1100px;
}
.hero__lead { max-width: 380px; margin: 0; font-size: 18px; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 40px; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); animation: scrollHint 2s var(--ease) infinite; }
@keyframes scrollHint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 02 · Manifeste ---------- */
.manifesto { padding: clamp(110px, 16vw, 220px) var(--gutter); max-width: 1320px; }
.manifesto__text { margin: 0; font: 400 clamp(34px, 5.2vw, 76px)/1.08 var(--serif); letter-spacing: -0.02em; }
.manifesto__text .w { opacity: 0.13; }

/* ---------- 03 · Délai ---------- */
.deadline {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--gutter);
  background: var(--ink); color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  border-radius: 28px; margin: 0 clamp(8px, 1.2vw, 16px);
}
.deadline__num {
  font: 400 clamp(260px, 42vw, 640px)/0.75 var(--serif);
  color: var(--gold); letter-spacing: -0.06em; text-align: center;
}
.deadline__digit { display: block; }
.deadline__clock { display: block; margin-top: 18px; font-size: 13px; letter-spacing: 0.08em; color: #9C978C; }
.deadline__clock b { color: var(--gold); font-weight: 500; display: inline-block; min-width: 2ch; text-align: left; }
.deadline h2 { font: 400 clamp(30px, 3.4vw, 50px)/1.1 var(--serif); margin-bottom: 24px; }
.deadline__big { color: var(--gold); font-style: italic; }
.deadline p:not(.label) { color: #BDB8AD; max-width: 460px; margin: 0 0 36px; }

/* ---------- 04 · Expertises (le chantier) ---------- */
.build { position: relative; padding: clamp(110px, 14vw, 180px) var(--gutter) 0; }
.build__sticky {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
}
.build__head { grid-column: 1 / -1; margin-bottom: 8px; }
/* Accueil : les expertises arrivent directement sous leur titre de rubrique */
.home .build { padding-top: clamp(70px, 9vw, 120px); }
@media (min-width: 900px) { .home .build__steps .step:first-child { justify-content: flex-start; min-height: 52vh; padding-top: 12px; } }
.build__head h2 { font: 400 clamp(46px, 7vw, 110px)/0.95 var(--serif); letter-spacing: -0.03em; }
.build__stage { position: relative; align-self: start; }
.build__drawing { width: 100%; height: auto; overflow: visible; }
.build__drawing .draw { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.build__drawing .draw.thin { stroke-width: 0.8; stroke: var(--ink-3); }
.build__drawing .draw.dash { stroke-width: 1; stroke: var(--gold-2); }
.build__drawing .dim { font-size: 10px; fill: var(--ink-3); opacity: 0; }
.build__drawing .win { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
.build__drawing .win.is-gold { fill: var(--gold); }

.stamp {
  position: absolute; right: 2%; top: 4%;
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 20px 10px; border: 2.5px solid var(--ink); border-radius: 6px;
  color: var(--ink); transform: rotate(-9deg) scale(1.6); opacity: 0;
  background: rgba(242, 238, 228, 0.7);
}
.stamp span { font: italic 400 34px/1 var(--serif); }
.stamp small { font-size: 9px; }
.stamp[data-stamp="2"] { top: 30%; right: 8%; transform: rotate(6deg) scale(1.6); }
.stamp[data-stamp="3"] { top: 56%; right: 2%; transform: rotate(-4deg) scale(1.6); }
.build__stage { overflow: clip; overflow-clip-margin: 24px; }
@media (max-width: 600px) {
  .stamp { padding: 6px 10px 5px; border-width: 2px; }
  .stamp span { font-size: 19px; }
  .stamp small { font-size: 8px; }
  .stamp[data-stamp="1"] { top: 0; right: 0; }
  .stamp[data-stamp="2"] { top: 24%; right: 3%; }
  .stamp[data-stamp="3"] { top: 48%; right: 1%; }
}
.stamp--gold { background: var(--gold); border-color: var(--ink); }

.build__steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 36px 0 36px; border-top: 1px solid var(--line); opacity: 0.25; transition: opacity 500ms; }
.step.is-active { opacity: 1; }
.step__num { color: var(--gold-2); margin: 0 0 12px; }
.step h3 { font: 400 clamp(30px, 3vw, 44px)/1.05 var(--serif); margin-bottom: 14px; }
.step p:not(.mono) { margin: 0 0 1.6em; color: var(--ink-2); max-width: 520px; }
.step p:not(.mono):last-of-type { margin-bottom: 0; }

/* Grand écran : la scène reste fixe, les phases défilent à côté */
@media (min-width: 900px) {
  .build__stage { position: sticky; top: 14vh; grid-row: 2; grid-column: 2; }
  .build__steps { grid-row: 2; grid-column: 1; padding-bottom: 20vh; }
  .step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 899px) {
  .build__sticky { grid-template-columns: 1fr; }
  .build__stage { margin-bottom: 24px; }
  .step { opacity: 1; }
}

/* ---------- 05 · Lexique ---------- */
.marquee { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: 0.35em; width: max-content; font: 400 clamp(64px, 10vw, 150px)/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track span:not(:has(em)) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee__track i { font-style: normal; font-size: 0.35em; color: var(--gold-2); }

/* ---------- 06 · Pour qui ---------- */
.clients { padding: clamp(100px, 12vw, 160px) var(--gutter); }
.clients__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
/* Chaque rubrique est un bouton : un clic déroule, en dessous, la liste
   verticale des métiers (chacun précédé d'une parcelle or, apparition en cascade) */
.clients__item { border-bottom: 1px solid var(--ink); }
.clients__toggle {
  position: relative; isolation: isolate; overflow: hidden; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 30px 12px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
}
.clients__toggle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  clip-path: inset(0 100% 0 0); transition: clip-path 650ms var(--ease);
}
.clients__toggle:hover::before, .clients__toggle:focus-visible::before { clip-path: inset(0 0 0 0); }
.clients__list strong { font: 400 clamp(32px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -0.02em; transition: transform 650ms var(--ease); }
.clients__toggle:hover strong { transform: translateX(18px); font-style: italic; }
.clients__plus { position: relative; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; transition: background-color 300ms, transform 500ms var(--ease); }
.clients__plus::before, .clients__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -0.75px 0 0 -8px; background: var(--ink); }
.clients__plus::after { transform: rotate(90deg); }
.clients__item.is-open .clients__plus { background: var(--ink); transform: rotate(45deg); }
.clients__item.is-open .clients__plus::before, .clients__item.is-open .clients__plus::after { background: var(--gold); }
.clients__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--ease); }
.clients__panel > div { overflow: hidden; }
.clients__item.is-open .clients__panel { grid-template-rows: 1fr; }
.clients__trades { list-style: none; margin: 0; padding: 4px 12px 34px; display: grid; gap: 4px; }
.clients__trades li {
  display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line);
  font: 700 clamp(17px, 1.5vw, 22px)/1.2 var(--titling); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
}
.clients__trades li:first-child { border-top: 0; }
.clients__trades li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--gold); }
.clients__item.is-open .clients__trades li { opacity: 1; transform: none; transition-delay: calc(150ms + var(--i) * 70ms); }
@media (max-width: 700px) {
  .clients__plus { width: 42px; height: 42px; }
}
/* ---------- 07 · L'avocat ---------- */
.lawyer {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(100px, 12vw, 160px);
}
.lawyer__portrait { position: relative; margin: 0; overflow: clip; border-radius: 4px; }
.lawyer__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
/* Quatre cases or qui s'ouvrent sur le portrait — le damier du logo */
.lawyer__tiles { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; bottom: 34px; }
.lawyer__tiles i { background: var(--gold); transform-origin: top; }
.lawyer__portrait figcaption { margin-top: 12px; color: var(--ink-3); }
.lawyer blockquote { font: 400 clamp(36px, 4.4vw, 64px)/1.02 var(--serif); letter-spacing: -0.02em; margin-bottom: 32px; }
.lawyer__text > p:not(.label) { color: var(--ink-2); max-width: 540px; }
/* « Votre interlocuteur » : le nom d'un seul tenant, sur une ligne, souligné
   d'un filet or ; puis la fonction et la présentation */
.lawyer__name {
  display: inline-block; white-space: nowrap; padding-bottom: 16px;
  font: 400 clamp(36px, 5vw, 76px)/1 var(--serif); letter-spacing: -0.02em;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 72px 3px no-repeat;
}
.lawyer__text > p.lawyer__role {
  margin: 18px 0 28px; color: var(--gold-2);
  font: 700 clamp(16px, 1.4vw, 20px)/1.3 var(--titling); letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: lining-nums;
}
.lawyer__text > p:not(.label):not(.lawyer__role) { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; color: var(--ink); }
.lawyer__text .facts dd { font-size: clamp(21px, 2vw, 28px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 16px 0 0; }
.facts dt { color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font: 400 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); }
@media (max-width: 800px) {
  .lawyer { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- 08 · Méthode ---------- */
.method { padding: 0 var(--gutter) clamp(100px, 12vw, 160px); }
.method h2 { font: 400 clamp(44px, 6vw, 96px)/0.98 var(--serif); letter-spacing: -0.03em; margin-bottom: 56px; }
.method h2 em { color: var(--ink-3); }
.method__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.method__list li {
  position: relative; padding: 26px 22px 30px; min-height: 280px;
  display: flex; flex-direction: column;
  border: 1px solid var(--ink); border-radius: 18px;
  transition: background-color 400ms;
}
/* la transition de transform n'est activée qu'une fois l'entrée animée terminée */
.method__list.is-in li { transition: background-color 400ms, transform 500ms var(--ease-out); }
.method__list li:hover { background: var(--gold); transform: translateY(-8px) rotate(-1deg); }
.method__list span { color: var(--ink-3); }
.method__list h3 { font: 400 40px/1 var(--serif); margin: auto 0 12px; }
.method__list p { margin: 0; font-size: 15px; color: var(--ink-2); }
/* Titres et textes alignés d'une carte à l'autre, quelle que soit la
   longueur du texte : chaque carte partage les rangées de la grille */
@supports (grid-template-rows: subgrid) {
  .method__list li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; min-height: 0; }
  .method__list span { align-self: start; }
  .method__list h3 { margin: 80px 0 12px; align-self: end; }
}
@media (max-width: 980px) { .method__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .method__list { grid-template-columns: 1fr; } .method__list li { min-height: 200px; } }

/* ---------- 09 · Contact ---------- */
.contact {
  background: var(--ink); color: var(--paper);
  padding: clamp(100px, 12vw, 170px) var(--gutter) 80px;
  border-radius: 28px 28px 0 0; margin: 0 clamp(8px, 1.2vw, 16px);
}
.contact__title { font: 400 clamp(52px, 9.5vw, 156px)/0.9 var(--serif); letter-spacing: -0.04em; }
.contact__title em { color: var(--gold); }
.contact__grid { display: grid; gap: 14px; margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(242, 238, 228, 0.2); }
.contact__big {
  justify-self: start; font: 400 clamp(26px, 4.4vw, 64px)/1.1 var(--serif);
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat;
  transition: background-size 600ms var(--ease), color 300ms;
  overflow-wrap: anywhere;
  padding: 8px 0; /* zone de toucher d'au moins 44 px */
}
.contact__big:hover { background-size: 100% 2px; color: var(--gold); }
.contact__grid .mono { color: #9C978C; margin: 18px 0 0; }
/* Accueil : la question à gauche, une flèche or, les coordonnées en face */
.contact { scroll-margin-top: var(--nav-h, 106px); padding-top: clamp(56px, 6vw, 96px); }
.contact__layout {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center;
  column-gap: clamp(24px, 4vw, 72px);
}
.contact__layout .contact__title { font-size: clamp(48px, 6.4vw, 112px); }
.contact__layout .contact__grid { margin-top: 0; padding-top: 0; border-top: 0; padding-left: clamp(20px, 2.5vw, 40px); border-left: 1px solid rgba(242, 238, 228, 0.2); }
.contact__layout .contact__big { font-size: clamp(26px, 3.9vw, 64px); }
.contact__arrow {
  font: 400 clamp(56px, 7vw, 120px)/1 var(--serif); color: var(--gold);
  animation: contactArrow 1.8s var(--ease) infinite;
}
@keyframes contactArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
@media (max-width: 900px) {
  .contact__layout { grid-template-columns: 1fr; row-gap: 20px; }
  .contact__arrow { transform: rotate(90deg); justify-self: start; animation-name: contactArrowDown; line-height: 0.8; }
  .contact__layout .contact__grid { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid rgba(242, 238, 228, 0.2); }
}
@keyframes contactArrowDown { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(10px); } }
/* Adresse : capitales Garamond, comme les titres, plutôt que la police machine */
.contact__grid p.mono {
  font: 600 clamp(17px, 1.5vw, 21px)/1.5 var(--titling); letter-spacing: 0.14em;
  font-variant-numeric: lining-nums; color: #CFC9BC; text-align: left;
}

/* Pied de page : logo, navigation, et le cartouche du plan (comme sur une
   planche d'architecte : numéro de planche, titre, échelle). */
.footer {
  background: var(--ink); color: #9C978C;
  padding: 44px var(--gutter) 32px; margin: 0 clamp(8px, 1.2vw, 16px);
  border-top: 1px solid rgba(242, 238, 228, 0.12);
}
.contact + .footer, .footer--flush { border-top: 1px solid rgba(242, 238, 228, 0.12); }
.footer--round { border-radius: 28px 28px 0 0; border-top: 0; }
.footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
/* Logo et rubriques du pied de page à la même taille que dans le bandeau du haut */
.footer img { height: 58px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center; padding-top: 18px; }
.footer__nav a { color: var(--paper); font: 600 clamp(16px, 1.35vw, 18px)/1.3 var(--sans); letter-spacing: 0.01em; padding: 10px 0; transition: color 250ms; }
@media (max-width: 860px) { .footer img { height: 50px; } }
@media (min-width: 861px) and (max-width: 1180px) { .footer__nav a { font-size: 15px; } }
.footer__nav a:hover { color: var(--gold); }
.cartouche { border: 1px solid rgba(242, 238, 228, 0.3); display: grid; min-width: 260px; }
.cartouche span { padding: 8px 12px; border-bottom: 1px solid rgba(242, 238, 228, 0.3); }
.cartouche span:last-child { border-bottom: 0; }
.cartouche b { color: var(--gold); font-weight: 500; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(242, 238, 228, 0.12); }
.footer__bottom p { margin: 0; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .deadline { grid-template-columns: 1fr; text-align: left; }
  .deadline__num { font-size: 58vw; text-align: left; }
  .hero__plan { -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 16%, transparent 36%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 16%, transparent 36%); }
  .hero__meta span:nth-child(2) { display: none; }
}

/* ---------- Sans animation (mouvement réduit ou scripts indisponibles) :
   tout est visible dans son état final ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.static .loader { display: none; }
.static .manifesto__text .w { opacity: 1; }
.static .draw, .static .hero__plan .parcel { stroke-dashoffset: 0 !important; }
.static .build__drawing .dim, .static .build__drawing .win, .static .stamp { opacity: 1; transform: none; }
.static .stamp { position: static; display: inline-grid; margin: 8px 8px 0 0; }
.static .lawyer__tiles { display: none; }
.static .step { opacity: 1; }
.static .statement span { --fill: 100%; }

/* ==========================================================================
   Pages intérieures — chaque page est une « planche » du dossier de plans
   ========================================================================== */

/* Lien courant de la navigation : une petite parcelle or devant le mot */
.nav__links a[aria-current="page"] { padding-left: 14px; }
.nav__links a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; background: var(--gold);
}

.hero--page { min-height: 88svh; }
.hero--page .hero__title { font-size: clamp(50px, 7.8vw, 140px); }
.hero--page .hero__lead { max-width: 520px; }

/* Bandeau d'appel à l'action, en aplat or */
.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  margin: 0 clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px); padding: clamp(48px, 7vw, 96px) var(--gutter);
  background: var(--gold); border-radius: 28px;
}
.band h2 { font: 400 clamp(36px, 5vw, 76px)/1 var(--serif); letter-spacing: -0.02em; max-width: 900px; }
.band p { margin: 14px 0 0; max-width: 560px; color: var(--ink-2); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2 em { color: var(--gold); }
.band--ink p { color: #BDB8AD; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* « Planche suivante » : un grand lien qui mène à la page d'après */
.next {
  display: block; padding: clamp(70px, 10vw, 130px) var(--gutter);
  border-top: 1px solid var(--ink); position: relative; isolation: isolate; overflow: hidden;
}
.next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: translateY(101%); transition: transform 700ms var(--ease); }
.next:hover::before { transform: translateY(0); }
.next .mono { color: var(--ink-3); }
.next strong { display: block; font: 400 clamp(56px, 11vw, 190px)/0.9 var(--serif); letter-spacing: -0.04em; margin-top: 14px; }
.next strong i { font-style: italic; display: inline-block; transition: transform 700ms var(--ease); }
.next:hover strong i { transform: translateX(0.25em); }

/* ---------- Expertises ---------- */
.xp {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(80px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--ink);
  scroll-margin-top: 40px;
}
.xp__side { align-self: start; }
@media (min-width: 900px) { .xp__side { position: sticky; top: 110px; } }
.xp__num {
  display: block; font: 400 clamp(120px, 17vw, 260px)/0.8 var(--serif); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.2px var(--ink);
  transition: color 700ms var(--ease);
}
.xp.is-active .xp__num { color: var(--gold); }
.xp__phase { color: var(--gold-2); margin: 28px 0 10px; }
.xp h2 { font: 400 clamp(36px, 4.2vw, 64px)/1 var(--serif); letter-spacing: -0.02em; }
.xp__intro { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; margin: 0 0 40px; color: var(--ink); }
.xp__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.xp__items li {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  padding: 22px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.xp__items li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); clip-path: inset(0 100% 0 0); transition: clip-path 600ms var(--ease); }
.xp__items li:hover::before { clip-path: inset(0 0 0 0); }
.xp__items li:hover { color: var(--ink); }
.xp__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.xp__tags span { font: 500 11px/1 var(--mono); letter-spacing: 0.05em; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 100px; }
@media (max-width: 899px) { .xp { grid-template-columns: 1fr; } .xp__num { font-size: 34vw; } }

/* Lexique : une grille de parcelles ; chaque sigle se retourne en définition */
.lexicon { padding: clamp(90px, 11vw, 150px) var(--gutter); }
.lexicon__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.lexicon__head h2 { font: 400 clamp(44px, 6vw, 96px)/0.95 var(--serif); letter-spacing: -0.03em; }
.lexicon__head p { max-width: 360px; margin: 0; color: var(--ink-2); }
.lexicon__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
}
.term {
  position: relative; aspect-ratio: 1 / 0.82; padding: 20px; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font: inherit; color: inherit; overflow: hidden;
  transition: background-color 350ms;
}
.term__abbr { position: absolute; left: 20px; bottom: 14px; font: 400 clamp(56px, 6vw, 88px)/1 var(--serif); letter-spacing: -0.03em; transition: transform 550ms var(--ease), font-size 550ms var(--ease); transform-origin: left bottom; }
.term__idx { position: absolute; top: 18px; left: 20px; color: var(--ink-3); }
.term__def { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; font-size: 15px; line-height: 1.45; opacity: 0; transform: translateY(14px); transition: opacity 400ms, transform 550ms var(--ease); }
.term__def strong { display: block; font: 400 22px/1.1 var(--serif); margin-bottom: 6px; }
.term:hover, .term:focus-visible, .term.is-open { background: var(--gold); outline: none; }
.term:hover .term__abbr, .term:focus-visible .term__abbr, .term.is-open .term__abbr { transform: translateY(-170%) scale(0.42); }
.term:hover .term__def, .term:focus-visible .term__def, .term.is-open .term__def { opacity: 1; transform: none; }
@media (max-width: 520px) { .term { aspect-ratio: auto; min-height: 190px; } }

/* ---------- Cabinet ---------- */
.bio2 {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.bio2__side { align-self: start; }
@media (min-width: 900px) { .bio2__side { position: sticky; top: 110px; } }
.bio2 .lawyer__portrait img { aspect-ratio: 4 / 5; }
/* Échelle harmonisée : titre ≈ 2,3 × chapeau, chapeau ≈ 1,2 × texte courant */
.bio2__text h2 { font: 400 clamp(32px, 3.2vw, 48px)/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 24px; max-width: 640px; }
.bio2__text h2 + p, .bio2__text .label + p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: var(--ink); }
/* « Pourquoi c'est important » : le développement dans la police des titres */
.bio2__text p.bio2__statement, .bio2__text .label + p.bio2__statement {
  font: 400 clamp(24px, 2.3vw, 34px)/1.25 var(--serif); letter-spacing: -0.01em; color: var(--ink);
  text-align: justify; margin: 0 0 22px; max-width: 680px;
}
/* Mots-clés : italique du titrage, et une « parcelle » or qui vient se
   tracer sous le mot à l'arrivée (comme on colorie une parcelle sur un plan) */
.accent {
  font-style: italic; color: var(--ink); white-space: nowrap;
  background: linear-gradient(90deg, var(--gold), var(--gold)) no-repeat left 88% / 0% 0.34em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.08em; transition: background-size 1.1s var(--ease);
}
.accent.is-in, .static .accent { background-size: 100% 0.34em; }
/* Phrase de conclusion, en bas de « Pourquoi c'est important » */
.bio2__text h2.bio2__conclusion { margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }.bio2__text p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 20px; max-width: 640px; }
.bio2__text section + section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
/* Le parcours, comme un tracé de voirie en trois étapes */
.path { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.path li { position: relative; padding-top: 26px; border-top: 2px dashed var(--ink-3); }
.path li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--gold); border: 1px solid var(--ink); }
.path strong { display: block; font: 400 24px/1.1 var(--serif); margin: 8px 0 6px; }
.path p { font-size: 14px; margin: 0; }
/* Façon de travailler (cabinet) : le même tracé, en quatre étapes, plus ample */
.path--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.path--4 strong { font-size: clamp(28px, 2.6vw, 38px); margin: 10px 0 12px; }
.path--4 p { font-size: 15px; color: var(--ink-2); max-width: 300px; }
@media (max-width: 980px) { .path--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 640px) { .path { grid-template-columns: 1fr; gap: 28px; } .bio2 { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .bio2 { grid-template-columns: 1fr; } }

/* Trois valeurs en lettres géantes, qui se remplissent d'or au défilement */
.statements { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(90px, 11vw, 150px); overflow: hidden; }
.statement { margin: 0; font: 400 clamp(64px, 15vw, 270px)/0.92 var(--serif); letter-spacing: -0.045em; }
.statement span {
  --fill: 0%;
  color: transparent; -webkit-text-stroke: 1.2px var(--ink);
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / var(--fill) 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.statement:nth-child(2) { text-align: center; font-style: italic; }
.statement:nth-child(3) { text-align: right; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
.duo article { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--ink); border-radius: 22px; }
.duo article:last-child { background: var(--ink); color: var(--paper); }
.duo article:last-child p { color: #BDB8AD; }
.duo h3 { font: 400 clamp(40px, 5vw, 78px)/1 var(--serif); margin: 18px 0 22px; }
.duo article:last-child h3 em { color: var(--gold); }
.duo p { margin: 0 0 16px; color: var(--ink-2); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

.facts--band { padding: 0 var(--gutter) clamp(90px, 11vw, 150px); margin: 0; border: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.facts--band div { border-top: 1px solid var(--ink); padding: 22px 0 0; }
.facts--band dd { font-size: clamp(26px, 2.6vw, 40px); }
@media (max-width: 800px) { .facts--band { grid-template-columns: 1fr; } }

/* ---------- Actualités ---------- */
.news { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  font: 500 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
  padding: 15px 18px; border: 1px solid var(--ink); border-radius: 100px; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 250ms, color 250ms;
}
.filters button:hover { background: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.articles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.article {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 170px minmax(0, 1fr) 60px; gap: 28px; align-items: start;
  padding: 40px 12px; border-bottom: 1px solid var(--ink);
}
.article[hidden] { display: none; }
.article::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); clip-path: inset(100% 0 0 0); transition: clip-path 650ms var(--ease); }
.article:hover::before { clip-path: inset(0 0 0 0); }
.article time, .article__cat { display: block; color: var(--ink-3); }
.article__cat { margin-top: 8px; color: var(--gold-2); }
.article:hover .article__cat { color: var(--ink); }
.article h2 { font: 400 clamp(28px, 3vw, 46px)/1.08 var(--serif); letter-spacing: -0.015em; margin-bottom: 14px; max-width: 900px; }
.article p { margin: 0; color: var(--ink-2); max-width: 720px; }
.article__arrow { font: 400 44px/1 var(--serif); justify-self: end; transition: transform 600ms var(--ease); }
.article:hover .article__arrow { transform: translateX(8px) rotate(-45deg); }
.news__note { margin: 28px 0 0; color: var(--ink-3); }
@media (max-width: 760px) {
  .article { grid-template-columns: 1fr; gap: 12px; }
  .article__arrow { display: none; }
}

/* ---------- Contact ---------- */
.reach { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); padding: clamp(80px, 10vw, 140px) var(--gutter); scroll-margin-top: 40px; }
.reach__links { display: grid; gap: 34px; align-content: start; }
.reach__links .mono { color: var(--ink-3); margin: 0 0 8px; }
.reach__links a, .reach__links address {
  display: inline-block; font: 400 clamp(30px, 4.4vw, 68px)/1.05 var(--serif); font-style: normal; letter-spacing: -0.02em;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 0.12em no-repeat;
  transition: background-size 600ms var(--ease);
  overflow-wrap: anywhere;
}
.reach__links a { padding: 6px 0; }
.reach__links a:hover { background-size: 100% 0.12em; }
.hours { border: 1px solid var(--ink); align-self: start; }
.hours caption { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 14px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font: 400 22px/1 var(--serif); }
.hours tr:last-child td { border-bottom: 0; }
.hours__note { color: var(--ink-3); margin: 14px 0 0; }
@media (max-width: 860px) { .reach { grid-template-columns: 1fr; } }

.situation { padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
.situation figure { margin: 0; position: relative; border: 1px solid var(--ink); border-radius: 22px; overflow: hidden; }
.situation iframe { display: block; width: 100%; height: clamp(360px, 55vw, 560px); border: 0; filter: grayscale(1) sepia(0.28) contrast(0.92) brightness(1.03); }
.situation figcaption {
  position: absolute; left: 16px; bottom: 16px; display: grid;
  background: var(--paper); border: 1px solid var(--ink);
}
.situation figcaption span { padding: 8px 12px; border-bottom: 1px solid var(--ink); }
.situation figcaption span:last-child { border-bottom: 0; }

/* FAQ : grandes questions, ouverture par grille (pas de calcul de hauteur) */
.faq { padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
.faq h2 { font: 400 clamp(44px, 6vw, 96px)/0.95 var(--serif); letter-spacing: -0.03em; margin-bottom: 44px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--ink); }
.faq__q {
  width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 12px; align-items: center;
  padding: 28px 8px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
  font: 400 clamp(24px, 2.8vw, 42px)/1.1 var(--serif);
}
.faq__q .mono { color: var(--ink-3); }
.faq__plus { position: relative; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; transition: background-color 300ms, transform 500ms var(--ease); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: var(--ink); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item.is-open .faq__plus { background: var(--gold); transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 60px 30px 84px; color: var(--ink-2); max-width: 860px; }
@media (max-width: 640px) {
  .faq__q { grid-template-columns: 36px minmax(0, 1fr) 44px; }
  .faq__a p { padding: 0 8px 26px 56px; }
}

/* ---------- Politique de confidentialité ---------- */
.hero--legal { min-height: 58svh; }
.legal { max-width: 820px; padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(90px, 11vw, 150px); color: var(--ink-2); }
.legal section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal h2 { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 18px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding: 0; list-style: none; }
.legal li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--gold); }
.legal address { font-style: normal; padding: 16px 20px; border-left: 2px solid var(--gold); background: var(--paper-2); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: 3px; }
.legal a:hover { background: var(--gold); }
.legal__meta { color: var(--ink-3); margin: 0; padding-top: 10px; }
.legal__meta:first-of-type { border-top: 1px solid var(--line); padding-top: 28px; }
.footer__bottom a:hover { color: var(--gold); }

/* ---------- Actualités : liste dynamique (API) ---------- */
.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;
}
.news__search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.news__search input {
  flex: 1 1 260px; min-width: 0; padding: 15px 18px;
  border: 1px solid var(--ink); border-radius: 100px; background: transparent;
  color: var(--ink); font: 400 16px/1.2 var(--sans);
}
.news__search input::placeholder { color: var(--ink-3); }
.news__search input:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.news__search button {
  padding: 15px 22px; border: 1px solid var(--ink); border-radius: 100px;
  background: var(--ink); color: var(--paper); cursor: pointer;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: background-color 250ms, color 250ms;
}
.news__search button:hover { background: var(--gold); color: var(--ink); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 48px; }
.pagination__btn {
  min-width: 44px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 100px;
  background: transparent; color: var(--ink); cursor: pointer;
  font: 500 13px/1 var(--mono); letter-spacing: 0.04em;
  transition: background-color 250ms, color 250ms;
}
.pagination__btn:hover:not([disabled]) { background: var(--gold); }
.pagination__btn.is-current { background: var(--ink); color: var(--paper); }
.pagination__btn[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Article : détail (style « legal » enrichi) ---------- */
.article-meta { color: var(--ink-3); margin: 22px 0 0; letter-spacing: 0.12em; }
.legal--article { max-width: 760px; }
.legal--article h2 { margin-top: 8px; }
.legal--article h3 {
  font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--serif); color: var(--ink);
  letter-spacing: -0.01em; margin: 34px 0 14px;
}
.legal--article ul, .legal--article ol { margin: 0 0 18px; padding-left: 22px; }
.legal--article ol { list-style: decimal; }
.legal--article ol li { padding-left: 6px; }
.legal--article ol li::before { content: none; }
.legal--article blockquote {
  margin: 24px 0; padding: 14px 22px; border-left: 2px solid var(--gold);
  background: var(--paper-2); color: var(--ink); font-style: italic;
}
.legal--article img { max-width: 100%; height: auto; margin: 24px 0; border-radius: 4px; }
.legal--article strong { color: var(--ink); }

.share__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.share__actions .btn.is-copied { background: var(--gold); color: var(--ink); }
