/* ==========================================================================
   2M/Digital — Page /realisations
   S'appuie sur style.css (tokens, nav, visuels .work__visual) et contact.css (.cta-band).
   ========================================================================== */

.rea-hero,
.rea-stats,
.rea-list {
  padding-inline: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
}

/* ---------- En-tête ---------- */

.rea-hero { padding-top: 60px; padding-bottom: 64px; }
.rea-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 8.4vw, 122px);
  line-height: .86;
}
.rea-hero__lead { max-width: 1120px; margin-top: 48px; font-size: 19px; line-height: 1.5; color: var(--muted); }

.rea-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.rea-filter {
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  font: 700 12px/1 var(--font-mono);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.rea-filter:hover { border-color: var(--yellow); }
.rea-filter[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ---------- Chiffres ---------- */

.rea-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 40px;
  padding-bottom: 40px;
  border-block: 1px solid var(--line);
}
.rea-stats > div { padding-left: 32px; border-left: 1px solid var(--line); }
.rea-stats > div:first-child { padding-left: 0; border-left: 0; }
.rea-stats dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--yellow);
}
.rea-stats dd { margin-top: 24px; font-size: 10px; color: var(--muted); }

/* ---------- Projets ---------- */

.rea-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 150px;
}
.rea-empty { grid-column: 1 / -1; padding-block: 80px; color: var(--muted); text-align: center; }

.rea { display: flex; flex-direction: column; min-width: 0; margin-top: 16px; }
.rea[hidden] { display: none; }

.rea .work__visual { aspect-ratio: 16 / 9; --stripe-end: 34%; }
.rea__label { margin-top: 22px; color: var(--muted); }
.rea__title {
  max-width: 7em;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: .92;
}
.rea__client { margin-top: 10px; font-weight: 600; font-size: 15px; }
.rea__desc { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.rea__result { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.rea__result strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--yellow);
}

/* Projet « focus » : pleine largeur, résultat à droite */
.rea--focus { grid-column: 1 / -1; margin-top: 0; margin-bottom: 60px; }
.rea--focus .work__visual { aspect-ratio: 16 / 9; border-top: 0; --stripe-end: 62%; }
.rea--focus .rea__body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; }
.rea--focus .rea__label { margin-top: 30px; }
.rea--focus .rea__title { font-size: 52px; line-height: .95; }
.rea--focus .rea__desc { font-size: 17px; }
.rea--focus .rea__side { padding-top: 30px; }
.rea--focus .rea__side-label { color: var(--muted); }
.rea--focus .rea__side-value {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--yellow);
}
.rea--focus .rea__side-text { margin-top: 18px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- Bandeau final ---------- */

.cta-band--big { padding-block: 90px; }
.cta-band--big .cta-band__title { font-size: clamp(44px, 4.6vw, 66px); line-height: .88; }

/* ---------- Visionneuse ---------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px 72px;
  background: rgba(13, 13, 12, .96);
  border: 0;
  color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; }
.lightbox__figure figcaption { color: var(--muted); text-align: center; }
.lightbox__close,
.lightbox__nav {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
  font: 700 16px/1 var(--font-mono);
  cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--yellow); color: var(--yellow); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .rea-stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .rea-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .rea--focus .rea__body { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 760px) {
  .rea-hero { padding-top: 40px; padding-bottom: 48px; }
  .rea-hero__lead { margin-top: 28px; font-size: 17px; }
  .rea-stats > div { padding-left: 16px; }
  .rea-stats dt { font-size: 44px; }
  .rea-list { grid-template-columns: 1fr; gap: 40px; padding-bottom: 90px; }
  .rea--focus { margin-bottom: 0; }
  .rea--focus .rea__title { font-size: 40px; }
  .lightbox { padding: 72px 12px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
}
