/* Améliorations À propos */
.apropos-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.apropos-section {
  margin-bottom: 2rem;
}

.apropos-section:nth-child(2) {
  background-color: #f9f9f9;
  padding: 1rem;
  border-left: 4px solid var(--bleu-profond);
  border-radius: 4px;
}

.apropos-section h2 {
  border-bottom: 2px solid var(--rouge-carmin);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  color: var(--bleu-profond);
}

/* Sidebar */
.sidebar {
  background-color: #f1f5f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar h2 {
  color: var(--bleu-profond);
  margin-bottom: 1rem;
}

.sidebar .social-btn {
  display: block;
  padding: 12px;
  border-radius: 4px;
  color: white;
  text-align: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .social-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.facebook { background-color: #1877f2; }
.instagram { background-color: #e1306c; }
.linkedin { background-color: #0077b5; }
.tiktok { background-color: #000000; }
.youtube { background-color: #ff0000; }

/* Boutons en bas de page */
.page-links-large {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-link-btn {
  flex: 1 1 calc(33% - 1rem);
  padding: 1rem;
  text-align: center;
  background-color: var(--bleu-profond);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link-btn:hover {
  background-color: var(--rouge-carmin);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .page-link-btn {
    flex: 1 1 100%;
  }
}

/* Boutons globaux */
a.button, button, .btn {
  display: inline-block;
  color: white;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

a.button:hover, button:hover, .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Lien actif avec effet "recherché" */
a.active, .current-menu-item > a {
  color: var(--rouge-carmin);
  position: relative;
  font-weight: bold;
}

a.active::after, .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--rouge-carmin);
  opacity: 0.3;
  filter: blur(4px);
  z-index: -1;
}

/* ===============================
   VARIABLES (à mettre dans :root)
   =============================== */
:root {
  --bleu-profond: #1e3a8a;
  --rouge-carmin: #dc2626;
}

/* ===============================
   À PROPOS
   =============================== */
.apropos-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.apropos-section {
  margin-bottom: 2rem;
}

.apropos-section:nth-child(2) {
  background-color: #f9f9f9;
  padding: 1rem;
  border-left: 4px solid var(--bleu-profond);
  border-radius: 4px;
}

.apropos-section h2 {
  border-bottom: 2px solid var(--rouge-carmin);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  color: var(--bleu-profond);
}

/* ===============================
   SIDEBAR
   =============================== */
.sidebar {
  background-color: #f1f5f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar h2 {
  color: var(--bleu-profond);
  margin-bottom: 1rem;
}

.sidebar .social-btn {
  display: block;
  padding: 12px;
  border-radius: 4px;
  color: white;
  text-align: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .social-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.facebook { background-color: #1877f2; }
.instagram { background-color: #e1306c; }
.linkedin { background-color: #0077b5; }
.tiktok { background-color: #000000; }
.youtube { background-color: #ff0000; }

.sidebar-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 0.5rem auto;
}

.sidebar-block {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ===============================
   TEMPLATE ARTICLE
   =============================== */

/* Badges dynamiques */
.badge-blue { background-color: #1d4ed8; color: white; }
.badge-red { background-color: #dc2626; color: white; }

/* Prose */
.prose {
  line-height: 1.75;
  font-size: 1rem;
  max-width: 65ch;
  margin: 0 auto;
}
.prose h2, .prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
  color: var(--bleu-profond);
}
.prose p {
  margin-bottom: 1em;
}

/* Image de couverture */
.cover-image {
  max-height: 450px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

/* Articles du même auteur */
.same-author-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.same-author-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* ===============================
   FORMULAIRE & BOUTONS
   =============================== */
.comment-respond {
  background: #f9fafb;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.comment-respond input,
.comment-respond textarea {
  margin-bottom: .75rem;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: .5rem;
}
.comment-respond input[type="submit"] {
  background-color: var(--bleu-profond);
  color: white;
  padding: .5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.comment-respond input[type="submit"]:hover {
  background-color: var(--rouge-carmin);
}

/* Boutons globaux */
a.button, button, .btn {
  display: inline-block;
  color: white;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
a.button:hover, button:hover, .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Boutons en bas de page */
.page-links-large {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-link-btn {
  flex: 1 1 calc(33% - 1rem);
  padding: 1rem;
  text-align: center;
  background-color: var(--bleu-profond);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link-btn:hover {
  background-color: var(--rouge-carmin);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .page-link-btn {
    flex: 1 1 100%;
  }
}

/* ===============================
   LIENS ACTIFS
   =============================== */
a.active, .current-menu-item > a {
  color: var(--rouge-carmin);
  position: relative;
  font-weight: bold;
}

a.active::after, .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--rouge-carmin);
  opacity: 0.3;
  filter: blur(4px);
  z-index: -1;
}

.share-buttons {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.share-buttons a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

.share-buttons .facebook { background-color: #1877f2; }
.share-buttons .twitter  { background-color: #1da1f2; }
.share-buttons .linkedin { background-color: #0a66c2; }
.share-buttons .whatsapp { background-color: #25d366; }

.share-buttons a:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  aside {
    position: static !important;
    margin-top: 2rem;
  }
}
