/* ══════════════════════════════════════════════
   BLOG MY BUSINESS LIFE — styles pages articles
   Complète styles.css (classes page-hero / article-*)
   ══════════════════════════════════════════════ */

.page-main {
  display: block;
}

/* ─── HERO ARTICLE (fond navy, texte clair) ─── */
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 26px auto 0;
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 64px);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 720px 460px at 88% 8%, rgba(28, 143, 163, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 520px 380px at 4% 96%, rgba(255, 106, 46, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--ink) 90%);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-hero-copy > p,
.article-intro {
  margin: 0 0 26px;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--muted-soft);
  max-width: 56ch;
}

.page-hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(4, 17, 26, 0.45);
  border: 1px solid rgba(247, 249, 252, 0.12);
  background: var(--ink);
}

.page-hero-media img,
.page-hero-media svg {
  display: block;
  width: 100%;
  height: auto;
}

.tilt-card {
  transition: transform 600ms var(--ease);
}

.tilt-card:hover {
  transform: perspective(900px) rotateX(1.6deg) rotateY(-2.2deg) translateY(-4px);
}

/* ─── CORPS D'ARTICLE (fond clair, texte sombre) ─── */
.article-section {
  width: min(var(--max), calc(100% - 40px));
  margin: clamp(40px, 6vw, 72px) auto;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.article-body {
  color: var(--soft-text);
  font-size: 1.02rem;
  line-height: 1.78;
}

.article-body h2 {
  margin: 2.1em 0 0.55em;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-body h2:first-of-type {
  margin-top: 0.4em;
}

.article-body p {
  margin: 0 0 1.15em;
}

.article-body ul {
  margin: 0 0 1.3em;
  padding-left: 1.15em;
  display: grid;
  gap: 9px;
}

.article-body li::marker {
  color: var(--teal);
}

.article-body a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(28, 143, 163, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--teal);
}

.article-body strong {
  color: var(--ink);
}

.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(28, 143, 163, 0.1);
  border: 1px solid rgba(28, 143, 163, 0.25);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Encadré latéral */
.article-aside {
  position: sticky;
  top: 110px;
  padding: 26px 24px 28px;
  border-radius: 16px;
  background: linear-gradient(165deg, var(--navy), var(--ink));
  color: var(--white);
  box-shadow: 0 24px 60px rgba(4, 17, 26, 0.3);
}

.article-aside strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.article-aside p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-soft);
}

.article-aside .button {
  width: 100%;
  justify-content: center;
}

/* ─── INDEX DU BLOG ─── */
.blog-index {
  width: min(var(--max), calc(100% - 40px));
  margin: clamp(44px, 6vw, 80px) auto;
}

.blog-index .section-heading h2 {
  color: var(--ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dark-line);
  box-shadow: 0 14px 44px rgba(4, 17, 26, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(4, 17, 26, 0.16);
}

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

.blog-card-content {
  padding: 22px 22px 26px;
  display: grid;
  gap: 9px;
}

.blog-card-content small {
  color: var(--teal);
  font-weight: 850;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.blog-card-content h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.blog-card-content p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--soft-text-muted);
}

/* ─── FOOTER 4 COLONNES (pages blog) ─── */
.site-footer .footer-intro {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin-bottom: 26px;
}

.site-footer .footer-intro p {
  margin: 0;
  color: var(--soft-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--dark-line);
}

.site-footer .footer-column {
  display: grid;
  gap: 9px;
  align-content: start;
  font-size: 0.9rem;
}

.site-footer .footer-column strong {
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 4px;
}

.site-footer .footer-column a {
  color: var(--soft-text-muted);
  font-weight: 650;
  transition: color 0.2s;
}

.site-footer .footer-column a:hover {
  color: var(--teal);
}

/* Le footer blog est vertical, pas en flex-row */
footer.site-footer {
  display: block;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
}

.site-footer .footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--soft-text-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 920px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
