/* ==========================================================================
   YH Consulting — v2
   Charte de la marque : rouge #CC0202, noir #141213, blanc. Typographie
   Raleway (titres) et Open Sans (texte), reprises de l'identité existante.
   JetBrains Mono porte le registre technique : indices, référentiels, chiffres.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens */
:root {
  /* Surfaces */
  --paper:        #FFFFFF;
  --paper-raised: #F6F6F7;
  --paper-deep:   #ECECEE;
  --ink:          #141213;   /* noir du logo */
  --ink-raised:   #201E1F;

  /* Texte */
  --fg:        #141213;
  --fg-soft:   #3D3A3C;
  --fg-mute:   #5E5A5C;      /* AA sur blanc : 6,6:1 — ne pas éclaircir */
  --fg-invert: #FFFFFF;

  /* Accent — rouge de marque */
  --oxide:      #CC0202;
  --oxide-deep: #A00101;
  --oxide-tint: rgba(204, 2, 2, .07);

  /* Filets */
  --rule:        rgba(20, 18, 19, .13);
  --rule-strong: rgba(20, 18, 19, .26);
  --rule-invert: rgba(255, 255, 255, .18);

  /* Typographie */
  --font-display: "Raleway", "Trebuchet MS", Helvetica, sans-serif;
  --font-ui: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rythme */
  --shell: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --rail: 0px;
  --section-y: clamp(4.5rem, 9vw, 9rem);

  /* Mouvement */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 1180px) {
  :root { --rail: 62px; }
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--oxide); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: fixed;
  top: .75rem;
  left: calc(var(--rail) + .75rem);
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--fg-invert);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------- Texture & rail */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.rail {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 95;
  border-right: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem 0;
}

@media (min-width: 1180px) {
  .rail { display: flex; }
}

.rail__text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fg-soft);
  white-space: nowrap;
}
.rail__text--mute { color: var(--fg-mute); }
.rail__rule { flex: 0 1 8rem; width: 1px; background: var(--rule-strong); }
.rail__tick { width: 10px; height: 1px; background: var(--oxide); }

/* -------------------------------------------------------------- Layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 800px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section__more { margin-top: clamp(2rem, 4vw, 3.25rem); }

/* -------------------------------------------------------------- Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
  transition: border-color .3s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: .85rem var(--gutter);
}

.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--oxide);
  transition: width .12s linear;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-right: auto;
  min-width: 0;
}
/* Le monogramme reste lisible en petit ; le verrou complet, non. */
.brand__mark { height: 34px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: var(--fg);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

@media (max-width: 620px) { .brand__tag { display: none; } }
@media (max-width: 560px) { .brand__mark { height: 30px; } }

/* ----------------------------------------------------------------- Nav */
.nav { display: none; }
@media (min-width: 1000px) { .nav { display: block; } }

.nav__list { display: flex; align-items: center; gap: 1.75rem; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem 0;
  font-size: .93rem;
  font-weight: 500;
  color: var(--fg-soft);
  position: relative;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--oxide);
  transition: right .3s var(--ease);
}
.nav__link:hover, .nav__link.is-current, .nav__trigger[aria-expanded="true"] { color: var(--fg); }
.nav__link:hover::after, .nav__link.is-current::after { right: 0; }

.nav__chevron { transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + .9rem);
  left: -1.25rem;
  width: 22rem;
  padding: .5rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px -28px rgba(20, 22, 26, .45);
  animation: menu-in .22s var(--ease-out) both;
}
.submenu[hidden] { display: none; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.submenu__link {
  display: flex;
  gap: .9rem;
  padding: .85rem .9rem;
  transition: background .2s var(--ease);
}
.submenu__link:hover, .submenu__link.is-current { background: var(--paper-deep); }
.submenu__num {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--oxide);
  padding-top: .2rem;
}
.submenu__body { display: flex; flex-direction: column; gap: .1rem; }
.submenu__name { font-weight: 600; font-size: .95rem; }
.submenu__hint { font-size: .8rem; color: var(--fg-mute); line-height: 1.4; }

