/* ============================================================
 * DP UI Pack — 16 Moulinette Ville (page-id-136, ~5164 pages)
 * Cible : pages générées par lam/ (un-detective-a-{ville}/{dept}/)
 * Scope strict : body.page-id-136
 * Ne touche PAS au contenu — habille uniquement le rendu existant
 * (les blocs internes .dp-zone-badge, .dp-zones-wrapper, etc.
 * sont déjà stylés par les templates PHP / CSS dédiés).
 * ============================================================ */

/* ---------- Layout général : largeur lecture confortable ---------- */
body.page-id-136 .content-wrap {
  background: var(--dp-bg-soft);
}

body.page-id-136 .content-wrap > .container {
  padding-top: var(--dp-gap-lg);
  padding-bottom: var(--dp-gap-lg);
}

body.page-id-136 .content-area {
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-lg);
  box-shadow: var(--dp-shadow-sm);
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2.6rem);
}

body.page-id-136 .entry-content {
  max-width: 960px;
  margin: 0 auto;
  font-family: var(--dp-font);
  color: var(--dp-text);
  line-height: 1.7;
  font-size: 1.02rem;
}

body.page-id-136 .entry-content > * {
  max-width: 100%;
}

/* ---------- En-tête ville : H1 mis en valeur avec pin ---------- */
body.page-id-136 .entry-content > h1,
body.page-id-136 article > h1,
body.page-id-136 .entry-header h1.entry-title {
  position: relative;
  font-family: var(--dp-font-h);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dp-text-strong);
  line-height: 1.2;
  margin: 0 0 1.4rem;
  padding: 0 0 1rem 0;
  border-bottom: 3px solid transparent;
  background: linear-gradient(var(--dp-bg), var(--dp-bg)) padding-box,
              linear-gradient(90deg, var(--dp-primary) 0%, var(--dp-accent) 100%) border-box;
  border-image: none;
  display: block;
}

body.page-id-136 .entry-content > h1::before {
  content: "📍";
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 0.85em;
  filter: saturate(1.1);
  vertical-align: -0.05em;
}

/* sous-titre département discret en accent */
body.page-id-136 .entry-content > h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: var(--dp-radius-pill);
  background: linear-gradient(90deg, var(--dp-primary) 0%, var(--dp-accent) 100%);
}

/* ---------- Hiérarchie typo : H2 / H3 / H5 ---------- */
body.page-id-136 .entry-content h2 {
  font-family: var(--dp-font-h);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--dp-text-strong);
  letter-spacing: -0.01em;
  margin: 2rem 0 0.8rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--dp-primary);
  line-height: 1.3;
}

body.page-id-136 .entry-content h2 font,
body.page-id-136 .entry-content h3 font,
body.page-id-136 .entry-content h5 font {
  font-size: inherit !important;
  font-weight: inherit;
}

body.page-id-136 .entry-content h3 {
  font-family: var(--dp-font-h);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--dp-text-strong);
  margin: 1.6rem 0 0.6rem;
  line-height: 1.35;
}

body.page-id-136 .entry-content h5 {
  font-family: var(--dp-font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dp-primary-dark);
  margin: 1.3rem 0 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}

body.page-id-136 .entry-content p {
  margin: 0 0 1rem;
  color: var(--dp-text-soft);
}

body.page-id-136 .entry-content p strong,
body.page-id-136 .entry-content li strong {
  color: var(--dp-text-strong);
}

body.page-id-136 .entry-content a:not(.dp-btn) {
  color: var(--dp-primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(220, 38, 38, 0.3);
  text-underline-offset: 3px;
  transition: color var(--dp-tr-fast), text-decoration-color var(--dp-tr-fast);
}

body.page-id-136 .entry-content a:not(.dp-btn):hover {
  color: var(--dp-primary);
  text-decoration-color: var(--dp-primary);
}

/* ---------- Encart Sprint Z : grandes villes (inline-style préservé,
       on harmonise juste l'arrondi/ombre via sélecteur d'attribut) ---------- */
body.page-id-136 .entry-content > div[style*="background:#f0f9ff"] {
  border-radius: var(--dp-radius) !important;
  box-shadow: var(--dp-shadow-xs);
  overflow: hidden;
}

body.page-id-136 .entry-content > div[style*="background:#f0f9ff"] h3 {
  font-size: 1.15rem !important;
  letter-spacing: -0.01em;
  margin-top: 0 !important;
}

/* ---------- Listes (services, sous-rubriques) ---------- */
body.page-id-136 .entry-content ul {
  padding-left: 0;
  margin: 0.8rem 0 1.4rem;
  list-style: none;
}

body.page-id-136 .entry-content ul li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
  margin: 0;
  line-height: 1.55;
}

body.page-id-136 .entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dp-primary);
  box-shadow: 0 0 0 3px var(--dp-primary-soft);
}

body.page-id-136 .entry-content ol {
  padding-left: 1.4rem;
  margin: 0.8rem 0 1.4rem;
}

body.page-id-136 .entry-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

