/* ╔══════════════════════════════════════════════════════════════╗
   ║  L'AUBERGE DU TRÔNE — Styles du Blog                       ║
   ║  Fichier : css/blog.css                                     ║
   ║                                                              ║
   ║  Ce fichier gère :                                           ║
   ║  - La page listing (blog/index.html)                         ║
   ║  - Les pages d'articles individuels (blog/xxx.html)          ║
   ║  - Les filtres par catégorie                                 ║
   ║  - Le rendu du contenu des articles                          ║
   ╚══════════════════════════════════════════════════════════════╝ */


/* ═══════════════════════════════════════════
   LISTING DES ARTICLES (blog/index.html)
   ═══════════════════════════════════════════ */

/* Grille d'articles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* Carte d'article dans le listing */
.blog-card {
  background: linear-gradient(180deg, rgba(22,18,10,0.95), rgba(10,8,6,0.98));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(197,165,90,0.1);
  border-color: rgba(197,165,90,0.4);
}

/* Image de couverture de l'article 
   Pour ajouter une vraie image : mettre un <img> dans .blog-card-image 
   Sans image, le placeholder emoji s'affiche */
.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, #1a1510, #0f0c08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid rgba(197,165,90,0.1);
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

/* Corps de la carte */
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Catégorie (tag) */
.blog-category {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C5A55A;
  border: 1px solid rgba(197,165,90,0.3);
  padding: 4px 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}

/* Titre de l'article dans le listing */
.blog-card-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: #e8dcc8;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}
.blog-card:hover .blog-card-title {
  color: #C5A55A;
}

/* Extrait/résumé */
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #9a9080;
  margin-bottom: 20px;
  flex: 1;
}

/* Métadonnées (date, temps de lecture) */
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6a6050;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  padding-top: 16px;
  border-top: 1px solid rgba(197,165,90,0.08);
}

/* Lien "Lire la suite" */
.blog-card-link {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #C5A55A;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.blog-card-link:hover {
  color: #f0d78c;
}


/* ═══════════════════════════════════════════
   FILTRES PAR CATÉGORIE
   ═══════════════════════════════════════════ */

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.blog-filter-btn {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a8070;
  background: transparent;
  border: 1px solid rgba(197,165,90,0.15);
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s;
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
  color: #C5A55A;
  border-color: rgba(197,165,90,0.5);
  background: rgba(197,165,90,0.05);
}


/* ═══════════════════════════════════════════
   PAGE ARTICLE INDIVIDUEL
   ═══════════════════════════════════════════ */

/* Container de l'article */
.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 140px 24px 80px; /* 140px en haut pour la nav fixe */
}

/* En-tête de l'article */
.article-header {
  text-align: center;
  margin-bottom: 48px;
}

.article-header .blog-category {
  margin-bottom: 20px;
}

.article-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #8a8070;
  letter-spacing: 1px;
}

/* Image de couverture de l'article */
.article-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border: 1px solid rgba(197,165,90,0.15);
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════
   CONTENU DE L'ARTICLE (PROSE)
   Styles pour le HTML à l'intérieur de .article-content
   ═══════════════════════════════════════════ */

.article-content {
  font-size: 18px;
  line-height: 1.9;
  color: #c4b899;
}

/* Paragraphes */
.article-content p {
  margin-bottom: 24px;
}

/* Titres dans l'article */
.article-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: #e8dcc8;
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(197,165,90,0.1);
}

.article-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: #C5A55A;
  margin: 36px 0 16px;
}

/* Listes dans l'article */
.article-content ul,
.article-content ol {
  margin: 0 0 24px 24px;
  color: #b0a890;
}
.article-content li {
  margin-bottom: 8px;
}

/* Liens dans l'article */
.article-content a {
  color: #C5A55A;
  border-bottom: 1px solid rgba(197,165,90,0.3);
  transition: all 0.3s;
}
.article-content a:hover {
  color: #f0d78c;
  border-bottom-color: #f0d78c;
}

/* Citations / blockquote */
.article-content blockquote {
  border-left: 3px solid #C5A55A;
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(197,165,90,0.03);
  font-style: italic;
  color: #c4b899;
}

/* Texte en gras et italique */
.article-content strong {
  color: #e8dcc8;
  font-weight: 600;
}
.article-content em {
  color: #c4b899;
}

/* Images dans l'article */
.article-content img {
  width: 100%;
  border: 1px solid rgba(197,165,90,0.15);
  margin: 32px 0;
}

/* Séparateur dans l'article */
.article-content hr {
  border: none;
  border-top: 1px solid rgba(197,165,90,0.15);
  margin: 40px 0;
}


/* ═══════════════════════════════════════════
   BAS DE L'ARTICLE (Auteur + navigation)
   ═══════════════════════════════════════════ */

.article-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(197,165,90,0.15);
}

/* Encart auteur */
.article-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(16,13,8,0.6);
  border: 1px solid rgba(197,165,90,0.1);
  margin-bottom: 32px;
}
.article-author-box .author-avatar {
  font-size: 36px;
}
.article-author-box .author-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: #C5A55A;
  margin-bottom: 4px;
}
.article-author-box .author-desc {
  font-size: 14px;
  color: #8a8070;
  line-height: 1.5;
}

/* Navigation article précédent / suivant */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.article-nav a {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #a09880;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  padding: 12px 0;
}
.article-nav a:hover {
  color: #C5A55A;
}

/* Bouton retour au blog */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #8a8070;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 0.3s;
}
.back-to-blog:hover {
  color: #C5A55A;
}


/* ═══════════════════════════════════════════
   RESPONSIVE BLOG
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .article-container {
    padding: 120px 16px 60px;
  }
  .article-content {
    font-size: 16px;
  }
  .article-author-box {
    flex-direction: column;
    text-align: center;
  }
  .article-nav {
    flex-direction: column;
  }
}