/* ------------------------------------------------------ Header actions */
.header__actions { display: flex; align-items: center; gap: clamp(.6rem, 1.5vw, 1.1rem); }

.langs { display: flex; align-items: center; gap: .3rem; font-family: var(--font-mono); font-size: .7rem; }
.langs li + li::before { content: "/"; color: var(--rule-strong); margin-right: .3rem; }
.langs__current { color: var(--fg); font-weight: 500; }
.langs__link { color: var(--fg-mute); transition: color .2s var(--ease); }
.langs__link:hover { color: var(--oxide); }

@media (max-width: 700px) { .header__actions .btn { display: none; } }

.burger {
  display: grid;
  gap: 5px;
  padding: .55rem .2rem;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* -------------------------------------------------------------- Drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 var(--rail);
  z-index: 99;
  background: var(--paper);
  padding: 6rem var(--gutter) 3rem;
  overflow-y: auto;
  animation: drawer-in .28s var(--ease-out) both;
}
.drawer[hidden] { display: none; }

@keyframes drawer-in { from { opacity: 0; } to { opacity: 1; } }

.drawer__item { border-bottom: 1px solid var(--rule); }
.drawer__item a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.drawer__item a:hover { color: var(--oxide); }
.drawer__num { font-family: var(--font-mono); font-size: .7rem; color: var(--oxide); }
.drawer__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--fg-mute);
}

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  background: var(--ink);
  color: var(--fg-invert);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--oxide);
  transform: translateY(101%);
  transition: transform .38s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--oxide); }

