/* ============================================================
 * DP UI Pack — 11 Pages Services (v2 — STRICTEMENT ADDITIF)
 * ----------------------------------------------------------
 * v1 désactivée : forçait max-width / padding sur article.section-text,
 * .main, .container et cassait le layout Hestia/VC.
 *
 * v2 = polish typographique + CTAs uniquement.
 *   PAS de modif de : .main, .main-raised, .container, .row, .col-md-X,
 *   .vc_row, .vce-row, .vce-row-container, .vce-col, .entry-content
 *   (en width / padding / display). On garde les containers natifs.
 *
 * Scope :
 *   body.page:not(.home):not(.page-id-324):not(.page-id-645)
 *        :not(.page-id-136):not(.error404)
 * ============================================================ */

/* ------------------------------------------------------------
 * 1. Titres H2 — barre rouge à gauche, taille lisible
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper h2 {
  font-family: var(--dp-font-h);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--dp-text-strong);
  margin: 2rem 0 1rem;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 4px solid var(--dp-primary);
}
/* override de l'inline text-align="center" hérité de WP/VC sur les h2/h3 */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper h2[style*="text-align: center"],
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper h3[style*="text-align: center"] {
  text-align: left !important;
}

/* ------------------------------------------------------------
 * 2. Titres H3 — petit carré rouge devant
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper h3 {
  font-family: var(--dp-font-h);
  font-size: clamp(1.08rem, 1.55vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--dp-text-strong);
  margin: 1.6rem 0 0.7rem;
}

/* ------------------------------------------------------------
 * 3. H4 — libellé secondaire
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper h4 {
  font-family: var(--dp-font);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dp-text-soft);
  margin: 1.3rem 0 0.5rem;
}

/* ------------------------------------------------------------
 * 4. Liens dans le texte — couleur primary + soulignement subtil
 *    (on évite d'overrider .vce-row entiers; on cible juste les <a>
 *     dans les blocs texte)
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a {
  color: var(--dp-primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 68, 68, 0.28);
  transition: border-color var(--dp-tr-fast), color var(--dp-tr-fast);
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a:hover {
  color: var(--dp-primary);
  border-color: var(--dp-primary);
}

/* ------------------------------------------------------------
 * 5. Listes UL / OL — puces customs LÉGÈRES
 *    On ne touche pas au padding du parent (vce-col-content) pour
 *    rester additif ; on remplace juste la puce.
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper ul {
  list-style: none;
  padding-left: 0.2rem;
  margin: 0.8rem 0 1.2rem;
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper ul li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0 0 0.45rem;
  line-height: 1.65;
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dp-primary);
  box-shadow: 0 0 0 3px var(--dp-primary-soft);
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper ol {
  margin: 0.8rem 0 1.2rem;
  padding-left: 1.4rem;
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper ol li {
  margin: 0 0 0.45rem;
  line-height: 1.65;
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper ol li::marker {
  color: var(--dp-primary);
  font-weight: 700;
}

/* ------------------------------------------------------------
 * 6. Blockquote — barre rouge gauche + fond très doux
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper blockquote,
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem 1rem 1.3rem;
  background: var(--dp-bg-soft);
  border-left: 4px solid var(--dp-primary);
  border-radius: 0 var(--dp-radius-sm) var(--dp-radius-sm) 0;
  font-style: italic;
  color: var(--dp-text-soft);
  line-height: 1.6;
}

/* ------------------------------------------------------------
 * 7. Images — radius doux + ombre légère (additif)
 *    On cible UNIQUEMENT l'<img> pour ne rien casser dans le wrapper.
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-single-image-wrapper img.vce-single-image,
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper img {
  border-radius: var(--dp-radius-sm);
  box-shadow: var(--dp-shadow-xs);
}

/* ------------------------------------------------------------
 * 8. Tableaux — header rouge + zebra (sans toucher aux .vce-row)
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0;
  border-radius: var(--dp-radius-sm);
  overflow: hidden;
  box-shadow: var(--dp-shadow-xs);
  border: 1px solid var(--dp-border);
  font-size: 0.96rem;
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper table th {
  background: linear-gradient(135deg, var(--dp-primary) 0%, var(--dp-primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 0;
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper table td {
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--dp-border);
  vertical-align: top;
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper table tr:nth-child(even) td {
  background: var(--dp-bg-soft);
}

/* ------------------------------------------------------------
 * 9. CTAs — pill rouge sur liens contact / devis / mailto
 *    Le tel: a son propre traitement (cf. 02-tel-link.js + dp-tel-auto)
 *    Volontairement on ne change PAS la position du lien (display
 *    inline-flex sans float / sans margin auto).
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href*="/contact/"],
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href*="/devis-detective-prive"],
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: var(--dp-primary-soft);
  color: var(--dp-primary-dark);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-bottom-color: rgba(239, 68, 68, 0.22);
  border-radius: var(--dp-radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background var(--dp-tr-fast), color var(--dp-tr-fast),
              transform var(--dp-tr-fast), box-shadow var(--dp-tr-fast);
}
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href*="/contact/"]:hover,
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href*="/devis-detective-prive"]:hover,
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href^="mailto:"]:hover {
  background: linear-gradient(135deg, var(--dp-primary) 0%, var(--dp-primary-dark) 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: var(--dp-shadow-red);
}

/* Liens tel: dans le texte — souligné dashed rouge, pas de pill (pour
   ne pas casser les paragraphes où le numéro est en milieu de phrase). */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href^="tel:"] {
  color: var(--dp-primary-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--dp-primary);
  white-space: nowrap;
}

/* ------------------------------------------------------------
 * 10. Sélection texte
 * ---------------------------------------------------------- */
body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper ::selection {
  background: var(--dp-primary);
  color: #fff;
}

/* ------------------------------------------------------------
 * 11. Mobile — H2/H3 plus compacts
 * ---------------------------------------------------------- */
@media (max-width: 768px) {
  body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper h2 {
    font-size: 1.25rem;
    margin: 1.4rem 0 0.7rem;
    padding-left: 0.7rem;
    border-left-width: 3px;
  }
  body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper h3 {
    font-size: 1.05rem;
    margin: 1.2rem 0 0.55rem;
  }
  body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href*="/contact/"],
  body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href*="/devis-detective-prive"],
  body.page:not(.home):not(.page-id-324):not(.page-id-645):not(.page-id-136):not(.error404) .vce-text-block-wrapper a[href^="mailto:"] {
    font-size: 0.88rem;
    padding: 0.4rem 0.85rem;
  }
}
