/* ==========================================================================
   EOCHE SEO Blog — styles front (neutres : s'adaptent au thème hôte)
   Le module vit dans #content ; ces règles restent volontairement génériques
   pour fonctionner sur n'importe quelle boutique cliente de l'agence.
   ========================================================================== */

/* ---- Liste -------------------------------------------------------------- */
.eoche-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin: .4rem 0 1.6rem;
}

.eoche-blog-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.eoche-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
}

.eoche-blog-card-link { display: block; color: inherit; text-decoration: none; }

.eoche-blog-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.eoche-blog-card-body { padding: 1rem 1.15rem 1.15rem; }

.eoche-blog-date {
  font-size: .8rem;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.eoche-blog-card-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: .35rem 0 .4rem;
  text-transform: none;
  text-wrap: balance;
}

.eoche-blog-chapo { font-size: .92rem; opacity: .8; margin: 0 0 .6rem; }

.eoche-blog-more { font-weight: 600; font-size: .92rem; }

.eoche-blog-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.eoche-blog-empty { padding: 2rem 0; text-align: center; opacity: .7; }

/* ---- Article ------------------------------------------------------------ */
.eoche-blog-article {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.9rem;
}

.eoche-blog-back {
  display: inline-block;
  font-size: .9rem;
  margin-bottom: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eoche-blog-h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 .45rem;
  text-transform: none;
  text-wrap: balance;
}

.eoche-blog-meta { font-size: .88rem; opacity: .65; margin: 0 0 1.1rem; }
.eoche-blog-meta span { margin: 0 .25rem; }

.eoche-blog-article-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 1.2rem;
}

.eoche-blog-article-chapo {
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
  margin: 0 0 1.2rem;
}

.eoche-blog-content { line-height: 1.75; }
.eoche-blog-content h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; text-transform: none; }
.eoche-blog-content h3 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; text-transform: none; }
.eoche-blog-content p { margin: 0 0 .9rem; }
.eoche-blog-content ul, .eoche-blog-content ol { margin: 0 0 .9rem; padding-left: 1.2rem; list-style-position: outside; }
.eoche-blog-content li { margin-bottom: .3rem; }
.eoche-blog-content img { max-width: 100%; height: auto; border-radius: 8px; }
.eoche-blog-content a { text-decoration: underline; text-underline-offset: 2px; }
.eoche-blog-content blockquote {
  border-left: 3px solid rgba(0, 0, 0, .18);
  margin: 1rem 0;
  padding: .3rem 0 .3rem 1rem;
  opacity: .85;
}

/* Encadré appel à l'action inséré par le robot dans les articles.
   Couleurs pilotables par variables (surchargées par le thème hôte). */
.eoche-blog-cta {
  --eoche-cta-bg: #f6f8fc;
  --eoche-cta-btn-bg: #0c2242;
  --eoche-cta-btn-color: #ffffff;
  background: var(--eoche-cta-bg);
  border: 1.5px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  padding: 1.1rem 1.3rem 1.25rem;
  margin: 1.6rem 0;
}

.eoche-blog-cta strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.eoche-blog-cta p { margin: 0; }

.eoche-blog-cta a.eoche-blog-cta-btn {
  display: inline-block;
  margin-top: .7rem;
  padding: .62rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
  background: var(--eoche-cta-btn-bg);
  color: var(--eoche-cta-btn-color) !important;
  transition: transform .15s ease, opacity .15s ease;
}

.eoche-blog-cta a.eoche-blog-cta-btn:hover { transform: translateY(-1px); opacity: .92; }

.eoche-blog-others { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, .1); }
.eoche-blog-others h2 { font-size: 1.1rem; text-transform: none; margin-bottom: .5rem; }
.eoche-blog-others ul { list-style: none; margin: 0; padding: 0; }
.eoche-blog-others li { margin-bottom: .4rem; }
.eoche-blog-others a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width: 767px) {
  .eoche-blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .eoche-blog-article { padding: 1.15rem 1rem 1.4rem; }
  .eoche-blog-h1 { font-size: 1.4rem; }
  .eoche-blog-content h2 { font-size: 1.18rem; }
  .eoche-blog-pagination { flex-direction: column; }
}