.btn--sm { padding: .62rem 1.1rem; font-size: .82rem; }
.btn--invert {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--invert:hover { color: var(--fg-invert); border-color: var(--oxide); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 500;
  font-size: .95rem;
  padding-bottom: .28rem;
  border-bottom: 1px solid var(--rule-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover { color: var(--oxide); border-color: var(--oxide); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; }

.hero--home {
  padding-top: clamp(2.25rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: clamp(1.1rem, 2.4vw, 2rem);
}
.hero__kicker::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3rem);
  height: 1px;
  background: var(--oxide);
}
.hero__index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--oxide);
  letter-spacing: 0;
  text-transform: none;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, min(8vw, 12vh), 7.5rem);
  line-height: .93;
  letter-spacing: -.025em;
  margin-bottom: clamp(1.4rem, 2.8vw, 2.5rem);
}
.hero__line { display: block; overflow: hidden; }
.hero__line-in {
  display: block;
  animation: line-up 1s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.hero__line:nth-child(2) .hero__line-in { padding-left: clamp(0rem, 8vw, 7rem); }
.hero__line:nth-child(3) .hero__line-in {
  color: var(--oxide);
  padding-left: clamp(0rem, 3vw, 2.5rem);
}

@keyframes line-up {
  from { transform: translateY(104%); }
  to   { transform: none; }
}

.hero__title--page {
  font-size: clamp(2.75rem, 8.5vw, 7rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero__title--doc { font-size: clamp(2.25rem, 6vw, 4rem); }

.hero__body {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.15rem, 2.2vw, 1.85rem);
}
@media (min-width: 880px) {
  .hero__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.hero__lede {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }
@media (min-width: 880px) { .hero__actions { justify-content: flex-end; } }

.hero--page {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.hero--page .hero__lede { max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.hero--dark {
  background: var(--ink);
  color: var(--fg-invert);
  border-bottom-color: var(--rule-invert);
  margin-bottom: 0;
}
.hero--dark .hero__lede { color: rgba(239, 234, 225, .74); }
.hero--dark .hero__kicker { color: rgba(239, 234, 225, .55); }
.hero--dark .specs__row { border-color: var(--rule-invert); }
.hero--dark .specs dt { color: rgba(239, 234, 225, .5); }

.hero--doc { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero--404 { padding-block: clamp(5rem, 14vw, 11rem); }

.hero__scroll {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
@media (min-width: 1000px) { .hero__scroll { display: flex; } }
.hero__scroll-line {
  width: 46px;
  height: 1px;
  background: var(--rule-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--oxide);
  transform-origin: left;
  animation: scroll-tick 2.4s var(--ease) infinite;
}
@keyframes scroll-tick {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* --------------------------------------------------------------- Specs */
.specs { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) {
  .specs { grid-template-columns: repeat(3, 1fr); border-top: 0; }
}
.specs__row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .specs__row { border-top: 1px solid var(--rule); border-bottom: 0; padding-right: 1.5rem; }
}
.specs dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.specs dd { font-size: .92rem; font-weight: 500; }
.specs--hero { margin-top: clamp(1.75rem, 3.5vw, 3rem); }

/* -------------------------------------------------------------- Ticker */
.ticker {
  border-block: 1px solid var(--rule);
  padding-block: .95rem;
  overflow: hidden;
  background: var(--paper-raised);
}
.ticker__track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker__group { display: flex; }
.ticker__item {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding-inline: 1.75rem;
}
.ticker__item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 1.75rem;
  background: var(--oxide);
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* -------------------------------------------------------- Section head */
.shead { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 62ch; }
.shead__meta {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.shead__index {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--oxide);
  letter-spacing: .1em;
}
.shead__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  position: relative;
  padding-left: 1.2rem;
}
.shead__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .7rem;
  height: 1px;
  background: var(--rule-strong);
}
.shead__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.shead__lede {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--fg-soft);
  max-width: 52ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- Intro */
.section--intro { border-top: 1px solid var(--rule); }

.intro { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.intro__text { display: grid; gap: 1.25rem; color: var(--fg-soft); font-size: 1.03rem; }
.intro__text p { text-wrap: pretty; }
.intro__text p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6em;
  line-height: .85;
  float: left;
  padding: .1em .14em 0 0;
  color: var(--oxide);
}

/* ------------------------------------------------------------- Figures */
.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 800px) { .figures { grid-template-columns: repeat(4, 1fr); } }

.figures__item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--paper);
  transition: background .3s var(--ease);
}
.figures__item:hover { background: var(--paper-raised); }
.figures__value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
}
.figures__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1.5;
}

/* ----------------------------------------------------------- Practices */
.section--practices { border-top: 1px solid var(--rule); }

.practices { border-top: 1px solid var(--rule-strong); }
.practice { border-bottom: 1px solid var(--rule); }

.practice__link {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  position: relative;
  transition: padding-left .4s var(--ease-out), color .3s var(--ease);
}
@media (min-width: 900px) {
  .practice__link { grid-template-columns: 5rem 1fr auto; align-items: center; }
  .practice__link:hover { padding-left: 1.5rem; }
}
.practice__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--oxide);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.practice__link:hover::before { transform: scaleY(1); }

.practice__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--oxide);
  line-height: 1;
}
.practice__main { display: grid; gap: .55rem; }
.practice__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.practice__tagline {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxide);
}
.practice__body { color: var(--fg-soft); max-width: 54ch; text-wrap: pretty; }

.practice__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  margin-top: .6rem;
}
.practice__bullet {
  font-size: .78rem;
  padding: .3rem .7rem;
  border: 1px solid var(--rule);
  color: var(--fg-soft);
  background: var(--paper-raised);
}

.practice__go { color: var(--fg-mute); transition: transform .35s var(--ease-out), color .3s; }
.practice__link:hover .practice__go { transform: translateX(8px); color: var(--oxide); }
@media (max-width: 899px) { .practice__go { display: none; } }

/* --------------------------------------------------------------- Steps */
.section--method { background: var(--paper-raised); border-block: 1px solid var(--rule); }

