/* =====================================================
   CSS pour la page Articles Heimdal
   Design moderne avec cards et statistiques
   ===================================================== */

/* =====================================================
   EN-TÊTE DE PAGE
   ===================================================== */

.page-header {
  background: linear-gradient(135deg, #fbfdf9, #f5f3ef);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  border: 2px solid var(--sand);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin: 20px 0 30px 0;
}

/* =====================================================
   STATISTIQUES
   ===================================================== */

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 2px solid var(--sand);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: 'Georgia', serif;
}

.stat-label {
  font-size: 0.95rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =====================================================
   SECTIONS DES ÉDITIONS
   ===================================================== */

.edition-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
  border: 2px solid var(--sand);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.heimdal-section {
  border-left: 6px solid #8b4513;
}

.caraktere-section {
  border-left: 6px solid #2c5f2d;
}

/* En-tête de section édition */
.edition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--sand);
}

.edition-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 1.8rem;
  color: #2c2c2c;
}

.icon-book {
  color: var(--accent);
}

.edition-badge {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.9rem;
}

.edition-description {
  font-style: italic;
  color: #666;
  margin: 20px 0 30px 0;
  padding: 20px;
  background: #fafafa;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

/* =====================================================
   SOUS-SECTIONS MAGAZINES
   ===================================================== */

.magazine-subsection {
  margin: 40px 0;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.magazine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ddd;
}

.magazine-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.4rem;
  color: #333;
}

.magazine-icon {
  font-size: 1.6rem;
}

.article-count {
  background: #e0e0e0;
  color: #555;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* =====================================================
   GRILLE D'ARTICLES
   ===================================================== */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* =====================================================
   CARDS ARTICLES
   ===================================================== */

.article-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.15);
  border-color: var(--accent);
}

.article-card:hover::before {
  transform: scaleY(1);
}

.article-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.article-title {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.article-card h5.article-title {
  font-size: 0.9rem;
}

/* Card article mis en avant */
.article-card.featured {
  background: linear-gradient(135deg, #fff9e6, #ffffff);
  border: 2px solid var(--accent);
}

.article-card.featured .article-icon {
  font-size: 2.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.article-note {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
  font-weight: normal;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablettes */
@media (max-width: 968px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .edition-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .magazine-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Smartphones */
@media (max-width: 600px) {
  .page-header {
    padding: 25px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .edition-section {
    padding: 25px;
  }

  .magazine-subsection {
    padding: 20px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .edition-header h3 {
    font-size: 1.4rem;
  }

  .magazine-title {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Très petits écrans */
@media (max-width: 400px) {
  .article-card {
    padding: 15px;
  }

  .edition-badge,
  .article-count {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}
