/* H&C — page Références (/temoignages/). Se charge après fiche.css et apropos.css (`.btn--paper`, `.ex`, `.apf*`).
   2026-10-15 — l'utilisateur a choisi la piste 2 « Le résultat en grand » parmi les six (copies : `bak/*.six-pistes`).

   Hero · `.tr2` : nuit + projecteur sur rail ; titre, intro, boutons et trois chiffres ; filtres par profil ;
           rail de cartes bleu nuit (résultat en jaune, la carte survolée est éclairée), flèches.
   Puis  : `.trl` (logos + chiffres), `.trcas` (trois cas clients, billets `.trc`), le rideau final `.apf` (apropos.css).

   Portraits : recadrage sur le visage ; noir et blanc doux tant qu'un témoin n'est pas éclairé.
   ≤ 1000 px : tout s'empile ; ≤ 560 px : une colonne, filtres défilants, flèches masquées. */

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

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

.trh { max-width: 20ch; margin-top: 0; }
.trtop { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(24px, 5vw, 80px); }
.trtop__copy { display: grid; justify-items: start; gap: 18px; min-width: 0; }
.trbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: clamp(28px, 3.4vw, 48px) 0 clamp(18px, 2.2vw, 28px); }
.trbar .trf { flex: 1 1 auto; }
.trbtns { display: flex; flex-wrap: wrap; gap: 12px; }
.trex { margin-top: clamp(20px, 2.6vw, 34px); }