.steps {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  display: grid;
  gap: .5rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-raised);
  position: relative;
  transition: background .3s var(--ease);
}
.step:hover { background: var(--paper); }
.step__num { font-family: var(--font-mono); font-size: .74rem; color: var(--oxide); letter-spacing: .1em; }
.step__name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.1;
}
.step__duration {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.step__body { color: var(--fg-soft); font-size: .93rem; margin-top: .3rem; }

/* ------------------------------------------------------ Sequence (méthode) */
.sequence { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }

.sequence__item {
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 940px) {
  .sequence__item { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}
.sequence__head { display: grid; gap: .5rem; align-content: start; }
.sequence__num {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--oxide);
  letter-spacing: .12em;
}
.sequence__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.sequence__duration {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.sequence__body { display: grid; gap: 1.5rem; }
.sequence__text { color: var(--fg-soft); text-wrap: pretty; max-width: 60ch; }
.sequence__outputs {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 620px) { .sequence__outputs { grid-template-columns: repeat(2, 1fr); } }
.sequence__outputs li {
  background: var(--paper);
  padding: .85rem 1rem;
  font-size: .87rem;
  color: var(--fg-soft);
}

/* --------------------------------------------------------------- Cards */
.section--proof { border-top: 1px solid var(--rule); }
.section--principles { border-top: 1px solid var(--rule); }

.cards { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: grid;
  gap: .75rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  position: relative;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-strong);
  box-shadow: 0 22px 48px -34px rgba(20, 22, 26, .55);
}
.card__num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--oxide);
  letter-spacing: .12em;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.15;
}
.card__body { color: var(--fg-soft); font-size: .94rem; text-wrap: pretty; }

/* ------------------------------------------------------------- Sectors */
.sectors {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--rule);
}
@media (min-width: 900px) { .sectors { grid-template-columns: 20rem 1fr; align-items: start; } }
.sectors__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.sectors__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  grid-column: 1;
}
@media (min-width: 900px) { .sectors__title { grid-row: 2; } }
.sectors__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .55rem;
  align-content: start;
}
@media (min-width: 900px) { .sectors__list { grid-column: 2; grid-row: 1 / span 2; } }
.sectors__list li {
  font-size: .85rem;
  padding: .45rem .9rem;
  border: 1px solid var(--rule);
  color: var(--fg-soft);
  transition: border-color .25s, color .25s;
}
.sectors__list li:hover { border-color: var(--oxide); color: var(--oxide); }

/* -------------------------------------------------------------- Offers */
.section--offers { border-top: 1px solid var(--rule); background: var(--paper-raised); }

.offers { border-top: 1px solid var(--rule-strong); }
.offer {
  display: grid;
  gap: 1rem 3rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) { .offer { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

.offer__head { display: flex; gap: 1rem; align-items: baseline; }
.offer__num { font-family: var(--font-mono); font-size: .72rem; color: var(--oxide); }
.offer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.offer__content { display: grid; gap: 1.1rem; }
.offer__body { color: var(--fg-soft); text-wrap: pretty; max-width: 58ch; }
.offer__bullets { display: grid; gap: .45rem; }
.offer__bullets li {
  display: flex;
  gap: .7rem;
  font-size: .89rem;
  color: var(--fg-soft);
}
.offer__bullets li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: .58em;
  background: var(--oxide);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------- Signals */
.signals {
  display: grid;
  gap: 1.25rem 3rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--rule-strong);
  background: var(--oxide-tint);
}
@media (min-width: 880px) { .signals { grid-template-columns: 16rem 1fr; } }
.signals__title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oxide-deep);
  line-height: 1.6;
}
.signals__list { display: grid; gap: .7rem; }
.signals__item { display: flex; gap: .85rem; font-size: .97rem; color: var(--fg); }
.signals__bullet {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .62em;
  border: 1px solid var(--oxide);
  border-radius: 50%;
}

