/* ============================================================
   MISE EN PAGE PAGES & POSTS
   ============================================================ */

/* Breadcrumb */
.breadcrumb-nav {
  background: rgba(255,255,255,0.1);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--adn-p1);
}

.breadcrumb-item.active {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

.page-hero {
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-excerpt {
  margin-top: 1.5rem;
}

.hero-excerpt .lead {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Hero centré */
.page-hero-centered {
  text-align: center;
}

.page-hero-centered .hero-image {
  margin-bottom: 2rem;
}

.page-hero-centered .hero-image img {
  max-height: 400px;
  object-fit: cover;
}

/* Hero à gauche */
.page-hero-left {
  padding: 3rem 0;
}

.page-hero-left .hero-image img {
  max-height: 400px;
  object-fit: cover;
}

/* Hero avec overlay */
.page-hero-overlay {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.page-hero-overlay .hero-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero-overlay .hero-excerpt {
  color: rgba(255,255,255,0.9);
}

/* Hero minimal */
.page-hero-minimal {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================
   MÉTADONNÉES POSTS
   ============================================================ */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--adn-p1);
  font-size: 1rem;
}

.meta-label {
  opacity: 0.8;
}

.meta-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.meta-value a:hover {
  color: var(--adn-p1);
}

/* ============================================================
   ÉTIQUETTES POSTS
   ============================================================ */

.post-tags {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.tags-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tags-title i {
  color: var(--adn-p1);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: var(--adn-p1);
  color: white;
  transform: translateY(-2px);
}

.tag-link i {
  font-size: 0.75rem;
}

/* ============================================================
   COMMENTAIRES
   ============================================================ */

.comments-section {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.comments-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comments-title i {
  color: var(--adn-p1);
}

/* Style moderne des commentaires */
.comments-modern .comment-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border-left: 4px solid var(--adn-p1);
}

.comment-content {
  display: flex;
  gap: 1rem;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
}

.comment-body {
  flex: 1;
}

.comment-header {
  margin-bottom: 1rem;
}

.comment-author {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author .badge {
  font-size: 0.7rem;
}

.comment-date {
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-text {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.comment-text p {
  margin-bottom: 0.5rem;
}

.comment-actions {
  margin-top: 1rem;
}

/* Formulaire de commentaire */
.comment-form {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.comment-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-form h3 i {
  color: var(--adn-p1);
}

.comment-form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.comment-form .form-control {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: inherit;
}

.comment-form .form-control:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--adn-p1);
  box-shadow: 0 0 0 0.2rem rgba(var(--adn-p1-rgb), 0.25);
}

.comment-form .btn {
  margin-top: 1rem;
}

/* Réponses aux commentaires */
.comment-item .children {
  margin-top: 1.5rem;
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255,255,255,0.1);
}

/* ============================================================
   CONTENU DANS CONTAINER
   ============================================================ */

.entry-content {
  /* Le contenu est maintenant dans un container Bootstrap */
}

.entry-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h2 {
  font-size: 2rem;
  font-weight: 600;
}

.entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.entry-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--adn-p1);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.entry-content .wp-caption {
  max-width: 100%;
  margin: 1.5rem 0;
}

.entry-content .wp-caption-text {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .page-hero-left .row {
    text-align: center;
  }
  
  .page-hero-left .hero-image {
    margin-top: 2rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .comment-content {
    flex-direction: column;
  }
  
  .comment-avatar {
    align-self: flex-start;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .page-hero {
    padding: 2rem 0;
  }
  
  .page-hero-overlay {
    min-height: 50vh;
  }
  
  .post-meta {
    padding: 0.75rem;
  }
  
  .meta-item {
    font-size: 0.85rem;
  }
  
  .comments-section {
    padding: 2rem 0;
  }
  
  .comment-item {
    padding: 1rem;
  }
  
  .comment-form {
    padding: 1.5rem;
  }
  
  .comment-item .children {
    margin-left: 1rem;
  }
  
  /* Styles responsive pour le contenu */
  .entry-content p {
    font-size: 1rem;
  }
  
  .entry-content h2 {
    font-size: 1.5rem;
  }
  
  .entry-content h3 {
    font-size: 1.25rem;
  }
  
  .entry-content h4 {
    font-size: 1.1rem;
  }
  
  .entry-content ul,
  .entry-content ol {
    padding-left: 1.5rem;
  }
  
  .entry-content blockquote {
    padding-left: 1rem;
    font-size: 1.1rem;
  }
}
