/* =========================================================
   EDICORE — feuille de style
   Palette : template Birka Outdoor (#09090b / #d8b485)
   Effets : reveal blur+rise, glass panels, blobs dérivants,
   grain SVG, spotlight curseur, compteurs, sticky narratif.
   Zéro dépendance : ni Tailwind CDN, ni GSAP.
   ========================================================= */

/* ---------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------- */
:root {
  --bg:         #09090b;
  --bg-panel:   #0c0c0e;
  --bg-hi:      #111114;
  --line:       rgba(255,255,255,.06);
  --line-hi:    rgba(255,255,255,.12);
  --gold:       #d8b485;
  --gold-dim:   rgba(216,180,133,.5);
  --gold-ghost: rgba(216,180,133,.09);
  --gold-dark:  #8a6d3f;
  --txt:        #d4d4d8;
  --txt-hi:     #ffffff;
  /* Contrastes vérifiés sur fond #09090b — WCAG AA texte normal (≥ 4.5:1) */
  --txt-mute:   #8a8a94;  /* 5.7:1  — était #71717a à 4.12:1, sous le seuil */
  --txt-faint:  #7a7a85;  /* 4.6:1  — était #52525b à 2.57:1, illisible */

  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --sec-y: clamp(5rem, 11vw, 9rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------
   2. RESET
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--txt-hi); margin: 0 0 .55em; line-height: 1.12; font-weight: 500; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); letter-spacing: -.01em; font-weight: 500; }
p { margin: 0 0 1.15em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--txt-hi); font-weight: 500; }
::selection { background: rgba(216,180,133,.25); color: #fff; }

/* Transitions globales — propriétés listées, jamais `all` */
a, button, input, textarea, select, svg {
  transition: transform .4s var(--ease), color .4s ease, background-color .4s ease,
              border-color .4s ease, box-shadow .4s ease, opacity .4s ease, filter .4s ease;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ---------------------------------------------------------
   3. CALQUES DE FOND
   --------------------------------------------------------- */
.fx-grain {
  position: fixed; inset: -30%; z-index: 2; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.fx-ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.fx-blob {
  position: absolute; border-radius: 50%; will-change: transform;
}
.fx-blob--1 {
  top: -14%; left: -10%; width: 52vw; height: 52vw;
  background: rgba(216,180,133,.055); filter: blur(120px);
  animation: drift1 26s ease-in-out infinite;
}
.fx-blob--2 {
  bottom: -20%; right: -12%; width: 60vw; height: 60vw;
  background: rgba(216,180,133,.038); filter: blur(140px);
  animation: drift2 32s ease-in-out infinite;
}
.fx-blob--3 {
  top: 38%; left: 40%; width: 28vw; height: 28vw;
  background: rgba(255,255,255,.022); filter: blur(90px);
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  35%     { transform: translate3d(4vw,3vh,0) scale(1.06); }
  70%     { transform: translate3d(-2vw,5vh,0) scale(.98); }
}
@keyframes drift2 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  40%     { transform: translate3d(-5vw,-3vh,0) scale(1.08); }
  75%     { transform: translate3d(3vw,-6vh,0) scale(.96); }
}
@keyframes drift3 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(-6vw,4vh,0) scale(1.12); }
}

/* Barre de progression de lecture */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  box-shadow: 0 0 12px rgba(216,180,133,.5);
}

