/* === ARRIÈRE-PLAN GÉNÉRAL === */
body {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
    padding-top: 7rem;

}

/* === CONTAINER PRINCIPAL DU BLOG === */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* === HERO SECTION MODERNE === */
.blog-hero {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(30, 58, 138, 0.2);
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/fille_jeuvideo.jpg") center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 40px;
  max-width: 800px;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-overlay p {
  font-size: 1.3rem;
  margin: 0 auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
}

/* === SECTION INTRO === */
.blog-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.blog-intro h2 {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 15px;
  font-weight: 700;
}

.blog-intro p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.7;
}

/* === GRILLE DES ARTICLES === */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
  margin-bottom: 60px;
}

/* === CARTE DES ARTICLES === */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.15);
}

/* Image de l'article */
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Contenu de la carte */
.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Catégorie badge */
.card-category {
  display: inline-block;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  align-self: flex-start;
}

/* Titre */
.card h2 {
  font-size: 1.4rem;
  margin: 0 0 15px 0;
  color: #1f2937;
  line-height: 1.3;
  font-weight: 700;
}

.card h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.card h2 a:hover {
  color: #1e3a8a;
}

/* Texte descriptif */
.card p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 20px 0;
  line-height: 1.6;
  flex-grow: 1;
}

/* Métadonnées */
.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Lien lire plus */
.read-more {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.read-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.read-more:hover {
  gap: 12px;
}

.read-more:hover::after {
  transform: translateX(4px);
}