/* =========================================================
   Pop-up "Mes derniers projets" - Jean-Marc Renaud
   Couleurs du site : #232332 (fonce), #d6b161 (accent),
   #444/#666/#999 (gris), #fff (blanc). Polices: Dosis / Open Sans.
   ========================================================= */

#pp-overlay, #pp-overlay * {
  box-sizing: border-box;
}

#pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(35, 35, 50, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#pp-overlay.pp-visible {
  display: flex;
  opacity: 1;
}

#pp-modal {
  background: #fff;
  width: 100%;
  max-width: 900px;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  padding: 30px 30px 35px;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
#pp-overlay.pp-visible #pp-modal {
  transform: translateY(0);
}

#pp-modal .pp-eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d6b161;
  margin: 0 0 4px;
}
#pp-modal .pp-title {
  font-family: 'Dosis', sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #232332;
  margin: 0 0 18px;
  padding-right: 40px;
  min-height: 36px;
}

#pp-stage {
  position: relative;
  background: #f2f2f4;
  border-radius: 2px;
  overflow: hidden;
  height: 58vh;
  min-height: 320px;
  max-height: 560px;
}
#pp-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#pp-stage img.pp-active {
  opacity: 1;
}

#pp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(35, 35, 50, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}
#pp-close:hover {
  background: #d6b161;
  color: #232332;
}

.pp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(35, 35, 50, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.pp-arrow:hover {
  background: #d6b161;
  color: #232332;
}
.pp-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
#pp-prev { left: 16px; }
#pp-next { right: 16px; }

#pp-modal .pp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
#pp-modal .pp-counter {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #999;
  letter-spacing: 0.5px;
}
#pp-modal .pp-cta {
  font-family: 'Dosis', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #232332;
  text-decoration: none;
  border-bottom: 1px solid #d6b161;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
#pp-modal .pp-cta:hover {
  color: #d6b161;
}

/* ---------- Lien de reouverture ---------- */
.pp-reopen-wrap {
  padding-bottom: 40px;
}
.pp-reopen-link {
  display: inline-block;
  font-family: 'Dosis', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  background: #232332;
  padding: 13px 30px;
  border-radius: 2px;
  border: 1px solid #232332;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.pp-reopen-link:before {
  content: "\25B8";
  display: inline-block;
  margin-right: 10px;
  color: #d6b161;
  transition: transform 0.25s ease;
}
.pp-reopen-link:hover {
  color: #232332;
  background: #d6b161;
  border-color: #d6b161;
}
.pp-reopen-link:hover:before {
  color: #232332;
  transform: translateX(3px);
}

@media (max-width: 767px) {
  #pp-overlay { padding: 14px; }
  #pp-modal { padding: 20px 18px 24px; }
  #pp-modal .pp-title { font-size: 22px; padding-right: 34px; }
  #pp-stage { height: 46vh; min-height: 220px; }
  #pp-stage img { object-fit: contain; }
  .pp-arrow { width: 38px; height: 38px; }
}
