/* ================================================== */
/*  PYXIDA Patrimoine — Pages internes                */
/*  Surcharge minimale du theme dark V5               */
/* ================================================== */

/* PAGE HERO (commun aux pages services / cabinet / guides) */
.page-hero {
  background: linear-gradient(180deg, var(--brun-bg) 0%, var(--brun-mid) 100%);
  padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.page-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;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  color: var(--creme);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-deck {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 65ch;
  margin-bottom: 48px;
}

/* TOC interne */
.page-toc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 16px;
}

.page-toc a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: var(--brun-bg);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.3s var(--ease);
}

.page-toc a:hover {
  background: var(--brun-mid);
  color: var(--dore-bright);
  padding-left: 28px;
}

.page-toc .toc-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--dore-bright);
  font-weight: 500;
}

@media (max-width: 900px) { .page-toc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .page-toc { grid-template-columns: 1fr; } }

/* SECTIONS DE SERVICE */
.service-section {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--brun-bg);
  scroll-margin-top: 100px;
}

.service-section-alt { background: var(--brun-mid); }

.service-inner { max-width: 980px; }

.service-head { margin-bottom: clamp(40px, 6vw, 64px); }

.service-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dore-bright);
  background: rgba(173, 147, 104, 0.1);
  border: 1px solid rgba(173, 147, 104, 0.3);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.service-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  color: var(--creme);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.service-deck {
  font-size: clamp(16px, 1.2vw, 18.5px);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 65ch;
}

.service-content { display: flex; flex-direction: column; gap: 40px; }

.service-block { padding: 28px 0; }

.service-block h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  color: var(--creme);
  margin-bottom: 16px;
  line-height: 1.2;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.service-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 70ch;
}

.service-block strong { color: var(--creme); font-weight: 600; }

.service-list { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 16px; }

.service-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 70ch;
}

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

.service-list li strong { color: var(--creme); }

.service-cta {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

/* PAGE CABINET (le-cabinet.html) */
.cabinet-content { max-width: 880px; }

.cabinet-block { margin-bottom: clamp(48px, 6vw, 72px); }

.cabinet-block h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: var(--creme);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cabinet-block p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 65ch;
}

.cabinet-block strong { color: var(--creme); font-weight: 600; }

.cabinet-photo-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin: clamp(48px, 6vw, 72px) 0;
}

.cabinet-photo-wrap {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 420px;
}

.cabinet-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--dore);
  transform: translate(-18px, -18px);
  z-index: -1;
}

.cabinet-placeholder {
  background: var(--brun-mid);
  border: 1px dashed var(--dore-deep);
  padding: 24px 28px;
  margin: 24px 0;
  border-radius: 2px;
}

.cabinet-placeholder p {
  font-style: italic;
  color: var(--dore-bright);
  margin-bottom: 8px;
  font-size: 14px;
}

.cabinet-placeholder p::before { content: '✏️ '; }

/* Bloc formation / certifications (definition list) */
.cab-formation {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cab-formation > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
}

.cab-formation > div:last-child { border-bottom: none; padding-bottom: 0; }

.cab-formation dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dore-bright);
  margin: 0;
}

.cab-formation dd {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--creme);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .cab-formation > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 900px) {
  .cabinet-photo-block { grid-template-columns: 1fr; }
  .cabinet-photo-wrap { max-width: 360px; margin: 0 auto; }
  .cabinet-photo-wrap::before { transform: translate(-12px, -12px); }
}

/* GUIDES PAGE (placeholder blog) */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 48px 0;
}

.guide-cat {
  padding: 36px 32px;
  background: var(--brun-mid);
  border: 1px solid var(--rule);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.guide-cat:hover { border-color: var(--dore-deep); transform: translateY(-2px); }

.guide-cat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: var(--dore-bright);
  margin-bottom: 14px;
}

.guide-cat h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--creme);
  margin-bottom: 12px;
}

.guide-cat p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.guide-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dore-bright);
  background: rgba(173, 147, 104, 0.1);
  border: 1px solid rgba(173, 147, 104, 0.3);
  padding: 5px 10px;
}

@media (max-width: 720px) { .guides-grid { grid-template-columns: 1fr; } }

.guides-newsletter {
  margin-top: clamp(60px, 8vw, 100px);
  padding: clamp(40px, 5vw, 60px);
  background: var(--brun);
  text-align: center;
  border-radius: 2px;
}

.guides-newsletter h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--creme);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.15;
}

.guides-newsletter p {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