/* -------------------------------------------------------- Deliverables */
.deliver {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--rule);
}
@media (min-width: 880px) { .deliver { grid-template-columns: 18rem 1fr; } }
.deliver__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.1;
}
.deliver__list { display: grid; gap: .6rem; }
@media (min-width: 700px) { .deliver__list { grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem; } }
.deliver__item { display: flex; gap: .7rem; font-size: .93rem; color: var(--fg-soft); }
.deliver__check { color: var(--oxide); margin-top: .35em; flex: none; }

/* -------------------------------------------------------------- Chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .75rem 1.1rem;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  transition: border-color .25s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--oxide); transform: translateY(-2px); }
.chip__code { font-weight: 600; font-size: .92rem; }
.chip__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ------------------------------------------------------------ Corridor */
.section--corridor { background: var(--paper-raised); border-block: 1px solid var(--rule); }
.corridor { display: grid; gap: 2rem 3rem; align-items: center; }
@media (min-width: 900px) { .corridor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.corridor__map {
  color: var(--fg-soft);
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1rem;
}
.corridor__pin {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .18em;
  fill: currentColor;
}
.corridor__path { animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }

.corridor__specs { display: grid; }
.corridor__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.corridor__row:first-child { border-top: 1px solid var(--rule); }
.corridor__row dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.corridor__row dd { font-weight: 500; text-align: right; }

/* ---------------------------------------------------------- Frameworks */
.section--frameworks { background: var(--ink); color: var(--fg-invert); }
.section--frameworks .shead__title { color: var(--fg-invert); }
.section--frameworks .shead__label { color: rgba(239, 234, 225, .55); }
.section--frameworks .shead__label::before { background: var(--rule-invert); }

.frameworks { display: flex; flex-wrap: wrap; gap: .55rem; }
.framework {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .6rem 1rem;
  border: 1px solid var(--rule-invert);
  color: rgba(239, 234, 225, .82);
  transition: border-color .25s, color .25s, background .25s;
}
.framework:hover { border-color: var(--oxide); color: var(--fg-invert); background: rgba(178, 58, 22, .18); }

/* ------------------------------------------------- Références sans cas */
.noref {
  max-width: 62ch;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--oxide);
  background: var(--paper-raised);
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.noref__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  text-wrap: balance;
}
.noref__body { color: var(--fg-soft); text-wrap: pretty; }
.noref .btn { margin-top: .75rem; }

/* --------------------------------------------------------------- Cases */
.note {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--oxide);
  background: var(--paper-raised);
  font-size: .92rem;
  color: var(--fg-soft);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 70ch;
}
.note__mark { font-family: var(--font-display); font-size: 1.3rem; color: var(--oxide); line-height: 1; }

.cases { border-top: 1px solid var(--rule-strong); }
.case {
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 940px) { .case { grid-template-columns: 12rem 1fr; } }

.case__aside { display: grid; gap: .5rem; align-content: start; }
.case__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--oxide);
  line-height: 1;
}
.case__practice {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border-bottom: 1px solid var(--rule-strong);
  justify-self: start;
  padding-bottom: .15rem;
  transition: color .25s, border-color .25s;
}
.case__practice:hover { color: var(--oxide); border-color: var(--oxide); }
.case__geo { font-family: var(--font-mono); font-size: .68rem; color: var(--fg-mute); letter-spacing: .1em; }

.case__client {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: .6rem;
}
.case__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-bottom: .9rem;
  text-wrap: balance;
}
.case__context { color: var(--fg-soft); max-width: 62ch; margin-bottom: 1.75rem; text-wrap: pretty; }

