/* ==========================================================================
   Julien Jimenez, portail de reference
   Direction artistique : editorial magazine premium
   Titres serif, corps sans serif systeme, filets fins, sections numerotees
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  /* Palette imposee */
  --nuit: #0B1B33;
  --nuit-clair: #14294a;
  --nuit-profond: #071223;
  --or: #C8A24B;
  --or-clair: #ddbe77;
  --or-sombre: #7d6220;
  --ivoire: #F7F4EE;
  --ivoire-fonce: #efeae1;
  --blanc: #FFFFFF;
  --texte: #1F2937;
  --texte-2: #5B6675;
  --bord: #E3DED2;
  --bord-fort: #cfc7b6;

  /* Typographie */
  --serif: Georgia, "Times New Roman", "Nimbus Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Echelle fluide */
  --fs-xxl: clamp(3.2rem, 9vw, 7.4rem);
  --fs-xl: clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-lg: clamp(1.6rem, 2.6vw, 2.15rem);
  --fs-md: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-body: clamp(1rem, 0.96rem + 0.22vw, 1.08rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* Espacements */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: clamp(4rem, 9vw, 8.5rem);

  /* Rayons et ombres */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-full: 999px;
  --sh-1: 0 1px 2px rgba(11, 27, 51, 0.05);
  --sh-2: 0 8px 24px -12px rgba(11, 27, 51, 0.18);
  --sh-3: 0 24px 60px -28px rgba(11, 27, 51, 0.32);
  --sh-gold: 0 18px 40px -22px rgba(200, 162, 75, 0.65);

  /* Divers */
  --maxw: 1240px;
  --maxw-narrow: 820px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.55s;
}

/* --------------------------------------------------------------------------
   2. Reinitialisation raisonnee
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--texte);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--nuit);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
}

p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

strong { font-weight: 650; color: var(--nuit); }

::selection { background: var(--or); color: var(--nuit); }

/* --------------------------------------------------------------------------
   3. Accessibilite
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--nuit);
  color: var(--ivoire);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. Conteneurs et elements editoriaux communs
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 3rem);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--sp-10); position: relative; }
.section--alt { background: var(--ivoire-fonce); }
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--bord);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--or-sombre);
  margin-bottom: var(--sp-4);
}

.num {
  font-family: var(--mono);
  font-size: 0.44em;
  letter-spacing: 0.14em;
  color: var(--or);
  vertical-align: 0.65em;
  margin-right: 0.7em;
  font-weight: 500;
}

.sec-head { max-width: 760px; margin-bottom: var(--sp-8); }
.sec-head h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}
.sec-head__lede {
  font-size: var(--fs-md);
  line-height: 1.62;
  color: var(--texte-2);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 0;
}
.sec-head--light h2,
.sec-head--light .sec-head__lede { color: var(--ivoire); }
.sec-head--light .sec-head__lede { color: rgba(247, 244, 238, 0.76); }
.sec-head--light .eyebrow { color: var(--or-clair); }

/* --------------------------------------------------------------------------
   5. Barre de progression de lecture
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: transparent;
  z-index: 120;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--or-sombre), var(--or), var(--or-clair));
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   6. Entete
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--bord);
  box-shadow: var(--sh-1);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--nuit);
  color: var(--or);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--r-sm);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.06rem;
  color: var(--nuit);
}
.brand__text span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.nav__list { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.35rem); }
.nav__list a {
  position: relative;
  font-size: 0.87rem;
  color: var(--texte-2);
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width 0.35s var(--ease);
}
.nav__list a:hover { color: var(--nuit); }
.nav__list a:hover::after,
.nav__list a.is-active::after { width: 100%; }
.nav__list a.is-active { color: var(--nuit); font-weight: 600; }

.nav__cta {
  background: var(--nuit);
  color: var(--ivoire) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--r-full);
  font-weight: 600;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--nuit-clair); transform: translateY(-1px); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--bord);
  border-radius: var(--r-sm);
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--nuit);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Sommaire flottant lateral
   -------------------------------------------------------------------------- */
