/* ==========================================================
   MARKETPLACE.CSS
   BRIQUE 2
   Portée
   Pages 1077, 1080, 1082, 1084 uniquement (enqueue via functions.php)
   Règles
   Ne pas impacter la BRIQUE 1 (page 1037)
   Ne pas poser de styles globaux type body, h1, .container
   ========================================================== */

/* Masquer le titre natif WordPress */
    body.page-id-1077 .entry-title,
    body.page-id-1077 h1.entry-title,
    body.page-id-1077 h1.wp-block-post-title,
    body.page-id-1080 .entry-title,
    body.page-id-1080 h1.entry-title,
    body.page-id-1080 h1.wp-block-post-title,
    body.page-id-1082 .entry-title,
    body.page-id-1082 h1.entry-title,
    body.page-id-1082 h1.wp-block-post-title,
    body.page-id-1084 .entry-title,
    body.page-id-1084 h1.entry-title,
    body.page-id-1084 h1.wp-block-post-title{
    display: none !important;
}

/* Supprimer les spacers Gutenberg */
    body.page-id-1077 .wp-block-spacer,
    body.page-id-1080 .wp-block-spacer,
    body.page-id-1082 .wp-block-spacer,
    body.page-id-1084 .wp-block-spacer{
     display: none !important;
     height: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
}

/* ==========================================================
   Fond moderne sur page 1077 (Créer une annonce)
   ========================================================== */

    body.page-id-1077,
    body.page-id-1080,
    body.page-id-1082,
    body.page-id-1084{
    
    background:
      radial-gradient(circle at 18% 12%, rgba(0, 210, 255, 0.18), rgba(0,0,0,0) 55%),
      radial-gradient(circle at 82% 20%, rgba(170, 90, 255, 0.16), rgba(0,0,0,0) 55%),
      linear-gradient(180deg, rgba(255,255,255,0.70), rgba(245,248,255,0.90));
  }
  
  /* Carte principale un peu plus premium */
    body.page-id-1077 .nv-mp-wrap,
    body.page-id-1080 .nv-mp-wrap,
    body.page-id-1082 .nv-mp-wrap,
    body.page-id-1084 .nv-mp-wrap{
    
    border-radius: 22px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 46px rgba(0,0,0,0.10);
    margin-top: 18px;
  }

 .nv-mp-wrap{
  max-width: 960px;
  /*width: 100%; */
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.nv-mp-wrap,
.nv-mp-wrap *,
.nv-mp-form,
.nv-mp-form *{
  box-sizing: border-box;
}

.nv-mp-wrap h2{
  margin: 0 0 14px;
  line-height: 1.15;
}

.nv-mp-wrap h3{
  margin: 18px 0 10px;
  line-height: 1.2;
}

.nv-mp-status{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(0,0,0,0.08);
  }
 
  .nv-mp-status-right{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }
  
/*
  .nv-mp-status-right{
    margin: 12px 12px 20px 50px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(70, 230, 170, 0.10);
    border: 3px solid rgba(70, 230, 170, 0.22);
    text-align: right;
    }
  */  

  .nv-mp-pill{
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.10);
  }
  
  .nv-mp-pill.is-ok{
    background: rgba(70, 230, 170, 0.14);
    border-color: rgba(70, 230, 170, 0.30);
  }

.nv-mp-alert{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 70, 120, 0.10);
  border: 1px solid rgba(255, 70, 120, 0.22);
}

.nv-mp-ok{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(70, 230, 170, 0.10);
  border: 1px solid rgba(70, 230, 170, 0.22);
  text-align: right;
}

/* Formulaires */
.nv-mp-form{
  display: grid;
  gap: 10px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.nv-mp-form label{
  margin-top: 6px;
  opacity: 0.92;
}

.nv-mp-form input[type="text"],
.nv-mp-form select,
.nv-mp-form textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  padding: 12px 12px;
  outline: none;
  background: rgba(255,255,255,0.94);
}

.nv-mp-form textarea{
  resize: vertical;
  min-height: 120px;
}

