/* STA Solutions : titres noirs, accents verts et textes noirs sur fond clair. */
html { overflow-x: clip; }
html body.sta-reading-palette main {
  --sta-reading-ink: #000;
  --sta-reading-accent: #006639;
  --hp-ink: #000;
  --hp-muted: #000;
  --pc-ink: #000;
  --pc-muted: #000;
  --p-ink: #000;
  --p-muted: #000;
  --ink: #000;
  --muted: #000;
}
html body.sta-reading-palette main :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,figcaption) {
  color: var(--sta-reading-ink) !important;
}
html body.sta-reading-palette main :is(h1,h2,h3,h4,h5,h6) :is(span,em),
html body.sta-reading-palette main :is(strong,b),
html body.sta-reading-palette main :is(.eyebrow,.hp-eyebrow,.pc-eyebrow,.sc-kicker,.sc-number,.hp-small-index,.pc-offer-label,.pd-case-index,.pd-case-tag,.path-subtitle) {
  color: var(--sta-reading-accent) !important;
}
html body.sta-reading-palette main p :is(span,small,em),
html body.sta-reading-palette main :is(.hp-promise-line>span,.hp-promise-top,.hp-example-caption,.hp-free,.hp-environment,.pc-lead,.pc-hero-note,.pc-reassurance span,.pd-breadcrumb,.form-help,.form-note,.form-intro,.privacy-note,.local-note,.setup-note,.sc-hub-grid>a>span,.p-metrics span,.p-dashboard-top>span,.p-site-row>div>span,.p-decision span,.p-demo-label,.p-illustration-note,.booking-intro>p,.sim-intro>p) {
  color: var(--sta-reading-ink) !important;
}
/* Le gras s'applique après les textes courants, y compris dans les encadrés. */
html body.sta-reading-palette main :is(p,li,dd,figcaption,summary) :is(strong,b) {
  color: var(--sta-reading-accent) !important;
}
html body.sta-reading-palette main :is(h3,h4,h5,h6,summary,.hp-zero,.hp-zero>span,.pc-audience-label>span,.pc-benefits article>span,.pd-case-index,.p-number,.small-index) {
  color: var(--sta-reading-accent) !important;
}
html body.sta-reading-palette main :is(label,legend,.optional,.sta-character-counter,.calendar-weekdays,.p-preview-footer>span,.hp-promise-bottom>span,.p-dashboard-top>span,.p-benefit) {
  color: var(--sta-reading-ink) !important;
}
/* Les boutons, messages et panneaux foncés gardent leurs textes blancs. */
html body.sta-reading-palette main :is(.pc-project,.pc-method,.hp-saving,.price-summary,.p-day,.p-preview-bottom,.annual-saving,.sta-feature-panel) {
  --sta-reading-ink: #fff;
  --sta-reading-accent: #fff;
  --hp-muted: #fff;
  --pc-muted: #fff;
  --p-muted: #fff;
}
html body.sta-reading-palette main :is(a.button,a.pc-button,a.sc-button,button,.sta-pilotage-banner-link) :is(strong,b,span) {
  color: inherit !important;
}
/* Le repère clair dans le bandeau conserve sa propre palette. */
html body.sta-reading-palette main .hp-method-note {
  --sta-reading-ink: #000;
  --sta-reading-accent: #006639;
}
/* Les cartes claires restent lisibles à l'intérieur d'un bandeau foncé. */
html body.sta-reading-palette main .sta-feature-panel :is(.sc-cards article,.support-card,.update-card,.risk-card,.useful-card,.resource-card,.useful-link) {
  --sta-reading-ink: #000;
  --sta-reading-accent: #006639;
  --muted: #000;
}
html body.sta-reading-palette main .sta-feature-panel a:not(.button):not(.pc-button):not(.sc-button) {
  color: var(--sta-reading-ink) !important;
}
html body.sta-reading-palette main :is(.application-form .status[data-state="error"],.form-status[data-state="error"],[role="alert"]) {
  color: #8b2020 !important;
}
/* Fond emprunté à l'écran de connexion, limité aux bandeaux éditoriaux. */
html body.sta-reading-palette main .sta-feature-panel {
  position: relative;
  isolation: isolate;
  background: transparent !important;
}
html body.sta-reading-palette main .sta-feature-panel:is(.sc-section,.sc-faq,.coordination,.useful-section) {
  padding-block: clamp(32px, 5vw, 64px);
}
html body.sta-reading-palette main .sta-feature-panel:is(.sc-section,.sc-faq) {
  margin-block: 28px;
}
.sta-panel-backdrop {
  display: block;
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc((100% - 100vw) / 2);
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
  background: #103D30;
}
.sta-panel-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 110% 100%, #00000077, transparent 65%);
}
.sta-panel-backdrop::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -290px;
  right: -310px;
  border: 1px solid #ffffff18;
  transform: rotate(45deg);
  box-shadow: 0 0 0 100px #ffffff04, 0 0 0 200px #ffffff03, 0 0 0 300px #ffffff02;
}
html body.sta-reading-palette main .sta-feature-panel :is(.hp-eyebrow,.pc-eyebrow,.eyebrow,.pc-text-link,.text-link,.hp-steps>li>span) {
  color: #fff !important;
}
html body.sta-reading-palette main .sta-feature-panel :is(.hp-steps>li,.pc-document-note,.pc-text-link,.text-link) {
  border-color: #ffffff40;
}
html body.sta-reading-palette main .sta-feature-panel :is(.pc-timeline,.p-day-timeline) li>span {
  background: transparent;
  border-color: #ffffff60;
  color: #fff;
}
html body.sta-reading-palette main .sta-feature-panel :is(.pc-timeline,.p-day-timeline) li::after,
html body.sta-reading-palette main .sta-feature-panel .p-day-timeline li::before {
  background: #ffffff40;
}
@media (max-width: 650px) {
  .sta-panel-backdrop::after {
    width: 430px;
    height: 430px;
    right: -290px;
    bottom: -270px;
  }
}
@media print {
  .sta-panel-backdrop { display: none; }
  html body.sta-reading-palette main .sta-feature-panel {
    --sta-reading-ink: #000;
    --sta-reading-accent: #006639;
  }
}

/* Un relief léger sur le fond blanc autour de la présentation de STA Pilotage. */
body.sta-reading-palette .sta-pilotage-banner-slot {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px max(24px, calc((100% - 1480px) / 2));
  overflow: hidden;
  background: #fff;
}
body.sta-reading-palette .sta-pilotage-banner-slot::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  right: -170px;
  bottom: -330px;
  transform: rotate(45deg);
  border: 1px solid #103d3014;
  box-shadow: 0 0 0 42px #103d3005, 0 0 0 84px #103d3004, 0 0 0 126px #103d3003;
  pointer-events: none;
}
body.sta-reading-palette .sta-pilotage-banner-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 100%, #103d3007, transparent 60%);
}
body.sta-reading-palette .sta-pilotage-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 110% 100%, #00000077, transparent 65%), #103D30;
}
body.sta-reading-palette .sta-pilotage-banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -240px;
  bottom: -240px;
  border: 1px solid #ffffff18;
  transform: rotate(45deg);
  box-shadow: 0 0 0 55px #ffffff04, 0 0 0 110px #ffffff03;
  pointer-events: none;
}
@media (max-width: 760px) {
  body.sta-reading-palette .sta-pilotage-banner-slot { padding: 16px; }
  body.sta-reading-palette .sta-pilotage-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  body.sta-reading-palette .sta-pilotage-banner-link { justify-self: start; }
}
