/* ======================================================= # SINGLE POST STYLES ======================================================= */

.single-post-page {
  padding-top: 0 !important;
}

.single-header {
  background-color: var(--blue-color);
  padding: 80px 20px 90px;
  padding-top: calc(80px + 80px);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.admin-bar .single-header {
  padding-top: calc(80px + 32px + 80px);
}

.single-header-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-back-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: var(--white-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.single-back-link:hover {
  color: var(--white-color);
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.single-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white-color);
  font-size: 0.9rem;
}

/* Container de lecture optimisé */
.container-narrow {
  max-width: 800px;
  margin: 0px auto 50px; /* Espace pour le header fixe */
  padding: 0 20px;
}

.post-header {
  text-align: center;
  padding-bottom: 40px;
}

.post-category-badge {
  background: var(--green-color);
  color: var(--white-color);
  padding: 5px 15px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

.post-title {
  padding: 20px 0;
}

.post-thumbnail {
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Style du contenu (WordPress Editor) */
.post-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.post-content p {
  padding-bottom: 1.5rem;
  color: var(--text-color);
}

.post-content h2 {
  color: var(--blue-color);
  font-size: 1.6rem;
  font-weight: 800;
  padding: 30px 0 15px;
}

.post-content h3 {
  color: var(--blue-color);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 25px 0 12px;
}

.post-content ul {
  list-style: none;
  padding: 0 0 1.5rem;
}

.post-content ul li {
  position: relative;
  padding: 5px 0 5px 24px;
}

.post-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-color);
}

.post-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0 30px;
  display: block;
}

/* Encadrés Gutenberg — ajouter la classe dans l'onglet Avancé du bloc Groupe */
.encart-info,
.encart-pro {
  background: var(--blue-light-color);
  border-left: 4px solid var(--blue-color);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 10px 0 30px;
}

.encart-info p,
.encart-pro p {
  padding-bottom: 0 !important;
  margin: 0;
}

.encart-info > p:first-child > strong:first-child,
.encart-pro > p:first-child > strong:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* CTA de fin d'article */
.cta-article {
  background: var(--blue-light-color);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}

.cta-article h2,
.cta-article h3 {
  color: var(--blue-color);
  padding-top: 0 !important;
  padding-bottom: 10px !important;
}

.cta-article p {
  padding-bottom: 24px !important;
}

.cta-article .wp-block-buttons {
  justify-content: center;
}

.cta-article .wp-block-button__link {
  background: var(--blue-color) !important;
  color: var(--white-color) !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
  border: none !important;
}

.cta-article .wp-block-button__link:hover {
  box-shadow: 0 10px 25px rgba(0, 85, 255, 0.35);
}

.post-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

/* Barre de partage */
.post-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 30px;
}

.post-share__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-color);
  font-size: 1rem;
}

.post-share__links {
  display: flex;
  gap: 10px;
}

.post-share__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.post-share__links a:hover {
  border-color: var(--blue-color);
  color: var(--blue-color);
}

/* Navigation Flexbox */
.post-navigation {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  gap: 20px;
}

.post-navigation a {
  color: var(--text-color);
  font-weight: 600;
  transition: opacity 0.3s;
}

.post-navigation a:hover {
  opacity: 0.7;
}

.articles-suggeres {
  background: #F7F9FC;
  padding: 60px 40px;
}

.articles-suggeres__titre {
  text-align: center;
  color: var(--blue-color);
  font-size: 1.8rem;
  font-weight: 800;
  padding-bottom: 40px;
}

.articles-suggeres__grille {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ======================================================= # RESPONSIVE ======================================================= */

@media (max-width: 768px) {
  .post-navigation {
    flex-direction: column;
    text-align: center;
  }
  .articles-suggeres {
    padding: 40px 20px;
  }
}
