/* Easy Chantier · 1.3.326 · lot site-boutons-blancs (BB)
   Peau blanche des boutons d'action aujourd'hui en cuir vert : site, /plan/, parcours d'offre, application.
   Demande de Gabriel (19 novembre 2026) : les boutons passent en blanc, « moderne, épuré et premium ».

   Une seule source : ce fichier. L'application l'importe par src/boutons-blancs326.css (Vite l'intègre à la
   feuille d'entrée) ; /plan/ le lie dans son entête. Retirer ces deux accroches rend le cuir : aucune règle
   existante n'est modifiée.

   Cette feuille ne dessine que la peau : couleurs, bordure, ombre, anneau de focus, couleur de la trace.
   Elle ne déclare ni rayon, ni marge, ni hauteur, ni police, ni transition, ni animation : la géométrie, le
   rayon (--ec-green-cta-radius) et la trace du survol restent ceux des feuilles en place, sans décalage.

   La feuille d'entrée se charge avant les morceaux chargés à la demande : chaque règle gagne donc par sa
   spécificité, jamais par son ordre. Le bouton commun 258 et /plan/ répondent à des priorités « important »
   par la même priorité ; l'application, écrite sans priorité, reçoit des règles sans priorité.

   Non couverts, volontairement : états enfoncés ou cochés (bascule, filtre, case), boutons en pierre,
   boutons .cc-button-light et .secondary (déjà blancs), variantes de danger. */

/* ── Jetons : la nuance se règle ici, en un seul endroit ─────────────────────────────────────────── */
:root{
  --ec-btn-blanc-fond:#ffffff;
  --ec-btn-blanc-texte:#000000;
  --ec-btn-blanc-bord:#14251f;
  --ec-btn-blanc-survol:#f4f3f0;
  --ec-btn-blanc-appui:#e9e8e4;
  --ec-btn-blanc-anneau:#294d3f;
  --ec-btn-blanc-halo:#ffffff;
  --ec-btn-blanc-trace:#14251f;
  --ec-btn-blanc-accent:#294d3f;
  --ec-btn-blanc-ombre:0 1px 2px rgba(15,28,21,.06);
}

/* ── 1. Bouton commun 258 (site, parcours, application, entête de /plan/), bouton .button.leather de
        /plan/, bouton principal du parcours historique ─────────────────────────────────────────── */
:root body .ec258-btn.ec-v8-leather[data-ec258-tone=green],
:root body .button.leather,
:root body .ec-formule285 .primary-button{
  --ec-green-cta-border:var(--ec-btn-blanc-bord);
  --ec258-btn-bg:var(--ec-btn-blanc-fond);
  --ec258-btn-hover-bg:var(--ec-btn-blanc-survol);
  --ec258-btn-ink:var(--ec-btn-blanc-texte);
  --ec258-btn-line:var(--ec-btn-blanc-trace);
  color:var(--ec-btn-blanc-texte)!important;
  background-color:var(--ec-btn-blanc-fond)!important;
  background-image:none!important;
  border-color:var(--ec-btn-blanc-bord)!important;
  box-shadow:var(--ec-btn-blanc-ombre)!important;
  text-shadow:none!important;
}
/* Libellé, pictogramme et roue de chargement : noirs, y compris là où une feuille les forçait en blanc. */
:root body .ec258-btn.ec-v8-leather[data-ec258-tone=green] :is(.ec258-btn-copy,.ec258-btn-label,.ec258-btn-leading,.ec258-btn-leading svg),
:root body .ec-formule285 .primary-button svg.icon{
  color:var(--ec-btn-blanc-texte)!important;
}
/* Trace du survol : même dessin, même durée, à l'encre sombre au lieu du blanc cassé. */
:root body .ec258-btn.ec-v8-leather[data-ec258-tone=green] :is(.ec258-btn-outline,.ec258-btn-outline rect),
:root body .button.leather :is(.trace,.trace rect){
  stroke:var(--ec-btn-blanc-trace)!important;
}
/* Rail de chargement : l'accent vert de la marque. */
:root body .ec258-btn.ec-v8-leather[data-ec258-tone=green] .ec258-btn-progress{
  background-color:var(--ec-btn-blanc-accent);
}
/* Survol : léger voile de pierre, sur les appareils à pointeur seulement (pas de survol collant au toucher). */
@media (hover:hover){
  :root body .ec258-btn.ec-v8-leather[data-ec258-tone=green]:hover:not(:disabled,[aria-disabled=true]),
  :root body .button.leather:hover,
  :root body .ec-formule285 .primary-button:hover:not(:disabled,[aria-disabled=true]){
    background-color:var(--ec-btn-blanc-survol)!important;
  }
}
/* Appui : tonal, rien ne bouge. */
:root body .ec258-btn.ec-v8-leather[data-ec258-tone=green]:active:not(:disabled,[aria-disabled=true]),
:root body .button.leather:active,
:root body .ec-formule285 .primary-button:active:not(:disabled,[aria-disabled=true]){
  background-color:var(--ec-btn-blanc-appui)!important;
  box-shadow:none!important;
}
/* Focus clavier : anneau vert de 2 px détaché de 2 px, doublé d'un halo blanc. Sur fond clair on lit
   l'anneau vert ; sur fond sombre ou sur une photo on lit le halo blanc autour de l'anneau. */
