/**
 * Espace Chasse Blog — Le Carnet du Chasseur
 * Design premium "carnet de terrain"
 * Charte : vert forêt #21372a, vert profond #14251b, bronze #bd8743,
 *          bronze clair #d3ab75, crème #f5f2eb
 * @copyright 2026 JD DISTRIBUTION
 */

.ecb-blog,
.ecb-post,
.ecb-home {
  --ecb-vert: #21372a;
  --ecb-vert-fonce: #14251b;
  --ecb-overlay: rgba(20,37,27,.82);
  --ecb-bronze: #bd8743;
  --ecb-bronze-clair: #d3ab75;
  --ecb-creme: #f5f2eb;
  --ecb-paper: #f7f4ed;
  --ecb-olive: #556b2f;
  --ecb-ink: #1c2a20;
  --ecb-read: #2a3a2e;
  --ecb-gris: #6b6b6b;
  --ecb-line: rgba(33,55,42,.13);
  --ecb-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
}
.ecb-serif { font-family: Georgia, "Times New Roman", serif; }

/* ================================================================== */
/* PAGE LISTE — Le Carnet                                              */
/* ================================================================== */

/* --- HERO immersive --- */
.ecb-blog-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ecb-creme);
  margin: 0 0 0;
  /* Fond par defaut : degrade vert riche (visible si aucune image) */
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(189,135,67,.16), transparent 55%),
    radial-gradient(90% 80% at 10% 110%, rgba(11,20,14,.85), transparent 50%),
    linear-gradient(160deg, #2a4636 0%, var(--ecb-vert) 45%, var(--ecb-vert-fonce) 100%);
}
/* Si une image de fond est fournie, elle se superpose avec un voile lisible */
.ecb-blog-hero[style*="--ecb-hero-img"] {
  background:
    linear-gradient(var(--ecb-overlay), rgba(20,37,27,.6)),
    var(--ecb-hero-img) center/cover no-repeat;
}
.ecb-blog-hero__inner { max-width: 860px; padding: 90px 30px 70px; }
.ecb-blog-hero__kicker {
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase; font-weight: 700;
  color: var(--ecb-bronze-clair);
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px;
}
.ecb-blog-hero__kicker::before,
.ecb-blog-hero__kicker::after { content: ""; height: 1px; width: 42px; background: var(--ecb-bronze-clair); opacity: .6; }
.ecb-blog-hero h1 {
  font-size: clamp(40px, 6vw, 78px); line-height: 1; font-weight: 400;
  text-transform: uppercase; letter-spacing: .01em; margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,.4); color: var(--ecb-creme);
}
.ecb-blog-hero h1 .ecb-b { color: var(--ecb-bronze-clair); display: block; }
.ecb-blog-hero__intro { font-size: 19px; color: rgba(245,242,235,.9); max-width: 600px; margin: 0 auto; }

/* --- Barre de recherche articles --- */
.ecb-search {
  margin: 36px auto 0; max-width: 600px;
  display: flex; align-items: center;
  background: var(--ecb-creme); border-radius: 4px; overflow: hidden;
  box-shadow: 0 20px 44px -20px rgba(0,0,0,.55);
}
.ecb-search__icon { flex: 0 0 auto; margin-left: 20px; width: 22px; height: 22px; stroke: var(--ecb-vert); stroke-width: 2; fill: none; stroke-linecap: round; }
.ecb-search input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 16px; color: var(--ecb-ink); padding: 18px 16px; font-family: inherit;
}
.ecb-search input::placeholder { color: #7a836f; }
.ecb-search button {
  border: none; cursor: pointer; flex: 0 0 auto;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--ecb-vert-fonce); background: var(--ecb-bronze); padding: 18px 28px; transition: background .2s;
  font-family: inherit;
}
.ecb-search button:hover { background: var(--ecb-bronze-clair); }

/* --- Filtres / rubriques --- */
.ecb-filters {
  position: sticky; top: 0; z-index: 25;
  background: var(--ecb-vert); border-bottom: 2px solid var(--ecb-bronze);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 2px 6px; padding: 6px 20px; margin: 0 0 0;
}
.ecb-chip {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--ecb-creme); text-decoration: none;
  padding: 15px 20px; position: relative; white-space: nowrap; transition: color .2s;
}
.ecb-chip-count { font-size: 10px; color: var(--ecb-bronze-clair); margin-left: 7px; vertical-align: super; }
.ecb-chip::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--ecb-bronze-clair); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.ecb-chip:hover { color: var(--ecb-bronze-clair); }
.ecb-chip.is-active { color: var(--ecb-bronze-clair); }
.ecb-chip.is-active::after { transform: scaleX(1); }

/* --- Zone de contenu liste --- */
.ecb-blog { background: var(--ecb-paper); }
.ecb-blog-body { max-width: 1240px; margin: 0 auto; padding: 56px 40px 40px; }
.ecb-eyebrow {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700;
  color: var(--ecb-bronze); display: flex; align-items: center; gap: 16px; margin: 0 0 30px;
}
.ecb-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--ecb-line); }