.case__cols { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 720px) { .case__cols { grid-template-columns: repeat(2, 1fr); } }
.case__legend {
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--oxide);
  letter-spacing: .14em;
  padding-bottom: .6rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
}
.case__work { display: grid; gap: .5rem; }
.case__work li { display: flex; gap: .7rem; font-size: .89rem; color: var(--fg-soft); }
.case__work li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 1px;
  margin-top: .78em;
  background: var(--fg-mute);
}
.case__outcome { font-size: .95rem; color: var(--fg); text-wrap: pretty; }
.case__col--outcome { background: var(--paper-raised); padding: 1.1rem 1.25rem; border: 1px solid var(--rule); }
.case__col--outcome .case__legend { margin-top: -.2rem; }

/* ---------------------------------------------------- Caps / formats */
.caps { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 700px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .caps { grid-template-columns: repeat(4, 1fr); } }

.caps__name {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding-bottom: .85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-strong);
}
.caps__num { font-family: var(--font-mono); font-size: .66rem; color: var(--oxide); }
.caps__list { display: grid; gap: .45rem; }
.caps__list li { font-size: .9rem; color: var(--fg-soft); }

.formats { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 880px) { .formats { grid-template-columns: repeat(3, 1fr); } }
.format { display: grid; gap: .7rem; align-content: start; padding: clamp(1.4rem, 3vw, 2rem); background: var(--paper); }
.format__head { display: grid; gap: .3rem; }
.format__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.format__meta {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oxide);
}
.format__body { font-size: .92rem; color: var(--fg-soft); }

/* ------------------------------------------------------------- Offices */
.section--offices { border-top: 1px solid var(--rule); }
.office-cards { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 760px) { .office-cards { grid-template-columns: repeat(2, 1fr); } }

.office-card {
  display: grid;
  gap: .45rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}
.office-card__country {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oxide);
}
.office-card__city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: .3rem;
}
.office-card__address { display: grid; gap: .15rem; color: var(--fg-soft); font-size: .93rem; }
.office-card__phone {
  margin-top: .6rem;
  font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
  justify-self: start;
  transition: color .25s, border-color .25s;
}
.office-card__phone:hover { color: var(--oxide); border-color: var(--oxide); }
.office-card__coords { font-family: var(--font-mono); font-size: .66rem; color: var(--fg-mute); letter-spacing: .06em; }

/* ----------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 900px) { .faq { grid-template-columns: 18rem 1fr; align-items: start; } }
.faq__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.08;
}
.faq__list { border-top: 1px solid var(--rule-strong); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
  transition: color .25s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--oxide); }
.faq__sign { position: relative; flex: none; width: 12px; height: 12px; }
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  background: var(--oxide);
  transition: transform .3s var(--ease);
}
.faq__sign::before { inset: 5.5px 0; height: 1px; }
.faq__sign::after { inset: 0 5.5px; width: 1px; }
.faq__item[open] .faq__sign::after { transform: scaleY(0); }
.faq__a { padding-bottom: 1.25rem; color: var(--fg-soft); max-width: 64ch; }
.faq__item[open] .faq__a { animation: fade-in .3s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- Related */
.related__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 1.25rem;
}
.related { border-top: 1px solid var(--rule-strong); }
.related__item { border-bottom: 1px solid var(--rule); }
.related__link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 0;
  transition: padding-left .35s var(--ease-out), color .25s;
}
.related__link:hover { padding-left: 1rem; color: var(--oxide); }
.related__index { font-family: var(--font-display); font-weight: 800; color: var(--oxide); font-size: 1.1rem; }
.related__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  margin-right: auto;
}
.related__arrow { color: var(--fg-mute); transition: transform .35s var(--ease-out); }
.related__link:hover .related__arrow { transform: translateX(8px); color: var(--oxide); }

/* ----------------------------------------------------------------- CTA */
.cta { background: var(--ink); color: var(--fg-invert); }
.cta__inner {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(4rem, 8vw, 7rem);
  max-width: 62ch;
}
.cta__kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(239, 234, 225, .55);
}
.cta__kicker::before { content: ""; width: 2rem; height: 1px; background: var(--oxide); }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.cta__body { color: rgba(239, 234, 225, .72); max-width: 52ch; text-wrap: pretty; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; margin-top: .75rem; }
.cta__mail { display: grid; gap: .15rem; font-size: .88rem; }
.cta__mail span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(239, 234, 225, .5); }
.cta__mail a { border-bottom: 1px solid var(--rule-invert); transition: color .25s, border-color .25s; }
.cta__mail a:hover { color: var(--oxide); border-color: var(--oxide); }

