/* =========================================================
   FICHE / GUIDE ENCOMBRANTS.NET V0.3
   ========================================================= */
.ec-single {
  --ec-deep: #123c35;
  --ec-green: #2f8f64;
  --ec-green-dark: #246f50;
  --ec-green-soft: #eef7f2;
  --ec-text: #2b3933;
  --ec-muted: #68766f;
  --ec-border: #d9e8df;
  --ec-bg: #f6faf7;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ec-text);
  font-size: 17px;
  line-height: 1.72;
}
.ec-single *, .ec-single *::before, .ec-single *::after { box-sizing: border-box; }
.ec-single a { text-decoration: none; }
.ec-single-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.ec-single-kicker { margin: 0 0 12px !important; color: var(--ec-green); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ec-single h1, .ec-single h2, .ec-single h3 { color: var(--ec-deep); }
body.single .site-content > .ast-container { width: 100%; max-width: none; padding: 0; }
body.single #primary { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; }

.ec-single-hero { padding: 34px 0 62px; background: radial-gradient(circle at 15% 12%, rgba(47,143,100,.11), transparent 30%), linear-gradient(120deg, #fff 0%, #f5faf7 100%); border-bottom: 1px solid var(--ec-border); }
.ec-single-breadcrumb { margin-bottom: 34px; color: var(--ec-muted); font-size: 14px; }
.ec-single-breadcrumb a { color: var(--ec-green); }
.ec-single-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 65px; }
.ec-single h1 { max-width: 830px; margin: 0 0 20px; font-size: clamp(43px, 5.5vw, 68px); line-height: 1.03; letter-spacing: -.055em; }
.ec-single-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ec-muted); font-size: 14px; }
.ec-single-hero__notice { display: grid; grid-template-columns: 55px 1fr; gap: 16px; padding: 22px; border: 1px solid rgba(47,143,100,.17); border-radius: 18px; background: rgba(255,255,255,.86); box-shadow: 0 14px 38px rgba(18,60,53,.07); }
.ec-single-hero__notice > span { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 16px; background: var(--ec-green-soft); color: var(--ec-green); }
.ec-single-hero__notice svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ec-single-hero__notice strong, .ec-single-hero__notice small { display: block; }
.ec-single-hero__notice strong { margin-bottom: 4px; color: var(--ec-deep); }
.ec-single-hero__notice small { color: var(--ec-muted); line-height: 1.45; }

.ec-single-body { padding: 72px 0 105px; background: #fff; }
.ec-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 62px; }
.ec-single-content { min-width: 0; }
.ec-single-featured { overflow: hidden; margin: 0 0 42px; border-radius: 23px; box-shadow: 0 20px 55px rgba(18,60,53,.1); }
.ec-single-featured img { display: block; width: 100%; max-height: 530px; object-fit: cover; }
.ec-single-entry { color: var(--ec-text); }
.ec-single-entry > * { max-width: 790px; }
.ec-single-entry h2 { margin: 52px 0 20px; font-size: clamp(28px, 3vw, 40px); line-height: 1.17; letter-spacing: -.035em; }
.ec-single-entry h3 { margin: 38px 0 16px; font-size: 25px; line-height: 1.25; }
.ec-single-entry p { margin: 0 0 20px; }
.ec-single-entry a { color: var(--ec-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ec-single-entry ul, .ec-single-entry ol { margin: 0 0 24px; padding-left: 23px; }
.ec-single-entry li + li { margin-top: 8px; }
.ec-single-entry blockquote { margin: 34px 0; padding: 25px 28px; border-left: 4px solid var(--ec-green); border-radius: 0 15px 15px 0; background: var(--ec-green-soft); }
.ec-single-entry table { width: 100%; margin: 30px 0; border-collapse: collapse; }
.ec-single-entry th, .ec-single-entry td { padding: 13px 15px; border: 1px solid var(--ec-border); text-align: left; }
.ec-single-entry th { background: var(--ec-green-soft); color: var(--ec-deep); }

.ec-single-report { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 55px; padding: 32px; border: 1px solid #cfe6d8; border-radius: 19px; background: #f2f9f5; }
.ec-single-report h2 { margin: 0 0 9px; font-size: 25px; }
.ec-single-report p:not(.ec-single-kicker) { margin: 0; color: var(--ec-muted); }
.ec-single-report > a { flex: none; display: inline-flex; min-height: 48px; align-items: center; padding: 10px 19px; border-radius: 11px; background: var(--ec-green); color: #fff; font-weight: 850; }

/* Sidebar historique WordPress/Astra conservée. */
.ec-single-layout #secondary {
  position: sticky;
  top: 28px;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.admin-bar .ec-single-layout #secondary { top: 60px; }
.ec-single-layout #secondary .sidebar-main { display: grid; gap: 22px; }
.ec-single-layout #secondary .widget {
  margin: 0;
  padding: 27px;
  border: 1px solid var(--ec-border);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18,60,53,.055);
}
.ec-single-layout #secondary .widget-title,
.ec-single-layout #secondary h2,
.ec-single-layout #secondary h3 { margin: 0 0 16px; color: var(--ec-deep); font-size: 22px; line-height: 1.25; }
.ec-single-layout #secondary p { color: var(--ec-muted); font-size: 14px; }
.ec-single-layout #secondary ul { margin: 0; padding: 0; list-style: none; }
.ec-single-layout #secondary li + li { border-top: 1px solid #edf2ef; }
.ec-single-layout #secondary li a { display: block; padding: 10px 0; color: var(--ec-deep); font-size: 14px; font-weight: 700; }
.ec-single-layout #secondary a { color: var(--ec-green); }
.ec-single-layout #secondary img { max-width: 100%; height: auto; }

.ec-single-comments { margin-top: 70px; padding-top: 55px; border-top: 1px solid var(--ec-border); }
.ec-single-comments #comments { max-width: 790px; }
.ec-single-comments .comments-title { color: var(--ec-deep); }
.ec-single-comments .comment-list { margin: 0 0 45px; padding: 0; list-style: none; }
.ec-single-comments .comment-body { margin-bottom: 20px; padding: 24px; border: 1px solid var(--ec-border); border-radius: 16px; background: #fff; }
.ec-single-comments input[type="text"], .ec-single-comments input[type="email"], .ec-single-comments textarea { border: 1px solid var(--ec-border); border-radius: 11px; }
.ec-single-comments .form-submit input { border-radius: 10px; background: var(--ec-green); }


@media (max-width: 950px) {
  .ec-single-hero__grid, .ec-single-layout { grid-template-columns: 1fr; }
  .ec-single-layout #secondary { position: static; }
}
@media (max-width: 700px) {
  .ec-single-container { width: min(100% - 30px, 670px); }
  .ec-single-hero { padding: 27px 0 34px; }
  .ec-single h1 { font-size: 41px; }
  .ec-single-body { padding: 44px 0 72px; }
  .ec-single-report { align-items: flex-start; flex-direction: column; }
  /* Ce bloc est décoratif et répète l'information : le contenu commence plus haut sur mobile. */
  .ec-single-hero__notice { display: none; }
}
@media (max-width: 520px) {
  .ec-single-report > a { width: 100%; justify-content: center; }
}