/* --- Grille de cartes --- */
.ecb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin: 0 0 20px;
}
.ecb-card {
  background: #fff; border-radius: var(--ecb-radius); overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(20,37,27,.3);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.ecb-card:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -20px rgba(20,37,27,.4); }
.ecb-card > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.ecb-card-media { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.ecb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ecb-card:hover .ecb-card-media img { transform: scale(1.06); }
.ecb-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.ecb-card-cat {
  align-self: flex-start;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--ecb-bronze); margin-bottom: 12px;
}
.ecb-card h2, .ecb-card h3 {
  font-family: Georgia, serif; font-size: 22px; line-height: 1.22; font-weight: 400;
  margin: 0 0 12px; color: var(--ecb-ink);
}
.ecb-card:hover h2, .ecb-card:hover h3 { color: var(--ecb-vert); }
.ecb-card p { font-size: 15px; color: #55604e; margin: 0 0 18px; flex: 1; }
.ecb-card-date { font-size: 12px; letter-spacing: .03em; color: #828a76; }

/* --- Pagination --- */
.ecb-pagination {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 30px 0 10px; font-size: 14px; letter-spacing: .04em;
}
.ecb-pagination a {
  color: var(--ecb-vert); text-decoration: none; font-weight: 700;
  padding: 10px 18px; border: 1px solid var(--ecb-line); border-radius: 3px; transition: .2s;
}
.ecb-pagination a:hover { background: var(--ecb-vert); color: var(--ecb-creme); border-color: var(--ecb-vert); }
.ecb-page-status { color: var(--ecb-gris); }

/* --- Etat vide --- */
.ecb-empty {
  text-align: center; color: var(--ecb-gris); font-style: italic;
  padding: 60px 20px; font-size: 17px;
}

/* ================================================================== */
/* PAGE ARTICLE                                                        */
/* ================================================================== */
.ecb-post { background: var(--ecb-paper); }

/* --- Hero article immersive --- */
.ecb-post-header {
  position: relative; color: var(--ecb-creme); text-align: center;
  padding: 100px 30px 56px;
  background:
    linear-gradient(to top, rgba(20,37,27,.96) 6%, rgba(20,37,27,.45) 55%, rgba(20,37,27,.35)),
    var(--ecb-cover-img, #21372a) center/cover no-repeat;
}
.ecb-post-header__inner { max-width: 900px; margin: 0 auto; }
.ecb-post-cat {
  display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--ecb-vert-fonce); background: var(--ecb-bronze); padding: 7px 15px; border-radius: 2px;
  margin-bottom: 24px; text-decoration: none;
}
.ecb-post-title {
  font-family: Georgia, serif; font-size: clamp(32px, 5vw, 56px); line-height: 1.06; font-weight: 400;
  margin: 0 0 24px; text-shadow: 0 2px 18px rgba(0,0,0,.35); color: var(--ecb-creme);
}
.ecb-post-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-size: 14px; color: rgba(245,242,235,.72); margin-bottom: 22px;
}
.ecb-post-meta .ecb-author { color: var(--ecb-bronze-clair); }
.ecb-sep { color: var(--ecb-bronze); }
.ecb-post-lead {
  font-size: 20px; font-style: italic; color: rgba(245,242,235,.9);
  max-width: 640px; margin: 0 auto;
}

/* cover séparée : masquée car intégrée à la hero */
.ecb-post-cover { display: none; }

/* --- Corps + sommaire en 2 colonnes --- */
.ecb-post-layout {
  max-width: 1180px; margin: 0 auto; padding: 60px 40px 40px;
  display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start;
}
.ecb-post-body { max-width: 720px; }
.ecb-post-body p { font-size: 18px; line-height: 1.55; color: var(--ecb-read); margin: 0 0 18px; }
.ecb-post-body h2 {
  font-family: Georgia, serif; font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1.12;
  margin: 34px 0 12px; scroll-margin-top: 90px; position: relative; padding-left: 22px; color: var(--ecb-ink);
}
.ecb-post-body h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--ecb-bronze); border-radius: 2px; }
.ecb-post-body h3 { font-size: 22px; font-weight: 700; margin: 24px 0 10px; color: var(--ecb-vert); }
.ecb-post-body ul, .ecb-post-body ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.ecb-post-body ul li { font-size: 18px; line-height: 1.5; color: var(--ecb-read); padding-left: 30px; margin-bottom: 8px; position: relative; }
.ecb-post-body ul li::before { content: "\25B8"; position: absolute; left: 4px; color: var(--ecb-bronze); font-size: 16px; }
.ecb-post-body ol { counter-reset: ecbol; padding-left: 0; }
.ecb-post-body ol li { font-size: 18px; line-height: 1.5; color: var(--ecb-read); padding-left: 34px; margin-bottom: 8px; position: relative; counter-increment: ecbol; }
.ecb-post-body ol li::before { content: counter(ecbol); position: absolute; left: 0; top: 0; color: var(--ecb-bronze); font-weight: 700; }
.ecb-post-body a { color: var(--ecb-vert); text-decoration: underline; text-decoration-color: var(--ecb-bronze-clair); text-underline-offset: 3px; }
.ecb-post-body img { max-width: 100%; height: auto; border-radius: var(--ecb-radius); margin: 20px 0; }
.ecb-post-body blockquote {
  margin: 28px 0; padding: 6px 0 6px 34px; border-left: 3px solid var(--ecb-bronze);
  font-family: Georgia, serif; font-size: 26px; line-height: 1.3; font-style: italic; color: var(--ecb-vert);
}

