/* ============================================================
   DARIX CRM — PAGE BLOG (index)
   Hero éditorial + featured + grille de cards.
   Dépend de tokens, base, components, animations + home.css.
   ============================================================ */


/* === Anti-FOUC RENFORCÉ === */
.blog-hero-title,
.featured-article,
.article-card {
  opacity: 0;
}

html.no-js .blog-hero-title,
html.no-js .featured-article,
html.no-js .article-card {
  opacity: 1;
}

@keyframes ensure-visible-blog {
  to { opacity: 1; }
}

/* Fallback ULTIME : tout devient visible après 2.5s même si GSAP plante */
.blog-hero-title,
.featured-article,
.article-card {
  animation: ensure-visible-blog 0s linear 2.5s forwards;
}


/* ════════════════════════════════════════════════════════════
   HERO BLOG
   ════════════════════════════════════════════════════════════ */

.blog-page { background: var(--color-cream); }

.blog-hero {
  padding: 96px 0 48px;
  text-align: center;
  background: var(--color-cream);
}

.blog-hero .eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-navy-deep);
  margin: 0 auto 18px;
  max-width: 880px;
}

.blog-hero-title em {
  color: var(--color-navy);
  font-weight: 400;
  font-style: italic;
}

.blog-hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ════════════════════════════════════════════════════════════
   FEATURED ARTICLE (à la une)
   ════════════════════════════════════════════════════════════ */

.blog-content {
  padding: 48px 0 96px;
  background: var(--color-cream);
}

.featured-article {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--color-white);
  border-radius: 24px;
  padding: 32px 40px;
  margin-bottom: 48px;
  text-decoration: none;
  color: inherit;
  border: 0.5px solid var(--color-border);
  transition: all 0.3s var(--ease);
}

.featured-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 154, 94, 0.4);
  text-decoration: none;
}

.fa-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 18vw, 200px);
  line-height: 0.9;
  color: var(--color-gold);
  text-align: center;
  font-style: italic;
  letter-spacing: -0.04em;
}

.fa-body { padding: 8px 0; }

.fa-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 12px;
}

.fa-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy-deep);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.fa-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: none;
}

.fa-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
}

.fa-dot { opacity: 0.5; }

.fa-arrow {
  margin-left: auto;
  color: var(--color-gold);
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}

.featured-article:hover .fa-arrow {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .featured-article {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
    gap: 16px;
  }
  .fa-letter { font-size: 100px; }
  .fa-meta { justify-content: center; flex-wrap: wrap; }
}


/* ════════════════════════════════════════════════════════════
   GRILLE ARTICLES
   ════════════════════════════════════════════════════════════ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--color-white);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 0.5px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 154, 94, 0.3);
  text-decoration: none;
}

.ac-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 120px;
  line-height: 0.9;
  color: var(--color-gold);
  text-align: center;
  padding: 32px 0 24px;
  font-style: italic;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-cream-light) 0%, var(--color-cream) 100%);
}

.ac-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ac-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 10px;
}

.ac-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy-deep);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.ac-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
  max-width: none;
}

.ac-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
  border-top: 0.5px solid var(--color-border);
  padding-top: 14px;
}

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   NEWSLETTER
   ════════════════════════════════════════════════════════════ */

.blog-newsletter {
  padding: 96px 0;
  background: var(--color-navy);
  color: var(--color-cream);
  text-align: center;
}

.blog-newsletter .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.blog-newsletter .eyebrow.gold {
  color: var(--color-gold);
}

.blog-newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-cream);
  margin: 12px 0 14px;
}

.blog-newsletter h2 em {
  color: var(--color-gold);
  font-style: italic;
  font-weight: 400;
}

.newsletter-subtitle {
  font-family: var(--font-body);
  color: rgba(244, 239, 230, 0.7);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 14px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 0.5px solid rgba(244, 239, 230, 0.2);
  background: rgba(244, 239, 230, 0.06);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(244, 239, 230, 0.4);
}

.newsletter-form input:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-color: var(--color-gold);
}

.newsletter-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(244, 239, 230, 0.5);
  margin: 0;
  max-width: none;
}

.newsletter-success {
  font-family: var(--font-body);
  color: var(--color-gold);
  font-weight: 600;
  font-size: 15px;
  margin: 16px 0 0;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .blog-newsletter { padding: 64px 0; }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE GLOBAL
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .blog-hero { padding: 72px 0 32px; }
  .blog-content { padding: 32px 0 64px; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 56px 0 24px; }
}
