/*
 * Styles de mise en page spécifiques aux articles de blog
 * Camille Wehrling - Diététicienne Nutritionniste
 */

/* FIX: Compensation du header fixed pour ne pas cacher le titre */
body {
  padding-top: 90px;
}

@media (max-width: 767px) {
  body {
    padding-top: 80px;
  }
}

/* Structure générale de l'article */
.blog-article {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f7fafc;
  color: #2d3748;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Section hero de l'article */
.blog-hero {
  background: white;
  padding: 3rem 0;
}

.blog-hero .container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Breadcrumb navigation */
.blog-breadcrumb {
  margin-bottom: 1.5rem;
}

.blog-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
}

.blog-breadcrumb a {
  transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
  color: #e94e8a;
}

/* En-tête de l'article */
.blog-header {
  margin-bottom: 2rem;
}

.blog-meta {
  font-size: 0.875rem;
  color: #e94e8a;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #2d3748;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .blog-title {
    font-size: 3rem;
  }
}

.blog-excerpt {
  font-size: 1.25rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Image principale de l'article */
.blog-featured-image {
  margin-bottom: 3rem;
}

.blog-featured-image img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Section de contenu principal */
.blog-content-section {
  background-color: #f7fafc;
  padding: 4rem 0;
}

.blog-content-wrapper {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

@media (min-width: 768px) {
  .blog-content-wrapper {
    padding: 3rem;
  }
}

/* Grille d'images dans le contenu */
.blog-image-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .blog-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-image-grid img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Section de suggestions d'articles */
.blog-suggestions {
  background: white;
  padding: 4rem 0;
}

.blog-suggestions h2 {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #2d3748;
}

.blog-suggestions-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-suggestions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA au centre */
.blog-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive design */
@media (max-width: 767px) {
  .blog-title {
    font-size: 2rem;
  }
  
  .blog-excerpt {
    font-size: 1.125rem;
  }
  
  .blog-content-wrapper {
    margin: 0 1rem;
  }
}