:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --surface: #fffcf5;
  --ink: #202921;
  --muted: #4e5c51;
  --accent: #23483d;
  --accent-ink: #fffdf6;
  --soft: #e7ebe0;
  --line: #c8ccbf;
  --warm: #885039;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.03; letter-spacing: -.055em; }
h1 { font-size: clamp(3.25rem, 7vw, 7.1rem); }
h2 { font-size: clamp(2.25rem, 4vw, 4.2rem); }
h3 { font-size: 1.22rem; line-height: 1.35; }
em { font-weight: inherit; color: var(--accent); }
address { font-style: normal; }
[id] { scroll-margin-top: 1.5rem; }

.bound { max-width: 1280px; width: calc(100% - clamp(2rem, 10vw, 9rem)); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--surface); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.eyebrow { color: var(--muted); font-size: .84rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .95rem; }
.lede { color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 39rem; }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  padding: .68rem 1.2rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent);
  color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: .94rem; line-height: 1.25; text-align: center;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; }
.text-link:hover { text-decoration-thickness: .14em; }

.preview-bar { color: #f6f2ed; background: #252b27; }
.preview-inner { display: flex; justify-content: space-between; gap: .35rem 1rem; align-items: center; min-height: 48px; }
.all-concepts { min-height: 44px; display: inline-flex; align-items: center; font-size: .86rem; font-weight: 650; }
.preview-inner nav { display: flex; gap: .2rem; }
.preview-inner nav a { text-decoration: none; padding: .45rem .68rem; min-height: 44px; display: inline-flex; align-items: center; font-size: .84rem; }
.preview-inner nav a:hover, .preview-inner nav a[aria-current] { background: #f6f2ed; color: #252b27; }
.site-header, .portal-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 1.1rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex: 0 0 auto; line-height: 1.03; }
.brand strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; font-weight: 400; letter-spacing: -.055em; display: block; }
.brand small { color: var(--muted); font-size: .72rem; font-weight: 650; display: block; margin-top: .35rem; }
.brand-mark { height: 1.85rem; width: 1.85rem; border: 1px solid var(--warm); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark::before { content: ''; width: .72rem; height: .72rem; border: 1px solid var(--warm); rotate: 45deg; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.75rem); }
.desktop-nav a, .mobile-nav nav a { display: flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 650; font-size: .92rem; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .mobile-nav nav a:hover, .mobile-nav nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); font-weight: 700; }
.mobile-nav nav { position: absolute; z-index: 2; right: 0; top: calc(100% + .5rem); width: min(16rem, 78vw); padding: .4rem 1rem; border: 1px solid var(--line); background: var(--surface); }

