/* ================================================================
   page-references.css — enbi
   Page Références — Codex rebuild.
   Depends on theme.css (Codex section).
================================================================ */

/* ────────────────────────────────────────────────────────────────
   PAGE LABEL
──────────────────────────────────────────────────────────────── */
.page-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #cbeaf4;
  font-size: 14px;
  font-weight: 780;
}
.page-label::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--resolve);
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────────
   HERO — H1 + actions
──────────────────────────────────────────────────────────────── */
.hero-dark--refs .hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
}
.hero-dark h1 {
  max-width: 13ch;
  font-size: clamp(54px, 5.55vw, 82px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 780;
  margin: 0;
}
.hero-note {
  margin: 20px 0 0;
  color: #a9c0ca;
  font-size: 13px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ────────────────────────────────────────────────────────────────
   PROOF BOARD — right panel of hero
──────────────────────────────────────────────────────────────── */
.proof-board {
  position: relative;
  min-height: min(590px, 58vw);
  display: grid;
  align-content: center;
  gap: 18px;
}
.proof-line {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.proof-line:first-child { border-top: 1px solid rgba(255, 255, 255, .18); }
.proof-line strong {
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -.03em;
}
.proof-line span {
  color: #b8d0da;
  font: 400 15px/1.5 var(--serif);
}
.proof-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--method-bright);
  box-shadow: 0 0 0 7px rgba(75, 143, 200, .16);
  flex-shrink: 0;
}
.proof-line:nth-child(2) .proof-dot,
.proof-line:nth-child(4) .proof-dot {
  background: var(--resolve);
  box-shadow: 0 0 0 7px rgba(253, 91, 108, .16);
}
.proof-bird {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(76%, 520px);
  transform: translate(-38%, -44%) scale(1.1);
  mix-blend-mode: screen;
  opacity: .18;
  pointer-events: none;
  user-select: none;
}


/* ────────────────────────────────────────────────────────────────
   SHARED SECTION UTILITIES
──────────────────────────────────────────────────────────────── */
.section-layout { padding-block: clamp(84px, 10vw, 150px); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 112px);
  margin-bottom: clamp(42px, 6vw, 72px);
}
.section-head h2 {
  max-width: 13ch;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0;
}
.section-head p {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-muted);
  font: 400 clamp(18px, 1.55vw, 22px)/1.55 var(--serif);
}
.testimonials .section-head p,
.cases .section-head p { color: #d7e4e9; }


/* ────────────────────────────────────────────────────────────────
   TESTIMONIALS — dark frame + stacked quotes
──────────────────────────────────────────────────────────────── */
.testimonials { background: var(--frame); color: var(--white); }
.quote-stack { display: grid; gap: 0; }
.quote {
  display: grid;
  grid-template-columns: minmax(210px, .5fr) minmax(0, 1.25fr) minmax(190px, .45fr);
  gap: clamp(24px, 5vw, 78px);
  padding: clamp(30px, 4vw, 52px) 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  align-items: start;
}
.quote:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.quote-role {
  color: #cbeaf4;
  font-size: 14px;
  font-weight: 820;
}
blockquote {
  margin: 0;
  color: #fff;
  font: 400 clamp(24px, 2.7vw, 40px)/1.15 var(--serif);
  text-wrap: balance;
}
.quote-proof {
  padding: 16px;
  background: var(--frame-raised);
  color: #d7e4e9;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

/* ────────────────────────────────────────────────────────────────
   EXPERIENCE — white + row list
──────────────────────────────────────────────────────────────── */
.experience { background: var(--open); }
.experience-list { border-top: 3px solid var(--frame); }
.experience-row {
  display: grid;
  grid-template-columns: minmax(210px, .62fr) minmax(0, 1fr) minmax(220px, .56fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(30px, 4.4vw, 54px) 0;
  border-bottom: 1px solid var(--line-light);
  align-items: start;
}
.experience-row h3 {
  font-size: clamp(27px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -.035em;
  margin: 0;
}
.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 11px;
  background: var(--method);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}
.experience-row:nth-child(2n) .badge { background: var(--resolve); }
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--method);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}
.experience-row p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.58; }
.experience-subgroup { margin-top: clamp(32px, 5vw, 52px); }
.experience-subgroup__title {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--frame);
  font-size: 11px;
  font-weight: 880;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.trace {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  align-self: start;
}

