/* ==========================================================================
   VUESTREAMTV.PRO - BLOG & ARTICLES STYLES (blog.css)
   Clean, Organized, 100% Mobile Responsive & Bulletproof
   ========================================================================== */

/* --- 1. HEADER ACTIVE LINK --- */
.main-nav a.active,
.main-nav a.is-active {
  color: #60a5fa !important;
  font-weight: 700 !important;
}

/* --- 2. PAGE PRINCIPALE DU BLOG (index.html) --- */
.blog-hero {
  text-align: center;
  max-width: 820px;
  margin: 40px auto 55px auto;
  padding: 0 16px;
}

.blog-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 900;
  color: #0f172a;
  margin: 16px 0;
  line-height: 1.22;
}

.blog-hero p {
  font-size: 1.18rem;
  color: #475569;
  line-height: 1.65;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
  border-color: #2563eb;
}

.card-image-wrapper {
  position: relative;
  height: 230px;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.card-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: #2563eb;
}

.card-excerpt {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.card-link:hover {
  color: #1d4ed8;
  gap: 12px;
}

/* --- 3. PAGES ARTICLES INDIVIDUELS --- */
.article-container {
  max-width: 820px;
  margin: 40px auto 70px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  color: #2563eb;
  transform: translateX(-4px);
}

.article-container h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: #64748b;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 500;
}

.article-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 44px 0 18px 0;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 32px 0 14px 0;
  line-height: 1.35;
}

.article-body ul,
.article-body ol {
  margin-bottom: 26px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: #0f172a;
}

.article-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.article-body a:hover {
  color: #1d4ed8;
}

/* Callout Box */
.article-body .callout {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 22px 26px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}

.article-body .callout p:last-child {
  margin-bottom: 0;
}

/* Tableaux */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 1.02rem;
}

.article-body th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid #cbd5e1;
}

.article-body td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-body tr:nth-child(even) {
  background: #f8fafc;
}

/* Boutons d'Action (CTA) */
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.article-cta-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.article-body code {
  background: #f1f5f9;
  color: #2563eb;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.95em;
  font-weight: 700;
}

/* --- 4. FOOTER OFFICIEL VUESTREAM PRO (5 COLONNES) (.ft9) --- */
.ft9 {
  background: #0b1120 !important;
  color: #94a3b8 !important;
  padding: 68px 0 0 !important;
  width: 100% !important;
  margin: 60px 0 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.ft9 * {
  box-sizing: border-box !important;
}

.ft9-grid {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 32px 52px !important;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  align-items: start !important;
}

.ft9-logo {
  display: block !important;
  margin-bottom: 16px !important;
  text-decoration: none !important;
}

.ft9-logo img {
  height: 62px !important;
  width: auto !important;
  display: block !important;
}

.ft9-sub {
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-style: italic !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

.ft9-h {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.ft9-ul {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ft9-ul li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 9px !important;
  display: block !important;
}

.ft9-ul li::before,
.ft9-ul li::marker {
  display: none !important;
  content: none !important;
}

.ft9-ul a {
  color: #94a3b8 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  display: inline !important;
}

.ft9-ul a:hover {
  color: #38bdf8 !important;
}

.ft9-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  text-align: center !important;
  padding: 26px 24px 30px !important;
}

.ft9-bar p {
  color: #475569 !important;
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  margin: 0 0 5px !important;
}

.ft9-bar p:last-child {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 12px !important;
}

/* --- 5. RESPONSIVE MOBILE --- */
@media (max-width: 960px) {
  .ft9-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ft9-brand {
    grid-column: span 2 !important;
  }
}

@media (max-width: 820px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-image-wrapper {
    height: 200px;
  }
  .article-container {
    padding: 24px 18px;
    margin: 20px 12px 50px 12px;
  }
  .article-body {
    font-size: 1.1rem;
  }
  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .ft9-grid {
    grid-template-columns: 1fr !important;
  }
  .ft9-brand {
    grid-column: span 1 !important;
  }
  .ft9 {
    padding-top: 50px !important;
  }
  .card-content {
    padding: 20px 16px;
  }
  .card-title {
    font-size: 1.25rem;
  }
}