.toc {
  display: none;
  position: fixed;
  left: clamp(1rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  padding-left: var(--sp-4);
  border-left: 1px solid var(--bord);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.toc.is-visible { opacity: 1; }
.toc__title {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texte-2);
  margin-bottom: var(--sp-3);
}
.toc__list { display: flex; flex-direction: column; gap: 0.28rem; }
.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--texte-2);
  padding: 0.14rem 0;
  opacity: 0.72;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toc__list a span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--bord-fort);
  transition: color 0.3s var(--ease);
}
.toc__list a:hover { opacity: 1; color: var(--nuit); transform: translateX(3px); }
.toc__list a.is-active { opacity: 1; color: var(--nuit); font-weight: 600; }
.toc__list a.is-active span { color: var(--or); }

/* --------------------------------------------------------------------------
   8. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.32s var(--ease), background 0.32s var(--ease), color 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--dark { background: var(--nuit); color: var(--ivoire); box-shadow: var(--sh-2); }
.btn--dark:hover { background: var(--nuit-clair); box-shadow: var(--sh-3); }

.btn--gold { background: var(--or); color: var(--nuit); box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--or-clair); }

.btn--ghost { border-color: var(--bord-fort); color: var(--nuit); background: transparent; }
.btn--ghost:hover { border-color: var(--nuit); background: rgba(11, 27, 51, 0.04); }
.btn--ghost-light { border-color: rgba(247, 244, 238, 0.38); color: var(--ivoire); }
.btn--ghost-light:hover { border-color: var(--or); background: rgba(200, 162, 75, 0.12); }

/* --------------------------------------------------------------------------
   9. Hero editorial
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: 0; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 60%;
  background: radial-gradient(70% 90% at 15% 0%, rgba(200, 162, 75, 0.13), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}
.hero__title {
  font-size: var(--fs-xxl);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-5);
}
.hero__lede {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--nuit);
  max-width: 34ch;
  border-left: 2px solid var(--or);
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-5);
}
.hero__para { color: var(--texte-2); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-top: var(--sp-6);
}
.hero__tags li {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-2);
  border: 1px solid var(--bord);
  border-radius: var(--r-full);
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.hero__tags li:hover { border-color: var(--or); color: var(--nuit); }

.hero__portrait { margin: 0; text-align: center; }
.medallion {
  position: relative;
  width: clamp(220px, 34vw, 380px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, var(--or) 0%, var(--or-clair) 35%, var(--bord) 60%, var(--or-sombre) 100%);
  box-shadow: var(--sh-3);
}
.medallion::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--bord-fort);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.medallion:hover::after { transform: scale(1.045); opacity: 0.6; }
.medallion img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ivoire);
  filter: saturate(1.02) contrast(1.03);
}
.hero__portrait figcaption {
  margin-top: var(--sp-5);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.figcap__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--nuit);
}
.figcap__role {
  font-size: 0.8rem;
  color: var(--texte-2);
  max-width: 34ch;
  margin-inline: auto;
}
.hero__rule { margin-top: var(--sp-9); }
.hero__rule::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--bord-fort), transparent);
}

/* --------------------------------------------------------------------------
   10. Bandeau de chiffres
   -------------------------------------------------------------------------- */
.band {
  background: var(--nuit);
  color: var(--ivoire);
  padding-block: var(--sp-9);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(200, 162, 75, 0.14), transparent 45%),
    repeating-linear-gradient(90deg, rgba(247, 244, 238, 0.045) 0 1px, transparent 1px 120px);
  pointer-events: none;
}
.band > .wrap { position: relative; }
.band__title {
  color: var(--ivoire);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-7);
  max-width: 24ch;
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(247, 244, 238, 0.14);
  border: 1px solid rgba(247, 244, 238, 0.14);
}
.stat {
  background: var(--nuit);
  padding: clamp(1.3rem, 2.6vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.4s var(--ease);
}
.stat:hover { background: var(--nuit-clair); }
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1;
  color: var(--or);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(247, 244, 238, 0.72);
}
.band__note {
  margin-top: var(--sp-6);
  font-size: 0.94rem;
  color: rgba(247, 244, 238, 0.78);
  max-width: 70ch;
}
.band__note strong { color: var(--or); }

