/* ============================================================
 * DP UI Pack — 15 Détective Paris (additif strict v2)
 * Cible : body.page-id-3409 (page hub /detective-paris/)
 * Règles : ADDITIF uniquement, pas de !important sauf override
 *   inline styles dans aside.dp-articles-connexes, pas de
 *   .main / .main-raised / .container / .row / .col-md-X /
 *   .vce-row-container / .page-header.
 * Polish : H2 typo + filet, H3 thématiques (7 sections) en
 *   bandeau gauche rouge, aside connexes en grille, CTA tel
 *   et mailto en pills en bas de page.
 * ============================================================ */


/* ------------------------------------------------------------
 * 1. H2 polish — "Détective Paris" (titre intro)
 * On cible le heading dans le bloc texte VC, sans toucher au
 * conteneur. Filet rouge décoratif sous le titre.
 * ------------------------------------------------------------ */
body.page-id-3409 .vce-text-block-wrapper h2 {
  font-family: var(--dp-font-h);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--dp-text-strong);
  text-wrap: balance;
}
body.page-id-3409 .vce-text-block-wrapper h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, var(--dp-primary) 0%, var(--dp-accent) 100%);
  border-radius: 3px;
}


/* ------------------------------------------------------------
 * 2. H3 thématiques — 7 sections en bandeau
 *    Droit Civil / Recherche personnes / Droit Commercial / etc.
 * ------------------------------------------------------------ */
body.page-id-3409 .vce-text-block-wrapper h3 {
  position: relative;
  font-family: var(--dp-font-h);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--dp-text-strong);
  margin: 2.6rem auto 1.4rem;
  padding: 0.95rem 1.3rem 0.95rem 1.6rem;
  background: linear-gradient(135deg, var(--dp-bg-soft) 0%, #fff 100%);
  border: 1px solid var(--dp-border);
  border-left: 4px solid var(--dp-primary);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow-xs);
  max-width: 760px;
  text-wrap: balance;
}
body.page-id-3409 .vce-text-block-wrapper h3:nth-of-type(2n) {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(245, 158, 11, 0.04) 100%);
  border-left-color: var(--dp-accent);
}
body.page-id-3409 .vce-text-block-wrapper h3:empty {
  display: none;
}


/* ------------------------------------------------------------
 * 3. Aside .dp-articles-connexes — override inline styles
 * Carte premium + grille de liens. !important justifié car
 * le aside est généré avec des inline styles par le mu-plugin.
 * ------------------------------------------------------------ */
body.page-id-3409 aside.dp-articles-connexes {
  margin-top: 2.6rem !important;
  padding: 1.6rem 1.8rem !important;
  background: linear-gradient(135deg, var(--dp-bg-soft) 0%, #fff 100%) !important;
  border: 1px solid var(--dp-border) !important;
  border-left: 4px solid var(--dp-primary) !important;
  border-radius: var(--dp-radius) !important;
  box-shadow: var(--dp-shadow-sm);
  font-family: var(--dp-font);
}
body.page-id-3409 aside.dp-articles-connexes h3 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--dp-text-strong) !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  text-align: left !important;
}
body.page-id-3409 aside.dp-articles-connexes h3::after {
  display: none !important;
}
body.page-id-3409 aside.dp-articles-connexes ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.35rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.page-id-3409 aside.dp-articles-connexes ul li {
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--dp-border);
}
body.page-id-3409 aside.dp-articles-connexes ul li a {
  color: var(--dp-text-strong);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dp-tr-fast);
}
body.page-id-3409 aside.dp-articles-connexes ul li a:hover {
  color: var(--dp-primary-dark);
}
body.page-id-3409 aside.dp-articles-connexes p {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dp-border);
  font-size: 0.95rem;
  color: var(--dp-text-soft);
}


/* ------------------------------------------------------------
 * 4. CTA finaux tel: et mailto: en pills
 * Cible uniquement les liens dans le bloc VC (contenu de page),
 * pas la sidebar ni le header. Affichage en pill premium.
 * ------------------------------------------------------------ */
body.page-id-3409 .vce-text-block-wrapper a[href^="tel:"],
body.page-id-3409 .vce-text-block-wrapper a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--dp-radius-pill);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 0;
  transition: transform var(--dp-tr-fast), box-shadow var(--dp-tr-fast);
}
body.page-id-3409 .vce-text-block-wrapper a[href^="tel:"] {
  background: linear-gradient(135deg, var(--dp-primary) 0%, var(--dp-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--dp-shadow-red);
}
body.page-id-3409 .vce-text-block-wrapper a[href^="mailto:"] {
  background: var(--dp-bg-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}
body.page-id-3409 .vce-text-block-wrapper a[href^="tel:"]:hover,
body.page-id-3409 .vce-text-block-wrapper a[href^="mailto:"]:hover {
  transform: translateY(-2px);
}
body.page-id-3409 .vce-text-block-wrapper a[href^="tel:"]:hover {
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
}
body.page-id-3409 .vce-text-block-wrapper a[href^="mailto:"]:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
}
/* override icone emoji du tel-autolink dans le contexte pill */
body.page-id-3409 .vce-text-block-wrapper a[href^="tel:"].dp-tel-auto::before {
  content: "📞";
  margin: 0;
}
body.page-id-3409 .vce-text-block-wrapper a[href^="mailto:"]::before {
  content: "✉";
  font-size: 0.95em;
}


/* ------------------------------------------------------------
 * 5. Responsive < 768px
 * ------------------------------------------------------------ */
@media (max-width: 768px) {
  body.page-id-3409 .vce-text-block-wrapper h3 {
    margin: 2rem 0.3rem 1.1rem;
    padding: 0.85rem 1rem 0.85rem 1.2rem;
  }
  body.page-id-3409 aside.dp-articles-connexes {
    padding: 1.2rem 1.2rem !important;
  }
  body.page-id-3409 aside.dp-articles-connexes ul {
    grid-template-columns: 1fr;
  }
}
