/* H&C — page Équipe (/a-propos/equipe/). Se charge après fiche.css et apropos.css (`.btn--paper`, `.ex`, `.apf*`).
   2026-10-15 — piste « le plateau » retenue par l'utilisateur sur six pistes (copie des six : `bak/equipe.css.six-pistes`).

   `.eqp` : hero nuit — titre à gauche ; à droite filtres par expertise + mur des 31 visages en noir et blanc.
            Un second mur en couleur (`.eqp__g--lit`, aria-hidden) est masqué par un rond de lumière qui suit le
            curseur (`--mx / --my` posés par equipe.js) ; un carton donne nom / fonction ; un filtre éteint les
            visages qui ne correspondent pas.
   `.eqj` : « Rejoindre le réseau d'intervenants » (formulaire court).
   `.apf` : rideau final (apropos.css), puis le pied de page.

   Traitement des portraits : recadrage sur le visage + noir et blanc doux, couleur sous le rond de lumière.
   Sans photo : monogramme `.eq-mono`.
   ≤ 1000 px : le titre passe au-dessus du mur (6 colonnes) ; ≤ 560 px : mur à 4 colonnes, filtres sur une ligne. */

:root { --eq-soft: #4b5569; --eq-muted: #5b6478; --eq-bw: grayscale(1) contrast(1.06) brightness(0.94); }

/* ---------- communs ---------- */
.eqp :is(a, button):focus-visible,
.eqj :is(a, button):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
:where(.eqp button, .eqj button) { font: inherit; color: inherit; cursor: pointer; }
.eqp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eqp ul, .eqj ul { margin: 0; padding: 0; list-style: none; }

.eqh { max-width: 17ch; margin-top: 0; }
.eqbtns { display: flex; flex-wrap: wrap; gap: 12px; }

.eq-mono {
  display: grid;
  font-style: normal;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1d3252, #0f1c31);
  color: var(--gold);
  font-size: var(--mono, 1.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* filtres par expertise : boutons pleins, pas de contour */
.eqf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eqf__b {
  min-height: 38px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.eqf__b:hover { background: rgb(255 255 255 / 0.18); }
.eqf__b.is-on { background: var(--gold); color: var(--ink); }
.eqf__n { margin-left: 4px; font-size: 0.875rem; color: rgb(255 255 255 / 0.62); font-variant-numeric: tabular-nums; }
.eqempty { margin: 0; padding: 16px 20px; border-radius: 16px; background: rgb(255 255 255 / 0.08); font-size: 1rem; color: rgb(255 255 255 / 0.8); }

/* =========================================================
   Hero — le plateau
   ========================================================= */
.eqp { --rig-x: 22%; --rig-tilt: 22deg; --rig-w: 72px; padding-bottom: clamp(48px, 6vw, 88px); }
.eqp .cone { --spread: 26deg; --throw: 900px; }
.eqp__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}
.eqp__copy { display: grid; justify-items: start; gap: 18px; }
.eqp__main { display: grid; gap: 18px; min-width: 0; }
.eqp__wall { position: relative; }
.eqp__g {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(4px, 0.6vw, 8px);
}
.eqp__g--lit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle clamp(80px, 11vw, 150px) at var(--mx, -400px) var(--my, -400px), #000 0, #000 52%, transparent 100%);
  mask-image: radial-gradient(circle clamp(80px, 11vw, 150px) at var(--mx, -400px) var(--my, -400px), #000 0, #000 52%, transparent 100%);
}
.eqp__t { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #14233a; }
.eqp__g--base img { filter: var(--eq-bw); }
.eqp__g--base .eqp__t { transition: scale 0.3s var(--ease-out); }
.eqp__g--base .eqp__t:hover, .eqp__g--base .eqp__t:focus-visible { scale: 1.04; }
.eqp__g li { transition: opacity 0.3s; }
.eqp__g li.is-off { opacity: 0.16; }
.eqp__sp {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  aspect-ratio: 4 / 5;
  padding: 8px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  text-align: center;
}
.eqp__g--lit .eqp__sp { visibility: hidden; }
.eqp__sp b { font-size: clamp(1.6rem, 3.4vw, 3.2rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.04em; }
.eqp__sp i { font-style: normal; }
.eqp__sp span { font-size: clamp(0.625rem, 0.9vw, 0.8125rem); line-height: 1.15; }
.eqp__card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: min(260px, 60vw);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.55);
  pointer-events: none;
}
.eqp__card b { font-size: 1.0625rem; font-weight: 600; line-height: 1.2; }
.eqp__card span { font-size: 0.9375rem; line-height: 1.3; color: var(--eq-soft); }
.eqp__card i { margin-top: 4px; font-size: 0.6875rem; font-style: normal; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6a05; }
.eqp__dir { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: rgb(255 255 255 / 0.72); }
.eqp__dir b { color: #fff; font-weight: 600; }
.eqp .ex { margin-top: clamp(20px, 2.6vw, 34px); }

/* =========================================================
   Rejoindre le réseau d'intervenants
   ========================================================= */
.eqj { padding-bottom: clamp(72px, 9vw, 130px); }
.eqj__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(28px, 5vw, 84px); }
.eqj__tx { display: grid; justify-items: start; gap: 18px; }
.eqj__pts { display: grid; gap: 10px; }
.eqj__pts li { position: relative; padding-left: 26px; font-size: 1.0625rem; line-height: 1.4; }
.eqj__pts li::before { content: ""; position: absolute; left: 0; top: 0.48em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.eqj__f { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 36px); border-radius: 30px; background: var(--paper); }
.eqj__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eqj__fld { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--eq-soft); }
.eqj__fld i { font-style: normal; color: #b4591b; }
.eqj__fld :is(input, select, textarea) {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--wall);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.2s, background-color 0.2s;
}
.eqj__fld textarea { resize: vertical; min-height: 96px; }
.eqj__fld :is(input, select, textarea):focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.eqj__fld.is-bad :is(input, select, textarea) { box-shadow: inset 0 0 0 2px #c0392b; }
.eqj__err { margin: 0; font-size: 0.9375rem; color: #a5301f; }
.eqj__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.eqj__note { margin: 0; font-size: 0.875rem; color: var(--eq-muted); }
.eqj__ok { margin: 0; padding: 16px 18px; border-radius: 16px; background: #e8f3e5; font-size: 1rem; line-height: 1.45; color: #1d4d1a; }
.eqj__ok .ex { color: #4c7a48; }

/* =========================================================
   Tablette et mobile
   ========================================================= */
@media (max-width: 1000px) {
  .eqp__grid, .eqj__in { grid-template-columns: minmax(0, 1fr); }
  .eqp__g, .eqp__g--lit { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .eqj__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .eqp__g, .eqp__g--lit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .eqf { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scrollbar-width: none; }
  .eqf__n { flex: none; }
  .eqbtns { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .eqbtns .btn { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .eqp__g li, .eqp__g--base .eqp__t { transition: none; }
}