/* --------------------------------------------------------------------------
   11. Portrait, texte long en deux colonnes
   -------------------------------------------------------------------------- */
.portrait { display: grid; gap: var(--sp-7); align-items: start; }
.cols { column-gap: clamp(1.8rem, 3.5vw, 3.2rem); }
.cols p { break-inside: avoid; }
.dropcap {
  float: left;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 0.82;
  padding: 0.12em 0.14em 0 0;
  color: var(--or-sombre);
}

.card-id {
  border: 1px solid var(--bord);
  background: var(--blanc);
  padding: var(--sp-6);
  box-shadow: var(--sh-2);
  position: relative;
}
.card-id::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--or);
}
.card-id h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte-2);
  margin-bottom: var(--sp-5);
}
.card-id dl { margin: 0; display: flex; flex-direction: column; }
.card-id dl > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--bord);
  align-items: baseline;
}
.card-id dl > div:first-child { border-top: 0; padding-top: 0; }
.card-id dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-2);
}
.card-id dd { margin: 0; font-size: 0.92rem; color: var(--nuit); }
.card-id dd a { border-bottom: 1px solid var(--or); word-break: break-word; }
.card-id dd a:hover { color: var(--or-sombre); }

.figure-wide { margin: var(--sp-8) 0 0; }
.figure-wide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--bord);
  filter: saturate(0.96);
}
.figure-wide figcaption,
.clients__figure figcaption,
.contact__figure figcaption {
  margin-top: var(--sp-3);
  font-size: 0.82rem;
  color: var(--texte-2);
  border-left: 2px solid var(--or);
  padding-left: var(--sp-3);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   12. Grille des expertises
   -------------------------------------------------------------------------- */
.grid-exp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--bord);
  border: 1px solid var(--bord);
}
.exp {
  background: var(--ivoire-fonce);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  position: relative;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.exp::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.exp:hover { background: var(--blanc); }
.exp:hover::after { transform: scaleX(1); }
.exp__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--or-sombre);
  display: block;
  margin-bottom: var(--sp-3);
}
.exp h3 { font-size: 1.28rem; margin-bottom: var(--sp-3); }
.exp p { font-size: 0.92rem; color: var(--texte-2); margin: 0; }

.tools {
  margin-top: var(--sp-6);
  font-size: 0.86rem;
  color: var(--texte-2);
  line-height: 1.9;
  border-top: 1px solid var(--bord);
  padding-top: var(--sp-5);
}
.tools span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-sombre);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Methode en quatre temps
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-6); counter-reset: etape; }
.step {
  border-top: 1px solid var(--bord);
  padding-top: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}
.step__head { display: flex; align-items: baseline; gap: var(--sp-4); }
.step__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--or-sombre);
  min-width: 2.4rem;
  letter-spacing: 0.04em;
}
.step__head h3 { font-size: var(--fs-lg); margin: 0; }
.step p { color: var(--texte-2); margin: 0; }
.step__out {
  font-size: 0.86rem !important;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-left: 3px solid var(--or);
  padding: 0.85rem 1.1rem;
}
.step__out strong {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-sombre);
  margin-right: 0.6rem;
}
.method__note {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--bord);
  font-size: 0.9rem;
  color: var(--texte-2);
  max-width: 78ch;
}

/* --------------------------------------------------------------------------
   14. Section sombre et frise chronologique
   -------------------------------------------------------------------------- */
.section--dark {
  background: var(--nuit-profond);
  color: rgba(247, 244, 238, 0.82);
}
.section--dark h3 { color: var(--ivoire); }

.timeline { position: relative; }
.timeline__track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: var(--sp-5);
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 162, 75, 0.55) transparent;
}
.timeline__track::-webkit-scrollbar { height: 4px; }
.timeline__track::-webkit-scrollbar-track { background: rgba(247, 244, 238, 0.1); }
.timeline__track::-webkit-scrollbar-thumb { background: rgba(200, 162, 75, 0.6); }

