/* LAZZARO FRANCO · design épuré. Chargé seulement dans /application/. */
body.studio-view.atelier-view {
  color-scheme:dark;background:#000000!important;color:#fff!important;
  --bg:#000000;--card:#161616;--text:#fff;--ink:#fff;--muted:#c9c9cc;--line:transparent;
  --gold:#D4AF37;--blue:#c9c9cc;--green:#c9c9cc;--red:#c9c9cc;--accent:#c9c9cc;
  --lf-secondary:#2a2a2a;--lf-field:#222;--lf-muted:#c9c9cc;
}
body.studio-view.atelier-view :is(main,#atelierSidebar,.logiciel-header,.title,.mobile-nav,.studio-title-row) {
  background:#000000!important;color:#fff!important;border:0!important;box-shadow:none!important;
}
body.studio-view.atelier-view :is(.card,.atelier-panel,.lf-compact-hero,.lf-compact-agenda,.lf-compact-extras,.lf-objectif-card,dialog,.desk-dial,.day-overview,.atelier-location,.atelier-pro-card,.atelier-state,.notice,.atelier-search-results,.assistant-strip,.agenda-actions,.annual-source) {
  background:#161616!important;border:0!important;border-radius:20px!important;
  color:#fff!important;box-shadow:none!important;text-shadow:none!important;
}
body.studio-view.atelier-view :is(.lf-compact-rdv,.lf-compact-head,.atelier-client-row,.day-client-row,.lf-goal-company,.row,.work-day) {
  border:0!important;box-shadow:none!important;background-image:none!important;
}
body.studio-view.atelier-view :is(.day-client-row,.lf-goal-forecast,.calendar-event,.month-event,.tag,.work-day,.workday-control) {
  background:#222!important;color:#fff!important;border:0!important;box-shadow:none!important;
}
body.studio-view.atelier-view :is(h1,h2,h3,h4,label,summary,.lf-cash-date,strong,dd,.lf-plan-amount,.lf-plan-total) {color:#fff!important;text-shadow:none!important}
body.studio-view.atelier-view :is(p,small,dt,legend,.atelier-eyebrow,.desk-dial span,.desk-dial time,#sync,.lf-compact-head span,.lf-compact-hero p) {
  color:var(--lf-muted)!important;text-shadow:none!important;
}
body.studio-view.atelier-view #atelierSidebar .logiciel-title strong,
body.studio-view.atelier-view .lf-preview-brand {
  color:var(--gold)!important;font:650 .78rem/1.3 system-ui,sans-serif!important;letter-spacing:.08em!important;
}
body.studio-view.atelier-view :is(input,textarea,select,.atelier-search-box),
body.studio-view.atelier-view dialog :is(input,select,textarea) {
  background:var(--lf-field)!important;color:var(--lf-muted)!important;border:0!important;
  box-shadow:none!important;accent-color:var(--lf-muted);color-scheme:dark;
}
body.studio-view.atelier-view :is(input,textarea)::placeholder {color:#b7b7bb}
body.studio-view.atelier-view button {
  min-height:44px;background:var(--lf-secondary)!important;color:#fff!important;
  border:0!important;box-shadow:none!important;text-shadow:none!important;
}
body.studio-view.atelier-view button :is(b,small,span,div,time,svg,h3,p,strong) {color:inherit!important}
body.studio-view.atelier-view button:is(.lf-compact-link,.lf-ghost,#dailyGoal,#studioBack,#dismiss,.atelier-client-select) {
  background:transparent!important;color:var(--lf-muted)!important;
}
body.studio-view.atelier-view button:is(:disabled,[aria-disabled=true]) {opacity:.55}
body.studio-view.atelier-view button[aria-pressed=true]:not(.lf-ghost) {text-decoration:underline;text-underline-offset:.2em}
body.studio-view.atelier-view:not(:has(dialog[open])) :is(
  .lf-compact-add,.agenda-actions button[data-quick=booking],#newClient,#lfAddObjective
) {background:var(--gold)!important;color:#000!important}
body.studio-view.atelier-view.lf-cash-page #lfAddObjective {background:var(--lf-secondary)!important;color:#fff!important}
body.studio-view.atelier-view.lf-cash-page:not(:has(dialog[open])) .lf-goal-controls button[data-workday-action=start],
body.studio-view.atelier-view.lf-cash-page:not(:has(dialog[open],button[data-workday-action=start])) #deskCheckout:not(:disabled),
body.studio-view.atelier-view.lf-cash-page:not(:has(dialog[open],button[data-workday-action=start],#deskCheckout:not(:disabled))) #openCash,
body.studio-view.atelier-view dialog[open] :is(button[type=submit],button.lf-preview-submit) {
  background:var(--gold)!important;color:#000!important;
}
body.studio-view.atelier-view .mobile-nav button[data-page] {background:transparent!important;color:#b9b9bd!important;border:0!important;text-decoration:none}
body.studio-view.atelier-view .mobile-nav button[data-page][aria-current=page] {background:transparent!important;color:var(--gold)!important;border:0!important}
body.studio-view.atelier-view .mobile-nav button[data-page] :is(span,svg,small) {color:inherit!important}
body.studio-view.atelier-view .day-client-row {margin-block:10px;border-radius:16px}
body.studio-view.atelier-view :is(.day-clients,.atelier-home-clients,.atelier-day-list) {max-height:none;overflow:visible}
body.studio-view.atelier-view :focus-visible {outline:2px solid #fff;outline-offset:3px}
body.studio-view.atelier-view progress {accent-color:#c9c9cc;color:#c9c9cc;background:#272727!important}
body.studio-view.atelier-view progress::-webkit-progress-bar {background:#272727!important}
body.studio-view.atelier-view progress::-webkit-progress-value {background:#c9c9cc!important}
body.studio-view.atelier-view progress::-moz-progress-bar {background:#c9c9cc!important}
body.studio-view.atelier-view.lf-cash-page .cash-toolbar h2.lf-cash-date {color:#fff!important}
body.studio-view.atelier-view.lf-cash-page .lf-goal-controls .lf-hours-toggle {
  background:var(--lf-secondary)!important;color:#fff!important;padding:8px 14px!important;
  border-radius:12px!important;text-decoration:none;
}
body.studio-view.atelier-view .lf-goal-controls {display:flex;flex-direction:column;align-items:flex-start;gap:12px}
body.studio-view.atelier-view .lf-goal-controls .workday-control {position:static!important;margin:0!important;transform:none!important;padding:0!important;background:transparent!important}
body.studio-view.atelier-view .lf-goal-controls button {height:auto;min-height:44px;white-space:normal}
body.studio-view.atelier-view .goal-v8 #workClock {display:block;margin:6px 0;color:var(--lf-muted)!important}
body.studio-view.atelier-view .goal-v8 .lf-objectif-meter {margin-top:10px}
body.studio-view.atelier-view .lf-daily-amount {font-size:clamp(2rem,8vw,2.7rem);line-height:1.15;display:block;margin:10px 0;color:#fff!important}
body.studio-view.atelier-view .lf-plan-amount {text-align:right;font-size:.95rem;font-weight:750;white-space:nowrap}
body.studio-view.atelier-view .lf-plan-total {font-weight:750;margin:7px 0 0;text-align:right}
body.studio-view.atelier-view .lf-objectifs-top {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px}
body.studio-view.atelier-view .lf-objectifs :is(h2,h3,h4) {margin:0 0 6px}
body.studio-view.atelier-view .lf-objectifs-top p,body.studio-view.atelier-view .lf-objectif-card p {margin:3px 0 10px}
body.studio-view.atelier-view .lf-goal-company {margin-top:16px;padding-top:12px}
body.studio-view.atelier-view .lf-objectif-card {padding:15px;margin-top:9px}
body.studio-view.atelier-view .lf-objectif-heading {display:flex;justify-content:space-between;align-items:baseline;gap:9px;flex-wrap:wrap}
body.studio-view.atelier-view .lf-objectif-heading>b {color:#fff!important;font-size:clamp(1.45rem,6vw,2.1rem);line-height:1.15}
body.studio-view.atelier-view .lf-objectif-card dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0}
body.studio-view.atelier-view .lf-objectif-card dt {font-size:.875rem}
body.studio-view.atelier-view .lf-objectif-card dd {margin:3px 0 0;font-weight:750;font-size:clamp(1.05rem,3.8vw,1.35rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.studio-view.atelier-view .lf-objectif-meter {min-height:42px;position:relative;background:#303030;border:0;border-radius:50px;overflow:hidden}
body.studio-view.atelier-view .lf-objectif-fill {position:absolute;inset:0 auto 0 0;border-radius:50px;background:var(--objectif-teinte,#b61313)!important;transition:width .25s,background-color .25s}
body.studio-view.atelier-view .lf-objectif-fill.lf-objectif-zero {min-width:6px}
body.studio-view.atelier-view .lf-objectif-badge {
  position:absolute;top:50%;left:clamp(40%,var(--objectif-position,0%),60%);transform:translate(-50%,-50%);
  color:#fff!important;background:#222!important;border:0;border-radius:30px;font-weight:750;font-size:clamp(.65rem,3vw,.8rem);
  line-height:1.2;max-width:78%;text-align:center;white-space:normal;padding:5px 8px;transition:left .25s;
}
body.studio-view.atelier-view .lf-compact-nav {grid-template-columns:repeat(3,minmax(0,1fr))}
body.studio-view.atelier-view .lf-compact-agenda button.lf-compact-rdv {grid-template-columns:2.6rem minmax(0,1fr) max-content;gap:8px;margin:4px 0;padding-inline:8px}
@media(max-width:820px) {
  body.studio-view.atelier-view #atelierSidebar .logiciel-header {padding-top:calc(10px + env(safe-area-inset-top,0px))!important}
  body.studio-view.atelier-view main {padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
  body.studio-view.atelier-view .mobile-nav {grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;padding:8px 0 calc(8px + env(safe-area-inset-bottom,0px))!important}
  body.studio-view.atelier-view .mobile-nav button {min-width:0!important;padding-inline:1px!important;outline-offset:-2px!important}
}
@media(max-width:380px) {body.studio-view.atelier-view .lf-compact-nav {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce) {body.studio-view.atelier-view :is(.lf-objectif-fill,.lf-objectif-badge) {transition:none}}

body.studio-view.atelier-view :is(.lf-compact-hero,.lf-compact-agenda,.lf-compact-extras,.atelier-panel,.day-clients,.goal-v8) {border:0!important}
body.studio-view.atelier-view .lf-compact button.lf-compact-rdv {background:var(--lf-secondary)!important;border:0!important;border-radius:12px!important;color:#fff!important}
body.studio-view.atelier-view .lf-compact button.lf-compact-link {background:transparent!important;color:var(--lf-muted)!important;border:0!important}
body.studio-view.atelier-view .mobile-nav button[data-page][aria-current=page]{background:transparent!important;color:var(--gold)!important}
body.studio-view.atelier-view #atelierSidebar #refresh {background:transparent!important;border:0!important;color:var(--lf-muted)!important}
body.studio-view.atelier-view :is(.desk-actions,.day-client-row,.phase-filters,.atelier-actions,.cash-toolbar,.weekday-strip-inner,.atelier-pro-card) button:not([data-workday-action=start]):not(.lf-compact-add) {
  background:var(--lf-secondary)!important;color:#fff!important;border:0!important;
}
body.studio-view.atelier-view.lf-cash-page:not(:has(dialog[open],button[data-workday-action=start])) .desk-actions #deskCheckout:not(:disabled),
body.studio-view.atelier-view.lf-cash-page:not(:has(dialog[open],button[data-workday-action=start],#deskCheckout:not(:disabled))) .cash-toolbar #openCash {
  background:var(--gold)!important;color:#000!important;
}
body.studio-view.atelier-view .phase-filters button[aria-pressed=true] {text-decoration:underline}
body.studio-view.atelier-view .mobile-nav button[data-page] small {white-space:nowrap}
/* Le fichier FINAL-VALIDE est la référence pour l’ordre et la palette de la caisse. */
body.studio-view.atelier-view.lf-cash-page .cash-toolbar .bar {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:7px}
body.studio-view.atelier-view.lf-cash-page .cash-toolbar h2.lf-cash-date {font-size:clamp(17px,5.6vw,26px)!important}
body.studio-view.atelier-view .lf-cash-summary {margin:0!important}
body.studio-view.atelier-view .lf-daily-amount span {color:#fff!important;font-size:inherit;font-weight:inherit}
body.studio-view.atelier-view.lf-cash-page .lf-goal-controls {align-items:stretch}
body.studio-view.atelier-view.lf-cash-page .lf-goal-controls .lf-hours-toggle {align-self:flex-start}
body.studio-view.atelier-view :is(.lf-compact-add,.lf-goal-controls button,.lf-hours-toggle,#lfAddObjective,button[data-hub-booking],button[data-day-arrival]) {border-radius:14px!important}
body.studio-view.atelier-view .lf-objectif-meter {background:#222!important}
body.studio-view.atelier-view .lf-objectif-badge {background:#222!important}
body.studio-view.atelier-view .sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.studio-view.atelier-view.lf-cash-page .lf-goal-controls .lf-see-clients {align-self:flex-start;border-radius:14px!important;padding:8px 14px!important}
body.studio-view.atelier-view.lf-cash-page:not(:has(dialog[open])) #lfAddObjective {
  background:#2A2A2A!important;color:#fff!important;
}
