/* ═══════════════════════════════════════════════════════════════
   WEBSAIT — blog-index.css
   CSS spécifique à la page index du blog (/blog)
   Charger après global.css :
   <link rel="stylesheet" href="/assets/css/global.css">
   <link rel="stylesheet" href="/assets/css/navbar.css">
   <link rel="stylesheet" href="/assets/css/footer.css">
   <link rel="stylesheet" href="/assets/css/blog-index.css">
   ═══════════════════════════════════════════════════════════════ */

/* ── BASE ── */
body {
  font-weight: 300;
}

/* ── HERO BLOG INDEX ── */
.hero {
  min-height: 90vh;
  background: var(--cream-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 68px;
  overflow: hidden;
  position: relative;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem clamp(2rem, 5vw, 5rem);
  position: relative;
  z-index: 2;
}
.hero-left > * { animation: fadeUp 0.7s ease both; }
.hero-left > *:nth-child(1) { animation-delay: 0.1s; }
.hero-left > *:nth-child(2) { animation-delay: 0.2s; }
.hero-left > *:nth-child(3) { animation-delay: 0.3s; }
.hero-left > *:nth-child(4) { animation-delay: 0.35s; }
.hero-left > *:nth-child(5) { animation-delay: 0.4s; }
.hero-left > *:nth-child(6) { animation-delay: 0.5s; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--orange);
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--dark); margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.hero-h1 .italic-orange { font-style: italic; color: var(--orange); }
.hero-divider { width: 48px; height: 1px; background: var(--orange); margin-bottom: 1.5rem; }
.hero-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 440px; line-height: 1.85; margin-bottom: 0.75rem;
}
.hero-sub strong { color: var(--dark); font-weight: 500; }
.hero-sub-2 {
  font-size: 0.9rem; color: var(--muted-light);
  max-width: 420px; line-height: 1.8; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; background: var(--orange); color: #fff;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-decoration: none;
  border-radius: 4px; transition: background 0.25s;
}
.btn-primary:hover { background: var(--orange-light); }
.btn-ghost {
  padding: 0.85rem 2rem; border: 1px solid var(--border);
  color: var(--dark); font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em;
  text-decoration: none; border-radius: 4px; transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ── HERO RIGHT — SVG ── */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 3rem 2rem 1rem;
  position: relative; overflow: hidden;
}
.hero-abstract {
  position: relative; width: 100%; height: 100%;
  min-height: 520px; display: flex; align-items: center; justify-content: center;
}
.hero-abstract svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.hero-badge {
  position: absolute; bottom: 2.5rem; left: 1.5rem;
  background: var(--dark); color: #fff;
  padding: 1rem 1.4rem; border-radius: 8px;
  min-width: 170px; z-index: 10;
}
.hero-badge .badge-num {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 300; color: var(--orange-bg); line-height: 1;
}
.hero-badge .badge-label {
  font-size: 0.7rem; color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em; margin-top: 0.2rem;
}
.hero-bg-decor {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: var(--orange-pale); opacity: 0.3;
  z-index: 0; pointer-events: none;
}

/* ── SECTION CATÉGORIES ── */
.section-categories {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 5rem clamp(2rem, 5vw, 5rem) 6rem;
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 1rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: ''; width: 24px; height: 1px; background: var(--orange);
}
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.15;
  color: var(--dark); margin-bottom: 3.5rem;
  letter-spacing: -0.01em; text-align: center;
}
.section-h2 em { font-style: italic; color: var(--orange); }

/* ── GRID CATÉGORIES ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ── CARD CATÉGORIE ── */
.cat-card {
  display: block; text-decoration: none;
  background: var(--cream-light); border: 1px solid var(--border);
  border-radius: 10px; padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}
.cat-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.cat-card:hover {
  border-color: var(--orange-pale);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(60,45,30,0.09);
}
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon-wrap {
  width: 68px; height: 68px; border-radius: 14px;
  background: var(--orange-pale);
  border: 1px solid rgba(200,88,26,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 1.8rem; transition: background 0.25s;
}
.cat-icon-wrap svg {
  width: 30px; height: 30px;
  stroke: var(--orange); stroke-width: 1.5; fill: none;
}
.cat-body { flex: 1; }
.cat-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
  border: 1px solid rgba(200,88,26,0.2);
  border-radius: 2px; padding: 0.25rem 0.7rem; margin-bottom: 0.9rem;
}
.cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 300; line-height: 1.15;
  color: var(--dark); margin-bottom: 0.8rem; letter-spacing: -0.01em;
}
.cat-title em { font-style: italic; color: var(--orange); }
.cat-desc {
  font-size: 0.9rem; font-weight: 300;
  line-height: 1.78; color: var(--muted); margin-bottom: 1.8rem;
}
.cat-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.cat-cta {
  font-size: 0.82rem; font-weight: 500; color: var(--orange);
  display: flex; align-items: center; gap: 0.45rem; transition: gap 0.2s;
}
.cat-cta svg { flex-shrink: 0; transition: transform 0.2s; }
.cat-card:hover .cat-cta { gap: 0.75rem; }
.cat-card:hover .cat-cta svg { transform: translateX(3px); }
.cat-count {
  font-size: 0.73rem; font-weight: 300;
  color: var(--muted-light); letter-spacing: 0.04em;
}