.tl {
  flex: 0 0 clamp(240px, 74vw, 320px);
  scroll-snap-align: start;
  background: rgba(247, 244, 238, 0.035);
  border: 1px solid rgba(247, 244, 238, 0.12);
  border-top: 2px solid var(--or);
  padding: var(--sp-5);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tl:hover {
  background: rgba(247, 244, 238, 0.07);
  transform: translateY(-4px);
  border-color: rgba(200, 162, 75, 0.5);
}
.tl__year {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--or);
  margin-bottom: var(--sp-3);
}
.tl h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
.tl p { font-size: 0.88rem; color: rgba(247, 244, 238, 0.68); margin: 0; }

.timeline__controls {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.tl-btn {
  width: 46px; height: 46px;
  border: 1px solid rgba(247, 244, 238, 0.25);
  border-radius: 50%;
  color: var(--ivoire);
  display: grid; place-items: center;
  font-size: 1.05rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tl-btn:hover { background: var(--or); color: var(--nuit); border-color: var(--or); transform: scale(1.06); }
.timeline__progress {
  flex: 1;
  height: 1px;
  background: rgba(247, 244, 238, 0.18);
  position: relative;
}
.timeline__progress span {
  position: absolute;
  left: 0; top: -1px;
  height: 3px;
  width: 12%;
  background: var(--or);
  transition: width 0.2s linear, left 0.2s linear;
}

/* --------------------------------------------------------------------------
   15. Convictions
   -------------------------------------------------------------------------- */
.pull {
  margin: 0 0 var(--sp-8);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  max-width: 900px;
}
.pull p {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  line-height: 1.34;
  color: var(--nuit);
  margin-bottom: var(--sp-3);
  text-indent: -0.4em;
}
.pull cite {
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-sombre);
}

.grid-conv {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.conv {
  border-top: 1px solid var(--bord);
  padding-top: var(--sp-5);
  position: relative;
  transition: transform 0.4s var(--ease);
}
.conv::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width 0.6s var(--ease);
}
.conv:hover::before { width: 100%; }
.conv h3 { font-size: 1.24rem; margin-bottom: var(--sp-3); }
.conv p { font-size: 0.92rem; color: var(--texte-2); margin: 0; }

/* --------------------------------------------------------------------------
   16. Clients
   -------------------------------------------------------------------------- */
.clients { display: grid; gap: var(--sp-7); align-items: start; }
.clients__list { display: grid; gap: 0; }
.clients__list li {
  border-top: 1px solid var(--bord);
  padding: var(--sp-5) 0;
  transition: padding-left 0.4s var(--ease);
}
.clients__list li:last-child { border-bottom: 1px solid var(--bord); }
.clients__list li:hover { padding-left: var(--sp-4); }
.clients__list h3 { font-size: 1.16rem; margin-bottom: 0.4rem; }
.clients__list p { font-size: 0.9rem; color: var(--texte-2); margin: 0; }
.clients__figure { margin: 0; position: sticky; top: 110px; }
.clients__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--bord);
}

/* --------------------------------------------------------------------------
   17. Preuves et resultats
   -------------------------------------------------------------------------- */
.grid-cases { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.case {
  background: var(--blanc);
  border: 1px solid var(--bord);
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  box-shadow: var(--sh-1);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.case:hover {
  box-shadow: var(--sh-3);
  transform: translateY(-4px);
  border-color: var(--bord-fort);
}
.case__tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-sombre);
  border: 1px solid var(--bord);
  border-radius: var(--r-full);
  padding: 0.28rem 0.8rem;
  margin-bottom: var(--sp-4);
}
.case h3 { font-size: 1.35rem; margin-bottom: var(--sp-4); }
.case p { font-size: 0.92rem; color: var(--texte-2); }
.case__result {
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--bord-fort);
  color: var(--nuit) !important;
}
.case__result strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-sombre);
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--bord); }
.faq__item { border-bottom: 1px solid var(--bord); }
.faq__item h3 { margin: 0; font-size: 1rem; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
  padding: var(--sp-5) 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  color: var(--nuit);
  line-height: 1.32;
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.faq__q:hover { color: var(--or-sombre); padding-left: 0.4rem; }
.faq__icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: 1px solid var(--bord-fort);
  border-radius: 50%;
  position: relative;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--nuit);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.faq__icon::before { width: 11px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 11px; transform: translate(-50%, -50%); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--or); border-color: var(--or); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { overflow: hidden; }
