.research-page {
  background: #ffffff;
  color: #111111;
  height: 100vh;
  overflow: hidden;
}

/* =========================
   NAVIGATION HAUTE
========================= */

.top-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
}

.top-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-logo img {
  width: 240px;
  max-width: 60vw;
  height: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-logo:hover img,
.top-logo:focus-visible img {
  opacity: 0.55;
  transform: scale(1.04);
}

.top-logo:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 6px;
}

/* =========================
   PAGE RECHERCHE
========================= */

.research-shell {
  height: 100%;
  width: 100%;
  padding: 162px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

/* =========================
   VISIONNEUSE PC
========================= */

.research-viewer {
  width: min(100%, 1280px);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 18px;
}

.research-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gallery-card {
  width: min(100%, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.gallery-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  background: #ffffff;
}

.gallery-cartel {
  width: min(100%, 720px);
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #fffdf8;
  padding: 14px 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.gallery-cartel-title {
  margin: 0 0 8px 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.gallery-cartel-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  text-align: center;
}

.gallery-nav-button {
  width: 56px;
  height: 56px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-nav-button:hover,
.gallery-nav-button:focus-visible {
  opacity: 0.72;
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  outline: none;
}

.gallery-nav-button:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.gallery-mobile-pagination {
  display: none;
}

.gallery-mobile-button {
  display: none;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 1100px) {
  .top-logo img {
    width: 200px;
    max-width: 58vw;
  }

  .research-shell {
    padding: 148px 20px 34px;
    gap: 14px;
  }

  .research-viewer {
    grid-template-columns: 50px 1fr 50px;
    gap: 12px;
  }

  .gallery-card {
    width: min(100%, 860px);
  }

  .gallery-image {
    max-height: 64vh;
  }

  .gallery-nav-button {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* =========================
   SMARTPHONE
========================= */

@media (max-width: 720px) {
  .research-page {
    height: auto;
    overflow: auto;
  }

  .top-nav {
    top: 10px;
  }

  .top-logo img {
    width: 160px;
    max-width: 72vw;
  }

  .research-shell {
    height: auto;
    padding: 124px 14px 28px;
    gap: 20px;
  }

  .research-viewer {
    display: block;
    width: 100%;
  }

  .gallery-nav-button {
    display: none;
  }

  .research-gallery {
    gap: 26px;
  }

  .gallery-card {
    width: 100%;
    gap: 12px;
  }

  .gallery-image {
    max-width: 100%;
    max-height: 68vh;
  }

  .gallery-cartel {
    width: 100%;
    padding: 12px 14px;
  }

  .gallery-cartel-title {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .gallery-cartel-text {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .gallery-mobile-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
  }

  .gallery-mobile-button {
    display: inline-flex;
    min-width: 132px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
    justify-content: center;
  }

  .gallery-mobile-button:hover,
  .gallery-mobile-button:focus-visible {
    opacity: 0.72;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    outline: none;
  }

  .gallery-mobile-button:disabled {
    opacity: 0.25;
    cursor: default;
    box-shadow: none;
  }
}