/* =========================================================
   Gabem Studio — Page « Le Diagnostic » v2 (Éditorial clair)
   Toutes les règles sont scopées sous .ldx
   ========================================================= */

.ldx {
  --ldx-cream: #F1EFE8;
  --ldx-paper: #FBFAF6;
  --ldx-sand: #E9E4D8;
  --ldx-line: #DCD6C8;
  --ldx-line-soft: #E4DFD2;
  --ldx-beige: #B3A083;
  --ldx-beige-text: #6E5E44;   /* beige assombri, lisible sur crème */
  --ldx-beige-light: #CDBFA6;  /* beige sur fond noir */
  --ldx-ink: #212121;
  --ldx-muted: #5B5446;
  --ldx-serif: 'Playfair Display', Georgia, serif;
  --ldx-sans: 'Roboto', system-ui, -apple-system, sans-serif;

  background: var(--ldx-cream);
  color: var(--ldx-ink);
  font-family: var(--ldx-sans);
  line-height: 1.5;
}
.ldx *, .ldx *::before, .ldx *::after { box-sizing: border-box; }
.ldx :where(h1, h2, h3, p, ul, ol) { margin: 0; }
.ldx :where(ul, ol) { list-style: none; padding: 0; }
.ldx-etape--dark .ldx-etape__title,
.ldx-final .ldx-final__title { color: var(--ldx-cream); }
.ldx em { font-style: italic; }

/* ---------- Utilitaires ---------- */
.ldx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ldx-wrap--narrow { max-width: 880px; }
.ldx-center { text-align: center; margin-left: auto; margin-right: auto; }

.ldx-eyebrow {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ldx-beige-text); margin-bottom: 16px;
}
.ldx-eyebrow--light { color: var(--ldx-beige-light); }

.ldx-h2 {
  font-family: var(--ldx-serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05;
}
.ldx-h2 em { color: inherit; }
.ldx-h2--narrow { max-width: 18ch; }

.ldx-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 30px; min-height: 44px; border-radius: 999px;
  font-family: var(--ldx-sans); font-size: 15px; letter-spacing: .02em;
  text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.ldx-btn:hover { transform: translateY(-1px); }
.ldx-btn--dark { background: var(--ldx-ink); color: var(--ldx-cream); }
.ldx-btn--dark:hover { background: #000; color: var(--ldx-cream); }
.ldx-btn--light { background: var(--ldx-cream); color: var(--ldx-ink); }
.ldx-btn--light:hover { background: #fff; color: var(--ldx-ink); }
.ldx-btn:focus-visible { outline: 2px solid var(--ldx-beige); outline-offset: 3px; }

.ldx-check { flex: none; margin-top: 3px; color: var(--ldx-beige-text); }

/* ---------- Hero ---------- */
.ldx-hero { padding: 96px 0 112px; }
.ldx-hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px; align-items: center;
}
.ldx-hero__text { display: flex; flex-direction: column; gap: 28px; }
.ldx-hero__text .ldx-eyebrow { margin-bottom: 0; }
.ldx-hero__title {
  font-family: var(--ldx-serif); font-weight: 400;
  font-size: clamp(52px, 7vw, 84px); line-height: .98; letter-spacing: -.02em;
}
.ldx-hero__title em { color: var(--ldx-beige-text); }
.ldx-hero__intro { font-size: 20px; line-height: 1.6; font-weight: 300; max-width: 32ch; }
.ldx-hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.ldx-hero__price { font-family: var(--ldx-serif); font-style: italic; font-size: 30px; }
.ldx-hero__notice { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ldx-muted); }

/* Aperçu PDF */
.ldx-preview { position: relative; min-height: 460px; }
.ldx-preview__back {
  position: absolute; top: 34px; left: 48px; right: 0; bottom: 0;
  background: var(--ldx-line-soft); border-radius: 6px; transform: rotate(3deg);
}
.ldx-preview__card {
  position: relative; margin-right: 32px; background: var(--ldx-paper);
  border-radius: 6px; padding: 40px; box-shadow: 0 24px 60px rgba(33,33,33,.10);
  display: flex; flex-direction: column; gap: 22px;
}
.ldx-preview__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--ldx-line-soft); padding-bottom: 16px;
}
.ldx-preview__title { font-family: var(--ldx-serif); font-style: italic; font-size: 24px; }
.ldx-preview__tag, .ldx-preview__label {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ldx-beige-text);
}
.ldx-preview__block { display: flex; flex-direction: column; gap: 6px; }
.ldx-bar { display: block; height: 8px; background: var(--ldx-line-soft); border-radius: 4px; }
.ldx-preview__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ldx-pill { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ldx-ink); }
.ldx-pill--full { background: var(--ldx-ink); color: var(--ldx-cream); }
.ldx-preview__quote {
  margin-top: 8px; font-family: var(--ldx-serif); font-style: italic;
  font-size: 20px; line-height: 1.4; color: var(--ldx-beige-text);
}
.ldx-preview__quote span {
  display: block; font-family: var(--ldx-sans); font-style: normal; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ldx-muted); margin-top: 4px;
}

