/* Blog index — DA IKIBI (éditorial, premium, Alsace) */

body.blog-index {
  background: var(--navy);
}

body.blog-index .seo-cta-band {
  background: #0a0f1a;
  border-color: rgba(255, 255, 255, 0.08);
}

body.blog-index .seo-cta-band h2,
body.blog-index .seo-cta-band p {
  color: #f8fafc;
}

/* ---- Hero ---- */
.blog-hero {
  position: relative;
  padding: clamp(100px, 14vw, 140px) 0 clamp(56px, 8vw, 88px);
  background: #0a0f1a;
  overflow: hidden;
}

.blog-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 88%, rgba(255, 79, 125, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 88% 12%, rgba(47, 85, 255, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.blog-hero .breadcrumb {
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.blog-hero .breadcrumb a,
.blog-hero .breadcrumb span {
  color: rgba(248, 250, 252, 0.55);
}

.blog-hero .breadcrumb a:hover {
  color: #fff;
}

.blog-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1rem;
}

.blog-hero-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.blog-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 12ch;
}

.blog-hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.72);
  max-width: 38ch;
}

.blog-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
  padding-top: 0.25rem;
}

.blog-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.blog-hero-stat strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.blog-hero-stat span {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.blog-hero .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.blog-hero-visual {
  position: relative;
}

.blog-hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
}

.blog-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.blog-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 26, 0.92) 100%);
}

.blog-hero-accent {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 42%;
  height: 42%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 79, 125, 0.35);
  background: linear-gradient(135deg, rgba(47, 85, 255, 0.2), rgba(255, 79, 125, 0.12));
  z-index: -1;
}

.blog-hero-badge {
  position: absolute;
  top: 1rem;
  left: -0.75rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0f1a;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

/* ---- Intro & topics ---- */
.blog-index-main {
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 100px);
}

.blog-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.blog-pillar {
  padding: 1.5rem 1.35rem;
  background: var(--navy-light);
  border: 1px solid rgba(51, 65, 85, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-luxury, ease), box-shadow 0.35s ease;
}

.blog-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-pillar-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.blog-pillar h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.blog-pillar p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--grey-400);
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.1);
}

.blog-topics span {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-200);
  background: var(--navy-mid);
  border: 1px solid rgba(51, 65, 85, 0.08);
  border-radius: 999px;
}

.blog-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.blog-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.blog-section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--grey-400);
  max-width: 36ch;
}

/* ---- Cards grid ---- */
body.blog-index .blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
  margin-top: 0;
}

body.blog-index .blog-card {
  grid-column: span 4;
  background: var(--navy-light);
  border: 1px solid rgba(51, 65, 85, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}

body.blog-index .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

body.blog-index .blog-card--featured {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.blog-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0f1a;
}

.blog-card--featured .blog-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 15, 26, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.blog-index .blog-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.blog-index .blog-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

body.blog-index .blog-card--featured h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

body.blog-index .blog-card h2 a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

body.blog-index .blog-card h2 a:hover {
  color: var(--blue);
}

body.blog-index .blog-card > .blog-card-body > p:not(.blog-meta):not(.blog-card-link) {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--grey-400);
  flex: 1;
  margin: 0;
}

body.blog-index .blog-meta {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--grey-600);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.blog-card-link:hover {
  color: var(--gold);
}

.blog-outro {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(47, 85, 255, 0.06), rgba(255, 79, 125, 0.06));
  border: 1px solid rgba(51, 65, 85, 0.1);
  border-radius: var(--radius-lg);
}

.blog-outro p {
  margin: 0;
  font-size: 1rem;
  color: var(--grey-200);
}

.blog-outro a {
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  body.blog-index .blog-card,
  body.blog-index .blog-card--featured {
    grid-column: span 6;
  }

  body.blog-index .blog-card--featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-hero h1 {
    max-width: none;
  }

  .blog-hero-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .blog-hero-badge {
    left: 0.5rem;
  }

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

  body.blog-index .blog-card,
  body.blog-index .blog-card--featured {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .blog-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