/* --- Sommaire sticky --- */
.ecb-toc {
  position: sticky; top: 30px;
  background: #fff; border-radius: var(--ecb-radius); padding: 28px 26px;
  box-shadow: 0 12px 34px -20px rgba(20,37,27,.35);
}
.ecb-toc-title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ecb-bronze); margin: 0 0 18px; font-weight: 700; }
.ecb-toc ol { list-style: none; counter-reset: ecbtoc; padding: 0; margin: 0; }
.ecb-toc li { counter-increment: ecbtoc; margin-bottom: 2px; }
.ecb-toc a {
  display: flex; gap: 12px; font-size: 14px; color: var(--ecb-read); text-decoration: none;
  padding: 8px 10px; border-radius: 4px; line-height: 1.35; transition: background .2s, color .2s;
}
.ecb-toc a::before { content: counter(ecbtoc, decimal-leading-zero); color: var(--ecb-bronze-clair); font-weight: 700; flex: 0 0 auto; }
.ecb-toc a:hover { background: var(--ecb-creme); color: var(--ecb-vert); }

/* --- Encadré auteur (le mot de l'expert) --- */
.ecb-author-box {
  max-width: 720px; margin: 8px 0 0;
  background: #f0ece0; border-left: 3px solid var(--ecb-olive); border-radius: 0 4px 4px 0;
  padding: 26px 32px;
}
.ecb-author-name { font-weight: 700; color: var(--ecb-olive); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.ecb-author-job { font-size: 13px; color: #77806b; margin: 0 0 12px; }
.ecb-author-bio { font-size: 16px; line-height: 1.55; color: var(--ecb-read); font-style: italic; margin: 0; }

/* --- Produits liés (fond vert, pleine largeur) --- */
.ecb-products {
  background: var(--ecb-vert); color: var(--ecb-creme);
  margin: 56px 0 0; padding: 56px 40px;
}
.ecb-products .ecb-block-title {
  font-family: Georgia, serif; font-size: 32px; font-weight: 400; text-align: center;
  color: var(--ecb-creme); margin: 0 0 38px;
}
.ecb-products-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ecb-product-card { background: var(--ecb-paper); border-radius: var(--ecb-radius); overflow: hidden; transition: transform .3s; }
.ecb-product-card:hover { transform: translateY(-5px); }
.ecb-product-card a { text-decoration: none; color: var(--ecb-ink); display: flex; flex-direction: column; }
.ecb-product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.ecb-product-card h3 { font-family: Georgia, serif; font-size: 17px; font-weight: 400; margin: 18px 22px 8px; line-height: 1.25; }
.ecb-product-price { font-size: 18px; font-weight: 700; color: var(--ecb-vert); margin: 0 22px 22px; }

/* --- Articles connexes --- */
.ecb-related { max-width: 1180px; margin: 0 auto; padding: 60px 40px 30px; }
.ecb-related .ecb-block-title {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700;
  color: var(--ecb-bronze); display: flex; align-items: center; gap: 16px; margin: 0 0 26px;
}
.ecb-related .ecb-block-title::after { content: ""; flex: 1; height: 1px; background: var(--ecb-line); }

/* --- Retour --- */
.ecb-back { max-width: 1180px; margin: 0 auto; padding: 10px 40px 70px; }
.ecb-back a { color: var(--ecb-vert); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.ecb-back a:hover { color: var(--ecb-bronze); }

/* ================================================================== */
/* BLOC PAGE D'ACCUEIL                                                 */
/* ================================================================== */
.ecb-home { padding: 20px 0 10px; }
.ecb-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 30px; flex-wrap: wrap; }
.ecb-home-title { font-family: Georgia, serif; font-size: clamp(26px, 3vw, 34px); font-weight: 400; color: var(--ecb-ink); margin: 0; }
.ecb-home-all { color: var(--ecb-bronze); text-decoration: none; font-size: 14px; letter-spacing: .04em; font-weight: 700; white-space: nowrap; }
.ecb-home-all:hover { color: var(--ecb-vert); }

/* ================================================================== */
/* RESPONSIVE                                                          */
/* ================================================================== */
@media (max-width: 1000px) {
  .ecb-grid { grid-template-columns: 1fr 1fr; }
  .ecb-products-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .ecb-post-layout { grid-template-columns: 1fr; gap: 0; }
  .ecb-toc { display: none; }
}
@media (max-width: 640px) {
  .ecb-blog-body, .ecb-post-layout, .ecb-related, .ecb-back { padding-left: 22px; padding-right: 22px; }
  .ecb-grid { grid-template-columns: 1fr; }
  .ecb-products-grid { grid-template-columns: 1fr; }
  .ecb-products { padding: 44px 22px; }
  .ecb-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 22px; scrollbar-width: none; -ms-overflow-style: none; }
  .ecb-filters::-webkit-scrollbar { display: none; }
  .ecb-search button { padding: 16px 18px; }
  .ecb-search input { padding: 16px 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ================================================================== */
/* FIL D'ARIANE — forcer la charte (pas de bleu par défaut du thème)  */
/* ================================================================== */
.ecb-blog .breadcrumb a,
.ecb-post .breadcrumb a,
body.ecb-list .breadcrumb a,
body.ecb-post .breadcrumb a,
.ecb-list #wrapper .breadcrumb a,
.ecb-post-page #wrapper .breadcrumb a {
  color: var(--ecb-vert) !important;
  text-decoration: none;
}
.ecb-blog .breadcrumb a:hover,
.ecb-post .breadcrumb a:hover,
body.ecb-list .breadcrumb a:hover,
body.ecb-post .breadcrumb a:hover {
  color: var(--ecb-bronze) !important;
}
.ecb-blog .breadcrumb,
.ecb-post .breadcrumb,
body.ecb-list .breadcrumb span,
body.ecb-post .breadcrumb span {
  color: var(--ecb-gris);
}

/* ================================================================== */
/* DESIGN C — IMMERSIVE (hero reduite + cartes flottantes)            */
/* ================================================================== */

/* Hero immersive plus basse */
.ecb-blog-hero--immersive {
  min-height: 380px;
  padding-bottom: 40px;
}
.ecb-blog-hero--immersive .ecb-blog-hero__inner {
  padding: 70px 30px 40px;
}
.ecb-blog-hero--immersive h1 {
  font-size: clamp(38px, 5.5vw, 68px);
}

/* Zone flottante : remonte par-dessus le bas de la hero */
.ecb-float {
  max-width: 1240px;
  margin: -90px auto 0;
  padding: 0 40px;
  position: relative;
  z-index: 5;
}
.ecb-float-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ecb-card--float {
  box-shadow: 0 24px 50px -24px rgba(20,37,27,.5);
}
.ecb-card--float .ecb-card-media { aspect-ratio: 16/10; }

/* Rubriques en pastilles */
.ecb-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0 0;
}
.ecb-pill {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ecb-vert);
  padding: 11px 20px;
  text-decoration: none;
  border: 1px solid var(--ecb-line);
  border-radius: 30px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.ecb-pill:hover,
.ecb-pill.is-active {
  background: var(--ecb-vert);
  color: var(--ecb-creme);
  border-color: var(--ecb-vert);
}
.ecb-pill-count {
  font-size: 10px;
  margin-left: 6px;
  vertical-align: super;
  color: var(--ecb-bronze);
}
.ecb-pill.is-active .ecb-pill-count { color: var(--ecb-bronze-clair); }

/* Recherche recentree sous les pastilles */
.ecb-float .ecb-search {
  margin: 26px auto 0;
  max-width: 560px;
}

/* Le reste des articles demarre avec un peu d'air */
.ecb-blog .ecb-blog-body {
  padding-top: 50px;
}

/* Responsive design C */
@media (max-width: 1000px) {
  .ecb-float-grid { grid-template-columns: 1fr 1fr; }
  .ecb-float-grid .ecb-card--float:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .ecb-float { margin-top: -60px; padding: 0 22px; }
  .ecb-float-grid { grid-template-columns: 1fr; }
  .ecb-float-grid .ecb-card--float:nth-child(3) { display: block; }
  .ecb-pills { padding-top: 30px; }
}

/* ================================================================== */
/* V1.0.11 — PAGE BLOG PLEINE LARGEUR                                 */
/* ================================================================== */

/* Le layout du thème enferme normalement le contenu dans un container.
   Ce décalage rend uniquement la page du blog réellement bord à bord. */
.ecb-blog {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: clip;
}

/* Image de bannière sur toute la largeur, sans bande blanche latérale. */
.ecb-blog-hero {
  width: 100%;
  max-width: none;
}

/* Plus d'espace horizontal pour le titre et surtout le chapeau. */
.ecb-blog-hero--immersive .ecb-blog-hero__inner {
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
}
.ecb-blog-hero__intro {
  width: 100%;
  max-width: 1180px;
  line-height: 1.45;
}

/* Cartes plus larges, proches de la maquette de référence. */
.ecb-float,
.ecb-blog-body {
  width: 100%;
  max-width: 1480px;
  box-sizing: border-box;
}
.ecb-float-grid {
  gap: 28px;
}

/* Le sous-texte reste sur une ligne sur les grands écrans. */
@media (min-width: 1100px) {
  .ecb-blog-hero__intro {
    white-space: nowrap;
  }
}

/* Réglages intermédiaires pour éviter tout débordement. */
@media (max-width: 1099px) {
  .ecb-blog-hero__intro {
    max-width: 820px;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .ecb-blog {
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  .ecb-blog-hero--immersive .ecb-blog-hero__inner {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* ================================================================== */
/* V1.0.12 — AJUSTEMENTS UX, TYPOGRAPHIE ET GRILLE                    */
/* ================================================================== */

/* Supprime l'espace inutile entre le fil d'Ariane et la bannière. */
body.ecb-list .breadcrumb,
body.ecb-category .breadcrumb {
  margin-bottom: 0 !important;
}
body.ecb-list #content-wrapper,
body.ecb-category #content-wrapper,
body.ecb-list #main,
body.ecb-category #main,
body.ecb-list #content,
body.ecb-category #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* La police sans serif pilote l'interface. Les titres éditoriaux restent serif. */
.ecb-blog {
  font-family: Arial, Helvetica, sans-serif;
}
.ecb-blog-hero h1,
.ecb-card h2,
.ecb-card h3 {
  font-family: Georgia, "Times New Roman", serif;
}

/* Bannière plus lisible et moins sombre. */
.ecb-blog-hero[style*="--ecb-hero-img"] {
  background:
    linear-gradient(rgba(16, 35, 25, .70), rgba(16, 35, 25, .55)),
    var(--ecb-hero-img) center 52% / cover no-repeat;
}
.ecb-blog-hero--immersive {
  min-height: 430px;
  padding-bottom: 0;
}
.ecb-blog-hero--immersive .ecb-blog-hero__inner {
  max-width: 1500px;
  padding: 58px 28px 82px;
}
.ecb-blog-hero--immersive h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: .98;
  letter-spacing: 0;
  margin-bottom: 24px;
}
.ecb-blog-hero__kicker {
  margin-bottom: 24px;
}
.ecb-blog-hero__intro {
  max-width: 1360px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
}

/* Cartes principales : largeur accrue sans coller aux bords. */
.ecb-float {
  width: calc(100% - 48px);
  max-width: 1500px;
  margin-top: -64px;
  padding: 0;
}
.ecb-float-grid {
  gap: 26px;
}
.ecb-float-grid--one {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}
.ecb-float-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1030px;
  margin-inline: auto;
}
.ecb-card {
  border: 1px solid rgba(33, 55, 42, .08);
}
.ecb-card-body {
  padding: 24px 24px 25px;
}
.ecb-card-cat {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 11px;
}
.ecb-card h2,
.ecb-card h3 {
  font-size: 21px;
  line-height: 1.22;
  margin-bottom: 11px;
}
.ecb-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 44px;
  margin: 0 0 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.ecb-card-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ecb-vert);
}
.ecb-card-cta::after {
  content: "→";
  margin-left: 8px;
  color: var(--ecb-bronze);
  transition: transform .2s ease;
}
.ecb-card:hover .ecb-card-cta::after {
  transform: translateX(3px);
}
.ecb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
}
.ecb-card-footer .ecb-card-cta {
  margin-top: 0;
}