/* ------------------------------------------------------------- Contact */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 980px) { .contact { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); } }

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: .75rem;
}
.contact__lede { color: var(--fg-soft); max-width: 52ch; margin-bottom: 2rem; }

.alert { padding: 1.15rem 1.4rem; border: 1px solid var(--rule-strong); margin-bottom: 2rem; }
.alert__title { font-weight: 600; margin-bottom: .25rem; }
.alert--ok { border-left: 3px solid #1F5C46; background: rgba(31, 92, 70, .07); }
.alert--error { border-left: 3px solid var(--oxide); background: var(--oxide-tint); }

.form__grid { display: grid; gap: 1.25rem 1.5rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field__label span { color: var(--oxide); }

.field__input {
  width: 100%;
  padding: .8rem .95rem;
  font: inherit;
  font-size: .95rem;
  color: var(--fg);
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  transition: border-color .2s, background .2s;
  appearance: none;
}
.field__input:hover { border-color: var(--fg-mute); }
.field__input:focus-visible { border-color: var(--oxide); outline-offset: 1px; }
.field__input--area { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field__input[aria-invalid="true"] { border-color: var(--oxide); background: var(--oxide-tint); }

.field__select { position: relative; display: block; }
.field__select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--fg-soft);
  border-bottom: 1px solid var(--fg-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__hint { font-size: .78rem; color: var(--fg-mute); }
.field__error { font-size: .78rem; color: var(--oxide); font-weight: 500; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem; }
.consent__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .18rem;
  accent-color: var(--oxide);
}
.consent__label { font-size: .85rem; color: var(--fg-soft); line-height: 1.5; }
.consent__label a { color: var(--oxide); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form__status { font-family: var(--font-mono); font-size: .76rem; color: var(--fg-mute); }
.form__status[data-tone="error"] { color: var(--oxide); }
.form__status[data-tone="ok"] { color: #1F5C46; }

.contact__aside { display: grid; gap: 2.5rem; align-content: start; }
.promise { display: grid; gap: 1.25rem; }
.promise__item { display: grid; gap: .3rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.promise__num { font-family: var(--font-mono); font-size: .66rem; color: var(--oxide); letter-spacing: .12em; }
.promise__title { font-size: 1rem; font-weight: 600; }
.promise__body { font-size: .88rem; color: var(--fg-soft); }

.direct { padding: clamp(1.4rem, 3vw, 2rem); background: var(--ink); color: var(--fg-invert); }
.direct__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(239, 234, 225, .5);
  margin-bottom: .6rem;
}
.direct__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-bottom: 1.1rem; }
.direct__mail {
  display: inline-block;
  font-size: 1rem;
  border-bottom: 1px solid var(--rule-invert);
  margin-bottom: 1.5rem;
  transition: color .25s, border-color .25s;
}
.direct__mail:hover { color: var(--oxide); border-color: var(--oxide); }
.direct__offices { display: grid; gap: .6rem; }
.direct__offices li { display: flex; justify-content: space-between; gap: 1rem; padding-top: .6rem; border-top: 1px solid var(--rule-invert); font-size: .88rem; }
.direct__city { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(239, 234, 225, .55); }

/* ------------------------------------------------------- Docs & 404 */
.doc__updated { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); margin-top: 1.5rem; }
.doc { display: grid; gap: 2.5rem; }
.doc__section { display: grid; gap: .85rem; }
.doc__title {
  display: flex;
  gap: .85rem;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule);
}
.doc__num { font-family: var(--font-mono); font-size: .66rem; color: var(--oxide); }
.doc__p { color: var(--fg-soft); font-size: .96rem; text-wrap: pretty; }
.doc__p strong { color: var(--fg); }

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: .85;
  color: var(--oxide);
  opacity: .16;
  letter-spacing: -.04em;
  margin-bottom: -.1em;
}
.notfound__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.25rem;
}
.notfound__links { display: grid; gap: 1rem; justify-items: start; }