/* ---------- Images : lazy + radius + ombre douce ---------- */
body.page-id-136 .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow-sm);
  margin: 1rem 0;
}

body.page-id-136 .entry-content img[loading="lazy"] {
  /* déjà lazy, juste un fallback visuel */
  background: linear-gradient(110deg, var(--dp-bg-mid) 30%, #fff 50%, var(--dp-bg-mid) 70%);
  background-size: 200% 100%;
}

/* ---------- HR : remplacé par séparateur dégradé ---------- */
body.page-id-136 .entry-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--dp-border-strong) 50%, transparent 100%);
  margin: var(--dp-gap-lg) 0;
}

/* ---------- Bloc "Voir aussi" / .lam-services-connexes ---------- */
body.page-id-136 .lam-services-connexes {
  margin-top: 2.4rem !important;
  padding: clamp(1.2rem, 2.5vw, 1.8rem) !important;
  background: linear-gradient(180deg, #fff 0%, var(--dp-bg-soft) 100%) !important;
  border: 1px solid var(--dp-border) !important;
  border-left: 5px solid var(--dp-primary) !important;
  border-radius: var(--dp-radius) !important;
  box-shadow: var(--dp-shadow-sm);
}

body.page-id-136 .lam-services-connexes h2 {
  font-size: 1.3rem !important;
  margin: 0 0 1rem !important;
  padding-left: 0 !important;
  border-left: 0 !important;
  color: var(--dp-text-strong) !important;
  font-weight: 700;
}

body.page-id-136 .lam-services-connexes p {
  font-size: 0.97rem;
  color: var(--dp-text-soft);
}

body.page-id-136 .lam-services-connexes p[style*="background:#fff7ed"] {
  background: rgba(245, 158, 11, 0.08) !important;
  border-left: 4px solid var(--dp-accent) !important;
  border-radius: var(--dp-radius-sm);
  padding: 0.8rem 1rem !important;
  font-size: 0.94rem !important;
  margin: 0 0 1.2rem !important;
}

body.page-id-136 .lam-services-connexes p[style*="background:#fff7ed"] strong a {
  color: var(--dp-primary-dark) !important;
  font-weight: 700;
}

body.page-id-136 .lam-services-connexes ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0.5rem 0 1rem !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.4rem 1rem;
}

body.page-id-136 .lam-services-connexes ul li {
  padding: 0.45rem 0.6rem !important;
  background: #fff;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-sm);
  transition: transform var(--dp-tr-fast), border-color var(--dp-tr-fast), box-shadow var(--dp-tr-fast);
  font-size: 0.94rem;
  line-height: 1.45;
}

body.page-id-136 .lam-services-connexes ul li::before {
  display: none;
}

body.page-id-136 .lam-services-connexes ul li:hover {
  transform: translateY(-1px);
  border-color: var(--dp-primary-light);
  box-shadow: var(--dp-shadow-xs);
}

body.page-id-136 .lam-services-connexes ul li a {
  color: var(--dp-text-strong) !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

body.page-id-136 .lam-services-connexes ul li a:hover {
  color: var(--dp-primary-dark) !important;
}

/* CTA tel/email final dans la section connexes */
body.page-id-136 .lam-services-connexes > p:last-child {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--dp-bg-dark) 0%, var(--dp-bg-darker) 100%);
  color: var(--dp-text-on-dark) !important;
  border-radius: var(--dp-radius);
  font-size: 1rem;
}

body.page-id-136 .lam-services-connexes > p:last-child strong {
  color: #fff;
  display: inline-block;
  margin-right: 0.5rem;
}

body.page-id-136 .lam-services-connexes > p:last-child a {
  color: #fff !important;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  font-weight: 700;
  padding-bottom: 1px;
}

body.page-id-136 .lam-services-connexes > p:last-child a:hover {
  border-color: var(--dp-primary-light);
  color: var(--dp-primary-light) !important;
}

body.page-id-136 .lam-services-connexes > p:last-child a[href^="tel:"]::before {
  content: "📞 ";
  margin-right: 0.2rem;
}

body.page-id-136 .lam-services-connexes > p:last-child a[href^="mailto:"]::before {
  content: "✉ ";
  margin-right: 0.2rem;
}

/* ---------- Liste "Principales villes du département" ---------- */
body.page-id-136 .entry-content > h5 {
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--dp-text-strong);
  margin: 2rem 0 0.8rem !important;
  padding: 0;
  border-left: 0;
  text-transform: none;
}

body.page-id-136 .entry-content > h5::before {
  content: "🏙 ";
  margin-right: 0.3rem;
}

/* ============================================================
 * Lisibilité paragraphes moulinette — bump font-size pour
 * personnes âgées et lecture confortable.
 * Le body de la moulinette est en 17px mais le theme/Hestia
 * réduit le contenu à ~13px dans .entry-content. On force
 * 1.1rem (17.6px) sur tout le texte de prose.
 * ============================================================ */
/* FORCE BRUTALE : sélecteur universel + spécificité html+body+class+class
   pour battre les <font size="3"> HTML obsolète et tout autre CSS qui résiste */