/* Catégories et recherche plus accessibles. */
.ecb-pills {
  padding-top: 34px;
}
.ecb-pill {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  padding: 10px 18px;
}
.ecb-float .ecb-search {
  width: min(100%, 760px);
  max-width: 760px;
  margin-top: 24px;
}
.ecb-search input {
  min-width: 0;
  font-family: Arial, Helvetica, sans-serif;
}
.ecb-search button {
  min-width: 154px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Articles suivants : mise en page adaptée au nombre réellement visible. */
.ecb-blog .ecb-blog-body {
  width: calc(100% - 48px);
  max-width: 1500px;
  padding: 42px 0 52px;
}
.ecb-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 26px;
}
.ecb-grid {
  gap: 26px;
}
.ecb-grid--one {
  grid-template-columns: 1fr;
  max-width: 1120px;
  margin-inline: auto;
}
.ecb-grid--one > .ecb-card > a {
  display: grid;
  grid-template-columns: minmax(390px, 48%) 1fr;
}
.ecb-grid--one .ecb-card-media {
  aspect-ratio: auto;
  min-height: 330px;
}
.ecb-grid--one .ecb-card-body {
  padding: 38px 40px;
}
.ecb-grid--one .ecb-card h2 {
  font-size: 28px;
}
.ecb-grid--one .ecb-card p {
  -webkit-line-clamp: 4;
  min-height: 0;
  font-size: 16px;
}
.ecb-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin-inline: auto;
}

