/* =========================================================
 *  Page : annonce de rapprochements
 *  Id: 119
 *  Objectif : 
 *     - fond d'image 
 *     - aucune retouche breadcrumb, zéro espace breadcrumb
 *
 * Version 8 
 */

:root{
  --rt-blue: #1c4f82;
  --rt-blue-soft: rgba(28,79,130,0.14);
  --rt-ink: rgba(15, 23, 42, 0.92);
 
  --rt-text: #111827;
  --rt-muted: #6b7280;
  --rt-border: #e5e7eb;

  --rt-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  --rt-card-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  --rt-radius: 18px;
}

/* Masquer le titre natif (H1 WordPress par défaut) du thème, car on imprime notre cartouche */
body.page-id-119 .entry-title,
body.page-id-119 h1.entry-title,
body.page-id-119 h1.wp-block-post-title{
  display: none !important;
}

/* Éviter les gros vides Gutenberg (spacers vides) */
body.page-id-119 .wp-block-spacer{
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* Typo. Titres héritent du thème, texte utilitaire en Roboto */
body.nv-page-rapprochements .nv-rt-title,
body.nv-page-rapprochements .card h2{
  font-family: inherit;
}

body.nv-page-rapprochements .meta,
body.nv-page-rapprochements .badge,
body.nv-page-rapprochements .teaser,
body.nv-page-rapprochements .actions .button{
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}


/* =============================================
 *  Section fond bleu, logique novatra-about.css
 */

/* Pleine largeur dans le couloir du thème */
body.nv-page-rapprochements .entry-content .rt-wrap{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
  box-sizing: border-box;
  overflow-x: clip;
}

/* Fond bleu-gris + image */
body.nv-page-rapprochements .rt-wrap{
  position: relative;
  padding: 0rem 1.5rem 4.2rem;
  background-color: #dbe4f2;
  overflow: hidden;
}

/* Image de fond */
body.nv-page-rapprochements .rt-wrap::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--vx-rt-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
}

/* Conteneur interne centré */
body.nv-page-rapprochements .rt-wrap .container{
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* =========================================================
 *  Cartouche titre
 */

body.nv-page-rapprochements .entry-content .rt-wrap {
  padding-top: 30px !important;
  margin-top: 0px !important;
}  

body.nv-page-rapprochements .nv-rt-titlebox{
  width: calc(100% - 50px);
  max-width: 500px;
  margin: 0px auto 20px;
  padding: 2rem 2rem;
  background: var(--rt-ink);
  color: #f9fafb;
  text-align: center;

  border-radius: var(--rt-radius);
  border: 1px solid rgba(0,0,0,0.22);
  box-shadow: var(--rt-shadow);

  position: relative;
  z-index: 10;
}

body.nv-page-rapprochements .nv-rt-title{
  margin: 0 0 0 0.9px;
  color: #ffffff;
  font-size: 2.6rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-wrap: balance;
}

body.nv-page-rapprochements .nv-rt-title-line{
  display: block;
}

@media (max-width: 900px){
  body.nv-page-rapprochements .nv-rt-titlebox{
    width: calc(100% - 100px);
    margin: 0 auto -22px;
    padding: 1.8rem 1.3rem;
  }
  body.nv-page-rapprochements .nv-rt-title{
    font-size: 1.75rem;
    line-height: 1.18;
  }
}


/* =========================================================
 *  Cadre bleu intermédiaire
 */

body.nv-page-rapprochements .nv-rt-stage{
  width: 70%;
  margin: 10px auto 0;
  padding: 40px 22px 22px;

  background: rgba(66, 97, 138, 0.30);
  border: 1px solid rgba(66, 97, 138, 0.34);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);

  position: relative;
  z-index: 1;

  backdrop-filter: blur(4px);
}

body.nv-page-rapprochements .nv-rt-stage::before{
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(28,79,130,0.55);
}

@media (max-width: 900px){
  body.nv-page-rapprochements .nv-rt-stage{
    padding: 66px 14px 14px;
    border-radius: 22px;
  }
  body.nv-page-rapprochements .nv-rt-stage::before{
    left: 14px;
    right: 14px;
    top: 14px;
  }
}

/* =========================================================
 *  Grille et cartes
 */

body.nv-page-rapprochements .grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Carte blanche */
body.nv-page-rapprochements .card{
  width: 100%;
  margin: 0;

  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(28,79,130,0.18);
  box-shadow: var(--rt-card-shadow);
  overflow: hidden;
  position: relative;
}

body.nv-page-rapprochements .card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 6px;
  background: var(--rt-blue);
}

