/* ============================================================
   L'Effet Mur — page de détail d'une prestation
   S'appuie sur effet-mur.css (variables, nav, boutons, contact, footer).
   ============================================================ */

/* ---------------------------------------------------------- HERO */
.phero { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(40px, 6vw, 80px); }
.pback {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); margin-bottom: clamp(24px, 3vw, 40px);
  transition: color .2s, gap .2s;
}
.pback:hover { color: var(--ink); gap: 12px; }

.phero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.phero__copy .chip { margin-bottom: 20px; }
.phero__copy h1 {
  font-size: calc(clamp(38px, 5.4vw, 72px) * var(--title-scale, 1));
  letter-spacing: -.03em; text-wrap: balance; margin-bottom: 18px;
}
.phero__tag {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 2vw, 26px); line-height: 1.25;
  color: var(--accent); margin-bottom: 22px; text-wrap: balance;
}
.phero__intro { color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; max-width: 54ch; }
.phero__intro + .phero__intro { margin-top: 14px; }
.phero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.phero__media { position: relative; }
.phero__frame {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3.2; border: 1px solid var(--line);
  box-shadow: var(--halo); background: linear-gradient(150deg, #e9e9f1, #d4d4e1);
  position: relative;
}
.phero__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u) 45%, transparent), inset 0 0 60px -20px var(--u);
}
.phero__frame img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------------------------------------------------------- FEATURES */
.pfeatures {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}
.pcard {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px);
  position: relative; overflow: hidden;
}
.pcard h3 { font-size: clamp(20px, 1.9vw, 25px); margin-bottom: 14px; line-height: 1.15; }
.pcard > p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.pcard > p + .upanel__points { margin-top: 18px; }
.pcard .upanel__points { margin: 8px 0 0; }

/* ---------------------------------------------------------- IDÉAL POUR */
.pideal .wrap { text-align: center; }
.pideal h2 { margin-bottom: 30px; }
.pideal__tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.ptag {
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--u) 45%, var(--line-2));
  background: color-mix(in srgb, var(--u) 10%, var(--card-2));
  color: var(--ink);
}
.pclosing {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25;
  max-width: 22ch; margin: clamp(40px, 5vw, 64px) auto 0; text-wrap: balance;
}
.pclosing::before, .pclosing::after { content: "“"; color: var(--accent); }
.pclosing::after { content: "”"; }

/* ---------------------------------------------------------- AUTRES PRESTATIONS */
.pother__h { margin-bottom: 32px; }
.pother { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 26px); }
.pother__card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--card-2);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pother__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--u) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--u) 50%, transparent), 0 18px 40px -18px var(--u);
}
.pother__media { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(140deg, var(--u), color-mix(in srgb, var(--u) 40%, #000)); }
.pother__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pother__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.pother__tag {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
  color: var(--u);
}
.pother__body h3 { font-size: 19px; line-height: 1.2; }
.pother__go { margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); transition: color .2s; }
.pother__card:hover .pother__go { color: var(--ink); }

/* ---------------------------------------------------------- GALERIE */
.pgallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.2vw, 28px); }
.pgallery__item {
  appearance: none; -webkit-appearance: none;
  display: block; width: 100%; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card-2); cursor: pointer; overflow: hidden;
  aspect-ratio: 4 / 3; position: relative; box-shadow: var(--halo);
  transition: transform .2s, box-shadow .3s, border-color .3s;
}
.pgallery__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u) 45%, transparent), inset 0 0 60px -20px var(--u);
}
.pgallery__item img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.pgallery__item:hover { border-color: color-mix(in srgb, var(--u) 60%, transparent); }
.pgallery__item:hover img { transform: scale(1.045); }
.pgallery__item:focus-visible { outline: 3px solid var(--u); outline-offset: 3px; }
.pgallery__zoom {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--u) 88%, #000); color: #fff;
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
}
.pgallery__zoom::before { content: "⤢"; font-size: 20px; line-height: 1; font-weight: 700; }
.pgallery__item:hover .pgallery__zoom { opacity: 1; transform: scale(1); }

/* ---------------------------------------------------------- LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(14px, 4vw, 48px);
  background: rgba(0, 0, 0, .92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(92vw, 1400px); max-height: 86vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); user-select: none;
}
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; appearance: none; -webkit-appearance: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  font-family: var(--font-body); line-height: 1;
  transition: background .2s, transform .2s, border-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); width: 48px; height: 48px; font-size: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 30px; padding-bottom: 4px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: clamp(10px, 2.5vw, 28px); }
.lightbox__nav--next { right: clamp(10px, 2.5vw, 28px); }
.lightbox__count {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(14px, 3vw, 28px);
  color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 700; letter-spacing: .04em;
}

@media (max-width: 680px) {
  .pgallery__grid { grid-template-columns: 1fr; }
  .lightbox__nav { width: 46px; height: 46px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pgallery__item, .pgallery__item img, .pgallery__zoom,
  .lightbox__nav, .lightbox__close { transition: none; }
}

/* ---------------------------------------------------------- RESPONSIVE */
@media (max-width: 980px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__media { order: -1; }
  .pfeatures { grid-template-columns: 1fr; }
  .pother { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 540px) {
  .phero__cta { flex-direction: column; align-items: stretch; }
  .phero__cta .btn { justify-content: center; }
}