.faq__a p {
  margin: 0;
  padding: 0 0 var(--sp-5);
  max-width: 72ch;
  color: var(--texte-2);
  font-size: 0.95rem;
}
.faq__a[hidden] { display: none; }
.faq__a.is-animating { transition: height 0.4s var(--ease); }

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--nuit);
  color: rgba(247, 244, 238, 0.8);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(200, 162, 75, 0.16), transparent 62%);
  pointer-events: none;
}
.contact > .wrap { position: relative; }
.contact__box {
  border: 1px solid rgba(247, 244, 238, 0.16);
  background: rgba(247, 244, 238, 0.04);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.contact__mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.6vw, 2.9rem);
  color: var(--ivoire);
  letter-spacing: -0.02em;
  word-break: break-word;
  border-bottom: 1px solid rgba(200, 162, 75, 0.5);
  padding-bottom: 0.1em;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.contact__mail:hover { color: var(--or); border-color: var(--or); }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.contact__status {
  min-height: 1.4em;
  margin: var(--sp-4) 0 0;
  font-size: 0.84rem;
  color: var(--or-clair);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__status.is-shown { opacity: 1; transform: translateY(0); }
.contact__meta {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(247, 244, 238, 0.14);
}
.contact__meta li { font-size: 0.86rem; color: rgba(247, 244, 238, 0.72); }
.contact__meta strong {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.15rem;
}
.contact__figure { margin: var(--sp-7) 0 0; max-width: 560px; }
.contact__figure img {
  width: 100%;
  border: 1px solid rgba(247, 244, 238, 0.18);
}
.contact__figure figcaption {
  color: rgba(247, 244, 238, 0.6);
  border-left-color: var(--or);
}

/* --------------------------------------------------------------------------
   20. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--nuit-profond);
  color: rgba(247, 244, 238, 0.72);
  padding-block: var(--sp-8) var(--sp-6);
  border-top: 1px solid rgba(200, 162, 75, 0.28);
}
.footer__grid { display: grid; gap: var(--sp-7); }
.footer__brand { display: flex; gap: var(--sp-5); align-items: flex-start; }
.footer__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--or);
  padding: 3px;
  flex: 0 0 auto;
  background: var(--nuit);
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ivoire);
  margin-bottom: 0.35rem;
}
.footer__role { font-size: 0.86rem; max-width: 46ch; margin-bottom: var(--sp-3); }
.footer__mail a {
  color: var(--or);
  border-bottom: 1px solid rgba(200, 162, 75, 0.4);
  font-size: 0.9rem;
  word-break: break-word;
}
.footer__mail a:hover { color: var(--or-clair); }

.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.footer__head {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: var(--sp-3);
}
.footer__nav ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer__nav a {
  font-size: 0.86rem;
  color: rgba(247, 244, 238, 0.72);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  display: inline-block;
}
.footer__nav a:hover { color: var(--ivoire); transform: translateX(3px); }

.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(247, 244, 238, 0.12);
  font-size: 0.78rem;
  color: rgba(247, 244, 238, 0.55);
}
.footer__bottom p { max-width: 88ch; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0; }
.footer__legal span { letter-spacing: 0.05em; }

/* --------------------------------------------------------------------------
   21. Bouton retour en haut
   -------------------------------------------------------------------------- */
.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--nuit);
  color: var(--or);
  display: grid; place-items: center;
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.3s var(--ease);
  z-index: 100;
}
.totop.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--or); color: var(--nuit); }

/* --------------------------------------------------------------------------
   22. Apparition progressive des blocs
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* --------------------------------------------------------------------------
   23. Page 404
   -------------------------------------------------------------------------- */
.err {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--nuit);
  color: rgba(247, 244, 238, 0.8);
  padding: var(--sp-7) var(--sp-5);
}
.err__code {
  font-family: var(--serif);
  font-size: clamp(5rem, 22vw, 12rem);
  line-height: 0.9;
  color: var(--or);
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-5);
}
.err h1 { color: var(--ivoire); font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.err p { max-width: 56ch; margin-inline: auto; }
.err__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; margin-top: var(--sp-6); }
.err__portrait {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--or);
  padding: 4px;
  margin: 0 auto var(--sp-5);
}
.err__links {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center;
  font-size: 0.85rem;
}
.err__links a { border-bottom: 1px solid rgba(200, 162, 75, 0.45); }
.err__links a:hover { color: var(--or); }