.hero { padding-block: clamp(2.15rem, 3.7vw, 3.65rem) clamp(2.7rem, 5vw, 4.4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 6.5rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 740px; font-size: clamp(3.15rem, 5.9vw, 5.8rem); }
.hero-copy h1 em { display: block; }
.hero-copy .lede { margin-top: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: 1.55rem; }
.facts { display: grid; grid-template-columns: .92fr 1.1fr 1fr; margin: 1.55rem 0 0; border-top: 1px solid var(--line); padding-top: .85rem; gap: .7rem; }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: .1rem 0 0; font-size: clamp(.84rem, 1.4vw, 1.07rem); font-weight: 750; line-height: 1.35; }
.facts dd span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.photo { position: relative; min-width: 0; }
.photo picture { display: block; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo picture { aspect-ratio: 1 / 1.09; }
.hero-photo img { object-position: center 61%; }
.photo figcaption { font-size: .78rem; padding-top: .35rem; color: var(--muted); }
.theme-cabinet .hero-photo::before { content: ''; position: absolute; top: -.6rem; right: -.6rem; height: 42%; width: 42%; border: 1px solid var(--warm); border-bottom: 0; border-left: 0; pointer-events: none; }

.section { padding-block: clamp(2.8rem, 6vw, 6.8rem); }
.section-heading { margin-bottom: clamp(1.3rem, 3vw, 2.6rem); }
.section-heading h2 { max-width: 760px; }
.steps, .topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.6rem); }
.steps li, .topics article { border-top: 1px solid var(--line); padding: 1.2rem 0 .3rem; min-width: 0; }
.steps { counter-reset: session-step; }
.steps li { counter-increment: session-step; }
.steps li::before { content: counter(session-step, decimal-leading-zero); display: block; font-variant-numeric: tabular-nums; color: var(--warm); font-size: .86rem; font-weight: 750; margin-bottom: .8rem; }
.steps p, .topics p, .profile-grid p, .price-card p, .support-topic p, .prose p, .callout-inner p { margin-top: .65rem; color: var(--muted); }
.topics a:hover { color: var(--accent); }
.more-topics { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1.2rem; }
.profile-section { background: var(--soft); }
.profile-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 7rem); align-items: center; }
.profile-photo picture { aspect-ratio: 1.45; }
.profile-photo img { object-position: center 64%; }
.profile-grid p { max-width: 36rem; }
.profile-grid .text-link { margin-top: .8rem; }
.contact-callout, .choose { background: var(--soft); border-top: 1px solid var(--line); }
.callout-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 4rem; align-items: center; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2.2rem; }
.footer-inner { display: flex; gap: 1rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.footer-inner address { margin-top: .65rem; font-size: .94rem; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; font-size: .9rem; }
.preview-note { color: var(--muted); margin-top: 1.15rem; font-size: .82rem; }

.page-intro { padding-block: clamp(2.6rem, 6vw, 6.5rem) clamp(2.2rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(2.8rem, 5.75vw, 5.45rem); }
.page-intro .lede { margin-top: 1.1rem; }
.page-intro .lede:empty { display: none; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.25rem); }
.price-card { padding: clamp(1.25rem, 3vw, 2.6rem); border: 1px solid var(--line); background: var(--surface); }
.price-card h2, .side-panel h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); }
.price-card strong, .phone { display: block; margin: .8rem 0 0; font: 400 clamp(2.25rem, 5.5vw, 4.4rem)/1 var(--display); color: var(--accent); letter-spacing: -.065em; }
.phone { font-size: clamp(1.85rem, 4.1vw, 3.35rem); line-height: 1.3; }
.price-card .button, .price-card .text-link, .contact-return { margin-top: .9rem; }
.price-card address { margin-top: .85rem; font-weight: 700; }
.price-card .price-detail { margin-top: 1rem; }
.tariff { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; }
.tariff strong { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.faq-section { background: var(--surface); }
.faq { border-top: 1px solid var(--line); margin-top: 1.3rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .78rem 0; }
.faq summary { font-weight: 700; min-height: 44px; padding-block: .45rem; }
.faq p { margin: .25rem 0 .65rem; color: var(--muted); }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .45fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.support-topic + .support-topic { margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.support-topic h2, .prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); }
.side-panel { display: grid; gap: .45rem; background: var(--soft); border: 1px solid var(--line); padding: 1.35rem; }
.side-panel a { min-height: 44px; display: inline-flex; align-items: center; }
.prose h2:not(:first-child) { margin-top: 1.45rem; }
.contact-return { padding-top: .5rem; }

.theme-reperes {
  --paper: #f2f2f5; --surface: #fff; --ink: #282234; --muted: #4d4a5f; --accent: #43324e;
  --soft: #e4e5ef; --line: #c9c6d4; --warm: #65456c; --display: 'Segoe UI', system-ui, sans-serif;
}
.theme-reperes h1, .theme-reperes h2 { font-weight: 700; letter-spacing: -.075em; }
.theme-reperes .hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.theme-reperes .hero-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(1.3rem, 3vw, 3.5rem); }
.theme-reperes .hero-copy h1 { font-size: clamp(3rem, 5.5vw, 5.75rem); }
.theme-reperes h1 em { font-style: normal; color: #55436f; }
.theme-reperes .hero-photo picture { aspect-ratio: 1.22; }
.theme-reperes .facts { padding: .8rem .9rem; border: 1px solid var(--line); background: var(--surface); }
.theme-reperes .price-card, .theme-reperes .button { border-radius: 0; }
.theme-reperes .steps li { border: 1px solid var(--line); background: var(--surface); padding: 1.1rem; }
.theme-reperes .page-intro { background: var(--soft); }

.theme-rencontre {
  --paper: #fbf3ef; --surface: #fffaf6; --ink: #352528; --muted: #62484d; --accent: #582d3d;
  --soft: #f0dedf; --line: #d9c1c2; --warm: #884653;
}
.theme-rencontre .hero { background: linear-gradient(90deg, var(--soft) 0 32%, var(--paper) 32%); }
.theme-rencontre .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: end; }
.theme-rencontre .hero-photo { grid-column: 1; grid-row: 1; }
.theme-rencontre .hero-photo picture { aspect-ratio: .92; border-radius: 48% 48% 0 0 / 26% 26% 0 0; }
.theme-rencontre .hero-copy { grid-column: 2; grid-row: 1; padding-bottom: 1.55rem; }
.theme-rencontre .hero-copy h1 { font-size: clamp(3.15rem, 5.8vw, 5.8rem); }
.theme-rencontre .button { border-radius: 5rem; }
.theme-rencontre .page-intro { text-align: center; background: var(--soft); }
.theme-rencontre .page-intro .lede { margin-inline: auto; }

