/* ================================================== */
/*  PYXIDA Patrimoine — Articles de blog (single.php) */
/*  Design typographique lisible sur fond dark         */
/* ================================================== */

/* HERO ARTICLE — similaire à page-hero mais adapté blog */
.single-post .post-hero {
  background: linear-gradient(180deg, var(--brun-bg) 0%, var(--brun-mid) 100%);
  padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}

.single-post .post-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(173, 147, 104, 0.12), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.single-post .post-hero-inner {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.single-post .post-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--creme);
  font-weight: 500;
  margin: 16px 0 28px;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.single-post .post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.single-post .post-meta .post-date,
.single-post .post-meta .post-updated,
.single-post .post-meta .post-reading-time {
  font-weight: 500;
}

.single-post .post-meta .post-updated { color: var(--dore-bright); }

.single-post .post-meta .post-date-sep { color: var(--dore-deep); opacity: 0.6; }

/* CORPS ARTICLE */
.single-post .post-body {
  background: var(--brun-bg);
  padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 9vw, 120px);
}

.single-post .post-body-inner { max-width: 780px; }

.single-post .post-content {
  font-size: clamp(16.5px, 1.1vw, 18px);
  line-height: 1.8;
  color: var(--text-main);
}

/* Paragraphes */
.single-post .post-content p {
  margin: 0 0 1.4em;
  max-width: 68ch;
}

.single-post .post-content strong {
  color: var(--creme);
  font-weight: 600;
}

.single-post .post-content em { color: var(--text-soft); }

/* Liens */
.single-post .post-content a:not(.wp-block-button__link) {
  color: var(--dore-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(173, 147, 104, 0.4);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.single-post .post-content a:not(.wp-block-button__link):hover {
  color: var(--creme);
  border-bottom-color: var(--dore-bright);
}

/* Titres — H2 (grandes sections) */
.single-post .post-content h2.wp-block-heading,
.single-post .post-content h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  color: var(--creme);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: clamp(56px, 7vw, 80px) 0 clamp(22px, 2.5vw, 32px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  max-width: 24ch;
}

/* Titres — H3 (sous-sections) */
.single-post .post-content h3.wp-block-heading,
.single-post .post-content h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  color: var(--creme);
  line-height: 1.3;
  margin: clamp(40px, 5vw, 56px) 0 clamp(14px, 1.5vw, 20px);
  letter-spacing: -0.005em;
}

.single-post .post-content h3.wp-block-heading::before,
.single-post .post-content h3::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--dore-bright);
  margin-bottom: 14px;
}

/* Listes */
.single-post .post-content ul,
.single-post .post-content ol {
  margin: 0 0 1.6em;
  padding-left: 0;
  list-style: none;
  max-width: 68ch;
}

.single-post .post-content ul li,
.single-post .post-content ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.7em;
  line-height: 1.7;
}

.single-post .post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 1px;
  background: var(--dore-bright);
}

/* Listes ordonnées : compteur doré style serif */
.single-post .post-content ol { counter-reset: pyx-ol; }

.single-post .post-content ol li {
  counter-increment: pyx-ol;
}

.single-post .post-content ol li::before {
  content: counter(pyx-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--dore-bright);
  font-weight: 500;
  line-height: 1.8;
}

/* Listes imbriquées */
.single-post .post-content ul ul,
.single-post .post-content ol ol,
.single-post .post-content ul ol,
.single-post .post-content ol ul {
  margin: 0.5em 0 0.5em 0;
}

/* Blockquote (mise en garde, astuce, bon à savoir) */
.single-post .post-content blockquote.wp-block-quote,
.single-post .post-content blockquote {
  margin: 2em 0;
  padding: 22px 28px 22px 32px;
  background: rgba(173, 147, 104, 0.06);
  border-left: 3px solid var(--dore-bright);
  font-style: normal;
  max-width: 68ch;
}

.single-post .post-content blockquote p {
  margin: 0 0 0.8em;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-main);
}

.single-post .post-content blockquote p:last-child { margin-bottom: 0; }

.single-post .post-content blockquote strong { color: var(--creme); }

/* Tableaux */
.single-post .post-content .wp-block-table,
.single-post .post-content figure.wp-block-table {
  margin: 2em 0;
  overflow-x: auto;
  max-width: 100%;
}

.single-post .post-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rule);
  font-size: 14.5px;
  background: var(--brun-mid);
}

.single-post .post-content th,
.single-post .post-content td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--rule);
  line-height: 1.5;
}

.single-post .post-content th {
  background: rgba(173, 147, 104, 0.08);
  color: var(--creme);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.single-post .post-content td strong { color: var(--creme); }

/* Séparateur */
.single-post .post-content hr.wp-block-separator,
.single-post .post-content hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: clamp(36px, 5vw, 56px) auto;
  max-width: 120px;
  opacity: 0.6;
}

/* Bouton (CTA RDV) */
.single-post .post-content .wp-block-buttons {
  display: flex;
  justify-content: center;
  margin: 2.5em 0;
}

.single-post .post-content .wp-block-button__link {
  display: inline-block;
  padding: 16px 32px;
  background: var(--dore-bright);
  color: var(--brun-bg);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--dore-bright);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

.single-post .post-content .wp-block-button__link:hover {
  background: var(--creme);
  border-color: var(--creme);
  transform: translateY(-1px);
}

/* Paragraphe small (mentions fin d'article) */
.single-post .post-content .has-small-font-size {
  font-size: 13.5px;
  color: var(--text-soft);
  opacity: 0.85;
  max-width: 68ch;
  line-height: 1.7;
}

/* Premier H2 pas de margin-top excessive */
.single-post .post-content > .wp-block-heading:first-child,
.single-post .post-content > h2:first-child { margin-top: 0; }

/* Responsive */
@media (max-width: 720px) {
  .single-post .post-title { font-size: clamp(28px, 7vw, 38px); max-width: 100%; }
  .single-post .post-meta { font-size: 12.5px; }
  .single-post .post-content { font-size: 16px; line-height: 1.75; }
  .single-post .post-content h2 { font-size: clamp(22px, 6vw, 28px); }
  .single-post .post-content h3 { font-size: clamp(18px, 5vw, 21px); }
  .single-post .post-content table { font-size: 13px; }
  .single-post .post-content th,
  .single-post .post-content td { padding: 10px 12px; }
}