/* ---------------------------------------------------------
   4. STRUCTURE
   --------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 780px; }
.section { padding-block: var(--sec-y); position: relative; z-index: 10; }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.divider { height: 1px; background: var(--line); }
.rule-grad {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.11), transparent);
}

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.4rem;
}
.lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--txt); line-height: 1.65; font-weight: 300; }
.muted { color: var(--txt-mute); }
.small { font-size: .9rem; }

/* ---------------------------------------------------------
   5. HEADER
   --------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.header.is-stuck {
  background: rgba(9,9,11,.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.header__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 1.05rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { flex: none; }
.brand__mark rect { transition: opacity .5s var(--ease); }
.brand:hover .brand__mark rect { opacity: 1; }
.brand__txt {
  font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; color: var(--txt-hi);
}
.brand__txt em { font-style: normal; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .92rem; color: var(--txt-mute); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--txt-hi); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--txt-hi); }
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; opacity: .45; }

/* Reprise de l'action principale dans le menu mobile.
   Masquée sur desktop, où le bouton doré de l'en-tête la porte déjà. */
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.lang {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--txt-mute); border: 1px solid var(--line); padding: .32rem .55rem;
  border-radius: 3px;
}
.lang:hover { color: var(--txt-hi); border-color: var(--line-hi); }

.burger { display: none; background: none; border: 0; padding: .45rem; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--txt-hi); margin: 5px 0;
  transition: transform .3s var(--ease), opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------
   6. BOUTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.55rem; border-radius: 3px; font-size: .93rem; font-weight: 500;
  font-family: var(--sans); cursor: pointer; border: 1px solid transparent;
  letter-spacing: .005em;
}
.btn--gold { background: var(--gold); color: #09090b; }
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(216,180,133,.28);
}
.btn--gold:active { transform: translateY(0); }
.btn--ghost { border-color: var(--line-hi); color: var(--txt-hi); }
.btn--ghost:hover { border-color: var(--gold-dim); background: var(--gold-ghost); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) translateY(-3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 500; color: var(--gold);
}
.link-arrow:hover { color: var(--txt-hi); }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px) translateY(-3px); }

/* ---------------------------------------------------------
   7. HERO
   --------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-block: 9rem 5rem; z-index: 10;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .34;
  animation: heroZoom 2.6s var(--ease) both;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(9,9,11,.9) 42%, rgba(9,9,11,.35) 100%),
    linear-gradient(0deg,  var(--bg) 2%, transparent 45%, rgba(9,9,11,.55) 100%);
}
@keyframes heroZoom { from { transform: scale(1.1); opacity: 0; } to { transform: scale(1); opacity: .34; } }

.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 54ch; }
.hero__sig {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-top: 3rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line); display: inline-block;
}

/* Entrée du hero, en couches décalées (CSS pur) */
.rise { opacity: 0; transform: translateY(26px); filter: blur(7px); }
.hero .rise { animation: riseIn 1.05s var(--ease) both; }
.hero .rise:nth-of-type(1) { animation-delay: .18s; }
.hero .rise:nth-of-type(2) { animation-delay: .34s; }
.hero .rise:nth-of-type(3) { animation-delay: .5s; }
.hero .rise:nth-of-type(4) { animation-delay: .64s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* ---------------------------------------------------------
   8. REVEAL AU SCROLL
   --------------------------------------------------------- */
.reveal {
  opacity: 0; filter: blur(11px); transform: translateY(28px) scale(.985);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease);
  will-change: transform, opacity, filter;
}
.reveal.is-in { opacity: 1; filter: blur(0); transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
.d5 { transition-delay: .4s; }  .d6 { transition-delay: .48s; }

/* Titres mot par mot */
.word {
  display: inline-block; will-change: transform, opacity, filter;
  animation: wordIn .85s var(--ease) both; animation-play-state: paused;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(.42em) rotate(1.6deg); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}

/* ---------------------------------------------------------
   9. PANNEAUX & CARTES
   --------------------------------------------------------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.032) 0%, rgba(255,255,255,.01) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 4px 24px -1px rgba(0,0,0,.2), inset 0 1px 0 0 rgba(255,255,255,.05);
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s var(--ease);
}
.glass:hover {
  border-color: var(--line-hi);
  box-shadow: 0 10px 34px -6px rgba(0,0,0,.45), inset 0 1px 0 0 rgba(255,255,255,.09);
}

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* Carte avec spotlight au curseur */
.card {
  position: relative; overflow: hidden; padding: 2rem 1.85rem 1.9rem;
  display: flex; flex-direction: column;
}
.card__glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,180,133,.11) 0%, transparent 68%);
  pointer-events: none; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .35s ease; z-index: 0;
}
.card:hover .card__glow { opacity: 1; }
/* Exclure le halo : sinon `position: relative` écrase son `absolute`
   et il occupe 380 px de hauteur fantôme dans le flux. */
