/* ====== BLOG SOLARGLOBE — PREMIUM MAGAZINE ====== */
/* Design system strict : gold #C39847, glassmorphism, Montserrat */

/* --------------------------------------
   BLOG COMPACT — espacements réduits
   -------------------------------------- */
body.sg-blog .sg-section-editorial {
  padding-top: 64px;
  padding-bottom: 24px;
}
@media (min-width: 768px) {
  body.sg-blog .sg-section-editorial {
    padding-top: 80px;
    padding-bottom: 28px;
  }
}

body.sg-blog .sg-divider {
  margin: 24px auto;
}

/* --------------------------------------
   HERO BLOG — identique FAQ (image + overlay + halos + grain)
   -------------------------------------- */
.sg-hero-blog {
  position: relative;
  min-height: 42vh;
  margin-top: -72px;
  padding-top: 88px;
  padding-bottom: 40px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .sg-hero-blog {
    padding-top: 100px;
    padding-bottom: 48px;
  }
}

.sg-hero-blog .sg-hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sg-hero-blog .sg-hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-hero-blog .sg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.85) 50%, #000 100%);
  z-index: 1;
}

.sg-hero-blog::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(195, 152, 71, 0.24) 0%, rgba(195, 152, 71, 0.14) 22%, rgba(195, 152, 71, 0.06) 40%, transparent 72%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 2;
}

.sg-hero-blog::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

.sg-hero-blog .sg-hero-content {
  position: relative;
  z-index: 4;
}

.sg-hero-blog .sg-hero-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.sg-hero-blog .sg-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

.sg-hero-blog .sg-hero-kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C39847;
  margin-bottom: 16px;
}

.sg-hero-blog .sg-hero-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  color: #fff;
}

.sg-hero-blog .sg-hero-title .gold {
  color: #C39847;
}

.sg-hero-blog .sg-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
  line-height: 1.5;
}

.sg-hero-blog .sg-hero-badges span {
  padding: 6px 14px;
  border: 1px solid rgba(195, 152, 71, 0.4);
  border-radius: 999px;
  background: rgba(195, 152, 71, 0.08);
}

.sg-hero-blog .sg-hero-cta {
  margin-top: 20px;
}

/* --------------------------------------
   FEATURED ARTICLE — signature ultra impact
   -------------------------------------- */
.sg-blog-featured {
  background: linear-gradient(180deg, rgba(20, 20, 21, 0.92) 0%, rgba(12, 12, 14, 0.96) 100%);
  border: 1px solid rgba(195, 152, 71, 0.35);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(195, 152, 71, 0.1);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

@media (min-width: 1024px) {
  .sg-blog-featured {
    max-height: 420px;
  }
}

.sg-blog-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(195, 152, 71, 0.25), 0 0 80px rgba(195, 152, 71, 0.06);
}

.sg-blog-featured-img {
  overflow: hidden;
  position: relative;
  min-height: 180px;
}

@media (min-width: 1024px) {
  .sg-blog-featured-img {
    height: 420px;
    max-height: 420px;
  }
}

.sg-blog-featured-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
  pointer-events: none;
}

.sg-blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .sg-blog-featured-img img {
    max-height: 420px;
  }
}

.sg-blog-featured:hover .sg-blog-featured-img img {
  transform: scale(1.06);
}

.sg-blog-featured-text {
  max-width: 480px;
}

.sg-blog-featured-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sg-blog-featured-meta {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
}

.sg-blog-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: transparent;
  color: #C39847;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(195, 152, 71, 0.4);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-blog-featured:hover .sg-blog-featured-btn {
  background: rgba(195, 152, 71, 0.12);
  border-color: rgba(195, 152, 71, 0.55);
}

/* --------------------------------------
   CHIPS FILTRES — premium glass + or
   -------------------------------------- */