:root body .ec258-btn.ec-v8-leather[data-ec258-tone=green]:focus-visible,
:root body .button.leather:focus-visible,
:root body .ec-formule285 .primary-button:focus-visible{
  outline:2px solid var(--ec-btn-blanc-anneau)!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 6px var(--ec-btn-blanc-halo)!important;
}
/* Indisponible ou occupé : l'opacité en place suffit ; aucun relief. */
:root body .ec258-btn.ec-v8-leather[data-ec258-tone=green]:is(:disabled,[aria-disabled=true]){
  box-shadow:none!important;
}
/* Plus de texture à attendre : le bouton n'est plus retenu jusqu'au décodage du cuir (polices306.css).
   « inherit », jamais « visible » : un bouton placé dans un volet masqué reste masqué. */
html:not(.ec-cuir-pret):root body .ec258-btn.ec-v8-leather[data-ec258-tone=green]{
  visibility:inherit;
  animation:none;
}

/* Parcours historique et paiement (Formule285, paiement 31) : trois feuilles y forcent le libellé en blanc
   avec priorité. Une règle par contexte : un sélecteur refusé par un navigateur n'annule pas les autres. */
html:root body .ec-formule285[data-folio292] #main #wizard-content .ec258-btn.ec-v8-leather[data-ec258-tone=green] :is(.ec258-btn-label,.ec258-btn-copy){
  color:var(--ec-btn-blanc-texte)!important;
}
html:root body .cc-app.ec-checkout-v8 .ec-checkout31[data-folio-checkout] .ec258-btn.ec-v8-leather[data-ec258-tone=green] :is(.ec258-btn-label,.ec258-btn-copy){
  color:var(--ec-btn-blanc-texte)!important;
}
html:root body .cc-app.cc-app.cc-app.ec-checkout-v8:has(.ec-checkout31) .ec-checkout31.ec-checkout31[data-folio-checkout][data-checkout-sheet] .ec258-btn.ec-v8-leather[data-ec258-tone=green] :is(.ec258-btn-label,.ec258-btn-copy){
  color:var(--ec-btn-blanc-texte)!important;
}

/* ── 2. Application : boutons principaux en cuir de interieur309.css (.cc-button, .office-button,
        .bu248-button principal). Même cible, mêmes exclusions, plus les états enfoncés ; aucune priorité.
        Les habillages propres à un module, écrits avec #root, gardent la main comme aujourd'hui. ───── */