/* --------------------------------------------------------------------------
   24. Points de rupture
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivoire);
    border-bottom: 1px solid var(--bord);
    box-shadow: var(--sh-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }
  .nav.is-open { max-height: 70vh; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) clamp(1.15rem, 4vw, 3rem) var(--sp-5);
  }
  .nav__list li { border-bottom: 1px solid var(--bord); }
  .nav__list li:last-child { border-bottom: 0; padding-top: var(--sp-4); }
  .nav__list a { display: block; padding: 0.9rem 0; font-size: 1rem; }
  .nav__cta { text-align: center; }
  .burger { display: flex; }
}

@media (min-width: 640px) {
  .band__grid { grid-template-columns: repeat(3, 1fr); }
  .grid-exp { grid-template-columns: repeat(2, 1fr); }
  .grid-conv { grid-template-columns: repeat(2, 1fr); }
  .grid-cases { grid-template-columns: repeat(2, 1fr); }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
  .tl { flex-basis: 300px; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.35fr 0.85fr; }
  .portrait { grid-template-columns: 1.6fr 0.9fr; }
  .cols { column-count: 2; }
  .grid-exp { grid-template-columns: repeat(3, 1fr); }
  .grid-conv { grid-template-columns: repeat(3, 1fr); }
  .clients { grid-template-columns: 1.15fr 0.85fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7) var(--sp-6); }
  .band__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.1fr 1.4fr; align-items: start; }
  .contact__meta { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}

@media (min-width: 1200px) {
  .toc { display: block; }
  .band__grid { grid-template-columns: repeat(6, 1fr); }
  .stat { padding-block: 2.2rem; }
  .contact__meta { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1500px) {
  :root { --maxw: 1320px; }
}

/* --------------------------------------------------------------------------
   25. Impression
   -------------------------------------------------------------------------- */
@media print {
  .progress, .toc, .totop, .site-header, .timeline__controls { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .band, .contact, .site-footer { padding-block: 1.2cm; }
  .band, .contact, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
  .band__title, .stat__value, .tl h3 { color: #000 !important; }
  a { text-decoration: underline; }
  .timeline__track { overflow: visible; flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   26. Mouvement reduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .case:hover, .tl:hover { transform: none !important; }
}

/* --------------------------------------------------------------------------
   27. Maillage vers les autres sites, dans le pied de page
   -------------------------------------------------------------------------- */
.footer__network {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(247, 244, 238, 0.12);
}
.footer__network .footer__head { margin-bottom: var(--sp-4); }

.footer__network-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__network-list a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: var(--ivoire);
  border-bottom: 1px solid rgba(200, 162, 75, 0.4);
  padding-bottom: 2px;
  max-width: 100%;
  word-break: break-word;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__network-list a:hover {
  color: var(--or-clair);
  border-bottom-color: var(--or);
  transform: translateX(3px);
}
.footer__network-list a:focus-visible {
  color: var(--or-clair);
  border-bottom-color: var(--or);
  outline: 2px solid var(--or);
  outline-offset: 4px;
  border-radius: var(--r-xs);
}
.footer__network + .footer__bottom { margin-top: var(--sp-6); }

@media (min-width: 640px) {
  .footer__network-list { flex-direction: row; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); }
}


/* Renvoi externe en fin de pied de page */
.pied-renvoi {
  width: min(100% - 2.5rem, 1180px);
  margin: 1.6rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid currentColor;
  border-image: linear-gradient(to right, currentColor, transparent) 1;
  font-size: 0.85rem;
  line-height: 1.65;
  color: inherit;
}
.pied-renvoi a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 200ms ease;
}
.pied-renvoi a:hover { opacity: 0.72; }
.pied-renvoi a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .pied-renvoi { font-size: 0.8rem; margin-top: 1.2rem; }
}
