/* The pages built before the 3D homepage (Plan Stratégique Énergie, simulation DPE, Observatoire, défi, mentions)
   in the homepage's design. Loads after their own stylesheets and site.v20261109v4.css: it maps their tokens and
   shared components onto the homepage's, and leaves charts, tables and diagnostic colours as they are. */

:root { --brand-blue: #00a2c2; --blue-soft: var(--teal-tint); }
.landing {
  --muted: var(--ink-2);   /* the old pages set running text in --muted: it takes the secondary ink */
  --meta: #66727e;         /* captions, breadcrumbs, notes */
  --line: rgba(17, 28, 38, 0.1);
  --obs-ink-2: var(--ink-2);
  --obs-all: #3d4c59;
  --press-petrol: var(--teal-press);
  --press-pale: var(--paper-2);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}
.landing .obs-svg text { font-family: var(--font); }
.landing .foot { border-top: 1px solid var(--line); }
/* the press page keeps its own links in the bar, drawn like the homepage's */
.landing .bar .press-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.press-nav a:not(.press-nav-cta) { padding: 12px 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 0.35em; }
@media (hover: hover) and (pointer: fine) { .press-nav a:not(.press-nav-cta):hover { color: var(--ink); text-decoration-color: currentColor; } }
.landing .press-nav-cta { min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .landing .press-nav-cta:hover { background: var(--teal-ink); } }
@media (max-width: 479px) { /* logo + three links do not fit a phone: the hero's own button leads to the territories */
  .press-nav a[href="#territoire"] { display: none; }
  .landing .press-nav-cta { padding: 0 14px; }
}

/* ---------- type ---------- */
.landing :is(h1, h2, h3, h4) { font-weight: 600; }
.pse-hero h1 { font: 600 clamp(2rem, 1.1rem + 2.2vw, 3.125rem)/1.04 var(--font); letter-spacing: -0.035em; } /* Host Grotesk sets wider than Inter */
.pse-hero h1 br { display: inline; } /* the markup has no space at the break: hiding it on phones glued two words */
.landing .hero h1 { font: 600 var(--fs-display)/0.98 var(--font); letter-spacing: -0.035em; }
.pse-page .pse-heading h2, .pse-page .pse-split h2, .pse-page .closing h2, .pse-page .pse-case h2 {
  font: 600 var(--fs-title)/1.08 var(--font); letter-spacing: -0.03em;
}
.pse-page .pse-pair h2, .pse-output-copy h3, .obs-page .obs-une h2 { font-weight: 600; letter-spacing: -0.025em; }
.pse-page h1 span, .pse-page h2 span { color: var(--teal); } /* large text only: teal holds 3:1 there */
.landing .eyebrow {
  margin-bottom: 14px; font-size: var(--fs-small); font-weight: 600; line-height: 1.4;
  letter-spacing: 0; text-transform: none; color: var(--copper);
}
.pse-intro, .pse-heading > p:last-child, .landing .hero-intro { color: var(--ink-2); }
.landing .closing > div > p:last-child { font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }
.landing .closing .closing-action p { font-size: var(--fs-small); color: var(--meta); }
.pse-breadcrumb ol { font-size: 0.875rem; color: var(--meta); }
.pse-breadcrumb li + li::before { color: var(--meta); }
.pse-hero-art figcaption, .pse-chart figcaption, .pse-case .pse-note, .landing .hero-note, .pse-sample { font-size: 0.875rem; color: var(--meta); }
.pse-sample { background: var(--paper-2); }
/* small labels: sentence case, no tracking, like the homepage's */
.obs-formula-title, .obs-fact-title, .obs-card-soon, .obs-sources-title, .obs-article-meta, .press-eyebrow,
.press-side-title, .press-picker-label, .press-option-kind, .press-phrases h4, .press-badges span {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.press-band-title { font-size: 0.875rem !important; letter-spacing: 0 !important; text-transform: none !important; }
.obs-formula-title, .obs-article-meta { color: var(--teal-ink); }
.press-eyebrow { font-size: var(--fs-small); color: var(--copper); }
.obs-fact-title, .obs-card-soon, .obs-sources-title, .press-side-title, .press-picker-label, .press-option-kind, .press-phrases h4, .press-badges span { color: var(--meta); }
.pse-inline-link, .pse-data summary, .sim-flag, .landing .product-link { color: var(--teal-ink); }

/* ---------- buttons and links: the homepage's pill and bold teal link ---------- */
.landing .button { font: 700 1.1875rem/1 var(--font); }
.landing .button:hover { box-shadow: none; border-color: transparent; }
.landing .button span { font-size: inherit; font-weight: inherit; }
.landing .button-small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.landing .button-outline { background: var(--teal-tint); color: var(--teal-ink); border: 0; }
@media (hover: hover) and (pointer: fine) { .landing .button-outline:hover { background: #cdebf2; color: var(--teal-ink); } }
.pse-actions .button, .pse-inline-cta .button, .pse-page .closing .button, .landing .hero-actions .button {
  min-width: 0; min-height: 56px; padding: 0 30px; gap: 8px; font-size: 1.1875rem;
}
.landing .text-link {
  display: inline-flex; gap: 8px; font-size: 1.1875rem; font-weight: 700; color: var(--teal);
  text-decoration: underline; text-decoration-color: rgba(0, 162, 194, 0.35); text-decoration-thickness: 1.5px; text-underline-offset: 0.25em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.landing .text-link span { color: inherit; font-size: inherit; }
@media (hover: hover) and (pointer: fine) { .landing .text-link:hover { color: var(--teal-ink); text-decoration-color: currentColor; } }

/* ---------- surfaces: white paper and the faint teal field, no glows, no dark slabs ---------- */
.pse-hero, .pse-restitutions, .press-hero { background: var(--paper); }
.pse-decisions, .pse-faq, .obs-locked .obs-gate { background: var(--paper-2); }
.pse-inline-cta, .press-contact { background: var(--paper-2); color: var(--ink); }
.press-contact h2 { color: var(--ink); }
.press-quote { padding-left: 0; border-left: 0; color: var(--ink-2); }
.press-person { background: var(--white); border: 1px solid var(--line); }
.press-person-role, .press-person-line, .press-resource p, .press-licence { color: var(--ink-2); }
.press-person a:not(.button) { color: var(--ink); }
.press-photo-placeholder { background: var(--paper-2); color: var(--meta); border-color: var(--field-line); }
.press-licence, .press-badges li { background: var(--paper-2); }
.landing .press-download { border: 0; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .landing .press-download:hover { background: #cdebf2; color: var(--teal-ink); } }
.pse-residents, .sim-promise { padding: 16px 20px; border-left: 0; border-radius: 10px; background: var(--paper-2); }
.sim-note { padding-left: 0; border-left: 0; }
.product-benefit-icon { background: var(--teal-tint); }
.obs-une-label { background: var(--teal-tint); color: var(--teal-ink); font-size: 0.875rem; letter-spacing: 0; text-transform: none; }

/* ---------- demo dialog: the homepage's ---------- */
.landing .demo-dialog { width: min(34rem, calc(100vw - 32px)); max-height: calc(100svh - 32px); border: 0; border-radius: 10px; }
.landing .demo-dialog::backdrop { background: rgba(20, 32, 43, 0.45); }
.landing .dialog-inner h2 { font: 600 var(--fs-title)/1.06 var(--font); letter-spacing: -0.03em; }
.landing .dialog-inner > p:not(.eyebrow) { font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }
.landing .dialog-close { width: 44px; height: 44px; font-size: 1.75rem; color: var(--ink-2); }
.landing .dialog-close:hover { background: var(--paper-2); }
.landing .form-field label { margin-bottom: 6px; font-size: var(--fs-small); font-weight: 400; }
.landing .form-field label span { font-size: inherit; color: var(--meta); }
.landing .form-field input, .landing .form-field textarea { padding: 13px 14px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.landing .form-field input:hover, .landing .form-field textarea:hover { border-color: var(--ink-2); }
.landing .form-field input:focus, .landing .form-field textarea:focus { outline: 2px solid var(--teal-ink); outline-offset: 0; border-color: transparent; }
.landing .form-submit { width: auto; min-height: 56px; padding: 0 30px; }
.landing .form-note { font-size: var(--fs-small); line-height: 1.5; color: var(--meta); }
.landing .form-error { padding: 0; border: 0; background: none; font-size: var(--fs-small); color: var(--red); }

/* ---------- défi: the old hero in the homepage's voice ---------- */
.landing .hero { padding: calc(40px + 4svh) 0 48px; }
.landing .hero h1 br { display: none; }
.landing .hero h1 span { display: block; margin-top: 16px; font: 500 var(--fs-head)/1.15 var(--font); letter-spacing: -0.02em; color: var(--teal); }
.landing .hero-intro { font-size: var(--fs-lead); }
.landing .scanner-copy b, .landing .scanner-mobile-caption b { color: var(--teal-ink); } /* small text: logo teal is only 3:1 */
.landing .hero .eyebrow { display: block; padding: 0; border-radius: 0; background: none; } /* no pill: the homepage's plain label */
.landing .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (hover: hover) and (pointer: fine) { .landing .hero-actions .button:hover { background: var(--teal-ink); } }
.defi-small { display: none; }
/* the 60-second challenge needs a bigger screen: phones (and phones held sideways) get a note instead */
@media (max-width: 767px), (max-height: 520px) and (pointer: coarse) {
  .landing .hero-visual { display: none; }
  .defi-small { display: block; margin: 0 0 28px; padding: 18px 20px; border-radius: 10px; background: var(--paper-2); }
  .defi-small p { margin: 0; color: var(--ink-2); }
  .defi-small p:first-child { margin-bottom: 4px; font-weight: 600; color: var(--ink); }
}

/* ---------- mentions légales ---------- */
.legal { width: min(46rem, 100%); margin: 0 auto; padding: 72px var(--margin) 120px; }
.legal h1 { margin: 0 0 40px; font: 600 var(--fs-section)/1.02 var(--font); letter-spacing: -0.035em; }
.legal h2 { margin: 48px 0 12px; font: 600 var(--fs-sub)/1.12 var(--font); letter-spacing: -0.02em; }
.legal p { margin: 0; max-width: 68ch; color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal a:not(.button):not(.link) { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .legal a:not(.button):not(.link):hover { color: var(--teal-ink); } }

/* ---------- use-case pages and the validity guide ---------- */
.pse-steps.is-three, .pse-questions.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pse-steps.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.guide-intro { max-width: 46rem; }
.guide-title { margin: 0 0 24px; font: 600 var(--fs-sub)/1.12 var(--font); letter-spacing: -0.02em; }
.guide-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-body); line-height: 1.45; }
.guide-table th, .guide-table td { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table thead th { font-size: 0.875rem; font-weight: 600; color: var(--meta); }
.guide-table tbody th { font-weight: 600; color: var(--ink); }
.guide-table td { color: var(--ink-2); }
.landing .pse-note { margin-top: 18px; font-size: var(--fs-small); color: var(--meta); }
@media (max-width: 1050px) {
  .pse-steps.is-three, .pse-questions.is-three, .pse-steps.is-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pse-steps.is-three, .pse-questions.is-three, .pse-steps.is-five { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { /* a phone reads each row as a block, every value under its column name */
  .guide-table { min-width: 0; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; }
  .guide-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .guide-table th, .guide-table td { padding: 2px 0; border: 0; }
  .guide-table tbody th { margin-bottom: 4px; font-size: var(--fs-lead); }
  .guide-table td::before { content: attr(data-label) " : "; font-weight: 600; color: var(--ink); }
}
