/* FOBAK — couche formulaires modernes, renforcée V129.6.82 */
:root{--fobak-form-blue:#075985;--fobak-form-cyan:#0891b2;--fobak-form-gold:#facc15;--fobak-form-ink:#102b42;--fobak-form-muted:#52677a;--fobak-form-line:#bfd2df;--fobak-form-surface:#fff;--fobak-form-soft:#f6fafc;--fobak-form-error:#b42318;--fobak-form-success:#0f7a4f}
.fobak-modern-form{display:grid;gap:1rem;min-width:0;padding:clamp(1rem,2.2vw,1.55rem);border:1px solid rgba(7,89,133,.14);border-radius:20px;background:linear-gradient(145deg,#fff,#f7fbfd);box-shadow:0 12px 30px rgba(15,41,66,.07)}
.fobak-modern-form.form-grid,.fobak-modern-form.grid,.fobak-modern-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.fobak-modern-form label,.fobak-modern-form .field,.fobak-modern-form .form-field{display:flex;flex-direction:column;gap:.48rem;min-width:0;color:var(--fobak-form-ink);font-weight:800;line-height:1.35}
.fobak-modern-form label.full,.fobak-modern-form .full,.fobak-modern-form fieldset,.fobak-modern-form .form-actions,.fobak-modern-form .form-submit-row{grid-column:1/-1}
.fobak-modern-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),.fobak-modern-form select,.fobak-modern-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:50px;margin:0;padding:.76rem .9rem;border:1.5px solid var(--fobak-form-line);border-radius:12px;background:#fff;color:#142e44;font:inherit;font-size:16px;line-height:1.4;outline:0;box-shadow:0 1px 0 rgba(15,41,66,.02);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.fobak-modern-form textarea{min-height:122px;resize:vertical}.fobak-modern-form input::placeholder,.fobak-modern-form textarea::placeholder{color:#6c8091;opacity:1;font-weight:500}.fobak-modern-form input:focus,.fobak-modern-form select:focus,.fobak-modern-form textarea:focus{border-color:#0e8fc2;background:#fff;box-shadow:0 0 0 4px rgba(14,143,194,.13)}
.fobak-modern-form input[type=file]{padding:.55rem;background:#f7fbfd}.fobak-modern-form input[type=checkbox],.fobak-modern-form input[type=radio]{width:1.2rem;height:1.2rem;accent-color:#087eac;flex:0 0 auto}.fobak-modern-form label:has(> input[type=checkbox]),.fobak-modern-form label:has(> input[type=radio]){flex-direction:row;align-items:center;gap:.65rem;font-weight:700}
.fobak-modern-form fieldset{min-width:0;margin:0;padding:1rem;border:1px solid var(--fobak-form-line);border-radius:14px;background:rgba(245,250,253,.78)}.fobak-modern-form legend{padding:0 .45rem;color:var(--fobak-form-blue);font-weight:900}.fobak-modern-form small,.fobak-modern-form .field-help,.fobak-modern-form .muted{color:var(--fobak-form-muted);font-weight:550;line-height:1.5}
.fobak-modern-form button:not(.icon-btn),.fobak-modern-form .btn{min-height:48px;border-radius:12px;padding:.72rem 1.05rem;font-weight:850;white-space:normal}.fobak-modern-form .btn.primary,.fobak-modern-form .btn-primary,.fobak-modern-form button[type=submit]{background:linear-gradient(135deg,#facc15,#ffd92f);color:#10283d;border:0;box-shadow:0 8px 20px rgba(250,204,21,.20)}.fobak-modern-form .form-actions,.fobak-modern-form .form-submit-row{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}

/* V129.6.82 : modernisation progressive des formulaires qui n'ont pas encore la classe fobak-modern-form. */
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form):not(.inline-form){max-width:100%;color:var(--fobak-form-ink)}
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) label{color:var(--fobak-form-ink);font-weight:800;line-height:1.4}
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=submit]):not([type=button]),
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) select,
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) textarea{box-sizing:border-box;max-width:100%;min-height:48px;padding:.72rem .86rem;border:1.5px solid var(--fobak-form-line);border-radius:12px;background:#fff;color:#142e44;font-size:16px;line-height:1.4;outline:none;box-shadow:0 1px 2px rgba(15,41,66,.03);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) textarea{min-height:116px;resize:vertical}
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) input:focus,
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) select:focus,
:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) textarea:focus{border-color:var(--fobak-form-cyan);box-shadow:0 0 0 4px rgba(8,145,178,.12);background:#fff}
:where(.workspace-content,.public-content,main) form input::placeholder,:where(.workspace-content,.public-content,main) form textarea::placeholder{color:#718598;opacity:1}
:where(.workspace-content,.public-content,main) form input:disabled,:where(.workspace-content,.public-content,main) form select:disabled,:where(.workspace-content,.public-content,main) form textarea:disabled{background:#eef3f6;color:#607587;cursor:not-allowed}
:where(.workspace-content,.public-content,main) form input[type=file]{background:var(--fobak-form-soft);padding:.55rem;border-style:dashed}
:where(.workspace-content,.public-content,main) form input[type=checkbox],:where(.workspace-content,.public-content,main) form input[type=radio]{accent-color:var(--fobak-form-blue);width:1.15rem;height:1.15rem}
:where(.workspace-content,.public-content,main) form fieldset{border:1px solid var(--fobak-form-line);border-radius:14px;background:var(--fobak-form-soft);padding:1rem;min-width:0}:where(.workspace-content,.public-content,main) form legend{color:var(--fobak-form-blue);font-weight:900;padding:0 .4rem}
:where(.workspace-content,.public-content,main) form .field-help,:where(.workspace-content,.public-content,main) form .help-text,:where(.workspace-content,.public-content,main) form small,:where(.workspace-content,.public-content,main) form .muted{color:var(--fobak-form-muted);line-height:1.5;font-weight:550}
:where(.workspace-content,.public-content,main) form .error,:where(.workspace-content,.public-content,main) form .field-error,:where(.workspace-content,.public-content,main) form .invalid-feedback,:where(.workspace-content,.public-content,main) form [role=alert]{display:block;color:var(--fobak-form-error);background:#fff2f0;border:1px solid #f4c7c2;border-radius:10px;padding:.55rem .7rem;font-weight:750;line-height:1.4;margin:.35rem 0}
:where(.workspace-content,.public-content,main) form .success,:where(.workspace-content,.public-content,main) form .form-success{color:var(--fobak-form-success);background:#eefaf5;border:1px solid #bce6d2;border-radius:10px;padding:.55rem .7rem;font-weight:750}
:where(.workspace-content,.public-content,main) form button[type=submit],:where(.workspace-content,.public-content,main) form input[type=submit],:where(.workspace-content,.public-content,main) form .btn-primary{min-height:46px;border:0;border-radius:12px;padding:.68rem 1rem;background:linear-gradient(135deg,var(--fobak-form-blue),#0c7cab);color:#fff;font-weight:850;box-shadow:0 7px 18px rgba(7,89,133,.16);cursor:pointer}
:where(.workspace-content,.public-content,main) form button[type=reset]{min-height:46px;border:1px solid var(--fobak-form-line);border-radius:12px;padding:.68rem 1rem;background:#f5f8fa;color:var(--fobak-form-ink);font-weight:800;cursor:pointer}
:where(.workspace-content,.public-content,main) form .form-actions,:where(.workspace-content,.public-content,main) form .actions,:where(.workspace-content,.public-content,main) form .button-row{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin-top:.6rem}

/* Cartes/formulaires principaux plus propres sans toucher aux mini-formulaires techniques. */
.workspace-content>.card form:not(.inline-form),.workspace-content>.panel form:not(.inline-form),.public-content>.card form:not(.inline-form){border-radius:16px}
.workspace-content .page-heading h1,.workspace-content .panel-head h1,.workspace-content .card>h1,.public-content .page-heading h1{color:#103a5d;line-height:1.2}.workspace-content .page-heading p,.workspace-content .panel-head p,.workspace-content .card>p,.public-content .page-heading p{color:#52677a;line-height:1.55}

@media(max-width:760px){
  .fobak-modern-form,.fobak-modern-form.form-grid,.fobak-modern-form.grid,.fobak-modern-form .form-grid{grid-template-columns:1fr!important}.fobak-modern-form{padding:.85rem;border-radius:16px;gap:.8rem}.fobak-modern-form label,.fobak-modern-form .field{grid-column:1!important}.fobak-modern-form button:not(.icon-btn),.fobak-modern-form .btn{width:100%;justify-content:center}.notification-compose{padding:.85rem!important}.notification-layout{gap:.85rem!important}
  :where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) input:not([type=checkbox]):not([type=radio]):not([type=hidden]),:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) select,:where(.workspace-content,.public-content,main) form:not(.language-option-form):not(.global-search-form):not(.advanced-search-form) textarea{width:100%;font-size:16px}
  :where(.workspace-content,.public-content,main) form .form-actions,:where(.workspace-content,.public-content,main) form .actions,:where(.workspace-content,.public-content,main) form .button-row{flex-direction:column;align-items:stretch}
  :where(.workspace-content,.public-content,main) form .form-actions .btn,:where(.workspace-content,.public-content,main) form .actions .btn,:where(.workspace-content,.public-content,main) form .button-row .btn,:where(.workspace-content,.public-content,main) form button[type=submit],:where(.workspace-content,.public-content,main) form button[type=reset]{width:100%}
}
@media(prefers-reduced-motion:reduce){.fobak-modern-form *,:where(.workspace-content,.public-content,main) form *{transition:none!important}}

/* V129.6.84 — lisibilité globale renforcée dans l'application. */
.workspace-content,.public-content{--readable-ink:#16344a;--readable-muted:#425d70;--readable-heading:#073e6a;color:var(--readable-ink)}
.workspace-content :where(h1,h2,h3,h4,h5,h6),.public-content :where(h1,h2,h3,h4,h5,h6){color:var(--readable-heading);text-rendering:optimizeLegibility}
.workspace-content :where(p,li,dd,dt),.public-content :where(p,li,dd,dt){color:var(--readable-ink)}
.workspace-content :where(.muted,.text-muted,.field-help,.help-text,.list-item-meta,.kpi-meta,.chart-description,.activity-meta),.public-content :where(.muted,.text-muted,.field-help,.help-text,.list-item-meta,.activity-meta){color:var(--readable-muted)!important;opacity:1!important}
.workspace-content :where(.card,.panel,.page-heading,.table-wrap,.list-panel),.public-content :where(.card,.panel,.page-heading){color:var(--readable-ink)}
.workspace-content table :where(th,td),.public-content table :where(th,td){color:#18384f}
.workspace-content table th,.public-content table th{font-weight:850}
.workspace-content a:not(.btn):not(.quick-action):not(.top-action-notifications),.public-content a:not(.btn):not(.section-button):not(.quicklink-card){text-decoration-thickness:1.5px;text-underline-offset:2px}
.workspace-content input,.workspace-content select,.workspace-content textarea,.public-content input,.public-content select,.public-content textarea{color:#102f45!important}
.workspace-content input::placeholder,.workspace-content textarea::placeholder,.public-content input::placeholder,.public-content textarea::placeholder{color:#60798b!important;opacity:1!important}