.card > *:not(.card__glow) { position: relative; z-index: 1; }
.card:hover { transform: translateY(-4px); }
.card__idx {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 1.5rem;
}

/* Portraits — page Qui sommes-nous */
.portrait {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1.5rem;
  filter: grayscale(1) contrast(1.04);
  border: 1px solid var(--line);
  transition: filter .5s var(--ease), border-color .5s ease, transform .5s var(--ease);
}
.card:hover .portrait {
  filter: grayscale(0) contrast(1);
  border-color: var(--gold-dim);
  transform: scale(1.04);
}
.card:has(.portrait) .card__idx { margin-bottom: .9rem; }
.card p { color: var(--txt-mute); font-size: .95rem; margin-bottom: 0; }
.card .link-arrow { margin-top: 1.6rem; }

/* ---------------------------------------------------------
   10. CHIFFRES
   --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 2.1rem 1.6rem; transition: background .4s ease; }
.stat:hover { background: var(--bg-panel); }
.stat__num {
  font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.045em;
  color: var(--gold); line-height: 1; display: block; margin-bottom: .55rem;
}
.stat__label { font-size: .87rem; color: var(--txt-mute); line-height: 1.5; }

/* ---------------------------------------------------------
   11. ÉTAPES / MÉTHODE
   --------------------------------------------------------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block: 2.2rem; }
.flow__item {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  padding: .58rem 1rem; border: 1px solid var(--line); border-radius: 3px; color: var(--txt);
}
.flow__sep { color: var(--gold); font-size: .8rem; }

.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.6rem;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: .78rem; color: var(--gold); letter-spacing: .1em; padding-top: .3rem; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--txt-mute); margin-bottom: 0; font-size: .96rem; max-width: 62ch; }

/* ---------------------------------------------------------
   12. SÉQUENCE STICKY
   --------------------------------------------------------- */
.sticky-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.sticky-side { position: sticky; top: 22vh; }
.sticky-items { display: grid; gap: 0; }
.sticky-item {
  padding-block: clamp(3rem, 9vh, 6rem); border-top: 1px solid var(--line);
  opacity: .34; transition: opacity .6s ease;
}
.sticky-item.is-active { opacity: 1; }
.sticky-item h3 { color: var(--txt-hi); }
.sticky-item p { color: var(--txt-mute); margin-bottom: 0; }

/* ---------------------------------------------------------
   13. RÉALISATIONS
   --------------------------------------------------------- */