/* ── SKELETON LOADING ── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.teaser-skeleton {
  background: linear-gradient(90deg, var(--cream) 25%, var(--cream-light) 50%, var(--cream) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--border);
  border-radius: 8px; padding: 1.8rem; height: 180px;
}
.teaser-card.teaser-soon { opacity: 0.6; pointer-events: none; cursor: default; }
.teaser-card.teaser-error { display: flex; align-items: center; justify-content: center; }

/* ── SECTION DERNIERS ARTICLES ── */
.section-latest {
  background: var(--cream-light);
  border-top: 1px solid var(--border);
  padding: 4.5rem clamp(2rem, 5vw, 5rem) 5rem;
}
.latest-inner { max-width: 1200px; margin: 0 auto; }
.latest-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 2.5rem;
  flex-wrap: wrap; gap: 1rem;
}
.latest-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 300; color: var(--dark); letter-spacing: -0.01em;
}
.latest-all {
  font-size: 0.82rem; font-weight: 400; color: var(--orange);
  text-decoration: none; display: flex; align-items: center;
  gap: 0.4rem; letter-spacing: 0.04em; transition: gap 0.2s;
}
.latest-all:hover { gap: 0.7rem; }
.latest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}

/* ── TEASER CARDS ── */
.teaser-card {
  display: block; text-decoration: none;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.8rem;
  transition: border-color 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.teaser-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.teaser-card:hover { border-color: var(--orange-pale); transform: translateY(-3px); }
.teaser-card:hover::before { transform: scaleX(1); }
.teaser-cat {
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.7rem; display: block;
}
.teaser-title {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 300; line-height: 1.25; color: var(--dark);
  margin-bottom: 0.7rem; letter-spacing: -0.01em;
}
.teaser-excerpt {
  font-size: 0.83rem; font-weight: 300; color: var(--muted);
  line-height: 1.68; margin-bottom: 1.2rem;
}
.teaser-meta {
  font-size: 0.72rem; font-weight: 300; color: var(--muted-light);
  display: flex; align-items: center; gap: 0.45rem;
}
.teaser-meta .dot {
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--muted-light); display: inline-block;
}

/* ── CTA SECTION ── */
.section-cta {
  background: var(--dark);
  padding: 5rem clamp(2rem, 5vw, 5rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-decor {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  border: 1px solid rgba(200,88,26,0.12); pointer-events: none;
}
.cta-decor-2 {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px; border-radius: 50%;
  border: 1px solid rgba(200,88,26,0.06); pointer-events: none;
}
.cta-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange-bg); margin-bottom: 1.5rem; position: relative; z-index: 2;
}
.cta-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 300; color: #fff; line-height: 1.15;
  margin-bottom: 1.2rem; position: relative; z-index: 2;
}
.cta-h2 .italic { font-style: italic; color: var(--orange-bg); }
.cta-sub {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  max-width: 500px; margin: 0 auto 2.5rem;
  line-height: 1.8; position: relative; z-index: 2;
}
.cta-actions {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; position: relative; z-index: 2;
}
.btn-cta-main {
  padding: 1rem 2.5rem; background: var(--orange); color: #fff;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-decoration: none;
  border-radius: 4px; transition: background 0.25s;
}
.btn-cta-main:hover { background: var(--orange-light); }
.btn-cta-ghost {
  padding: 1rem 2.5rem; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75); font-family: var(--font-body);
  font-size: 0.85rem; letter-spacing: 0.08em;
  text-decoration: none; border-radius: 4px; transition: all 0.25s;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 68px; }
  .hero-right { display: none; }
  .hero-left { padding: 4rem 2rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section-categories { padding: 3rem 1.5rem 4rem; }
  .section-latest { padding: 3rem 1.5rem 4rem; }
  .section-cta { padding: 4rem 1.5rem; }
}