/* Fiche article : Layout texte + média figure */
body.nv-page-rapprochements .rt-card-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 490px;
}

body.nv-page-rapprochements .rt-card-body{
  grid-column: 1;
  padding: 22px 24px 24px;
}

body.nv-page-rapprochements .rt-card-media{
  grid-column: 2;
  padding: 18px;
  background: rgba(28,79,130,0.06);
  border-left: 1px solid rgba(28,79,130,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px){
  body.nv-page-rapprochements .rt-card-inner{
    grid-template-columns: 2fr;
}
  body.nv-page-rapprochements .rt-card-media{
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid rgba(28,79,130,0.12);
  }
}

/* Image cadrée, stable */
body.nv-page-rapprochements .rt-card-thumb{
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--rt-border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

body.nv-page-rapprochements .rt-card-thumb.placeholder{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(28,79,130,0.10), rgba(28,79,130,0.02));
  border: 1px solid rgba(28,79,130,0.12);
}

/* Titre annonce */
body.nv-page-rapprochements .card h2{
  margin: 0 0 12px;
  color: var(--rt-text);
  font-size: 1.3rem;
  line-height: 1.30;
  font-weight: 800;
  letter-spacing: 0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
body.nv-page-rapprochements .meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  color: var(--rt-muted);
  font-size: 0.98rem;
}

/* Badges */
body.nv-page-rapprochements .badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

body.nv-page-rapprochements .badge{
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(28,79,130,0.20);
  background: rgba(28,79,130,0.08);
  color: var(--rt-text);
  font-size: 0.95rem;
  line-height: 1;
}

body.nv-page-rapprochements .badge.trl{
  border-color: rgba(28,79,130,0.24);
  background: rgba(28,79,130,0.10);
  font-weight: 700;
}

body.nv-page-rapprochements .badge.price{
  border-color: rgba(25, 186, 151, 0.28);
  background: rgba(25, 186, 151, 0.12);
}

/* Teaser */
body.nv-page-rapprochements .teaser{
  margin: 0 0 14px;
  color: var(--rt-text);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* Actions */
body.nv-page-rapprochements .actions{
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

body.nv-page-rapprochements .actions .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(28,79,130,0.25);
  background: linear-gradient(135deg, #1c4f82, #2b6cb0);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

body.nv-page-rapprochements .actions .button:hover{
  transform: translateY(-1px);
}


/* =========================================================
 *  SINGLE rapprochement_tech uniquement (page "voir l'affiche")
 *  Objectif : retrouver le rendu propre de la fiche détail
 */

body.single-rapprochement_tech{
  --rt-blue-valt: var(--rt-blue);
  --rt-shadow-panel: 0 20px 45px rgba(15, 23, 42, 0.08);
  --rt-shadow-sidebar: 0 16px 40px rgba(15, 23, 42, 0.06);
  --rt-radius-panel: 22px;
  --rt-radius-sidebar: 18px;
}

/* Sécurité : neutraliser le titre Gutenberg natif sur cette fiche */
body.single-rapprochement_tech h1.wp-block-post-title{
  display: none !important;
}

body.single-rapprochement_tech .rt-wrap{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
  box-sizing: border-box;
  overflow-x: clip;
  position: relative;
  padding: 30px 1.5rem 4.2rem;
  background-color: #dbe4f2;
  overflow: hidden;
  background-image: var(--vx-rt-bg);
}

* Image de fond sur fiche détail */
body.single-rapprochement_tech .rt-wrap::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--vx-rt-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

body.single-rapprochement_tech .rt-wrap .container{
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  z-index: 1;

}

/* Badges (TRL, prix) */
body.single-rapprochement_tech .badges{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

body.single-rapprochement_tech .rt-wrap .badge{
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #eef0ff;
  color: #3946a6;
  border: none;
  white-space: nowrap;
}

body.single-rapprochement_tech .rt-wrap .badge.trl{
  background: #ecfeff;
  color: #036672;
}

body.single-rapprochement_tech .rt-wrap .badge.price{
  background: #e8faef;
  color: #166534;
}

/* Layout fiche détail */
body.single-rapprochement_tech .rt-wrap .container.detail{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

body.single-rapprochement_tech .rt-wrap .container.detail > article.panel{
  background: #ffffff;
  border-radius: var(--rt-radius-panel);
  padding: 2rem 2.2rem 2.4rem;
  box-shadow: var(--rt-shadow-panel);
  margin-top:20px; 
  margin-bottom:50px; 
}

body.single-rapprochement_tech .rt-wrap .container.detail .page-title{
  font-size: 1.5rem; /* 2rem */
  line-height: 1.2;
  margin: 10px 0 1rem 0;
  font-weight: 700;
}

body.single-rapprochement_tech .rt-wrap .section-title{
  font-size: 1.1rem;
  margin-top: 1.8rem;
  margin-bottom: .7rem;
  font-weight: 600;
  color: var(--rt-text);
}

body.single-rapprochement_tech .rt-wrap .container.detail p,
body.single-rapprochement_tech .rt-wrap .container.detail a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.single-rapprochement_tech .rt-wrap .container.detail p{
  font-size: .96rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

/* Données clés (grille k / v) */
body.single-rapprochement_tech .rt-wrap .kv{
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: .45rem 1.4rem;
  font-size: .95rem;
  margin-top: .4rem;
}

body.single-rapprochement_tech .rt-wrap .kv .k{
  font-weight: 600;
  color: var(--rt-muted);
}

body.single-rapprochement_tech .rt-wrap .kv .v{
  color: var(--rt-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Sidebar */
body.single-rapprochement_tech .rt-wrap .sidebar{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.single-rapprochement_tech .rt-wrap .sidebar .panel{
  background: #ffffff;
  border-radius: var(--rt-radius-sidebar);
  padding: 1.5rem;
  box-shadow: var(--rt-shadow-sidebar);
  margin-top:20px;
  margin-bottom:50px; 
}

body.single-rapprochement_tech .rt-wrap .sidebar .section-title{
  margin-top: 0;
  margin-bottom: .75rem;
}

body.single-rapprochement_tech .rt-wrap .sidebar .button{
  width: 100%;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-sizing: border-box;
  margin: 0.5rem 0;
  text-align: center;
  background: var(--rt-blue-valt);
  color: #ffffff;
  text-decoration: none;
}

body.single-rapprochement_tech .rt-wrap .sidebar .button.secondary{
  background: #9cbddf;
  color: var(--rt-blue-valt);
}


/* =========================================================
 *  7. Mobile - Responsive
 */

@media (max-width: 900px){
  body.single-rapprochement_tech .rt-wrap .container.detail{
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1.4rem;
  }

  body.single-rapprochement_tech .rt-wrap .container.detail > article.panel,
  body.single-rapprochement_tech .rt-wrap .sidebar{
    min-width: 0;
  }
}

@media (max-width: 640px){
  body.single-rapprochement_tech .rt-wrap{
    padding: 2.4rem 1rem 3rem;
  }

  body.single-rapprochement_tech .rt-wrap .container.detail .page-title{
    font-size: 1.35rem;
    line-height: 1.22;
  }

  body.single-rapprochement_tech .rt-wrap .kv{
    grid-template-columns: 1fr;
    gap: .35rem 0;
  }

  body.single-rapprochement_tech .rt-wrap .container.detail > article.panel{
    padding: 1.25rem 1.15rem 1.6rem;
  }

  body.single-rapprochement_tech .rt-wrap figure.rt-figure{
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-rapprochement_tech .rt-wrap figure.rt-figure img{
    display: block;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  body.single-rapprochement_tech .rt-wrap .alignfull,
  body.single-rapprochement_tech .rt-wrap .alignwide,
  body.single-rapprochement_tech .rt-wrap .wp-block-image{
    max-width: 100% !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-rapprochement_tech .rt-wrap .wp-block-image img{
    display: block;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px){
  body.single-rapprochement_tech .rt-wrap{
    padding: 2rem .9rem 2.6rem;
  }

  body.single-rapprochement_tech .rt-wrap .container.detail .page-title{
    font-size: 1.25rem;
  }

  body.single-rapprochement_tech .rt-wrap .container.detail > article.panel{
    padding: 1.1rem 1rem 1.4rem;
  }
}


/* =========================================================
 * Porte sur le fichier single-rapprochement_tech.php
 */

body.single-rapprochement_tech .rt-wrap .container.detail > article.panel > p.rt-kicker {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  color: #64748b;
  letter-spacing: .02em;
}

/* =========================================================
 * Retraitement de la page ID : 363 (PAGE memorandum)
 * Style intégré à la page
 */

body.page-id-363 .wp-block-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================
 * medias queries 
 */

@media (max-width: 900px){
  body.nv-page-rapprochements .rt-wrap{
    padding: 3.2rem 1rem 3.4rem;
  }
  body.nv-page-rapprochements .rt-wrap .container{
    gap: 1.4rem;
  }
}