html:root:root:root:root body :is(.cc-app,.office-app,.office-entry,.office-workspace) :is(.cc-button:not(.cc-button-light,.cc-button-danger),.office-button:not(.secondary,.office-button-light,.danger),.bu248-button[data-variant=primary]):not(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],[aria-checked=true],[aria-current=page],[aria-current=step],[aria-current=true],:where(.ec-plan-immersive239 *)){
  --ec-green-cta-border:var(--ec-btn-blanc-bord);
  color:var(--ec-btn-blanc-texte);
  background-color:var(--ec-btn-blanc-fond);
  background-image:none;
  border-color:var(--ec-btn-blanc-bord);
  box-shadow:var(--ec-btn-blanc-ombre);
  text-shadow:none;
}
@media (hover:hover){
  html:root:root:root:root body :is(.cc-app,.office-app,.office-entry,.office-workspace) :is(.cc-button:not(.cc-button-light,.cc-button-danger),.office-button:not(.secondary,.office-button-light,.danger),.bu248-button[data-variant=primary]):not(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],[aria-checked=true],[aria-current=page],[aria-current=step],[aria-current=true],:where(.ec-plan-immersive239 *)):hover{
    color:var(--ec-btn-blanc-texte);
    background-color:var(--ec-btn-blanc-survol);
    background-image:none;
    box-shadow:var(--ec-btn-blanc-ombre);
  }
}
html:root:root:root:root body :is(.cc-app,.office-app,.office-entry,.office-workspace) :is(.cc-button:not(.cc-button-light,.cc-button-danger),.office-button:not(.secondary,.office-button-light,.danger),.bu248-button[data-variant=primary]):not(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],[aria-checked=true],[aria-current=page],[aria-current=step],[aria-current=true],:where(.ec-plan-immersive239 *)):active{
  color:var(--ec-btn-blanc-texte);
  background-color:var(--ec-btn-blanc-appui);
  background-image:none;
  box-shadow:none;
}
/* Focus : l'anneau du socle reste seul maître ; le halo blanc le rend lisible sur fond sombre. */
html:root:root:root:root body :is(.cc-app,.office-app,.office-entry,.office-workspace) :is(.cc-button:not(.cc-button-light,.cc-button-danger),.office-button:not(.secondary,.office-button-light,.danger),.bu248-button[data-variant=primary]):not(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],[aria-checked=true],[aria-current=page],[aria-current=step],[aria-current=true],:where(.ec-plan-immersive239 *)):focus-visible{
  box-shadow:0 0 0 6px var(--ec-btn-blanc-halo);
}
/* Plus de texture à attendre (interieur309.css) : même levée que pour le bouton commun. */
html:not(.ec-cuir-pret):root body :is(.cc-app,.office-app,.office-entry,.office-workspace) :is(.cc-button:not(.cc-button-light,.cc-button-danger),.office-button:not(.secondary,.office-button-light,.danger),.bu248-button[data-variant=primary]):not(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],[aria-checked=true],[aria-current=page],[aria-current=step],[aria-current=true],:where(.ec-plan-immersive239 *)){
  visibility:inherit;
  animation:none;
}
/* Pictogrammes forcés en blanc par trois modules (paie, paie configurée, suivi du Bureau) : couleur du libellé. */
html:root body .ec-salaries252 .cc-button:not(.cc-button-light,.cc-button-danger,:disabled,[aria-disabled=true],[aria-pressed=true],[aria-current=page]) svg,
html:root body .ec-payroll245 .cc-button:not(.cc-button-light,.cc-button-danger,:disabled,[aria-disabled=true],[aria-pressed=true],[aria-current=page]) svg,
html:root body .ec-pipeline245 .office-button:not(.secondary,.office-button-light,.danger,:disabled,[aria-disabled=true],[aria-pressed=true],[aria-current=page]) svg{
  color:inherit!important;
}
/* Compteur de messages posé sur un bouton principal : pastille à l'accent vert, chiffres blancs. */
html:root body #root :is(.et-team-page,.ec-team-chat209) .cc-button:not(.cc-button-light,.cc-button-danger,:disabled,[aria-disabled=true],[aria-pressed=true]) .ec-chat249-unread{
  background-color:var(--ec-btn-blanc-accent);
  color:var(--ec-btn-blanc-fond);
}