.case {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 3.2rem;
  padding-block: 3.4rem; border-top: 1px solid var(--line);
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case__media { position: relative; overflow: hidden; border-radius: 5px; aspect-ratio: 4/3; background: var(--bg-panel); }
.case__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1s var(--ease), opacity .5s ease; }
.case:hover .case__media img { transform: scale(1.05); opacity: 1; }
.case dl { display: grid; gap: 1.35rem; margin: 1.6rem 0 0; }
.case dt {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--txt-faint); margin-bottom: .35rem;
}
.case dd { margin: 0; color: var(--txt-mute); font-size: .96rem; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .3rem .68rem; border-radius: 100px; margin-bottom: 1rem;
}
.tag--client  { background: var(--gold-ghost); color: var(--gold); border: 1px solid var(--gold-dim); }
.tag--projet  { background: rgba(255,255,255,.04); color: var(--txt-mute); border: 1px solid var(--line); }
.tag--encours { background: rgba(216,180,133,.06); color: #a58a63; border: 1px dashed var(--gold-dim); }

/* Ligne de liste dont le fond se remplit */
.rowlist { border-top: 1px solid var(--line); }
.row {
  position: relative; overflow: hidden; display: flex; align-items: baseline;
  justify-content: space-between; gap: 1.5rem; padding: 1.35rem .6rem;
  border-bottom: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform .42s var(--ease); z-index: 0;
}
.row:hover::before { transform: scaleY(1); transform-origin: top; }
.row > * { position: relative; z-index: 1; transition: color .3s ease, transform .42s var(--ease); }
.row:hover .row__name { color: #09090b; transform: translateX(10px); }
.row:hover .row__meta { color: rgba(9,9,11,.65); }
.row__name { color: var(--txt-hi); font-size: 1.02rem; font-weight: 400; }
.row__meta { color: var(--txt-faint); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------------------------------------------------------
   14. ACCORDÉON
   --------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 1.5rem .4rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; color: var(--txt-hi); font-size: 1.02rem; font-weight: 400; font-family: var(--sans);
}
.acc__btn:hover { color: var(--gold); }
.acc__btn svg { flex: none; transition: transform .4s var(--ease); color: var(--gold); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel p { color: var(--txt-mute); padding: 0 .4rem 1.6rem; margin: 0; max-width: 72ch; font-size: .96rem; }

/* ---------------------------------------------------------
   15. FORMULAIRE
   --------------------------------------------------------- */
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .84rem; color: var(--txt); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .96rem; padding: .78rem .95rem; color: var(--txt-hi);
  background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 3px;
  width: 100%; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--txt-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-dim); transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(216,180,133,.28), 0 8px 30px -12px rgba(216,180,133,.3);
}
.field--check { flex-direction: row; align-items: flex-start; gap: .65rem; }
.field--check input { width: auto; margin-top: .3rem; accent-color: var(--gold); }
.field--check label { color: var(--txt-mute); font-size: .84rem; line-height: 1.55; }
.form__status { display: none; padding: .9rem 1.1rem; border-radius: 3px; font-size: .92rem; }
.form__status.is-ok  { display: block; background: var(--gold-ghost); color: var(--gold); border: 1px solid var(--gold-dim); }
.form__status.is-err { display: block; background: rgba(220,80,60,.08); color: #e08b7a; border: 1px solid rgba(220,80,60,.3); }

/* ---------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  position: relative; z-index: 10; background: var(--bg-panel); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.footer li { margin-bottom: .6rem; }
.footer a { color: var(--txt-mute); font-size: .92rem; }
.footer a:hover { color: var(--txt-hi); }
.footer__sig { color: var(--txt-faint); font-size: .9rem; max-width: 32ch; margin-top: .9rem; }
.footer__bottom {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: var(--txt-faint);
}
.todo {
  background: rgba(216,180,133,.12); color: var(--gold); padding: .05rem .4rem;
  border-radius: 2px; font-family: var(--mono); font-size: .78rem;
}

/* ---------------------------------------------------------
   17. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1000px) {
  .sticky-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .sticky-side { position: static; }
  .sticky-item { opacity: 1; }
  .case { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9,9,11,.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .header__actions .btn { display: none; }

  /* Sur mobile, le bouton doré disparaît : l'action principale reprend sa place ici */
  .nav__cta {
    display: block; color: var(--gold); font-weight: 500;
    border-bottom: 0 !important; margin-top: .4rem;
  }
  .hero { min-height: auto; padding-block: 8rem 4rem; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ---------------------------------------------------------
   18. ACCESSIBILITÉ — mouvement réduit
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .rise { opacity: 1 !important; filter: none !important; transform: none !important; }
  .word { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }
  .fx-blob, .fx-grain { display: none; }
  .hero__bg img { opacity: .34; }
  .sticky-item { opacity: 1; }
}

/* Focus visible — accessibilité clavier */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}
