/* CSS commun pour tous les articles du blog - blog-article.css */

/* Variables CSS communes */
:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #0ea5e9;
  --accent: #06b6d4;
  --dark: #0f172a;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Reset global */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
  background: var(--white);
  color: var(--dark);
  line-height: 1.7; 
  overflow-x: hidden;
}

/* Header fixe commun */
header {
  background: rgba(30, 64, 175, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}

.logo img {
  height: 85px;
  margin-right: 10px;
  border-radius: 8px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Hero section commune */
.article-hero {
  color: white;
  text-align: center;
  padding: 8rem 2rem 4rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 2rem;
}

/* Contenu principal */
.article-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.article-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  font-weight: 600;
}

.article-content h3 {
  color: var(--dark);
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.article-content h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 1.1rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0;
  margin-left: 2rem;
  color: var(--gray);
}

.article-content li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* Boîtes de contenu communes */
.highlight-box {
  background: var(--light-gray);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.warning-box {
  background: #fef3c7;
  border-left: 4px solid var(--warning);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.danger-box {
  background: #fef2f2;
  border-left: 4px solid var(--danger);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.success-box {
  background: #f0fdf4;
  border-left: 4px solid var(--success);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.scenario-box {
  background: #fefce8;
  border-left: 4px solid var(--warning);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.impact-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.solution-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.steps-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.steps-box h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.steps-box ol, .steps-box ul {
  margin-left: 1.5rem;
}

.steps-box li {
  margin: 0.5rem 0;
}

.tools-needed {
  background: #fef9e7;
  border: 1px solid #fed7aa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Check-lists */
.checklist {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.checklist h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.checklist ul {
  list-style: none;
  margin-left: 0;
}

.checklist li {
  margin: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Listes numérotées (étapes, solutions, etc.) */
.steps-list {
  counter-reset: step-counter;
}

.tips-list {
  counter-reset: tip-counter;
}

.solutions-list {
  counter-reset: solution-counter;
}

.errors-list {
  counter-reset: error-counter;
}

.step, .tip-item, .solution-item, .error-item {
  counter-increment: step-counter;
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.tip-item {
  counter-increment: tip-counter;
  border-left: 5px solid var(--success);
}

.solution-item {
  counter-increment: solution-counter;
  border-left: 5px solid var(--primary);
}

.error-item {
  counter-increment: error-counter;
  border-left: 5px solid var(--danger);
}

.step::before, .tip-item::before, .solution-item::before, .error-item::before {
  content: counter(step-counter);
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  float: left;
  margin-top: 0.2rem;
}

.tip-item::before {
  content: counter(tip-counter);
  background: var(--success);
}

.solution-item::before {
  content: counter(solution-counter);
  background: var(--primary);
}

.error-item::before {
  content: counter(error-counter);
  background: var(--danger);
}

.step h3, .tip-title, .solution-title, .error-title {
  margin-left: 60px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.step h3 {
  color: var(--primary);
}

.tip-title {
  color: var(--success);
  font-size: 1.4rem;
}

.solution-title {
  color: var(--primary);
  font-size: 1.4rem;
}

.error-title {
  color: var(--danger);
  font-size: 1.4rem;
}

.step p, .step ul, .tip-content, .solution-content, .error-content {
  margin-left: 60px;
  clear: left;
}

/* Badges de difficulté */
.difficulty-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.easy { 
  background: #dcfce7; 
  color: #166534; 
}

.medium { 
  background: #fef3c7; 
  color: #92400e; 
}

.hard { 
  background: #fecaca; 
  color: #b91c1c; 
}

/* Tableaux */
.specs-table, .comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.specs-table th, .comparison-table th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
}

.comparison-table th {
  background: var(--gradient);
  text-align: center;
}

.specs-table td, .comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.specs-table tr:last-child td, .comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td {
  text-align: center;
}

.comparison-table .feature {
  text-align: left;
  font-weight: 600;
}

.pro { color: var(--success); }
.con { color: var(--danger); }
.neutral { color: var(--warning); }

/* Grilles */
.stats-grid, .usage-grid, .backup-comparison, .symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card, .usage-card, .backup-method, .symptom-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.usage-card h4, .backup-method h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.symptom-card {
  border-left: 5px solid var(--danger);
  text-align: center;
}

.symptom-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.symptom-title {
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--danger);
  display: block;
}

.stat-label {
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Prix et badges */
.price-range {
  background: var(--light-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
}

/* Articles connexes */
.related-articles {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 20px;
  margin: 4rem 0;
}

.related-articles h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.related-card h4 {
  margin-bottom: 0.5rem;
}

/* Retour au blog */
.back-to-blog {
  text-align: center;
  margin: 3rem 0;
}

.back-to-blog a {
  background: var(--gradient);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-blog a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Code blocks */
.code-block {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  margin: 1rem 0;
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 64, 175, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
  }
  
  nav ul.show {
    display: flex;
  }
  
  .article-hero {
    padding: 6rem 1rem 3rem;
  }
  
  .article-content {
    padding: 0 1rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stats-grid, .usage-grid, .backup-comparison, .symptoms-grid {
    grid-template-columns: 1fr;
  }
  
  .specs-table, .comparison-table {
    font-size: 0.9rem;
  }
  
  .step::before, .tip-item::before, .solution-item::before, .error-item::before {
    position: static;
    float: none;
    margin-bottom: 1rem;
  }
  
  .step h3, .step p, .step ul,
  .tip-title, .tip-content,
  .solution-title, .solution-content,
  .error-title, .error-content {
    margin-left: 0;
  }
}