/* V84 — navigation dans les marges, hors images et panneaux-titres. */
.case-study-project-shell {
  position: relative;
  padding-inline: 48px;
}

.case-study-project-shell .case-study-project-navigation {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  pointer-events: none;
}

.case-study-project-navigation button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #a69ca7;
  background: transparent;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: color .2s ease, transform .2s ease;
}

.case-study-project-navigation button:hover,
.case-study-project-navigation button:focus-visible {
  color: var(--project-blue);
  background: transparent;
  transform: scale(1.08);
}

/* Ris Infos: image puis titre ; Les P’tits Rissois : titre puis image. */
.ris-infos-interface-hero .case-study-project-navigation {
  position: absolute;
  z-index: 5;
  right: 0;
  left: 0;
  display: flex;
  width: auto;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  pointer-events: none;
}

.ris-infos-interface-hero .case-study-project-navigation button {
  pointer-events: auto;
}

.case-hero-ris-infos .case-study-project-navigation {
  bottom: 1rem;
}

.ptits-rissois-interface-hero .case-study-project-navigation {
  top: 1rem;
}

/* Le titre FFR reste de même nature, mais s'ajuste à sa longueur. */
.case-study-view .case-hero-ffr h1 {
  font-size: clamp(.62rem, 1.22vw, .9rem);
  line-height: 1.32;
}

@media (max-width: 720px) {
  .case-study-project-shell { padding-inline: 34px; }
  .case-study-project-navigation button { width: 34px; }
}