.sg-blog-chip {
  padding: 10px 20px;
  border: 1px solid rgba(195, 152, 71, 0.4);
  border-radius: 999px;
  background: rgba(20, 20, 21, 0.6);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-blog-chip:hover {
  background: rgba(195, 152, 71, 0.12);
  border-color: rgba(195, 152, 71, 0.6);
  color: #fff;
}

.sg-blog-chip.active {
  background: #C39847;
  border-color: #C39847;
  color: #0B0B0B;
}

/* --------------------------------------
   SEARCH PREMIUM — focus glow gold
   -------------------------------------- */
.sg-blog-search {
  background: rgba(15, 15, 17, 0.9);
  border: 1px solid rgba(195, 152, 71, 0.28);
  border-radius: 14px;
  padding: 14px 20px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.sg-blog-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sg-blog-search:focus {
  outline: none;
  border-color: #C39847;
  box-shadow: 0 0 0 4px rgba(195, 152, 71, 0.2);
}

/* --------------------------------------
   CARD ARTICLE — hiérarchie visuelle
   -------------------------------------- */
.sg-blog-card {
  background: linear-gradient(180deg, #17171b 0%, #141418 100%);
  border: 1px solid rgba(195, 152, 71, 0.22);
  border-radius: 20px;
  overflow: hidden;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s ease, border-color 0.4s ease;
}

.sg-blog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(195, 152, 71, 0.2);
  border-color: rgba(195, 152, 71, 0.4);
}

.sg-blog-card.sg-blog-card-lead {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .sg-blog-card.sg-blog-card-lead {
    grid-column: span 2;
  }
}

.sg-blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.sg-blog-card-img-tall {
  aspect-ratio: 4/3;
}

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

.sg-blog-card:hover .sg-blog-card-img img {
  transform: scale(1.05);
}

.sg-blog-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  font-size: 0.9375rem;
}
@media (min-width: 768px) {
  .sg-blog-card.sg-blog-card-lead .sg-blog-card-title {
    font-size: 1rem;
  }
}

.sg-blog-card-micro {
  font-size: 0.75rem;
  color: rgba(195, 152, 71, 0.9);
  transition: color 0.25s ease;
}

.sg-blog-card-micro:hover {
  color: #C39847;
}

.sg-blog-card-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #C39847;
  border: 1px solid rgba(195, 152, 71, 0.5);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(195, 152, 71, 0.08);
}

/* --------------------------------------
   SECTION ESSENTIEL — 3 blocs guide
   -------------------------------------- */
.sg-blog-essentiel-card {
  background: rgba(20, 20, 21, 0.85);
  border: 1px solid rgba(195, 152, 71, 0.25);
  border-radius: 18px;
  padding: 16px 14px;
  height: auto;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-blog-essentiel-card:hover {
  border-color: rgba(195, 152, 71, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(195, 152, 71, 0.15);
  transform: translateY(-4px);
}

.sg-blog-essentiel-icon {
  width: 36px;
  height: 36px;
  color: #C39847;
  margin-bottom: 12px;
}

/* --------------------------------------
   SECTION EXPERTISE — 3 colonnes
   -------------------------------------- */
.sg-blog-expertise-card {
  background: rgba(20, 20, 21, 0.9);
  border: 1px solid rgba(195, 152, 71, 0.25);
  border-radius: 16px;
  padding: 16px 14px;
  height: auto;
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-blog-expertise-card:hover {
  border-color: rgba(195, 152, 71, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sg-blog-expertise-icon {
  width: 38px;
  height: 38px;
  color: #C39847;
  margin-bottom: 10px;
}

/* --------------------------------------
   CTA CONVERSION — premium upgrade
   -------------------------------------- */
.sg-blog-cta {
  background: linear-gradient(180deg, #080808 0%, #000 100%);
  position: relative;
  overflow: hidden;
}

.sg-blog-cta::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(195, 152, 71, 0.12) 0%, rgba(195, 152, 71, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.sg-blog-cta-btns {
  position: relative;
}

.sg-blog-cta-btns .sg-btn-primary {
  box-shadow: 0 0 30px rgba(195, 152, 71, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sg-blog-cta-btns .sg-btn-primary:hover {
  box-shadow: 0 0 40px rgba(195, 152, 71, 0.35), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.sg-blog-cta-proof {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

/* --------------------------------------
   PS-REVEAL — animations ciné premium
   -------------------------------------- */
.ps-reveal {
  opacity: 0;
  transform: translateY(48px);
  will-change: opacity, transform;
  transition: opacity 2.8s cubic-bezier(0.16, 1, 0.3, 1), transform 2.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ps-reveal.ps-visible {
  opacity: 1;
  transform: translateY(0);
}

.ps-reveal-delay-1 { transition-delay: 0.08s; }
.ps-reveal-delay-2 { transition-delay: 0.16s; }
.ps-reveal-delay-3 { transition-delay: 0.24s; }
.ps-reveal-delay-4 { transition-delay: 0.32s; }
.ps-reveal-delay-5 { transition-delay: 0.4s; }

/* Séparateurs gold subtils */
.sg-blog-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(195, 152, 71, 0.25) 20%, rgba(195, 152, 71, 0.4) 50%, rgba(195, 152, 71, 0.25) 80%, transparent 100%);
  margin: 56px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .ps-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
