/* Template page projet — réutilisable */

@font-face {
  font-family: "Swiss 911 Compressed";
  src: url("Typos/swiss-911-compressed-regular_bvhuc/Swiss 911 Compressed Regular/Swiss 911 Compressed Regular.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pd-skill-comprendre: #db5552;
  --pd-skill-concevoir: #d88d68;
  --pd-skill-developper: #a2e264;
  --pd-skill-entreprendre: #ccffff;
  --pd-skill-exprimer: #fefd7e;
  --pd-skill-exprimer-vivid: #c96bff;
  --pd-motif-tile: clamp(520px, 48vw, 900px);
  --pd-sticky-top: clamp(5rem, 9vw, 6.25rem);
  --pd-scroll-offset: calc(var(--pd-sticky-top) + 0.75rem);
}

body.page-projet-detail {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.page-projet-detail .site-header,
.page-projet-detail .site-header.is-scrolled {
  background-color: #000 !important;
}

.page-projet-detail .nav-main a {
  color: #fff;
}

.page-projet-detail .nav-main a:hover {
  color: var(--nav-hover, #00ff0c);
}

.page-projet-detail .burger span {
  background: #fff;
}

@media (min-width: 901px) {
  .page-projet-detail .burger {
    display: none;
  }
}

@media (max-width: 900px) {
  .page-projet-detail .nav-main {
    display: none;
  }
}

@media (min-width: 901px) {
  .page-projet-detail .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.5rem, 1.5vw, 1rem);
  }

  .page-projet-detail .portfolio-filter {
    position: static;
    transform: none;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

.page-projet-detail .nav-desktop.pd-nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
}

.page-projet-detail .pd-back {
  flex-shrink: 0;
  margin: 0;
  font-size: var(--site-footer-text-size, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.page-projet-detail .pd-back:hover,
.page-projet-detail .pd-back:focus-visible {
  color: var(--nav-hover, #00ff0c);
}

@media (max-width: 900px) {
  .page-projet-detail .pd-back {
    letter-spacing: 0.08em;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .page-projet-detail .pd-back {
    letter-spacing: 0.08em;
    font-size: 0.76rem;
  }

  .page-projet-detail .nav-desktop.pd-nav-wrap {
    gap: clamp(0.5rem, 1.2vw, 1rem);
  }

  .page-projet-detail .nav-main {
    gap: clamp(0.55rem, 1.2vw, 1.25rem);
  }

  .page-projet-detail .portfolio-filter__label {
    font-size: 0.7rem;
  }
}

.pd-main {
  flex: 1 1 auto;
  min-height: 0;
}

/* ——— Section 1 : hero vidéo / visuel ——— */
.pd-hero {
  position: relative;
  width: 100%;
  padding-top: clamp(4.5rem, 10vw, 5.75rem);
  background: #000;
  box-sizing: border-box;
}

.pd-hero__inner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.pd-hero__media {
  position: relative;
  width: 100%;
  margin: 0;
  border: none;
  padding: 0;
  background: #000;
  cursor: pointer;
  display: block;
  line-height: 0;
}

.pd-hero__media video,
.pd-hero__media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  background: #000;
}

.pd-hero__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.pd-hero__play-icon {
  width: clamp(56px, 9vw, 96px);
  height: clamp(56px, 9vw, 96px);
  opacity: 0.82;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pd-hero__media:hover .pd-hero__play-icon {
  transform: scale(1.06);
  opacity: 1;
}

.pd-hero.is-playing .pd-hero__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pd-hero.is-playing .pd-hero__media {
  cursor: default;
}

.pd-hero--static .pd-hero__play {
  display: none;
}

.pd-hero--static .pd-hero__media {
  cursor: default;
}

/* Hero : ne pas agrandir au-delà de la résolution native du fichier */
.pd-hero--native .pd-hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pd-hero--native .pd-hero__media img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* ——— Sections à motif gris 2 ——— */
.pd-motif-section {
  position: relative;
  background: #000;
  /* overflow: visible requis pour que le sommaire sticky suive le scroll */
}

.pd-motif-section__bg {
  position: absolute;
  inset: 0;
  background-image: url("PHOTOS ACCUEIL/Accueil/motif2-tile.png");
  background-repeat: repeat;
  background-size: var(--pd-motif-tile) auto;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  animation: pd-motif-drift 120s linear infinite;
  will-change: background-position;
  overflow: hidden;
}

@keyframes pd-motif-drift {
  from { background-position: 0 0; }
  to { background-position: var(--pd-motif-tile) calc(var(--pd-motif-tile) * 0.84875); }
}

.pd-motif-section__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
}

/* ——— Layout sommaire ancré + contenu ——— */
.pd-scroll-body__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(148px, 190px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
}

.pd-toc-col {
  align-self: stretch;
  min-height: 100%;
}

.pd-scroll-body__main {
  min-width: 0;
}

.pd-scroll-anchor {
  scroll-margin-top: var(--pd-scroll-offset);
}

/* ——— Section 2 : layout Wikipedia ——— */
.pd-wiki {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.pd-toc {
  position: sticky;
  top: var(--pd-sticky-top);
  align-self: start;
  z-index: 3;
  max-height: calc(100vh - var(--pd-sticky-top) - 1.25rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.82);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  line-height: 1.45;
  transition: box-shadow 0.3s ease;
}

.pd-toc.is-scrolling {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.pd-toc.is-collapsed .pd-toc__nav {
  display: none;
}

.pd-toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pd-toc__toggle {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 0.92em;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-toc__toggle:hover {
  color: #fff;
}

.pd-toc__nav {
  margin: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  list-style: none;
}

.pd-toc__nav a {
  display: block;
  padding: 0.28rem 0;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.28s ease, transform 0.28s ease;
}

.pd-toc__nav a:hover,
.pd-toc__nav a.is-active {
  color: var(--nav-hover, #00ff0c);
}

.pd-toc__nav a.is-active {
  transform: translateX(3px);
}

.pd-content__title {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-family: "Swiss 911 Compressed", "Libre Franklin", sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
}

.pd-content__heading {
  margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.pd-content__text {
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.92);
}

.pd-content__text p {
  margin: 0 0 1rem;
}

.pd-content__text p:last-child {
  margin-bottom: 0;
}

/* Infobox */
.pd-infobox {
  position: sticky;
  top: var(--pd-sticky-top);
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.72);
  font-size: clamp(0.78rem, 1.35vw, 0.88rem);
  line-height: 1.45;
}

.pd-infobox__title {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: clamp(0.82rem, 1.45vw, 0.95rem);
  font-weight: 700;
  text-align: center;
}

.pd-infobox__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pd-infobox__body {
  padding: 0.75rem 0.85rem 0.95rem;
}

.pd-infobox__row {
  margin: 0 0 0.75rem;
}

.pd-infobox__row:last-child {
  margin-bottom: 0;
}

.pd-infobox__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.pd-infobox__value {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.pd-infobox__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.pd-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.pd-tag--year {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.pd-tag--but {
  background: transparent;
  color: #fff;
  text-transform: lowercase;
}

.pd-tag--exprimer {
  background: var(--pd-skill-exprimer-vivid);
  border-color: var(--pd-skill-exprimer-vivid);
  color: #fff;
}

.pd-tag--concevoir {
  background: var(--pd-skill-concevoir);
  border-color: var(--pd-skill-concevoir);
  color: #000;
}

.pd-tag--comprendre {
  background: var(--pd-skill-comprendre);
  border-color: var(--pd-skill-comprendre);
  color: #fff;
}

.pd-tag--developper {
  background: var(--pd-skill-developper);
  border-color: var(--pd-skill-developper);
  color: #000;
}

.pd-tag--entreprendre {
  background: var(--pd-skill-entreprendre);
  border-color: var(--pd-skill-entreprendre);
  color: #000;
}

.pd-infobox__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-infobox__links li + li {
  margin-top: 0.35rem;
}

.pd-infobox__links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-infobox__links a:hover {
  color: var(--nav-hover, #00ff0c);
}

.pd-infobox__empty {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* ——— Section 3 : galerie ——— */
.pd-gallery {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 0;
}

.pd-gallery__title {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pd-gallery__frame {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #000;
  padding: clamp(0.85rem, 2vw, 1.35rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.pd-gallery__frame--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-gallery__frame--quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Galerie agence AuraVizion — 3 colonnes (portrait | 2 empilés | paysage) */
.pd-gallery__frame--agence {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr) minmax(0, 1.18fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: clamp(280px, 38vw, 480px);
}

.pd-gallery__frame--agence .pd-gallery__item--agence-left {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.pd-gallery__frame--agence .pd-gallery__item--agence-mid-top {
  grid-column: 2;
  grid-row: 1;
}

.pd-gallery__frame--agence .pd-gallery__item--agence-mid-bottom {
  grid-column: 2;
  grid-row: 2;
}

.pd-gallery__frame--agence .pd-gallery__item--agence-right {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.pd-gallery__frame--agence .pd-gallery__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.pd-gallery__frame--agence .pd-gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: contain;
}

.pd-gallery__item {
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
}

.pd-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pd-gallery__item:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

.pd-hero__media-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}

.pd-hero__media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.pd-hero__media-link:hover::after,
.pd-hero__media-link:focus-visible::after {
  background: rgba(0, 0, 0, 0.52);
}

.pd-hero__media-link img {
  display: block;
  width: 100%;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.pd-hero__media-link:hover img,
.pd-hero__media-link:focus-visible img {
  transform: scale(1.03);
  filter: brightness(0.88);
}

.pd-hero__link-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: clamp(0.75rem, 1.4vw, 0.95rem) clamp(1.25rem, 2.2vw, 1.65rem);
  font-size: clamp(0.88rem, 1.25vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #111;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.28s ease, transform 0.28s ease;
  white-space: nowrap;
}

.pd-hero__link-arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.28s ease;
}

.pd-hero__media-link:hover .pd-hero__link-hint,
.pd-hero__media-link:focus-visible .pd-hero__link-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pd-hero__media-link:hover .pd-hero__link-arrow,
.pd-hero__media-link:focus-visible .pd-hero__link-arrow {
  transform: translateX(3px);
}

@media (hover: none) {
  .pd-hero__media-link::after {
    background: rgba(0, 0, 0, 0.35);
  }

  .pd-hero__link-hint {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.pd-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1rem);
  width: 100%;
}

.pd-compare__item {
  margin: 0;
}

.pd-compare__item {
  cursor: zoom-in;
}

.pd-compare__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.pd-compare__item figcaption {
  margin-top: 0.55rem;
  font-size: clamp(0.78rem, 1.05vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
  .pd-compare {
    grid-template-columns: 1fr;
  }
}

.pd-niveau {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.pd-niveau__title {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-niveau__level {
  margin: 0 0 1rem;
  font-size: clamp(0.88rem, 1.35vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-skill-exprimer);
}

.pd-niveau__text p {
  margin: 0 0 1rem;
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.pd-niveau__text p:last-child {
  margin-bottom: 0;
}

.pd-niveau__text a {
  color: var(--nav-hover, #00ff0c);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pd-niveau__text a:hover {
  color: #fff;
}

/* ——— Section 4 : AC ——— */
.pd-ac {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.pd-ac__title {
  margin: 0 0 0.45rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-ac__intro {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(0.78rem, 1.35vw, 0.88rem);
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.pd-ac__group + .pd-ac__group {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

.pd-ac__group-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pd-ac__group-head::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  background: currentColor;
}

.pd-ac__group--exprimer .pd-ac__group-head { color: var(--pd-skill-exprimer); }
.pd-ac__group--concevoir .pd-ac__group-head { color: var(--pd-skill-concevoir); }
.pd-ac__group--developper .pd-ac__group-head { color: var(--pd-skill-developper); }
.pd-ac__group--comprendre .pd-ac__group-head { color: var(--pd-skill-comprendre); }
.pd-ac__group--entreprendre .pd-ac__group-head { color: var(--pd-skill-entreprendre); }

.pd-ac__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pd-ac__item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(0.82rem, 1.45vw, 0.92rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.pd-ac__code {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  margin-right: 0.35rem;
}

.pd-ac__item--expandable {
  padding: 0;
}

.pd-ac__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  line-height: 1.55;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pd-ac__trigger:hover,
.pd-ac__trigger:focus-visible {
  color: #fff;
  outline: none;
}

.pd-ac__trigger:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

.pd-ac__trigger-main {
  flex: 1;
  min-width: 0;
}

.pd-ac__chevron {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.1em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.22s ease, color 0.2s ease;
}

.pd-ac__trigger[aria-expanded="true"] .pd-ac__chevron {
  transform: rotate(45deg);
  color: rgba(255, 255, 255, 0.75);
}

.pd-ac__detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.32s ease;
}

.pd-ac__detail.is-open {
  max-height: 20rem;
  opacity: 1;
  padding: 0 0 0.75rem;
}

.pd-ac__detail p {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: clamp(0.78rem, 1.35vw, 0.88rem);
  line-height: 1.6;
  color: #fff;
}

/* ——— Footer ——— */
.page-projet-detail .site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .pd-scroll-body__inner {
    grid-template-columns: 1fr;
  }

  .pd-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .pd-wiki {
    grid-template-columns: 1fr;
  }

  .pd-infobox {
    position: static;
    max-width: 320px;
  }

  .pd-gallery__frame--triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-gallery__frame--quad {
    grid-template-columns: 1fr;
  }

  .pd-gallery__frame--agence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: 0;
  }

  .pd-gallery__frame--agence .pd-gallery__item--agence-left {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .pd-gallery__frame--agence .pd-gallery__item--agence-mid-top {
    grid-column: 2;
    grid-row: 1;
  }

  .pd-gallery__frame--agence .pd-gallery__item--agence-mid-bottom {
    grid-column: 2;
    grid-row: 2;
  }

  .pd-gallery__frame--agence .pd-gallery__item--agence-right {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .pd-gallery__frame--agence .pd-gallery__item img {
    max-height: clamp(180px, 32vw, 320px);
  }
}

@media (max-width: 640px) {
  .pd-gallery__frame,
  .pd-gallery__frame--triple {
    grid-template-columns: 1fr;
  }

  .pd-gallery__frame--agence {
    grid-template-columns: 1fr;
  }

  .pd-gallery__frame--agence .pd-gallery__item--agence-left,
  .pd-gallery__frame--agence .pd-gallery__item--agence-mid-top,
  .pd-gallery__frame--agence .pd-gallery__item--agence-mid-bottom,
  .pd-gallery__frame--agence .pd-gallery__item--agence-right {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-motif-section__bg {
    animation: none;
  }
}

/* ——— Variante narrative : texte + visuel côte à côte ——— */
.page-projet-detail--story .pd-wiki {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.page-projet-detail--story .pd-story-flow {
  min-width: 0;
}

.page-projet-detail--story .pd-story__block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
  margin-bottom: clamp(2.75rem, 7vw, 4.5rem);
}

.page-projet-detail--story .pd-story-flow .pd-story__block:last-child {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.page-projet-detail--story .pd-story__block--reverse .pd-story__text {
  order: 2;
}

.page-projet-detail--story .pd-story__block--reverse .pd-story__media {
  order: 1;
}

.page-projet-detail--story .pd-story__heading {
  margin: 0 0 clamp(0.65rem, 1.5vw, 0.9rem);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.page-projet-detail--story .pd-story__text p {
  margin: 0 0 0.95rem;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.92);
}

.page-projet-detail--story .pd-story__text p:last-child {
  margin-bottom: 0;
}

.page-projet-detail--story .pd-story__media {
  margin: 0;
  cursor: zoom-in;
}

.page-projet-detail--story .pd-story__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.page-projet-detail--story .pd-story__media:hover img {
  transform: scale(1.01);
  opacity: 0.94;
}

.page-projet-detail--story .pd-story__media-stack {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  min-width: 0;
}

.page-projet-detail--story .pd-story__media-stack .pd-story__media {
  margin: 0;
}

.page-projet-detail--story .pd-story__divider {
  margin: clamp(2rem, 5vw, 3rem) 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 820px) {
  .page-projet-detail--story .pd-story__block,
  .page-projet-detail--story .pd-story__block--reverse {
    grid-template-columns: 1fr;
  }

  .page-projet-detail--story .pd-story__block--reverse .pd-story__text,
  .page-projet-detail--story .pd-story__block--reverse .pd-story__media {
    order: unset;
  }
}
