/* ==========================================================================
   NovaTech Mag — Charte Graphique Journalistique Épurée (BGR / BBC Style)
   Fond Blanc, Typographie Presse Sobre, Zéro Effet Néon, Zéro Overhead
   ========================================================================== */

:root {
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-alt: #f1f5f9;
  --header-bg: #0f172a;
  --header-text: #ffffff;
  --nav-sub-bg: #ffffff;
  --nav-sub-border: #e2e8f0;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  
  --brand-red: #c026d3;
  --brand-blue: #0284c7;
  --primary-accent: #0f172a;
  --link-color: #0f172a;
  --link-hover: #2563eb;
  
  --category-tech: #0284c7;
  --category-streaming: #dc2626;
  --category-fintech: #16a34a;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --content-width: 820px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Top Bar --- */
.top-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid #1e293b;
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-logo span.tagline-badge {
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.header-meta {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --- Navigation Catégories --- */
.category-nav {
  background-color: var(--nav-sub-bg);
  border-bottom: 2px solid #0f172a;
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 0;
}

.category-nav-inner a {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #334155;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.category-nav-inner a:hover,
.category-nav-inner a.active {
  color: #0f172a;
  border-bottom: 2px solid #0f172a;
}

/* --- Hero & Featured Layout --- */
.hero-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.lead-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

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

.main-lead-card {
  display: flex;
  flex-direction: column;
}

.lead-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-color: var(--bg-surface-alt);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.lead-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lead-img-wrap:hover img {
  transform: scale(1.02);
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tag-streaming { color: var(--category-streaming); }
.tag-tech { color: var(--category-tech); }
.tag-fintech { color: var(--category-fintech); }

.lead-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #0f172a;
}

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

.lead-excerpt {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar Lead Items */
.lead-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--border);
  padding-left: 25px;
}

@media (max-width: 900px) {
  .lead-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 25px;
  }
}

.side-article-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.side-article-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-color: var(--bg-surface-alt);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.side-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

/* --- Section Titles --- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0f172a;
}

.section-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
}

/* --- Grid Articles --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

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

.standard-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-color: var(--bg-surface-alt);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #0f172a;
}

.card-excerpt {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.55;
  flex: 1;
}

/* --- Article Detail View (Presse Standard) --- */
.article-page {
  padding: 30px 0 60px;
}

.article-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 45px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-body {
  max-width: var(--content-width);
}

.article-header {
  margin-bottom: 24px;
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin: 10px 0 16px;
}

.article-chapo {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.author-info strong {
  color: #0f172a;
}

.featured-article-image {
  margin-bottom: 28px;
}

.featured-article-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px;
}

.featured-article-image figcaption {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

/* Article Typography */
.article-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e293b;
  margin-bottom: 20px;
}

.article-text h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 24px 0 12px;
}

.article-text ul,
.article-text ol {
  margin: 0 0 24px 24px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #1e293b;
}

.article-text li {
  margin-bottom: 8px;
}

/* Callout & Editorial Review Boxes (Sober & Professional) */
.editorial-box {
  background-color: #f8fafc;
  border-left: 4px solid #0f172a;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 4px 4px 0;
}

.editorial-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.editorial-box p {
  margin-bottom: 0 !important;
  font-size: 0.95rem !important;
  color: #334155 !important;
}

.review-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 24px;
  margin: 35px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.review-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.review-score {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.review-features {
  list-style: none !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.review-features li {
  font-size: 0.95rem;
  color: #334155;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cta-button {
  display: inline-block;
  background-color: #0f172a;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.15s ease;
}

.cta-button:hover {
  background-color: #2563eb;
  color: #ffffff !important;
}

/* Comparison Table */
.press-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.92rem;
}

.press-table th,
.press-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.press-table th {
  background-color: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #cbd5e1;
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-block {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 4px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0f172a;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-item a {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  display: block;
}

.sidebar-item a:hover {
  color: #2563eb;
}

.sidebar-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.share-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.share-btn {
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  border: 1px solid var(--border-dark);
  background: #ffffff;
  cursor: pointer;
  color: #0f172a;
  transition: all 0.15s ease;
}

.share-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* --- Footer --- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 50px 0 25px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid #1e293b;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

/* --- Mobile Viewport Refinements --- */
@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .top-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }
  .header-meta {
    font-size: 0.75rem;
  }
  .lead-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .lead-excerpt {
    font-size: 0.95rem;
  }
  .article-header h1 {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .article-chapo {
    font-size: 1.05rem;
    line-height: 1.5;
  }
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .review-score {
    align-self: flex-start;
  }
  .cta-button {
    width: 100%;
    box-sizing: border-box;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Rubrique / Category Hubs --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 20px 0 12px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #94a3b8;
}

.rubrique-header {
  padding-bottom: 24px;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 35px;
}

.rubrique-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 10px;
}

.rubrique-header p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  max-width: 820px;
}