/* chiffres */
.trfig { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px clamp(20px, 3vw, 44px); margin: 0; }
.trfig__i { margin: 0; }
.trfig__i b { display: block; font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 300; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.trfig__i i { font-style: normal; color: #9a7200; }
.trfig__i span { display: block; max-width: 15ch; margin-top: 6px; font-size: 0.875rem; line-height: 1.25; color: var(--tr-muted); }
.trfig--night .trfig__i i, .fb--night .trfig__i i { color: var(--gold); }
.fb--night .trfig__i span { color: rgb(255 255 255 / 0.7); }

/* filtres par profil : boutons pleins, pas de contour */
.trf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trf__b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 15px;
  border: 0;
  border-radius: 999px;
  background: rgb(22 33 61 / 0.08);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.trf__b small { font-size: 0.8125rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.trf__b:hover { background: rgb(22 33 61 / 0.15); }
.trf__b.is-on { background: var(--ink); color: #fff; }
.fb--night .trf__b { background: rgb(255 255 255 / 0.1); color: #fff; }
.fb--night .trf__b:hover { background: rgb(255 255 255 / 0.18); }
.fb--night .trf__b.is-on { background: var(--gold); color: var(--ink); }
.trf__n { margin-left: auto; font-size: 0.9375rem; color: var(--tr-muted); font-variant-numeric: tabular-nums; }
.fb--night .trf__n { color: rgb(255 255 255 / 0.62); }

/* citations : courte, puis « Lire plus » pour le texte complet du site actuel */
.trq { margin: 12px 0 0; font-size: 1rem; line-height: 1.42; color: var(--ink); }
.trq--full { font-size: 0.9375rem; line-height: 1.5; }
.trmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.trmore svg { width: 14px; height: 14px; transition: rotate 0.25s; }
.trmore[aria-expanded="true"] svg { rotate: 180deg; }

/* =========================================================
   Hero · le résultat en grand
   ========================================================= */
.tr2 { --rig-x: 66%; --rig-tilt: -14deg; --rig-w: 72px; padding-bottom: clamp(56px, 6vw, 96px); }
.tr2 .cone { --spread: 30deg; --throw: 900px; }
.tr2 .fh__crumb { margin-bottom: 18px; }
.tr2__ar { display: flex; gap: 8px; }
.tr2__ar button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.tr2__ar button:hover:not(:disabled) { background: var(--gold); color: var(--ink); }
.tr2__ar button:disabled { opacity: 0.35; cursor: default; }
.tr2__ar svg { width: 20px; height: 20px; }
.tr2 .tr2__rail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  padding: 14px 0 30px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.tr2 .tr2__rail::-webkit-scrollbar { display: none; }
.tr2__c {
  display: flex;
  flex: 0 0 clamp(268px, 26vw, 340px);
  flex-direction: column;
  scroll-snap-align: start;
  padding: 12px 12px 22px;
  border-radius: 28px;
  background: var(--tr-card);
  transition: translate 0.45s var(--ease-out), background-color 0.3s, box-shadow 0.45s;
}
.tr2__c.is-lit { translate: 0 -10px; background: #18304f; box-shadow: 0 30px 50px -26px rgb(0 0 0 / 0.8); }
.tr2__ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #14233a; }
.tr2__ph img { object-position: 50% 12%; filter: grayscale(1) brightness(0.62) contrast(1.05); transition: filter 0.5s; }
.tr2__c.is-lit .tr2__ph img { filter: none; }
.tr2__res { margin: 20px 10px 0; font-style: normal; font-size: clamp(1.7rem, 2.3vw, 2.5rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.025em; color: var(--gold); }
.tr2__res--long { font-size: clamp(1.35rem, 1.7vw, 1.75rem); font-weight: 400; }
.tr2__c b { margin: 14px 10px 0; font-size: 1.1875rem; font-weight: 500; line-height: 1.2; }
.tr2__c > span { margin: 3px 10px 0; font-size: 0.9375rem; line-height: 1.3; color: rgb(255 255 255 / 0.62); }
.tr2__c .trq { margin: 12px 10px 0; color: rgb(255 255 255 / 0.86); }
.tr2__c .trmore { align-self: flex-start; margin: 8px 10px 0; color: #fff; }

/* billet d'un cas client (section commune `#cas`) */
.trc { display: grid; align-content: start; gap: 10px; padding: 22px 24px 26px; border-radius: 30px 30px 0 0; background: var(--night); color: #fff; }
.trc__tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold); }
.trc em { font-style: normal; font-size: clamp(2.6rem, 4.4vw, 4.2rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.035em; color: var(--gold); }
.trc__lab { margin: 0; font-size: 1.0625rem; line-height: 1.25; }
.trc__did { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.4; color: rgb(255 255 255 / 0.66); }
.trc__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.trc__meta li { padding: 4px 11px; border-radius: 16px; background: rgb(255 255 255 / 0.12); font-size: 0.8438rem; font-weight: 500; }
.trc__q { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 1.0625rem; line-height: 1.36; }
.trc__by { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.trc__ph { flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #14233a; }
.trc__by b { display: block; font-size: 0.9375rem; font-weight: 500; }
.trc__by span span, .trc__by div > span { display: block; font-size: 0.8125rem; color: rgb(255 255 255 / 0.62); }

/* =========================================================
   Communs : logos et chiffres, cas clients
   ========================================================= */
.trl__head { display: grid; justify-items: start; gap: 16px; max-width: 780px; }
.trl__logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px) clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.trl__logos li { display: grid; place-items: center; height: 64px; }
.trl__logos img { width: auto; height: auto; max-width: min(150px, 100%); max-height: 36px; object-fit: contain; opacity: 0.55; transition: opacity 0.3s; }
.trl__logos li:hover img { opacity: 1; }
.trl__figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 44px); margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--eq-line, rgb(22 33 61 / 0.12)); }
.trl__figs .trfig__i b { font-size: clamp(2.4rem, 4.4vw, 4rem); }
.trl .ex { margin-top: clamp(24px, 3vw, 40px); }
.trcas__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(32px, 4vw, 56px); }
/* =========================================================
   Tablette et mobile
   ========================================================= */
@media (max-width: 1000px) {
  .trtop { grid-template-columns: minmax(0, 1fr); }
  .trfig { justify-content: flex-start; }
  .trcas__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .trl__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trl__figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trf { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scrollbar-width: none; }
  .trf__n { flex: none; margin-left: 4px; }
  .trbtns { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .trbtns .btn { justify-content: flex-start; }
  .tr2 .tr2__rail { margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scroll-padding-inline: var(--pad-x); }
  .tr2__c { flex-basis: min(300px, 82vw); }
  .tr2__ar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tr2__c, .tr2__ph img { transition: none; }
}