/* -------------------------------------------------------------- Footer */
.footer {
  background: var(--ink);
  color: var(--fg-invert);
  border-top: 1px solid var(--ink);
  /* L'interlignage de lecture (1.62) est trop généreux pour une liste de
     liens : il gonflait le pied de page d'un tiers sans rien apporter. */
  line-height: 1.38;
}
/* margin, pas padding : avec box-sizing:border-box un padding supérieur à la
   hauteur réduirait la zone de contenu à zéro et l'image disparaîtrait. */
.footer__logo {
  height: 46px;
  width: auto;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.footer__top {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule-invert);
}
@media (min-width: 880px) { .footer__top { grid-template-columns: 1fr auto; align-items: end; } }
.footer__baseline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  max-width: 30ch;
  text-wrap: balance;
}
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--rule-invert);
  transition: color .25s, border-color .25s;
}
.footer__mail:hover { color: var(--oxide); border-color: var(--oxide); }
.footer__mail svg { transition: transform .3s var(--ease-out); }
.footer__mail:hover svg { transform: translate(2px, -2px); }

.footer__grid {
  display: grid;
  gap: 1.6rem 2rem;
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr .8fr; } }

/* Sous 1000 px, le bloc bureaux occupe toute la largeur : il porte deux
   adresses, les comprimer dans une demi-colonne allonge inutilement le pied
   de page. */
@media (max-width: 879px) {
  /* Empilés, le soulignement du lien e-mail et le filet du bandeau forment
     un double trait parasite. */
  .footer__top { border-bottom: 0; padding-bottom: .5rem; }
}

@media (max-width: 620px) {
  /* La référence de dossier est décorative : elle coûte une ligne entière
     sur un petit écran. */
  .footer__ref { display: none; }
}

@media (max-width: 999px) {
  .footer__col--offices { grid-column: 1 / -1; }
  /* Deux liens ne justifient pas une rangée : on les met en ligne. */
  .footer__col:last-child .footer__links { display: flex; gap: 1.25rem; }
}

.footer__title {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(239, 234, 225, .45);
  margin-bottom: .7rem;
}
.footer__links { display: grid; gap: .3rem; }
.footer__links a {
  font-size: .93rem;
  color: rgba(239, 234, 225, .82);
  transition: color .22s;
}
.footer__links a:hover { color: var(--oxide); }

.offices { display: grid; gap: 1.1rem; }
@media (min-width: 340px) { .offices { grid-template-columns: repeat(2, 1fr); } }
.office { display: grid; gap: .1rem; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.office__city { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--fg-invert); }
.office__country { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oxide); margin-bottom: .35rem; }
.office__phone { margin-top: .45rem; color: var(--fg-invert); border-bottom: 1px solid var(--rule-invert); justify-self: start; transition: color .25s, border-color .25s; }
.office__phone:hover { color: var(--oxide); border-color: var(--oxide); }
.office__coords { display: none; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule-invert);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(239, 234, 225, .5);
}
.footer__legal-links { display: flex; gap: 1.5rem; margin-right: auto; }
.footer__legal-links a { transition: color .22s; }
.footer__legal-links a:hover { color: var(--oxide); }

/* ------------------------------------------------------------ Reveals */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__line-in { animation: none; }
}

/* ------------------------------------------------------------ Print */
@media print {
  .header, .footer, .rail, .grain, .drawer, .ticker, .hero__scroll { display: none !important; }
  body { padding-left: 0; background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .cta, .section--frameworks, .direct { background: #fff; color: #000; }
}
