/* =========================================================
   FICHE / GUIDE ENCOMBRANTS.NET V0.4.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 !important; font-weight: 850; text-decoration: none !important; }
.ec-single-report > a:hover,
.ec-single-report > a:focus-visible { background: var(--ec-green-dark); color: #fff !important; }

/*
 * Sidebar WordPress/Astra : elle défile désormais normalement avec la page.
 * Le sticky global empêchait d'atteindre naturellement les widgets inférieurs
 * lorsque la sidebar dépassait la hauteur de l'écran.
 */
.ec-single-layout #secondary {
  position: static;
  top: auto;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.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; }

/* Signalement : géré par le thème. Sur desktop, le script du thème le place dans la sidebar. */
#secondary .ec-single-report.ec-single-report--sidebar {
  display: block;
  width: 100%;
  margin: 0;
  padding: 17px 16px;
  border: 1px solid #d8e9df;
  border-radius: 13px;
  background: #f4faf7;
  box-shadow: none;
}
#secondary .ec-single-report.ec-single-report--sidebar > div { display: block; width: 100%; }
#secondary .ec-single-report.ec-single-report--sidebar .ec-single-kicker {
  margin: 0 0 6px !important;
  color: var(--ec-green);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}
#secondary .ec-single-report.ec-single-report--sidebar h2 {
  margin: 0;
  color: var(--ec-deep);
  font-size: 1.02rem;
  line-height: 1.3;
}
#secondary .ec-single-report.ec-single-report--sidebar p:not(.ec-single-kicker) {
  margin: 7px 0 0;
  color: var(--ec-muted);
  font-size: .82rem;
  line-height: 1.5;
}
#secondary .ec-single-report.ec-single-report--sidebar > a {
  display: inline-flex;
  width: auto;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--ec-green);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}
#secondary .ec-single-report.ec-single-report--sidebar > a:hover,
#secondary .ec-single-report.ec-single-report--sidebar > a:focus-visible {
  background: var(--ec-green-dark);
  color: #fff !important;
}

.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; }
}
@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 {
    display: block;
    margin: 26px 0 0;
    padding: 18px;
    border-radius: 13px;
    box-shadow: none;
  }
  .ec-single-report h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
  .ec-single-report p:not(.ec-single-kicker) { margin: 7px 0 0; font-size: .88rem; line-height: 1.5; }
  .ec-single-report > a {
    display: inline-flex;
    width: auto;
    min-height: 36px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .84rem;
    line-height: 1.2;
  }
  /* Ce bloc est décoratif et répète l'information : le contenu commence plus haut sur mobile. */
  .ec-single-hero__notice { display: none; }
}
/* =========================================================
   CORRECTIFS MOBILE
   ========================================================= */
.ec-single-content,
.ec-single-entry,
.ec-single-entry > * {
  min-width: 0;
}

.ec-single-entry {
  overflow-wrap: anywhere;
  word-break: normal;
}

.ec-single-entry img,
.ec-single-entry svg,
.ec-single-entry video,
.ec-single-entry iframe,
.ec-single-entry object,
.ec-single-entry embed,
.ec-single-entry figure,
.ec-single-entry .wp-caption,
.ec-single-entry table,
.ec-single-entry [style*="width"] {
  max-width: 100% !important;
}

.ec-single-entry img,
.ec-single-entry video {
  height: auto !important;
}

.ec-single-entry table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 700px) {
  /* Le premier encart commence plus près de la fin du bandeau titre. */
  .ec-single-body {
    padding-top: 20px;
  }

  .ec-single-entry #bloc-sva,
  .ec-single-entry .container:first-child {
    margin-top: 0 !important;
  }
}
