/* Relief du fond de connexion : même vert forêt, dégradé et diagonales légères.
   Le décor reste derrière le texte, sans calque susceptible de bloquer un clic. */
:root {
  --sta-button-forest: #103d30;
  --sta-button-relief:
    linear-gradient(135deg, transparent 67.7%, #ffffff14 67.8%, transparent 68.1%),
    linear-gradient(135deg, transparent 78.7%, #ffffff0d 78.8%, transparent 79.1%),
    linear-gradient(135deg, transparent 68%, #ffffff05 68%, #ffffff05 79%, #ffffff08 79%, #ffffff08 90%, #ffffff0b 90%),
    radial-gradient(ellipse at 110% 100%, #00000077, transparent 65%);
}

/* STA Solutions : reprendre exactement les actions déjà remplies en vert. */
html body.sta-reading-palette :is(a.button, button, .button, .action, .nav-cta, .submit, input[type="submit"], input[type="button"], .sta-chat-primary-link):where(:not(.secondary, .pro-action, .sta-chat-profile-option, .month-button, .text-button, .remove-work, .trade-tab:not([aria-pressed="true"]), .calendar-day:disabled)),
html body.sta-reading-palette :is(.pro-home-button, a.pc-button:not(.pc-button-outline), a.sc-button, .footer-mobile-service),
html body.sta-reading-palette header .wrap.nav > .nav-actions > .nav-login,
html body.sta-reading-palette button[aria-pressed="true"],
html body.sta-reading-palette .time-choice input:checked + span,
html body.sta-reading-palette.pilotage-discover main .quick-counts button[aria-pressed="true"],
/* STA Pilotage : connexion, site public et actions des espaces de travail. */
html:root body :is(.btn-primary, .button-green, .button.primary, .admin-small-button.primary),
html:root body .platform-security-dialog .button,
html:root body .role-tabs button[aria-selected="true"],
html:root body .quick-counts button[aria-pressed="true"] {
  background-color: var(--sta-button-forest) !important;
  background-image: var(--sta-button-relief) !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  color: #fff !important;
}

/* Les couleurs imposées à un descendant ne doivent pas masquer le libellé. */
html body.sta-reading-palette :is(a.button, button, .sta-chat-primary-link):where(:not(.secondary, .pro-action, .sta-chat-profile-option, .month-button, .text-button, .remove-work, .trade-tab:not([aria-pressed="true"]), .calendar-day:disabled)) :is(span, strong, b),
html:root body :is(.btn-primary, .button-green, .button.primary) :is(span, strong, b) {
  color: inherit !important;
}

@media (forced-colors: active) {
  /* Laisser le système afficher les limites des boutons en contraste renforcé. */
  html body :is(button, a, input[type="submit"], input[type="button"], .time-choice > span) {
    background-image: none !important;
  }
}

/* Flèches vectorielles communes aux listes : pas de glyphe dépendant de la police. */
html body select:not([multiple]):not(.sta-choice-native):is(:not([size]),[size="0"],[size="1"]){
  -webkit-appearance:none!important;
  appearance:none!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23103d30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 14px center!important;
  background-size:18px 18px!important;
  padding-right:48px!important;
  min-height:46px;
}
html body select:not([multiple]):not(.sta-choice-native):dir(rtl){background-position:left 14px center!important;padding-left:48px!important;padding-right:13px!important}
html body select:disabled:not(.sta-choice-native){cursor:not-allowed}
html body .sta-choice input.sta-choice-input{min-height:46px;padding-right:56px}
html body .sta-choice button.sta-choice-toggle{
  box-sizing:border-box;
  top:1px;right:1px;bottom:1px;width:44px;
  display:flex;align-items:center;justify-content:center;
  margin:0;padding:0;border:0;border-left:1px solid #d5dfd7;border-radius:0;
  background-color:#f3f6f1!important;background-image:none!important;
  color:#103d30!important;line-height:1;
  box-shadow:none;transform:none;overflow:hidden;
}
html body .sta-choice button.sta-choice-toggle .sta-choice-chevron{
  display:block;flex:none;width:18px;height:18px;margin:0;
  fill:none;stroke:currentColor;pointer-events:none;
  transform:rotate(0);transform-origin:center;transition:transform .15s ease;
}
html body .sta-choice button.sta-choice-toggle[aria-expanded="true"] .sta-choice-chevron{transform:rotate(180deg)}
html body .sta-choice button.sta-choice-toggle:hover:not(:disabled){background-color:#e6eee7!important}
html body .sta-choice button.sta-choice-toggle:active:not(:disabled){background-color:#dae5dc!important}
html body .sta-choice button.sta-choice-toggle:focus-visible{outline:2px solid #103d30;outline-offset:-4px}
html body .sta-choice button.sta-choice-toggle:disabled{opacity:.6;cursor:not-allowed}
@media(pointer:coarse){html body select:not([multiple]):not(.sta-choice-native){min-height:48px}html body .sta-choice input.sta-choice-input{min-height:48px}}
@media(prefers-reduced-motion:reduce){html body .sta-choice button.sta-choice-toggle .sta-choice-chevron{transition:none}}
@media(forced-colors:active){html body select:not([multiple]):not(.sta-choice-native){appearance:auto!important;background-image:none!important}html body .sta-choice button.sta-choice-toggle{background-color:ButtonFace!important;color:ButtonText!important;border-left:1px solid ButtonText}}
