/* ==============================
   Ô'DEMA — Style articles WordPress
   À appliquer au conteneur du contenu dynamique : .article-odema
================================= */

.article-odema {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 56px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(246, 216, 190, 0.8);
  box-shadow: 0 18px 45px rgba(48, 35, 73, 0.08);
  color: #393345;
}

/* Typographie générale */

.article-odema p,
.article-odema li {
  font-size: 17px;
  line-height: 1.75;
  color: #514a5f;
}

.article-odema p {
  margin: 0 0 18px;
}

.article-odema strong,
.article-odema b {
  color: #302349;
  font-weight: 700;
}

/* Titres */

.article-odema h2 {
  margin: 46px 0 18px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #5d3f91;
}

.article-odema h3 {
  margin: 34px 0 14px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #5d3f91;
}

.article-odema h4 {
  margin: 28px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  color: #302349;
}

/* Listes */

.article-odema ul,
.article-odema ol {
  margin: 18px 0 26px;
  padding-left: 24px;
}

.article-odema li {
  margin-bottom: 10px;
}

.article-odema li::marker {
  color: #ff7a2f;
}

/* Liens */

.article-odema a {
  color: #5d3f91;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 122, 47, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-odema a:hover {
  color: #ff7a2f;
  text-decoration-color: rgba(255, 122, 47, 0.9);
}

/* Images intégrées dans les articles */

.article-odema img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(48, 35, 73, 0.12);
}

/* Image seule en début d'article */

.article-odema > figure:first-child,
.article-odema > p:first-child img {
  margin-top: 0;
}

/* Légendes */

.article-odema figcaption,
.article-odema .wp-caption-text {
  margin-top: -16px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: #7a7287;
  text-align: center;
}

/* Images WordPress avec alignement */

.article-odema .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.article-odema .alignleft {
  float: left;
  max-width: 42%;
  margin: 8px 28px 20px 0;
}

.article-odema .alignright {
  float: right;
  max-width: 42%;
  margin: 8px 0 20px 28px;
}

/* Recommandation : sur mobile, les images alignées repassent en pleine largeur */

@media (max-width: 767px) {
  .article-odema .alignleft,
  .article-odema .alignright {
    float: none;
    max-width: 100%;
    margin: 26px auto;
  }
}

/* Boutons WordPress natifs */

.article-odema .wp-block-button {
  margin: 30px 0;
}

.article-odema .wp-block-button__link,
.article-odema .bouton-odema,
.article-odema a.bouton-odema {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 24px;
  background: #5d3f91;
  color: #ffffff !important;
  border: 2px solid #5d3f91;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(93, 63, 145, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.article-odema .wp-block-button__link:hover,
.article-odema .bouton-odema:hover,
.article-odema a.bouton-odema:hover {
  background: #ff7a2f;
  border-color: #ff7a2f;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 122, 47, 0.24);
}

/* Bouton secondaire : ajoute la classe bouton-odema-secondaire au lien */

.article-odema .bouton-odema-secondaire,
.article-odema a.bouton-odema-secondaire {
  background: #ffffff;
  color: #5d3f91 !important;
  border: 2px solid #5d3f91;
  box-shadow: none;
}

.article-odema .bouton-odema-secondaire:hover,
.article-odema a.bouton-odema-secondaire:hover {
  background: #5d3f91;
  color: #ffffff !important;
}

/* Citations */

.article-odema blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  background: #fbf4ee;
  border-left: 5px solid #ff7a2f;
  border-radius: 0 18px 18px 0;
  color: #302349;
}

.article-odema blockquote p {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
  color: #302349;
}

/* Encadrés de mise en avant */

.article-odema .encadre-odema {
  margin: 34px 0;
  padding: 26px 30px;
  background: #fbf4ee;
  border: 1px solid rgba(246, 216, 190, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(48, 35, 73, 0.06);
}

.article-odema .encadre-odema p:last-child,
.article-odema .encadre-odema ul:last-child,
.article-odema .encadre-odema ol:last-child {
  margin-bottom: 0;
}

/* Séparateurs */

.article-odema hr {
  margin: 42px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93, 63, 145, 0.25), transparent);
}

/* Tableaux */

.article-odema table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(48, 35, 73, 0.06);
}

.article-odema th {
  background: #5d3f91;
  color: #ffffff;
  font-weight: 700;
}

.article-odema th,
.article-odema td {
  padding: 14px 16px;
  border: 1px solid #eee5df;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}

.article-odema tr:nth-child(even) td {
  background: #fbf4ee;
}

/* Responsive */

@media (max-width: 767px) {
  .article-odema {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .article-odema p,
  .article-odema li {
    font-size: 16px;
    line-height: 1.7;
  }

  .article-odema h2 {
    margin-top: 38px;
    font-size: 26px;
  }

  .article-odema h3 {
    font-size: 22px;
  }

  .article-odema img {
    margin: 24px auto;
    border-radius: 16px;
  }

  .article-odema .wp-block-button__link,
  .article-odema .bouton-odema,
  .article-odema a.bouton-odema {
    width: 100%;
    text-align: center;
  }
}