/* ────────────────────────────────────────────────────────────────
   CASES — method blue 3-col
──────────────────────────────────────────────────────────────── */
.cases { background: var(--method); color: var(--white); }
.case-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, .38);
}
.case-item {
  min-height: 360px;
  padding: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.case-item + .case-item { border-left: 1px solid rgba(255, 255, 255, .22); }
.case-item::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 38px;
  border-radius: 50%;
  background: var(--method-pale);
  box-shadow: 0 0 0 7px rgba(203, 234, 244, .12);
}
.case-item:last-child::before {
  background: var(--resolve);
  box-shadow: 0 0 0 7px rgba(253, 91, 108, .18);
}
.case-item h3 {
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0;
}
.case-item p { margin: 18px 0 0; color: #d7eaf1; font-size: 15px; line-height: 1.6; }
.case-item strong { display: block; margin-top: 26px; color: #fff; font-size: 14px; }

/* ────────────────────────────────────────────────────────────────
   REF-LINK — lien texte unifié vers les posts
──────────────────────────────────────────────────────────────── */
.ref-link {
  color: var(--resolve-deep);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  text-decoration: none;
}
.ref-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ────────────────────────────────────────────────────────────────
   PUBLICATIONS & ANALYSES — deux sous-sections
──────────────────────────────────────────────────────────────── */
.publications { background: var(--open-blue); }
.pub-sections { display: grid; gap: clamp(40px, 6vw, 72px); }
.pub-section__label {
  margin: 0 0 clamp(16px, 2.5vw, 26px);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--method);
  font-size: 11px;
  font-weight: 880;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--method);
}
.pub-list { display: grid; }
.pub-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
}
.pub-item h3 {
  font-size: clamp(19px, 1.8vw, 26px);
  letter-spacing: -.02em;
  margin: 0;
}
.pub-item p { margin: 8px 0 0; color: var(--ink-muted); font: 400 15px/1.55 var(--serif); }
.pub-item--analyse h3 { font-size: clamp(21px, 2vw, 30px); letter-spacing: -.025em; }
.pub-item--analyse p { font-size: 16px; }
.pub-section--compact .pub-item { padding: 16px 0; }
.pub-section--compact .pub-item h3 { font-size: clamp(17px, 1.6vw, 22px); }

/* ────────────────────────────────────────────────────────────────
   NEXT CTA — dark-deep
──────────────────────────────────────────────────────────────── */
.ref-next { background: var(--frame-deep); color: var(--white); }
.ref-next-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(48px, 9vw, 132px);
  padding-block: clamp(86px, 10vw, 146px);
  align-items: start;
}
.ref-next-layout h2 {
  max-width: 12ch;
  font-size: clamp(46px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0;
}
.ref-next-layout p {
  max-width: 58ch;
  margin: 0 0 28px;
  color: #d7e4e9;
  font: 400 20px/1.55 var(--serif);
}

/* ────────────────────────────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────────────────────────────── */
.motion-ready .proof-line         { animation: proof-in .8s var(--ease-spring) both; }
.motion-ready .proof-line:nth-child(2) { animation-delay: .12s; }
.motion-ready .proof-line:nth-child(3) { animation-delay: .24s; }
.motion-ready .proof-line:nth-child(4) { animation-delay: .36s; }
.motion-ready .proof-bird         { animation: proof-bird-in 1.2s .2s var(--ease-spring) both; }

@keyframes proof-in {
  from { opacity: .01; transform: translateX(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes proof-bird-in {
  from { opacity: .01; clip-path: inset(0 100% 0 0); }
  to   { opacity: .18; clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
  .proof-line, .proof-bird { animation: none !important; }
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-dark--refs .hero-grid,
  .section-head,
  .ref-next-layout { grid-template-columns: 1fr; }
  .proof-board { min-height: 520px; }
  .quote,
  .experience-row { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: 1fr; }
  .case-item + .case-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .pub-item { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero-dark h1 { max-width: 11ch; font-size: clamp(48px, 14vw, 68px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .proof-board { min-height: auto; }
  .proof-line { grid-template-columns: 1fr auto; gap: 10px; }
  .proof-line span { grid-column: 1 / -1; }
  .proof-bird { display: none; }
  .quote { gap: 18px; }
  blockquote { font-size: clamp(24px, 7vw, 34px); }
  .pub-item { gap: 10px; }
  .ref-link { white-space: normal; }
}

/* ────────────────────────────────────────────────────────────────
   TESTIMONY-ITEM — dark context overrides (.testimonials = var(--frame))
──────────────────────────────────────────────────────────────── */
.testimonials .reference-proof-item {
  border-top-color: rgba(255,255,255,.13);
}
.testimonials .reference-proof-list > .reference-proof-item:first-child {
  border-top-color: rgba(255,255,255,.32);
}
.testimonials .reference-proof-item__quote p { color: #f0f8ff; }
.testimonials .reference-proof-item__name { color: #fff; }
.testimonials .reference-proof-item__role { color: rgba(255,255,255,.72); }

/* ────────────────────────────────────────────────────────────────
   EXPERIENCE — trace comme lien navigable
──────────────────────────────────────────────────────────────── */
a.trace {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .18s ease;
}
a.trace:hover { opacity: .78; }

/* ────────────────────────────────────────────────────────────────
   CASE-ITEM — card entière cliquable
──────────────────────────────────────────────────────────────── */
a.case-item { display: block; text-decoration: none; color: inherit; }
a.case-item:hover h3 { color: #cbeaf4; }

/* ────────────────────────────────────────────────────────────────
   GEO-TAG — localisation standardisée (petite, sur fond variable)
──────────────────────────────────────────────────────────────── */
.geo-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.geo-tag::before { content: "◎ "; }
.geo-tag + .geo-tag { margin-left: 10px; }
.cases .geo-tag,
.testimonials .geo-tag { color: rgba(255,255,255,.6); }