/* ---------- Problème ---------- */
.ldx-probleme { background: var(--ldx-paper); border-top: 1px solid var(--ldx-line); border-bottom: 1px solid var(--ldx-line); padding: 104px 0; }
.ldx-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.ldx-probleme__list li {
  display: flex; gap: 28px; align-items: baseline; padding: 24px 0;
  border-bottom: 1px solid var(--ldx-line-soft);
  font-family: var(--ldx-serif); font-style: italic; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3;
}
.ldx-probleme__list li:last-child { border-bottom: 0; }
.ldx-num { font-size: 18px; color: var(--ldx-beige-text); min-width: 32px; }

/* ---------- Parcours ---------- */
.ldx-parcours { padding: 112px 0 96px; }
.ldx-parcours .ldx-h2 { margin-bottom: 64px; }
.ldx-timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--ldx-ink); margin-bottom: 72px;
}
.ldx-timeline li { padding: 22px 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ldx-timeline__when { font-size: 12px; color: var(--ldx-beige-text); }
.ldx-timeline__name { font-size: 16px; font-weight: 500; }
.ldx-timeline__meta { font-size: 13px; color: var(--ldx-muted); }

.ldx-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.ldx-etape { background: var(--ldx-paper); border-radius: 6px; padding: 44px; display: flex; flex-direction: column; gap: 24px; }
.ldx-etape__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ldx-etape__title { font-family: var(--ldx-serif); font-weight: 400; font-style: italic; font-size: 34px; }
.ldx-etape__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ldx-beige-text); }
.ldx-etape__items { display: flex; flex-direction: column; gap: 18px; }
.ldx-etape__items li { display: flex; gap: 14px; }
.ldx-etape__items strong { font-weight: 500; display: block; }
.ldx-etape__items small { font-size: 14px; color: var(--ldx-muted); }
.ldx-etape--dark { background: var(--ldx-ink); color: var(--ldx-cream); }
.ldx-etape--dark .ldx-etape__label,
.ldx-etape--dark .ldx-check { color: var(--ldx-beige-light); }
.ldx-etape--dark small { color: #CFC9BC; }

/* ---------- Mon rôle ---------- */
.ldx-role { padding: 48px 0 112px; }
.ldx-role__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px; border-top: 1px solid var(--ldx-line); padding-top: 40px;
}
.ldx-role__col { display: flex; flex-direction: column; gap: 14px; }
.ldx-role__when { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ldx-muted); }
.ldx-role__verb { font-family: var(--ldx-serif); font-weight: 400; font-style: italic; font-size: 44px; }
.ldx-role__col p { font-size: 16px; line-height: 1.7; font-weight: 300; }