html body.page-id-136 .entry-content,
html body.page-id-136 .entry-content * {
  font-size: 18px !important;
  line-height: 1.65 !important;
}
/* Hiérarchie titres conservée — sélecteur descendant universel */
html body.page-id-136 .entry-content h1,
html body.page-id-136 .entry-content h1 * { font-size: 30px !important; }
html body.page-id-136 .entry-content h2,
html body.page-id-136 .entry-content h2 * { font-size: 24px !important; }
html body.page-id-136 .entry-content h3,
html body.page-id-136 .entry-content h3 * { font-size: 21px !important; }
html body.page-id-136 .entry-content h4,
html body.page-id-136 .entry-content h4 * { font-size: 19px !important; font-weight: 700; }
html body.page-id-136 .entry-content h5,
html body.page-id-136 .entry-content h5 * { font-size: 18px !important; font-weight: 700; }
/* Exception : nuage de tags + zones d'intervention déjà gérés en plus petit */
html body.page-id-136 .entry-content .listeVilles,
html body.page-id-136 .entry-content .listeVilles *,
html body.page-id-136 .entry-content .dp-zones-wrapper,
html body.page-id-136 .entry-content .dp-zones-wrapper * {
  font-size: revert !important;
}
body.page-id-136 .entry-content small,
body.page-id-136 .entry-content sub,
body.page-id-136 .entry-content sup {
  font-size: 0.85rem !important;
}
/* H4/H5 dans le contenu : taille intermédiaire */
body.page-id-136 .entry-content h4,
body.page-id-136 .entry-content h5,
body.page-id-136 .entry-content h6 {
  font-size: 1.18rem !important;
  font-weight: 700;
  margin: 1.4rem 0 0.6rem;
}

/* Nuage de tags pour les listes villes (Paris arrondissements + dept villes) */
body.page-id-136 .liste_villes,
body.page-id-136 .entry-content > div:has(> .listeVilles) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.6rem;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
}

body.page-id-136 .listeVilles {
  display: inline-block !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.page-id-136 .listeVilles a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: var(--dp-bg-soft);
  color: var(--dp-text-strong) !important;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.3;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

body.page-id-136 .listeVilles a:hover,
body.page-id-136 .listeVilles a:focus {
  background: var(--dp-primary-soft);
  color: var(--dp-primary-dark) !important;
  border-color: var(--dp-primary);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  body.page-id-136 .listeVilles a {
    font-size: 0.82rem;
    padding: 0.38rem 0.78rem;
    white-space: normal;
  }
}

/* ---------- Sidebar widget-area ---------- */
body.page-id-136 .widget-area {
  margin-top: var(--dp-gap-md);
}

body.page-id-136 .widget-area .widget {
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--dp-shadow-xs);
}

body.page-id-136 .widget-area .widget-title {
  font-family: var(--dp-font-h);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dp-primary-dark);
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dp-primary-soft);
}

body.page-id-136 .widget-area .textwidget {
  font-size: 0.93rem;
  color: var(--dp-text-soft);
  line-height: 1.55;
}

body.page-id-136 .widget-area .textwidget hr {
  margin: 0.8rem 0;
  border: 0;
  height: 1px;
  background: var(--dp-border);
}

body.page-id-136 .widget-area .textwidget a {
  color: var(--dp-primary-dark);
  font-weight: 600;
}

/* ---------- CTA tel-autolink renforcé sur ces pages ---------- */
body.page-id-136 .entry-content a[href^="tel:"] {
  display: inline-block;
  font-weight: 700;
  color: var(--dp-primary-dark);
  white-space: nowrap;
}

/* ---------- Mobile : padding réduit et listes 1 colonne ---------- */
@media (max-width: 768px) {
  body.page-id-136 .content-area {
    padding: 1rem 0.9rem;
    border-radius: var(--dp-radius);
  }
  body.page-id-136 .entry-content {
    font-size: 0.98rem;
  }
  body.page-id-136 .entry-content > h1 {
    font-size: 1.55rem;
  }
  body.page-id-136 .entry-content h2 {
    font-size: 1.18rem;
  }
  body.page-id-136 .lam-services-connexes ul {
    grid-template-columns: 1fr;
  }
  body.page-id-136 .liste_villes,
  body.page-id-136 .entry-content > div:has(> .listeVilles) {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  body.page-id-136 .listeVilles {
    font-size: 0.85rem;
  }
  body.page-id-136 .listeVilles a {
    padding: 0.5rem 0.5rem 0.5rem 1.3rem;
  }
}

@media (max-width: 480px) {
  body.page-id-136 .liste_villes,
  body.page-id-136 .entry-content > div:has(> .listeVilles) {
    grid-template-columns: 1fr;
  }
}

/* ---------- Print friendly ---------- */
@media print {
  body.page-id-136 .widget-area,
  body.page-id-136 .dp-zones-wrapper,
  body.page-id-136 .lam-services-connexes {
    display: none;
  }
  body.page-id-136 .content-area {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}
