.storyboard-page {
  background: #ffffff;
  color: #111111;
}

/* =========================
   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 STORYBOARD
========================= */

.storyboard-shell {
  min-height: 100vh;
  width: 100%;
  padding: 118px 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.storyboard-header {
  width: min(100%, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.storyboard-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.storyboard-description {
  width: min(100%, 760px);
}

.storyboard-description p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-align: justify;
  text-justify: inter-word;
}

/* =========================
   LECTEUR
========================= */

.storyboard-viewer {
  width: min(100%, 1280px);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 18px;
}

.pages-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  gap: 28px;
}

.page-card {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storyboard-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border: 1px solid #111111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.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;
}

.nav-button:hover,
.nav-button:focus-visible {
  opacity: 0.72;
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  outline: none;
}

.nav-button:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.storyboard-counter {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 1100px) {
  .top-logo img {
    width: 200px;
    max-width: 58vw;
  }

  .storyboard-shell {
    padding: 104px 18px 30px;
    gap: 22px;
  }

  .storyboard-viewer {
    grid-template-columns: 50px 1fr 50px;
    gap: 12px;
  }

  .pages-stage {
    gap: 18px;
  }

  .storyboard-image {
    max-height: 66vh;
  }

  .nav-button {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* =========================
   SMARTPHONE
========================= */

@media (max-width: 720px) {
  .top-nav {
    top: 10px;
  }

  .top-logo img {
    width: 160px;
    max-width: 72vw;
  }

  .storyboard-shell {
    padding: 92px 14px 26px;
    gap: 20px;
  }

  .storyboard-header {
    gap: 14px;
  }

  .storyboard-title {
    font-size: 0.98rem;
    letter-spacing: 0.18em;
  }

  .storyboard-description {
    width: 100%;
  }

  .storyboard-description p {
    font-size: 0.94rem;
    line-height: 1.68;
    text-align: left;
  }

  .storyboard-viewer {
    width: 100%;
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
  }

  .pages-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .desktop-only {
    display: none !important;
  }

  .storyboard-image {
    max-height: 70vh;
  }

  .nav-button {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .nav-button:hover,
  .nav-button:focus-visible {
    transform: none;
  }

  .storyboard-counter {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }
}