/* ---------- Pour qui ---------- */
.ldx-forwho { background: var(--ldx-sand); padding: 104px 0; }
.ldx-forwho .ldx-h2 { margin-bottom: 56px; }
.ldx-forwho__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ldx-forwho__card { border-radius: 6px; padding: 40px; }
.ldx-forwho__card--yes { background: var(--ldx-paper); }
.ldx-forwho__card--no { border: 1px solid #C9C1AE; color: #4A4438; }
.ldx-forwho__label {
  font-family: var(--ldx-sans); font-size: 13px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px;
}
.ldx-forwho__card ul { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.5; }
.ldx-forwho__card li { display: flex; gap: 12px; }
.ldx-forwho__card--yes li::before { content: "→"; font-family: var(--ldx-serif); font-style: italic; color: var(--ldx-beige-text); }
.ldx-forwho__card--no li::before { content: "×"; }

/* ---------- Investissement ---------- */
.ldx-invest { padding: 112px 0; }
.ldx-invest__box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border: 1px solid var(--ldx-ink); border-radius: 6px; overflow: hidden;
}
.ldx-invest__main { padding: 56px; display: flex; flex-direction: column; gap: 18px; justify-content: center; align-items: flex-start; }
.ldx-invest__main .ldx-eyebrow { margin-bottom: 0; }
.ldx-invest__price { font-family: var(--ldx-serif); font-style: italic; font-size: clamp(72px, 9vw, 104px); line-height: 1; }
.ldx-invest__meta { font-size: 15px; color: var(--ldx-muted); margin-bottom: 12px; }
.ldx-invest__included { background: var(--ldx-paper); padding: 56px; border-left: 1px solid var(--ldx-line); }
.ldx-invest__label { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px; }
.ldx-invest__included li { padding: 14px 0; border-bottom: 1px solid var(--ldx-line-soft); font-size: 16px; }
.ldx-invest__included li:last-child { border-bottom: 0; }

/* ---------- FAQ ---------- */
.ldx-faq { padding: 0 0 112px; }
.ldx-faq .ldx-h2 { margin-bottom: 48px; }
.ldx-faq__list { border-top: 1px solid var(--ldx-ink); }
.ldx-faq__item { border-bottom: 1px solid var(--ldx-line); padding: 24px 0; }
.ldx-faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--ldx-serif); font-size: 19px;
}
.ldx-faq__item summary::-webkit-details-marker { display: none; }
.ldx-faq__item summary:focus-visible { outline: 2px solid var(--ldx-beige); outline-offset: 4px; }
.ldx-faq__plus { font-family: var(--ldx-sans); font-size: 24px; line-height: 1; transition: transform .2s ease; }
.ldx-faq__item[open] .ldx-faq__plus { transform: rotate(45deg); }
.ldx-faq__item p { margin-top: 16px; font-size: 16px; line-height: 1.7; font-weight: 300; max-width: 64ch; }

/* ---------- CTA final ---------- */
.ldx-final { background: var(--ldx-ink); color: var(--ldx-cream); padding: 112px 0; }
.ldx-final__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.ldx-final__inner .ldx-eyebrow { margin-bottom: 0; }
.ldx-final__title { font-family: var(--ldx-serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; max-width: 16ch; }
.ldx-final__title em { color: var(--ldx-beige-light); }
.ldx-final__text { font-size: 18px; font-weight: 300; color: #CFC9BC; }
.ldx-final .ldx-btn { margin-top: 12px; }
.ldx-final__notice { font-size: 13px; color: #A9A397; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .ldx-hero { padding: 56px 0 72px; }
  .ldx-hero__grid { gap: 48px; }
  .ldx-preview { min-height: 0; }
  .ldx-preview__back { left: 24px; }
  .ldx-preview__card { margin-right: 12px; padding: 28px; }
  .ldx-probleme, .ldx-forwho { padding: 72px 0; }
  .ldx-parcours, .ldx-invest, .ldx-final { padding: 80px 0; }
  .ldx-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .ldx-etape, .ldx-forwho__card { padding: 32px 24px; }
  .ldx-invest__main, .ldx-invest__included { padding: 36px 24px; }
  .ldx-invest__included { border-left: 0; border-top: 1px solid var(--ldx-line); }
  .ldx-role__verb { font-size: 36px; }
}