.portal { --paper: #f6f2e9; --surface: #fffdf8; }
.portal-intro { padding-block: clamp(2.2rem, 3.5vw, 4.25rem) clamp(1.65rem, 3vw, 2.95rem); }
.portal-intro .bound { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: 1.1rem 3rem; align-items: end; }
.portal-intro h1 { font-size: clamp(3.1rem, 6.1vw, 6.15rem); }
.portal-intro p.lede { max-width: 27rem; padding-bottom: .2rem; }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.8rem); padding-bottom: clamp(2.6rem, 5vw, 5rem); }
.concept-card { display: flex; flex-direction: column; color: var(--ink); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.concept-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.concept-link:hover h2 { text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .14em; }
.concept-link:hover .button { background: var(--ink); border-color: var(--ink); }
.concept-cover { display: block; overflow: hidden; background: var(--soft); }
.concept-cover img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: center 63%; }
.concept-card.theme-reperes .concept-cover img { object-position: center; }
.concept-card.theme-rencontre .concept-cover img { object-position: center 58%; }
.concept-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(1rem, 2.1vw, 1.75rem); gap: .3rem; }
.concept-content h2 { font-size: clamp(1.8rem, 3.5vw, 3.3rem); }
.concept-content p { color: var(--muted); }
.concept-pitch { font-weight: 700; }
.concept-content p:last-of-type { margin-bottom: 1rem; }
.concept-content .button { margin-top: auto; }
.choice-control { min-width: min(100%, 16rem); display: grid; gap: .55rem; justify-items: start; }
.choice-control label { font-weight: 700; }
.choice-control select { max-width: 100%; min-height: 46px; padding: .4rem .65rem; color: var(--ink); background: var(--surface); border: 1px solid var(--muted); border-radius: 4px; }
.choice-control p { margin-top: 0; min-height: 1.6em; font-size: .9rem; }
.choice-control p:empty { display: none; }

@media (max-width: 1000px) {
  .desktop-nav, .header-action { display: none; }
  .mobile-nav { display: block; }
}

@media (max-width: 700px) {
  .bound { width: calc(100% - 2rem); }
  .header-inner { min-height: 66px; }
  .preview-inner { flex-wrap: wrap; justify-content: center; padding-block: .18rem; }
  .all-concepts { width: 100%; justify-content: center; min-height: 44px; }
  .preview-inner nav { flex-wrap: wrap; justify-content: center; }
  .preview-inner nav a { padding-inline: .63rem; }
  .hero-grid, .theme-reperes .hero-grid, .theme-rencontre .hero-grid, .profile-grid, .price-grid, .reading-grid, .concept-grid, .callout-inner, .portal-intro .bound { grid-template-columns: 1fr; }
  .hero-copy .lede { margin-top: 1.05rem; }
  .hero-photo picture, .theme-reperes .hero-photo picture { aspect-ratio: 1.25; }
  .theme-rencontre .hero { background: var(--paper); }
  .theme-rencontre .hero-copy { grid-column: auto; grid-row: auto; padding: 0; }
  .theme-rencontre .hero-photo { grid-column: auto; grid-row: auto; padding-inline: 1rem; }
  .theme-rencontre .hero-photo picture { aspect-ratio: 1.15; }
  .theme-cabinet .hero-photo::before { right: -.35rem; top: -.35rem; }
  .facts { margin-top: 1.1rem; }
  .steps, .topics { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .portal-header .text-link { font-size: .84rem; text-align: right; }
  .concept-cover img { aspect-ratio: 1.65; }
}

@media (max-width: 360px) {
  h1, .hero-copy h1, .theme-reperes .hero-copy h1, .theme-rencontre .hero-copy h1, .portal-intro h1 { font-size: 2.85rem; }
  .eyebrow { letter-spacing: .08em; }
  .brand { gap: .45rem; }
  .brand strong { font-size: 1.3rem; }
  .brand-mark { width: 1.5rem; height: 1.5rem; }
}