/* Écrans intermédiaires. */
@media (max-width: 1099px) {
  .ecb-blog-hero__intro {
    max-width: 850px;
    white-space: normal;
  }
  .ecb-float,
  .ecb-blog .ecb-blog-body {
    width: calc(100% - 40px);
  }
  .ecb-float {
    margin-top: -54px;
  }
  .ecb-grid--one > .ecb-card > a {
    grid-template-columns: 44% 1fr;
  }
}

/* Mobile : aucun chevauchement, boutons et cartes faciles à lire. */
@media (max-width: 640px) {
  .ecb-blog-hero--immersive {
    min-height: 410px;
  }
  .ecb-blog-hero--immersive .ecb-blog-hero__inner {
    padding: 48px 22px 92px;
  }
  .ecb-blog-hero--immersive h1 {
    font-size: clamp(38px, 13vw, 54px);
  }
  .ecb-blog-hero__intro {
    font-size: 16px;
    line-height: 1.45;
  }
  .ecb-float {
    width: calc(100% - 32px);
    margin-top: -48px;
    padding: 0;
  }
  .ecb-float-grid,
  .ecb-float-grid--two {
    grid-template-columns: 1fr;
  }
  .ecb-float-grid .ecb-card--float:nth-child(3) {
    display: block;
  }
  .ecb-pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 28px 0 4px;
    scrollbar-width: none;
  }
  .ecb-pills::-webkit-scrollbar {
    display: none;
  }
  .ecb-search {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .ecb-search__icon {
    margin-left: 16px;
  }
  .ecb-search button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
  }
  .ecb-blog .ecb-blog-body {
    width: calc(100% - 32px);
    padding-top: 36px;
  }
  .ecb-grid--one,
  .ecb-grid--two {
    grid-template-columns: 1fr;
  }
  .ecb-grid--one > .ecb-card > a {
    display: flex;
  }
  .ecb-grid--one .ecb-card-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .ecb-grid--one .ecb-card-body {
    padding: 24px;
  }
  .ecb-grid--one .ecb-card h2 {
    font-size: 22px;
  }
  .ecb-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* ================================================================== */
