/* ==========================================================================
   Onoma — PAGE TYPE : présentation d'un projet.
   Palette : #FFFFFF / #DBDBDB / #202020 / #FFED00
   Type : Lineal (display) + Allen Sans (corps)
   Note : Allen Sans n'a pas les glyphes accentués → corps sans accents.
   ========================================================================== */

@font-face { font-family: "Lineal"; src: url("../../assets/fonts/Lineal-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lineal"; src: url("../../assets/fonts/Lineal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lineal"; src: url("../../assets/fonts/Lineal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lineal"; src: url("../../assets/fonts/Lineal-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Allen Sans"; src: url("../../assets/fonts/AllenSans-Light.woff2?v=fr") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Allen Sans"; src: url("../../assets/fonts/AllenSans-Regular.woff2?v=fr") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Allen Sans"; src: url("../../assets/fonts/AllenSans-Bold.woff2?v=fr") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --white: #FFFFFF;
  --grey: #DBDBDB;
  --black: #202020;
  --yellow: #FFED00;
  --font-display: "Lineal", sans-serif;
  --font-body: "Allen Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ---------- Barre du haut ---------- */
.pj-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32, 32, 32, 0.08);
}

.pj-logo img { height: 26px; width: auto; }

.pj-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(32, 32, 32, 0.18);
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.pj-back__arrow { font-size: 16px; line-height: 1; transition: transform 0.25s ease; }
.pj-back:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.pj-back:hover .pj-back__arrow { transform: translateX(-3px); }

/* ---------- Contenu ---------- */
.pj { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Intro : deux colonnes */
.pj-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 0 96px;
}

.pj-kicker {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.pj-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 14px 0 22px;
}

.pj-lead {
  font-size: 19px;
  line-height: 1.55;
  color: #3a3a3a;
  max-width: 46ch;
}

.pj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(32, 32, 32, 0.12);
}
.pj-meta dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 4px;
}
.pj-meta dd { font-size: 15px; font-weight: 700; }

/* ---------- Pile d'images (draggable) ---------- */
.pj-hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stack {
  position: relative;
  width: 490px;
  height: 400px;
  max-width: 100%;
  touch-action: pan-y;              /* swipe horizontal capture, scroll vertical OK */
  user-select: none;
  -webkit-user-select: none;
}

.stack__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 440px;
  aspect-ratio: 4 / 3;               /* cartes paysage (mockups 4:3) */
  margin-left: -220px;               /* centrage horizontal */
  transform-origin: bottom center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(32, 32, 32, 0.10);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.28);
  will-change: transform;
}
.stack__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.stack__card.is-top { cursor: grab; }
.stack__card.is-dragging { cursor: grabbing; box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35); }

.stack-hint {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.stack-hint.is-gone { opacity: 0; }

/* ---------- Blocs de contenu ---------- */
.pj-block {
  max-width: 720px;
  padding: 40px 0;
  border-top: 1px solid rgba(32, 32, 32, 0.10);
}
.pj-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.pj-body { font-size: 17px; line-height: 1.6; color: #3a3a3a; }

/* Grande figure pleine largeur (planche, visuel de projet) */
.pj-figure {
  margin: 56px 0 8px;
}
.pj-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(32, 32, 32, 0.10);
}

/* ---------- Pied de page ---------- */
.pj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 40px;
  border-top: 1px solid rgba(32, 32, 32, 0.12);
}
.pj-footer__back { font-weight: 700; font-size: 15px; }
.pj-footer__back:hover { text-decoration: underline; }
.pj-footer__brand { font-size: 13px; opacity: 0.45; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pj-topbar { padding: 18px 22px; }
  .pj { padding: 0 22px; }
  .pj-hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 48px 0 64px;
  }
  .pj-hero__stack { order: -1; margin-bottom: 32px; }
  .pj-footer { padding: 32px 22px; }
}

/* Petit ecran : on reduit la pile pour qu'elle reste contenue */
@media (max-width: 520px) {
  .stack { width: 340px; height: 280px; }
  .stack__card { width: 310px; margin-left: -155px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack__card { transition: none !important; }
}
