/* =====================================================================
   PARCELLIUM — Styles des pages opération (détail) + visionneuse
   ===================================================================== */

.op-hero { padding-block: clamp(46px, 8vw, 90px); }
.op-back { display: inline-block; margin-bottom: 26px; color: var(--mist); font-size: 0.9rem; font-weight: 500; transition: color 0.2s var(--ease); }
.op-back:hover { color: var(--gold-light); }
.op-hero__title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; }
.op-hero__type { margin-top: 12px; color: var(--gold-light); font-size: 1.05rem; letter-spacing: 0.03em; }

.op-detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.op-detail__h { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 18px; }
.op-detail__text p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; margin-bottom: 14px; max-width: 65ch; }
.op-detail__aside { background: var(--navy); color: #fff; border-top: 3px solid var(--gold); border-radius: 6px; padding: 28px 26px; position: sticky; top: 96px; }
.op-aside__head { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-light); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
.op-aside__list { display: grid; gap: 14px; margin-bottom: 24px; }
.op-aside__list dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mist-dim); margin-bottom: 3px; }
.op-aside__list dd { font-size: 1rem; color: #fff; }
.op-detail__aside .btn { width: 100%; }

.op-missions { margin-top: 34px; }
.op-missions__list { list-style: none; display: grid; gap: 12px; margin-top: 16px; }
.op-missions__list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.55; }
.op-missions__list li::before { content: ""; position: absolute; left: 2px; top: 0.52em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }

.op-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.op-photo { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.op-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.op-photo:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.op-photo:hover img { transform: scale(1.05); }
.op-gallery__empty { color: var(--ink-soft); font-style: italic; }

.op-nav { padding-block: clamp(28px, 4vw, 44px); }
.op-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.op-nav__link { display: flex; flex-direction: column; gap: 2px; color: #fff; }
.op-nav__link span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mist-dim); }
.op-nav__link strong { font-family: var(--serif); font-weight: 600; color: var(--gold-light); font-size: 1.1rem; transition: color 0.2s var(--ease); }
.op-nav__link--next { text-align: right; }
.op-nav__link:hover strong { color: #fff; }
.op-nav__home { color: var(--mist); font-size: 0.85rem; transition: color 0.2s var(--ease); }
.op-nav__home:hover { color: #fff; }

/* ----------------------------- Visionneuse ----------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(8, 14, 30, 0.93); padding: clamp(16px, 4vw, 52px); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lightbox__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 4px; margin-inline: auto; }
.lightbox__caption { text-align: center; color: var(--mist); font-size: 0.85rem; }
.lightbox__btn { position: absolute; background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--line-light); width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.lightbox__btn:hover { background: rgba(192, 147, 76, 0.3); border-color: var(--gold); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 860px) {
  .op-detail { grid-template-columns: 1fr; }
  .op-detail__aside { position: static; }
  .op-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .op-gallery { grid-template-columns: 1fr; }
  .lightbox__btn { width: 42px; height: 42px; }
}