/* V1.0.13 — COHÉRENCE ÉDITORIALE, ARTICLE ET CONVERSION              */
/* ================================================================== */

/* Le fil d'Ariane de la page d'accueil du carnet casse l'immersion.
   Il reste présent sur les articles, où il apporte une vraie aide. */
body.ecb-list .breadcrumb,
body.ecb-category .breadcrumb {
  display: none !important;
}
body.ecb-list #wrapper,
body.ecb-category #wrapper,
body.ecb-post #wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.ecb-list #content-wrapper,
body.ecb-category #content-wrapper,
body.ecb-post #content-wrapper,
body.ecb-list #main,
body.ecb-category #main,
body.ecb-post #main,
body.ecb-list #content,
body.ecb-category #content,
body.ecb-post #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.ecb-post .breadcrumb {
  margin-bottom: 0 !important;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Navigation du carnet : filtres et recherche sur une seule ligne. */
.ecb-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 34px;
}
.ecb-tools .ecb-pills {
  flex: 1 1 auto;
  justify-content: flex-start;
  padding: 0;
}
.ecb-tools .ecb-search {
  flex: 0 1 520px;
  width: 100%;
  max-width: 520px;
  margin: 0;
}
.ecb-tools .ecb-search button {
  min-width: 132px;
  padding-left: 20px;
  padding-right: 20px;
}
.ecb-blog .ecb-blog-body {
  padding-top: 38px;
}

/* Le module devient réellement pleine largeur sur les pages article,
   sans élargir la colonne de lecture. */
article.ecb-post {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: clip;
  font-family: Arial, Helvetica, sans-serif;
}

/* Hero article plus ample, cohérent avec la page d'accueil du carnet. */
article.ecb-post .ecb-post-header {
  min-height: 510px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 30px 72px;
  background:
    linear-gradient(to top, rgba(16,35,25,.90) 0%, rgba(16,35,25,.54) 52%, rgba(16,35,25,.40) 100%),
    var(--ecb-cover-img, #21372a) center 48% / cover no-repeat;
}
article.ecb-post .ecb-post-header__inner {
  width: 100%;
  max-width: 980px;
}
article.ecb-post .ecb-post-title {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.06;
}
article.ecb-post .ecb-post-lead {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.45;
}

/* Lecture confortable : sans-serif pour le corps, serif pour les titres. */
article.ecb-post .ecb-post-layout {
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 0 48px;
  grid-template-columns: minmax(0, 780px) minmax(260px, 300px);
  justify-content: center;
  gap: 72px;
}
article.ecb-post .ecb-post-body {
  width: 100%;
  max-width: none;
  min-width: 0;
}
article.ecb-post .ecb-post-body p,
article.ecb-post .ecb-post-body li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
article.ecb-post .ecb-post-body p {
  margin-bottom: 20px;
}
article.ecb-post .ecb-post-body h2 {
  font-size: clamp(27px, 2.5vw, 33px);
  line-height: 1.15;
  margin-top: 38px;
  margin-bottom: 14px;
  scroll-margin-top: 150px;
}
article.ecb-post .ecb-post-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.25;
  scroll-margin-top: 150px;
}
article.ecb-post .ecb-post-body blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.48;
  padding-left: 28px;
}

