/* Style général pour l'article unique */
article{
    margin-top: 60px!important;
    margin-bottom:80px!important;
}
article[data-history-node-id] {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #ffffff, #f8faf8);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(52, 115, 76, 0.08);
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: transform 0.3s ease;
}

article[data-history-node-id]:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(52, 115, 76, 0.12);
}

/* Style pour l'en-tête d'article */
article[data-history-node-id]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to right, #34734c, #6b9b7a, #9bb5a3);
  z-index: 1;
}

/* Style pour le footer de l'article */
article[data-history-node-id] footer {
  padding: 1.25rem 2rem;
  color: #6b7280;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(52, 115, 76, 0.08);
  background-color: rgba(248, 252, 249, 0.5);
}

article[data-history-node-id] footer span {
  font-weight: 500;
}

article[data-history-node-id] footer time {
  color: #6b9b7a;
}

/* Style pour le contenu principal */
article[data-history-node-id] > div {
  padding: 2.5rem 2rem;
}

/* Style pour les titres */
article[data-history-node-id] h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #34734c;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-left: 0.5rem;
  border-left: 5px solid #6b9b7a;
}

article[data-history-node-id] h1 strong {
  display: inline-block;
}

/* Style pour les images */
article[data-history-node-id] img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(52, 115, 76, 0.1);
  transition: all 0.3s ease;
  margin: 2rem 0;
  transform: scale(0.98);
}

article[data-history-node-id] img:hover {
  transform: scale(1);
  box-shadow: 0 10px 30px rgba(52, 115, 76, 0.15);
}

/* Style pour les paragraphes */
article[data-history-node-id] p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #374151;
}

article[data-history-node-id] p strong {
  color: #34734c;
  font-weight: 600;
}

/* Style spécial pour les paragraphes avec emojis */
article[data-history-node-id] p:has(span[style*="Segoe UI Emoji"]) {
  display: flex;
  align-items: flex-start;
  background-color: rgba(248, 252, 249, 0.7);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
  border-left: 3px solid rgba(107, 155, 122, 0.3);
}

/* Style pour les emojis */
article[data-history-node-id] span[style*="Segoe UI Emoji"] {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  display: inline-block;
  flex-shrink: 0;
}

/* Style pour les liens */
article[data-history-node-id] a {
  color: #6b9b7a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, background-position 0.2s ease;
  background: linear-gradient(to right, #9bb5a3, #9bb5a3);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

article[data-history-node-id] a:hover {
  color: #34734c;
  background-position: 100% 100%;
}

/* Style pour la liste de liens commentaires */
article[data-history-node-id] ul.links.inline {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(52, 115, 76, 0.08);
}

article[data-history-node-id] ul.links.inline li {
  display: inline-block;
  font-size: 0.875rem;
}

article[data-history-node-id] ul.links.inline a {
  display: inline-block;
  background: none;
  color: #6b9b7a;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

article[data-history-node-id] ul.links.inline a:hover {
  background-color: rgba(107, 155, 122, 0.1);
  color: #34734c;
}

/* Section des commentaires */
article[data-history-node-id] section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(52, 115, 76, 0.1);
}

/* Informations de contact en bas - CORRIGÉ */
article[data-history-node-id] p:last-of-type {
  background-color: #f8fcf9;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  /* Suppression du display flex qui déformait les contacts */
  display: block;
  line-height: 1.8;
}

article[data-history-node-id] p:last-of-type a {
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Style amélioré pour que les liens de contact s'affichent mieux */
article[data-history-node-id] p:last-of-type a {
  padding: 0.375rem 0.75rem;
  background-color: rgba(107, 155, 122, 0.05);
  border-radius: 6px;
  transition: all 0.2s ease;
}

article[data-history-node-id] p:last-of-type a:hover {
  background-color: rgba(107, 155, 122, 0.15);
  transform: translateY(-2px);
}

/* Ajout d'une animation de lumière sur le titre principal */
@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(107, 155, 122, 0); }
  50% { text-shadow: 0 0 15px rgba(107, 155, 122, 0.3); }
}

article[data-history-node-id] h1 {
  animation: titleGlow 5s infinite;
}

/* Adaptation pour les appareils mobiles */
@media (max-width: 768px) {
  article[data-history-node-id] > div {
    padding: 1.5rem 1.25rem;
  }
  
  article[data-history-node-id] h1 {
    font-size: 1.75rem;
  }
  
  article[data-history-node-id] footer {
    padding: 1rem 1.25rem;
  }
  
  article[data-history-node-id] p {
    font-size: 1rem;
  }
  
  article[data-history-node-id] span[style*="Segoe UI Emoji"] {
    font-size: 1.25rem;
  }
  
  /* Adaptation supplémentaire pour les contacts sur mobile */
  article[data-history-node-id] p:last-of-type {
    padding: 1.25rem 1rem;
  }
  
  article[data-history-node-id] p:last-of-type a {
    display: block;
    margin-bottom: 0.75rem;
    margin-right: 0;
    text-align: center;
  }
}

/* Ajout d'un effet de flottement pour les images au survol */
@keyframes floatingImage {
  0%, 100% { transform: translateY(0) scale(0.98); }
  50% { transform: translateY(-10px) scale(0.99); }
}

article[data-history-node-id] img:hover {
  animation: floatingImage 3s ease-in-out infinite;
  box-shadow: 0 15px 30px rgba(52, 115, 76, 0.2);
}