/* Shared public-site system. The existing app, house rasters and homepage demo stay intact. */
.public-site { --public-muted: #b2b0a6; }
.public-site ::selection { color: #18130b; background: #f7cd73; }
.public-site a { text-underline-offset: .22em; }
.public-site .btn { font-family: inherit; font-weight: 600; }
.public-site :focus-visible { outline: 2px solid #f7cd73; outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--sun-1); color: #18130b; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.public-header { max-width: 1440px; padding: 20px 36px; gap: 32px; }
.public-header .logo { flex: 0 0 auto; }
.public-header .logo svg { height: 31px; }
.public-header .nav { font-size: 14px; gap: 32px; align-items: center; }
.public-header .nav a { position: relative; padding: 9px 0; color: #d2d0c9; }
.public-header .nav a[aria-current] { color: white; }
.public-header .nav a[aria-current]::after { content: ''; position: absolute; height: 2px; background: #f2b533; bottom: 0; left: 0; right: 0; }
.public-account { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 20px; color: white; font-size: 13px; white-space: nowrap; border: 1px solid #ffffff2a; border-radius: 999px; text-decoration: none; }
.public-account:hover { background: #ffffff0b; }
/* « Créer mon compte » : l'inscription gratuite de l'espace, à côté de « Mon espace ». */
.public-signup { margin-left: auto; color: #1b1305; font-weight: 600; border-color: transparent; background: linear-gradient(100deg, #ffe29a, #f2b533 55%, #e8862a); }
.public-signup:hover { background: linear-gradient(100deg, #ffe29a, #f2b533 55%, #e8862a); filter: brightness(1.07); }
.public-signup + .public-account { margin-left: -20px; }
.public-footer { max-width: 1360px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding: 42px 24px; margin-top: 60px; }
.public-footer .footer-brand { font-size: 23px; font-weight: 600; color: white; text-decoration: none; }
.footer-brand span { display: block; max-width: 240px; color: var(--public-muted); font-size: 14px; font-weight: 400; margin-top: 12px; }
.public-footer nav { display: grid; gap: 10px; align-content: start; }
.public-footer nav a { width: fit-content; color: var(--public-muted); font-size: 14px; text-decoration: none; }
.public-footer nav a:hover { color: white; }
.public-footer small { grid-column: 1/-1; color: var(--public-muted); }
.public-section { max-width: 1260px; margin: 0 auto; padding: 64px 36px; }
.public-section h2 { font-size: clamp(28px,3.2vw,44px); line-height: 1.12; letter-spacing: -.035em; }
.public-section h3 { font-size: 23px; line-height: 1.2; }
.public-section p { color: #c3c2b7; line-height: 1.65; }
.section-intro { max-width: 760px; margin-bottom: 36px; }
.section-intro > p { margin-top: 18px; font-size: 18px; max-width: 65ch; }
.editorial-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; }
.editorial-pair article { padding-top: 24px; border-top: 1px solid #ffffff26; }
.editorial-pair p { margin: 16px 0; }
.editorial-pair a, .public-detail a { color: var(--sun-1); }
.public-close { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid #ffffff20; }
.public-close p { margin-top: 18px; max-width: 58ch; }
.public-close .btn { flex-shrink: 0; min-height: 48px; }
.public-guide {
  display: flex;
  align-items: center;
  gap: 16px;
}
.public-guide img {
  width: 72px;
  height: 96px;
  flex-shrink: 0;
  object-fit: contain;
}
.discovery-copy .public-guide {
  margin-top: 16px;
  max-width: 38ch;
}
.public-guide .discovery-note {
  margin: 0;
}

.public-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.story-link { display: flex; gap: 30px; align-items: center; border-top: 1px solid #ffffff20; padding: 30px 0; text-decoration: none; }
.story-link > span { flex: 1; }
.story-link b { display: block; font-size: 25px; font-weight: 500; }
.story-link small { display: block; margin-top: 8px; color: var(--public-muted); font-size: 16px; max-width: 65ch; }
.story-link svg { width: 50px; height: 50px; color: var(--sun-1); }
.story-link i { font-style: normal; color: var(--sun-1); font-size: 26px; }
.story-link:hover b { color: var(--sun-1); }
.home-journey { padding-top: 28px; }
.home-journey > h2 { margin-bottom: 32px; }
.roadmap-note { padding-top: 24px; padding-bottom: 12px; }
.roadmap-note h2 { font-size: 25px; }
.roadmap-note p { margin: 12px 0; max-width: 70ch; }
.roadmap-note a { color: var(--public-muted); }
/* Discovery composition: independently readable copy and an existing house illustration. */
.discovery-intro { max-width: 1440px; padding: 50px 44px 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .39fr) minmax(0,.61fr); column-gap: 30px; align-items: start; }
.discovery-copy { padding-top: 22px; position: relative; z-index: 2; }
.discovery-copy h1 { font-size: clamp(38px,3.7vw,56px); line-height: 1.06; letter-spacing: -.035em; width: min(590px,118%); }
.discovery-copy h1 span, .public-next h2 span { color: #f7d37e; }
.discovery-lead { margin-top: 24px; color: #d0cec9; font-size: 18px; line-height: 1.5; max-width: 47ch; }
.discovery-cta { display: inline-flex; margin-top: 30px; min-height: 56px; padding: 14px 26px; gap: 18px; align-items: center; font-size: 17px; }
.discovery-cta span { font-size: 25px; font-weight: 400; }
.discovery-note { margin-top: 16px; max-width: 38ch; font-size: 14px; line-height: 1.5; color: #bdbbb7; }
.energy-scene { position: relative; height: clamp(350px,31vw,465px); min-width: 0; isolation: isolate; }
.example-tag { position: absolute; top: 0; right: 0; z-index: 4; border: 1px solid #ffffff27; border-radius: 999px; padding: 5px 12px; font-size: 12px; color: #c3c2b7; background: #151517; }
.discovery-house { position: absolute; width: 72%; height: 87%; object-fit: contain; left: 12%; bottom: 0; z-index: 1; }
.scene-sun { position: absolute; top: 1%; left: 42%; color: #f2b533; width: 46px; height: 46px; z-index: 2; transition: transform .6s ease-out, color .6s; }
.scene-sun svg { width: 100%; height: 100%; }
.scene-orbit { position: absolute; width: 90%; height: 80%; left: 5%; top: 6%; border: 1px dashed #f2b53377; border-bottom: 0; border-radius: 50% 50% 0 0; z-index: 0; }
.scene-flows { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.scene-flows { opacity: 0; }
.scene-flows[data-connected="true"] { opacity: 1; }
.scene-flows path { stroke-width: 3; stroke-dasharray: 8 5; animation: energy-travel 3s linear infinite; }
.flow-solar { stroke: #f2b533; }
.flow-home { stroke: #ddd7c6; }
.flow-battery { stroke: #7fe3f0; }
.energy-label { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid currentColor; border-radius: 13px; background: #141416ed; z-index: 3; min-width: 144px; }
.energy-label svg { width: 29px; height: 29px; flex-shrink: 0; }
.energy-label span { font-size: 12px; color: #e5e3dc; line-height: 1.2; }
.energy-label strong { display: block; font-size: 26px; color: #f2b533; font-weight: 500; line-height: 1.2; margin-top: 5px; font-variant-numeric: tabular-nums; }
.production-label { top: 11%; right: 3%; color: #f2b533; }
.consumption-label { left: 0; top: 57%; color: #c9c6bd; }
.consumption-label strong { color: white; }
.battery-label { bottom: 15%; right: 0; color: #7fe3f0; }
.battery-label strong { color: #7fe3f0; }
.energy-scene[data-moment="matin"] .scene-sun { transform: translate(-100px,30px); }
.energy-scene[data-moment="soir"] .scene-sun { transform: translate(180px,60px); color: #8b9fca; }
.energy-scene[data-moment="soir"] .flow-solar { opacity: 0; }
.energy-scene[data-moment="soir"] .flow-battery { animation-direction: reverse; }
.day-copy { align-self: center; padding: 18px 0 0; }
.day-copy h2 { font-size: 24px; line-height: 1.2; }
.day-copy p { color: #c8c5be; font-size: 15px; margin-top: 12px; max-width: 39ch; }
.day-selector { display: flex; justify-content: space-around; gap: 16px; padding: 16px 24px; border: 1px solid #ffffff2a; border-radius: 30px; background: #ffffff05; margin-top: 12px; }
.day-selector button { position: relative; display: grid; justify-items: center; gap: 2px; flex: 1; border: 0; padding: 0 8px; background: none; color: #b8b6af; cursor: pointer; font: inherit; }
.day-selector svg { border: 1px solid #ffffff40; padding: 8px; width: 48px; height: 48px; border-radius: 50%; background: #ffffff07; }
.day-selector button::after { content: ''; position: absolute; left: calc(50% + 27px); top: 23px; width: calc(100% - 18px); height: 1px; background: #f2b53360; }
.day-selector button:last-child::after { display: none; }
.day-selector button[aria-pressed="true"] { color: #f2b533; }
.day-selector button[aria-pressed="true"] svg { border-color: #f2b533; background: #f2b5330d; }
.day-selector b { font-size: 19px; font-weight: 500; }
.day-selector span { font-size: 13px; }
.day-explanation { grid-column: 1/-1; color: var(--public-muted); font-size: 14px; line-height: 1.5; margin: 22px 0 0; min-height: 42px; padding-bottom: 18px; }
.discovery-benefits { max-width: 1352px; margin: 0 auto; padding: 30px 0; border-top: 1px solid #ffffff22; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 30px; align-items: center; }
.discovery-benefits h2 { font-size: 20px; line-height: 1.25; }
.discovery-benefits article { display: flex; gap: 14px; align-items: start; }
.discovery-benefits svg { width: 34px; height: 34px; color: #f7d37e; flex-shrink: 0; }
.discovery-benefits h3 { font-size: 15px; margin-bottom: 6px; }
.discovery-benefits p { color: var(--public-muted); font-size: 13px; line-height: 1.45; }
.public-next { max-width: 1392px; margin: 12px auto 0; padding: 28px 36px; background: #ffffff04; border: 1px solid #ffffff20; border-radius: 28px; display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 24px; align-items: center; }
.public-next h2 { font-size: 36px; line-height: 1.1; }
.public-next a { min-height: 96px; display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid #ffffff24; border-radius: 15px; background: #ffffff04; text-decoration: none; }
.public-next a:hover { border-color: #f2b53380; }
.public-next a svg { width: 40px; height: 40px; color: #f7d37e; flex-shrink: 0; }
.public-next b { font-size: 17px; }
.public-next small { display: block; font-size: 13px; color: var(--public-muted); margin-top: 6px; line-height: 1.4; }
.public-next i { margin-left: auto; color: #f7d37e; font-style: normal; }
.reader-section { max-width: 1120px; padding-top: 84px; }
.reader-section .btn { margin-top: 28px; }
.public-detail { border-top: 1px solid #ffffff25; padding: 0; margin: 0; }
.public-detail:last-of-type { border-bottom: 1px solid #ffffff25; }
.public-detail summary { cursor: pointer; padding: 22px 32px 22px 0; font-size: 19px; font-weight: 500; color: #f1eee7; }
.public-detail[open] summary { color: #f7d37e; }
.public-detail p { max-width: 72ch; padding-bottom: 22px; color: #c3c2b7; }
.public-detail > a { display: inline-block; margin-bottom: 22px; }
.public-detail .connector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  max-width: 72ch;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}
.connector-list li {
  color: #c3c2b7;
  font-size: 15px;
  line-height: 1.55;
}
.connector-list strong {
  display: block;
  color: #f1eee7;
  font-weight: 500;
  margin-bottom: 3px;
}
@media (max-width: 600px) {
  .public-detail .connector-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.reader-section .editorial-pair { margin-bottom: 38px; }
/* Guide and interactive pages inherit the same reading rhythm without changing engines. */
.public-intro { max-width: 1260px; padding: 54px 36px 40px; }
.public-intro > h1, .public-intro h1 { max-width: 19ch; font-size: clamp(36px,4.2vw,58px); }
.public-intro .lead { max-width: 65ch; font-size: 18px; margin-top: 22px; }
.guide-index { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #ffffff24; }
.guide-index a { color: #f7d37e; padding: 8px 0; }
.guide-chapter { padding-top: 28px; padding-bottom: 36px; max-width: 1100px; scroll-margin-top: 24px; }
.guide-chapter .section-intro { margin-bottom: 22px; }
.public-site .calc-head { max-width: 1260px; padding: 54px 36px 24px; }
.public-site .calc-head h2 { font-size: clamp(30px,3.4vw,44px); line-height: 1.1; }
.public-site .calc { max-width: 1260px; padding-left: 36px; padding-right: 36px; }
.public-site .calc-in { border-radius: 20px; }
.public-site .inv-note { line-height: 1.6; }
.public-site .band-end .eyebrow { display: none; }
.public-site .sim-hero { display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.public-site .sim-hero .btn { flex-shrink: 0; }
.public-site .sim { max-width: 1260px; }
.scene-guide > h2 { margin-bottom: 30px; }
.guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-bottom: 30px; }
.guide-steps article { border-top: 1px solid #f2b53366; padding-top: 18px; }
.guide-steps b { font-size: 20px; font-weight: 500; }
.guide-steps p { margin-top: 12px; font-size: 15px; }
.scene-guide > p { margin-top: 24px; }
.public-site .apercu-demo { max-width: 1260px; }
.public-site #demander { scroll-margin-top: 24px; }
.public-site .dm-form { text-align: left; }
.public-site .dm-form label input, .public-site .dm-form textarea { font-size: 16px; }
.public-site .ms-lock { max-width: 960px; text-align: left; margin-left: auto; margin-right: auto; padding: 60px 36px 30px; }
.public-site .ms-lock .lead { max-width: 60ch; }
.simulation-help { max-width: 960px; padding-top: 20px; }
.simulation-help h2 { font-size: 30px; margin-bottom: 16px; }
.public-site .legal { max-width: 1000px; }
.public-site .legal p { max-width: 75ch; }
.public-site [hidden] { display: none !important; }
@keyframes energy-travel { to { stroke-dashoffset: -52; } }
@media (max-width: 1100px) {
 .public-header { gap: 22px; padding-left: 24px; padding-right: 24px; }
 .public-header .nav { gap: 20px; }
 .discovery-intro { padding-left: 30px; padding-right: 30px; column-gap: 20px; }
 .discovery-copy h1 { font-size: 43px; }
 .discovery-lead { font-size: 16px; }
 .energy-label { padding: 8px 10px; min-width: 124px; gap: 7px; }
 .energy-label strong { font-size: 22px; }
 .energy-label svg { width: 23px; height: 23px; }
 .discovery-benefits { margin-left: 30px; margin-right: 30px; gap: 20px; }
 .public-next { margin-left: 24px; margin-right: 24px; grid-template-columns: .65fr 1fr 1fr; gap: 16px; padding: 24px; }
 .public-next h2 { font-size: 30px; }
 .public-next a { gap: 10px; padding: 12px; }
 .public-next a svg { width: 28px; height: 28px; }
}
@media (max-width: 800px) {
 .public-header { flex-wrap: wrap; gap: 10px; padding: 18px 20px; }
 .public-header .logo svg { height: 28px; }
 .public-account { margin-left: auto; padding: 8px 14px; }
 .public-signup + .public-account { margin-left: 0; }
 .public-header .nav { order: 3; flex-basis: 100%; margin: 6px 0 0; justify-content: space-between; gap: 10px; font-size: 13px; }
 .discovery-intro { grid-template-columns: minmax(0,1fr); padding: 18px 24px 0; }
 .discovery-copy { padding: 12px 0 0; }
 .discovery-copy h1 { font-size: clamp(34px,6.5vw,49px); width: 100%; }
 .discovery-copy h1 br { display: none; }
 .discovery-lead { max-width: 60ch; margin-top: 18px; }
 .discovery-cta { margin-top: 24px; }
 .discovery-note { max-width: 60ch; }
 .energy-scene { height: clamp(340px,60vw,450px); margin: 30px 0 0; }
 .day-copy { padding-top: 20px; }
 .day-copy h2 { font-size: 25px; }
 .day-copy p { max-width: none; }
 .day-selector { margin-top: 20px; padding: 14px 8px; gap: 8px; }
 .day-explanation { grid-column: 1; }
 .discovery-benefits { grid-template-columns: 1fr; margin: 12px 24px 0; gap: 24px; padding: 28px 0; }
 .discovery-benefits h2 br { display: none; }
 .discovery-benefits article { gap: 18px; }
 .discovery-benefits h3 { font-size: 17px; }
 .discovery-benefits p { font-size: 15px; }
 .public-next { grid-template-columns: 1fr; border-radius: 22px; margin: 12px 20px 0; padding: 24px; }
 .public-next h2 { font-size: 32px; }
 .public-next a { min-height: 86px; }
 .public-next b { font-size: 18px; }
 .public-next small { font-size: 14px; }
 .public-section { padding: 44px 24px; }
 .public-section .section-intro > p { font-size: 17px; }
 .public-close { align-items: flex-start; flex-direction: column; }
 .public-intro { padding: 32px 24px; }
 .public-intro .lead { font-size: 17px; }
 .guide-index { gap: 4px; flex-direction: column; }
 .guide-index a { padding: 8px 0; }
 .guide-chapter { padding-top: 20px; }
 .public-site .sim-hero { flex-direction: column; align-items: flex-start; gap: 24px; }
 .guide-steps { grid-template-columns: 1fr; gap: 24px; }
 .public-site .calc-head { padding: 32px 24px 20px; }
 .public-site .calc { grid-template-columns: minmax(0,1fr); padding: 0 20px 40px; }
 .public-footer { grid-template-columns: 1fr 1fr; margin-top: 32px; padding: 32px 24px; gap: 28px; }
 .footer-brand { grid-column: 1/-1; }
 .public-site .ms-lock { padding: 32px 24px; }
}
@media (max-width: 480px) {
 .public-header { padding-left: 16px; padding-right: 16px; }
 .public-header .logo svg { height: 25px; }
 .public-header .nav { font-size: 12px; gap: 5px; }
 .public-account { font-size: 12px; padding: 7px 12px; }
 /* Les deux boutons tiennent à côté du logo : sans la flèche, plus serrés. */
 .public-header .public-account { padding: 7px 10px; }
 .public-header .public-account span[aria-hidden] { display: none; }
 .discovery-intro { padding-left: 20px; padding-right: 20px; }
 .discovery-cta { width: 100%; justify-content: center; font-size: 16px; }
 .energy-scene { height: 310px; }
 .discovery-house { width: 76%; left: 10%; height: 80%; bottom: 18px; }
 .scene-sun { top: 10%; width: 34px; height: 34px; }
 .scene-orbit { top: 14%; height: 65%; }
 .energy-label { gap: 6px; padding: 7px 8px; min-width: 108px; border-radius: 11px; }
 .energy-label span { font-size: 11px; }
 .energy-label strong { font-size: 21px; }
 .energy-label svg { width: 21px; height: 21px; }
 .production-label { top: 21%; right: 0; }
 .consumption-label { top: 56%; left: -2px; }
 .battery-label { bottom: 5%; }
 .energy-scene[data-moment="matin"] .scene-sun { transform: translate(-70px,20px); }
 .energy-scene[data-moment="soir"] .scene-sun { transform: translate(70px,30px); }
 .day-selector b { font-size: 17px; }
 .editorial-pair { grid-template-columns: 1fr; gap: 24px; }
 .story-link { gap: 14px; }
 .story-link b { font-size: 22px; }
 .story-link svg { width: 34px; height: 34px; flex-shrink: 0; }
 .story-link small { font-size: 15px; }
 .public-section { padding-left: 20px; padding-right: 20px; }
 .public-detail summary { font-size: 18px; }
 .public-footer { grid-template-columns: 1fr; }
 .public-section .public-actions { align-items: stretch; flex-direction: column; }
 .public-section .public-actions .btn { justify-content: center; }
 .public-site .sim-hero .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
 .scene-flows path { animation: none; }
 .scene-sun { transition: none; }
}
/* Keep the full discovery sequence visible at desktop width, as in the approved composition. */
@media (min-width: 801px) {
 .energy-scene { height: clamp(350px,27vw,405px); }
 .discovery-copy h1 { font-size: clamp(38px,3.9vw,58px); }
 .day-selector { padding-top: 10px; padding-bottom: 10px; }
 .day-explanation { margin-top: 12px; min-height: 22px; padding-bottom: 0; }
 .discovery-benefits { padding-top: 24px; padding-bottom: 24px; }
}

.sim-account-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