/* ── 3. Ma journée : carte d'action « principale » en cuir (interieur309.css) ────────────────────── */
html:not([data-ec-theme=dark]):root:root:root body .cc-app.ec-shell208 .cc-main .ec-day208.ec-day248 .ec-day208-primary>button.ec-day208-create.ec-day208-create,
html:not([data-ec-theme=dark]):root:root:root body .cc-app .ec-day208-primary>button.ec-day208-create.ec-day208-create{
  --ec-day248-create-bg:var(--ec-btn-blanc-fond);
  --ec-green-cta-border:var(--ec-btn-blanc-bord);
  color:var(--ec-btn-blanc-texte);
  background-color:var(--ec-btn-blanc-fond);
  background-image:none;
  border-color:var(--ec-btn-blanc-bord);
  box-shadow:var(--ec-btn-blanc-ombre);
}
html:not([data-ec-theme=dark]):root:root:root body .cc-app .ec-day208-primary>button.ec-day208-create.ec-day208-create :is(strong,small,span,svg){
  color:inherit;
}
@media (hover:hover){
  html:not([data-ec-theme=dark]):root:root:root body .cc-app.ec-shell208 .cc-main .ec-day208.ec-day248 .ec-day208-primary>button.ec-day208-create.ec-day208-create:hover:not(:disabled),
  html:not([data-ec-theme=dark]):root:root:root body .cc-app .ec-day208-primary>button.ec-day208-create.ec-day208-create:hover:not(:disabled){
    background-color:var(--ec-btn-blanc-survol);
    background-image:none;
  }
}
html:not([data-ec-theme=dark]):root:root:root body .cc-app.ec-shell208 .cc-main .ec-day208.ec-day248 .ec-day208-primary>button.ec-day208-create.ec-day208-create:active:not(:disabled),
html:not([data-ec-theme=dark]):root:root:root body .cc-app .ec-day208-primary>button.ec-day208-create.ec-day208-create:active:not(:disabled){
  background-color:var(--ec-btn-blanc-appui);
  background-image:none;
  box-shadow:none;
}

/* ── 4. Contraste forcé : couleurs du système, aucun relief ──────────────────────────────────────── */
@media (forced-colors:active){
  :root body .ec258-btn.ec-v8-leather[data-ec258-tone=green],
  :root body .button.leather,
  :root body .ec-formule285 .primary-button{
    color:ButtonText!important;
    background-color:ButtonFace!important;
    border-color:ButtonText!important;
    box-shadow:none!important;
  }
  :root body .ec258-btn.ec-v8-leather[data-ec258-tone=green]:focus-visible,
  :root body .button.leather:focus-visible,
  :root body .ec-formule285 .primary-button:focus-visible{
    outline-color:Highlight!important;
    box-shadow:none!important;
  }
  :root body .ec258-btn.ec-v8-leather[data-ec258-tone=green] :is(.ec258-btn-copy,.ec258-btn-label,.ec258-btn-leading,.ec258-btn-leading svg){
    color:ButtonText!important;
  }
  :root body .ec258-btn.ec-v8-leather[data-ec258-tone=green] .ec258-btn-progress{
    background-color:ButtonText;
  }
  html:root:root:root:root body :is(.cc-app,.office-app,.office-entry,.office-workspace) :is(.cc-button:not(.cc-button-light,.cc-button-danger),.office-button:not(.secondary,.office-button-light,.danger),.bu248-button[data-variant=primary]):not(:disabled,[aria-disabled=true],[aria-pressed=true],[aria-selected=true],[aria-checked=true],[aria-current=page],[aria-current=step],[aria-current=true],:where(.ec-plan-immersive239 *)){
    color:ButtonText;
    background-color:ButtonFace;
    border-color:ButtonText;
    box-shadow:none;
  }
}