/* Boutons */
.nv-mp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;

  color: rgba(255,255,255,0.96);
  background-image: linear-gradient(90deg, rgba(40,120,255,0.92), rgba(120,90,255,0.92));
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
  font-weight: 700;
  letter-spacing: 0.2px;

  transition: transform 160ms ease, filter 160ms ease;
}

.nv-mp-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
}

.nv-mp-btn:active{
  transform: translateY(0);
}

/* Liste “mes annonces” */
.nv-mp-list{
  display: grid;
  gap: 12px;
  margin-top: 14px;
  max-width: 1100px;
}

.nv-mp-item{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.90);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  padding: 14px 16px;
}

.nv-mp-item-title{
  font-weight: 750;
  line-height: 1.15;
  margin-bottom: 6px;
}

.nv-mp-item-meta{
  opacity: 0.76;
  line-height: 1.4;
  margin-bottom: 10px;
}

.nv-mp-item-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nv-mp-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  text-decoration: none;
  background: rgba(255,255,255,0.84);
}

.nv-mp-link:hover{
  filter: brightness(1.02);
}

/* Liste publique */
.nv-mp-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}

.nv-mp-card{
  display: block;
  text-decoration: none;
  color: inherit;

  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  padding: 16px 16px 14px;
  min-height: 190px;

  transition: transform 160ms ease, filter 160ms ease;
}

.nv-mp-card:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.nv-mp-card-title{
  font-weight: 780;
  line-height: 1.18;
  margin-bottom: 8px;
}

.nv-mp-card-meta{
  opacity: 0.72;
  line-height: 1.4;
  margin-bottom: 10px;
}

.nv-mp-card-text{
  opacity: 0.86;
  line-height: 1.5;
}

/* Pagination onglets 1..5 */
.nv-mp-pagination{
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.nv-mp-page{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.84);
}

.nv-mp-page.is-current{
  background: rgba(40,120,255,0.92);
  color: rgba(255,255,255,0.96);
  border-color: rgba(40,120,255,0.92);
}

/* Détail annonce */
.nv-mp-detail-meta{
  margin: 8px 0 16px;
  opacity: 0.80;
}

.nv-mp-detail-content{
  max-width: 980px;
  line-height: 1.65;
  opacity: 0.92;
}

.nv-mp-mask{
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.70);
  max-width: 860px;
}

.nv-mp-mask-title{
  font-weight: 750;
  margin-bottom: 6px;
}

.nv-mp-actions{
  margin: 10px 0 18px;
}

.nv-mp-offer{
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1100px){
  .nv-mp-grid{
    grid-template-columns: 1fr;
  }

  .nv-mp-wrap{
    padding: 22px 14px 32px;
  }
}

.nv-mp-notice{
  position: relative;
  border-radius: 16px;
  padding: 14px 44px 14px 14px;
  margin: 12px 0 16px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.90);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.nv-mp-notice.is-success{
  border-color: rgba(70, 230, 170, 0.28);
  background: rgba(70, 230, 170, 0.10);
}

.nv-mp-notice.is-error{
  border-color: rgba(255, 70, 120, 0.28);
  background: rgba(255, 70, 120, 0.10);
}

.nv-mp-notice-title{
  font-weight: 750;
  margin-bottom: 4px;
}

.nv-mp-notice-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
}

/* account */

.nv-mp-account{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}

.nv-mp-account-status{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 650;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.86);
}

.nv-mp-account-status.is-on{
  border-color: rgba(70, 230, 170, 0.28);
  background: rgba(70, 230, 170, 0.10);
}

.nv-mp-account-status.is-off{
  border-color: rgba(255, 70, 120, 0.28);
  background: rgba(255, 70, 120, 0.10);
}

.nv-mp-account-link{
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.84);
}

@media (max-width: 640px){

    .nv-mp-wrap{
      padding: 18px 14px 28px;
    }
  
    .nv-mp-status{
      justify-content: flex-start;
    }
  
    .nv-mp-status-right{
      justify-content: flex-start;
      margin: 0 auto;
    }
  }
 