/* Le sommaire restait caché derrière le header fixe pendant le scroll. */
article.ecb-post .ecb-toc {
  top: 138px;
  border-top: 3px solid var(--ecb-bronze);
}
article.ecb-post .ecb-toc a {
  font-family: Arial, Helvetica, sans-serif;
}

/* Encadré auteur plus compact et moins massif. */
article.ecb-post .ecb-author-box {
  max-width: none;
  margin-top: 24px;
  padding: 24px 28px;
}
article.ecb-post .ecb-author-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .08em;
}
article.ecb-post .ecb-author-bio {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

/* Produits liés : bandeau pleine largeur, images non rognées et CTA clair. */
article.ecb-post .ecb-products {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-top: 56px;
  padding: 64px max(24px, calc((100vw - 1240px) / 2));
}
article.ecb-post .ecb-products-grid {
  width: 100%;
  max-width: 1240px;
  gap: 28px;
}
article.ecb-post .ecb-product-card a {
  height: 100%;
}
article.ecb-post .ecb-product-card img {
  box-sizing: border-box;
  object-fit: contain;
  padding: 22px;
}
article.ecb-post .ecb-product-card h3 {
  flex: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}
article.ecb-post .ecb-product-price {
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 12px;
}
.ecb-product-cta {
  display: block;
  margin: 0 22px 22px;
  padding-top: 14px;
  border-top: 1px solid var(--ecb-line);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ecb-vert);
}
.ecb-product-cta::after {
  content: " →";
  color: var(--ecb-bronze);
}

