/* ================================
   PROJECT PAGE (Apex) — layout
=================================== */

/* ========== ZONE CHAUDE ========== */
.pm-hotzone{
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pm-hero{
  position: relative;
  flex: 1 1 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.pm-hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-hero-overlay{
  position: absolute;
  left: 72px;
  bottom: calc(25% + 56px);
  max-width: 70%;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 2;
}

.pm-hero-title{
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 55px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0;
}

.pm-hero-subtitle{
  margin-top: 12px;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  opacity: .95;
}

/* Bandeau blur */
.pm-footer{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25%;
  min-height: 170px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.pm-footer::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.12);
}

.pm-infos-inner{
  position: relative;
  width: 100%;
  padding: 22px 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.pm-info-left{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.pm-info-ico{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pm-info-text{
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
}

.pm-info-center{
  display: inline-flex;
  gap: 42px;
  justify-self: center;
  align-items: center;
}

.pm-soft{
  text-align: center;
}

.pm-soft-ico{
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto 8px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.pm-soft-label{
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: rgba(255,255,255,.85);
}

.pm-info-right{
  justify-self: end;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: rgba(255,255,255,.92);
}

.pm-info-strong{ font-weight: 700; }

/* ========== SECTIONS ========== */
.pm-section{
  width: 100%;
  background: #fff;
  padding: 56px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

.pm-section-inner--nopad{
  padding: 0 !important;
}

.pm-h4{
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.pm-p{
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0,0,0,.78);
}

.pm-img{
  width: 100%;
  min-height: 520px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0,0,0,.08);
}

/* ================================
   SECTION 3 : APEX CARDS
=================================== */

.apex-subtabs-wrap{ margin-bottom: 28px; }

.apex-subtabs{
  gap: 42px;
  align-items: center;
}

.apex-subtabs .nav-link{
  background: transparent;
  border: 0;
  color: #111;
  font-weight: 500;
  padding: 10px 6px;
  position: relative;
  opacity: .85;
}

.apex-subtabs .nav-link.active{ opacity: 1; }

.apex-subtabs .nav-link.active::after{
  content:"";
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 64px;
  height: 2px;
  background:#111;
  border-radius: 2px;
}

/* Col gauche : ornements */
.apex-orn-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 140px;
  gap: 16px;
}

.apex-orn-box{
  background: #f3f3f3;
  border: 1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.apex-orn-box--wide{
  grid-column: 1 / -1;
}

.apex-orn-box img{
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

/* Col centre : carte */
.apex-card-col{ padding: 0 !important; }

.apex-card-btn{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  line-height: 0;
}

.apex-card-img{
  width: min(420px, 100%);
  height: auto;
  display: block;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

/* Col droite : infos */
.apex-info-title{
  font-size: 42px;
  letter-spacing: -0.8px;
  font-weight: 700;
  margin-bottom: 22px;
}

.apex-info-copy{
  margin-top: 0;
}

.apex-nav-arrows{
  margin-top: 0;
  display:flex;
  justify-content: flex-end;
  gap: 14px;
}

.apex-card-row{
  margin: 0;
  align-items: flex-start !important;
}

.apex-info-kicker{
  font-weight: 700;
  margin-bottom: 8px;
}

.apex-info-text{
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,0,0,.78);
}

/* Rareté */
.apex-rarity-title{
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,.55);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}

.apex-rarity-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.apex-rarity-btn{
  border: 1px solid rgba(0,0,0,.08);
  background: #f6f6f6;
  border-radius: 999px;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}

.apex-rarity-dot{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #bbb;
  border: 4px solid #f6f6f6;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}

.apex-rarity-btn.is-active{
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.apex-rarity-btn.is-active .apex-rarity-dot{
  border-color: #fff;
}

.apex-nav-btn{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  cursor: pointer;
}

.apex-nav-btn:active{ transform: translateY(1px); }

/* Modal zoom */
.apex-zoom-modal{
  border-radius: 18px;
  overflow: hidden;
}

.apex-zoom-close{
  position:absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.apex-zoom-body{
  padding: 26px;
  display:flex;
  justify-content:center;
  align-items:center;
  background: #fff;
}

.apex-zoom-body img{
  width: 100%;
  height: auto;
  max-width: 560px;
}

/* Responsive */
@media (max-width: 991px){
  .pm-hero{ min-height: 560px; }

  .pm-hero-overlay{
    left: 22px;
    right: 22px;
    max-width: 100%;
    bottom: calc(25% + 26px);
  }

  .pm-hero-title{ font-size: 40px; }
  .pm-hero-subtitle{ font-size: 18px; }

  .pm-infos-inner{
    padding: 18px 22px;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .pm-info-left, .pm-info-right{ justify-self: center; }
  .pm-info-center{ justify-self: center; flex-wrap: wrap; gap: 18px; }

  .pm-section-inner{ padding: 0 22px; }
  .pm-img{ min-height: 360px; }

  .apex-info-title{ font-size: 34px; }
}

/* ================================
   HERO FULL BLEED (Section 1)
=================================== */

/* Full largeur écran + hauteur fixe */
.pm-hotzone--fullbleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);  /* full-bleed même si un parent est centré */
  margin-right: calc(50% - 50vw);
  height: 1080px;                 /* demandé */
  min-height: 1080px;
  background: #000;
}

/* Le hero remplit la hotzone */
.pm-hero--fullbleed{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;               /* fullbleed => pas d’arrondi */
  overflow: hidden;
}

/* Vidéo crop / cover */
.pm-hero--fullbleed .pm-hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;              /* crop automatique */
}

/* (Optionnel) léger dark overlay pour lisibilité */
.pm-hero--fullbleed::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.15) 45%,
    rgba(0,0,0,0) 75%
  );
  pointer-events:none;
}

/* Bouton retour (gris, en haut à gauche) */
.pm-hero-back{
  position: absolute;
  top: 34px;
  left: 34px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  z-index: 3;
}

/* Bloc texte centré en bas */
.pm-hero-content{
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  width: min(760px, 92vw);
  text-align: center;
  color: #fff;
  z-index: 3;
}

.pm-hero-kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 8px;
}

.pm-hero--fullbleed .pm-hero-title{
  font-size: 52px;
  line-height: 1.05;
  margin: 0;
}

.pm-hero--fullbleed .pm-hero-subtitle{
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 520px;
  opacity: .9;
}

/* Nav prev/next (2 ronds noirs en bas) */
.pm-hero-nav{
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.pm-hero-navbtn{
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.pm-hero-navbtn:active{
  transform: translateY(1px);
}

/* Responsive : si écran plus petit que 1080px de haut */
@media (max-height: 1080px){
  .pm-hotzone--fullbleed{
    height: 100vh;
    min-height: 100vh;
  }
}