/* =========================================================
   VEOZY - blog.css
   Page blog (liste + article). Réutilise les variables de main.css.
   ========================================================= */

/* ---------- En-tête de page blog ---------- */
.blog-hero {
  position: relative;
  padding: clamp(130px, 14vw, 170px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, var(--glow-orange-soft) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.blog-hero > .container { position: relative; z-index: 1; }
.blog-hero h1 { margin: 22px 0 18px; }
.blog-hero p { max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Grille d'articles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: clamp(90px, 12vw, 140px);
}
@media (max-width: 940px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  min-height: 240px;
}
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,117,31,0.06) 0%, transparent 45%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-orange);
  box-shadow: var(--shadow-card);
}
.post-card:hover::before { opacity: 1; }

.post-cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--orange-light);
  background: rgba(255,117,31,0.08);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.post-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--white);
}
.post-card p {
  color: var(--grey-2);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 22px;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--grey-3);
  font-weight: 500;
}
.post-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--grey-3); }
.post-card .post-arrow {
  margin-left: auto;
  color: var(--orange);
  transition: transform .2s ease;
}
.post-card:hover .post-arrow { transform: translateX(4px); }

/* ---------- Article ---------- */
.article-wrap {
  padding: clamp(120px, 13vw, 160px) 0 clamp(70px, 9vw, 110px);
}
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article-head { margin-bottom: 44px; }
.article-head .post-cat { margin-bottom: 20px; }
.article-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin: 0 0 20px;
}
.article-head .lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--grey-1);
  font-weight: 500;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.86rem;
  color: var(--grey-3);
  font-weight: 500;
}

/* Corps de l'article : prose lisible */
.article-body {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--grey-1);
}
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--white);
  margin-top: 2.2em;
  padding-top: 0.4em;
}
.article-body h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-top: 1.8em;
}
.article-body p { margin-top: 1.1em; }
.article-body a { color: var(--orange-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--orange); }
.article-body strong { color: var(--white); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-top: 1.1em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-top: 0.55em; }
.article-body li::marker { color: var(--orange); }
.article-body blockquote {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 22px;
  margin: 1.6em 0;
  color: var(--grey-1);
  font-style: italic;
}
.article-body code {
  background: var(--bg-card-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--orange-light);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.96rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--border-soft);
  padding: 11px 14px;
  text-align: left;
}
.article-body th { background: var(--bg-card-2); color: var(--white); font-weight: 700; }

/* Encart CTA fin d'article */
.article-cta {
  max-width: 760px;
  margin: 64px auto 0;
  background: linear-gradient(160deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.article-cta h3 { font-weight: 800; font-size: 1.5rem; margin: 0 0 12px; }
.article-cta p { color: var(--grey-2); font-weight: 500; margin: 0 0 24px; }

/* Lien retour */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-2);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 28px;
  transition: color .2s ease;
}
.back-link:hover { color: var(--orange-light); }

/* État vide (aucun article) */
.blog-empty {
  text-align: center;
  color: var(--grey-2);
  font-weight: 500;
  padding: 60px 0 120px;
}