/* Articles connexes : une seule recommandation ne reste plus perdue à gauche. */
article.ecb-post .ecb-related {
  width: calc(100% - 48px);
  max-width: 1240px;
  padding: 54px 0 24px;
}
.ecb-related-grid--one {
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.ecb-related-grid--one > .ecb-card > a {
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
}
.ecb-related-grid--one .ecb-card-media {
  min-height: 300px;
  aspect-ratio: auto;
}
.ecb-related-grid--one .ecb-card-body {
  padding: 36px 38px;
}
.ecb-related-grid--one .ecb-card h3 {
  font-size: 27px;
}
.ecb-related-grid--one .ecb-card p {
  -webkit-line-clamp: 4;
  min-height: 0;
  font-size: 15px;
}
.ecb-related-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

/* Retour au carnet traité comme une action, avec moins de vide avant le footer. */
article.ecb-post .ecb-back {
  width: calc(100% - 48px);
  max-width: 1240px;
  padding: 8px 0 54px;
}
article.ecb-post .ecb-back a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(33,55,42,.22);
  border-radius: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
article.ecb-post .ecb-back a:hover {
  background: var(--ecb-vert);
  border-color: var(--ecb-vert);
  color: var(--ecb-creme);
}

@media (max-width: 1220px) {
  .ecb-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .ecb-tools .ecb-pills {
    justify-content: center;
  }
  .ecb-tools .ecb-search {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  article.ecb-post .ecb-post-layout {
    grid-template-columns: minmax(0, 780px);
    gap: 0;
  }
  article.ecb-post .ecb-toc {
    display: none;
  }
}

@media (max-width: 700px) {
  article.ecb-post .ecb-post-header {
    min-height: 470px;
    padding: 58px 22px 54px;
  }
  article.ecb-post .ecb-post-title {
    font-size: clamp(34px, 10vw, 46px);
  }
  article.ecb-post .ecb-post-lead {
    font-size: 17px;
  }
  article.ecb-post .ecb-post-layout,
  article.ecb-post .ecb-related,
  article.ecb-post .ecb-back {
    width: calc(100% - 36px);
  }
  article.ecb-post .ecb-post-layout {
    padding-top: 42px;
  }
  article.ecb-post .ecb-post-body p,
  article.ecb-post .ecb-post-body li {
    font-size: 16px;
  }
  article.ecb-post .ecb-post-body h2 {
    font-size: 27px;
    padding-left: 18px;
  }
  article.ecb-post .ecb-products {
    padding: 48px 18px;
  }
  .ecb-related-grid--one,
  .ecb-related-grid--two {
    grid-template-columns: 1fr;
  }
  .ecb-related-grid--one > .ecb-card > a {
    display: flex;
  }
  .ecb-related-grid--one .ecb-card-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .ecb-related-grid--one .ecb-card-body {
    padding: 24px;
  }
  .ecb-related-grid--one .ecb-card h3 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .ecb-tools {
    padding-top: 28px;
    gap: 20px;
  }
  .ecb-tools .ecb-pills {
    justify-content: flex-start;
  }
}


/* ================================================================== */
/* V1.0.14 — FINITIONS DU LISTING ET DE LA PAGE ARTICLE               */
/* ================================================================== */

/* Le layout Hummingbird ajoute un conteneur avant le contenu. Le bloc
   breadcrumb est désormais neutralisé dans les templates et les marges
   résiduelles sont supprimées uniquement sur les pages du Carnet. */
body.ecb-list .columns-container,
body.ecb-category .columns-container,
body.ecb-post .columns-container,
body.ecb-list #center-column,
body.ecb-category #center-column,
body.ecb-post #center-column {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Listing : filtres et recherche restent équilibrés. Sur écran moyen,
   tout le bloc passe proprement sur deux lignes au lieu de laisser une
   seule catégorie isolée. */
.ecb-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: 24px;
}
.ecb-tools .ecb-pills {
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ecb-tools .ecb-pills::-webkit-scrollbar {
  display: none;
}
.ecb-tools .ecb-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 10.5px;
  letter-spacing: .085em;
}
.ecb-tools .ecb-search {
  min-width: 0;
  max-width: none;
}

/* La section secondaire reste proche du contenu principal et ne crée
   plus une grande plage vide avant le pied de page. */
.ecb-blog .ecb-blog-body {
  padding-bottom: 32px;
}
.ecb-grid--one {
  max-width: 1180px;
}

/* Breadcrumb article contrôlé par le module. */
.ecb-post-breadcrumb {
  width: 100%;
  background: #f7f4ed;
  border-bottom: 1px solid rgba(33,55,42,.10);
}
.ecb-post-breadcrumb__inner {
  width: calc(100% - 48px);
  max-width: 1240px;
  min-height: 46px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #778077;
  white-space: nowrap;
}
.ecb-post-breadcrumb a {
  color: var(--ecb-vert);
  text-decoration: none;
}
.ecb-post-breadcrumb a:hover {
  color: var(--ecb-bronze);
}
.ecb-post-breadcrumb__current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero article légèrement resserré : l'image reste forte sans repousser
   inutilement le début de lecture. */
article.ecb-post .ecb-post-header {
  min-height: 460px;
  padding-top: 64px;
  padding-bottom: 62px;
}
article.ecb-post .ecb-post-title {
  max-width: 900px;
}
article.ecb-post .ecb-post-body > p:first-child {
  font-size: 18px;
  line-height: 1.74;
  margin-bottom: 26px;
}

/* Sommaire plus lisible, sans devenir dominant. */
article.ecb-post .ecb-toc {
  padding: 24px 22px;
}
article.ecb-post .ecb-toc-title {
  margin-bottom: 14px;
}
article.ecb-post .ecb-toc a {
  font-size: 13px;
  line-height: 1.38;
  padding: 8px 6px;
}

/* Bloc commerce mieux intégré à l'article. */
article.ecb-post .ecb-products {
  margin-top: 40px;
  padding-top: 52px;
  padding-bottom: 56px;
}
.ecb-products-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
article.ecb-post .ecb-products .ecb-block-title {
  margin-bottom: 10px;
}
.ecb-products-heading > p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245,242,235,.76);
}
article.ecb-post .ecb-product-card {
  box-shadow: 0 16px 34px -24px rgba(0,0,0,.55);
}
article.ecb-post .ecb-product-card img {
  aspect-ratio: 4 / 3;
  padding: 18px 22px 12px;
}
article.ecb-post .ecb-product-card h3 {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.35;
}
article.ecb-post .ecb-product-price {
  font-size: 18px;
  font-weight: 700;
}
.ecb-product-cta {
  transition: color .2s, background .2s;
}
.ecb-product-card:hover .ecb-product-cta {
  color: var(--ecb-bronze);
}

/* Connexes et retour alignés sur la même largeur. */
article.ecb-post .ecb-related {
  max-width: 1120px;
  padding-top: 44px;
  padding-bottom: 18px;
}
.ecb-related-grid--one {
  max-width: 1000px;
}
article.ecb-post .ecb-back {
  max-width: 1000px;
  padding-top: 4px;
  padding-bottom: 36px;
}

@media (max-width: 1280px) {
  .ecb-tools {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ecb-tools .ecb-pills {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
  .ecb-tools .ecb-search {
    width: min(100%, 680px);
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .ecb-post-breadcrumb__inner {
    width: calc(100% - 36px);
    min-height: 42px;
    font-size: 11px;
  }
  .ecb-post-breadcrumb__current {
    display: none;
  }
  article.ecb-post .ecb-post-header {
    min-height: 420px;
    padding-top: 52px;
    padding-bottom: 50px;
  }
  article.ecb-post .ecb-products {
    margin-top: 32px;
  }
  .ecb-products-heading {
    margin-bottom: 26px;
  }
  .ecb-products-heading > p {
    font-size: 14px;
  }
  article.ecb-post .ecb-back {
    padding-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .ecb-tools .ecb-pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}
