/* FACILIM — espaces de travail, octobre 2026. Présentation sans règle métier. */
#modal-parametres .es-settings{width:min(100%,700px);max-width:700px;max-height:calc(100dvh - 32px);overflow:auto;border-radius:20px;color:#16343d}
.es-settings>div:first-child{align-items:flex-start;padding:28px 30px 24px;background:#faf9f5}
.es-settings-brand{display:inline-flex;align-items:center;letter-spacing:.1em;font:700 17px system-ui;color:#16343d;gap:1px}
.es-settings h2{font:500 clamp(26px,4vw,34px)/1.2 Georgia,serif;margin:18px 0 8px}
.es-settings-intro,.es-settings-reading p{font-size:14px;line-height:1.6;color:#52666b;margin:0}
#pa-close{min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid #d5dfda;background:white;color:#16343d}
.es-settings-reading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:20px;background:#edf5ec;border:1px solid #c4d9c5;border-radius:12px;margin-bottom:22px}
.es-settings-reading h3{font-size:17px;font-weight:650;margin:0 0 5px}.es-settings-reading .es-settings-note{flex-basis:100%;font-size:12px}
.es-settings-label{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:#52666b;margin:22px 0 10px!important}
.es-settings-link{display:flex;align-items:center;gap:16px;width:100%;padding:16px;text-align:left;text-decoration:none;background:white;border:1px solid #d5dfda;border-radius:10px;color:#16343d;cursor:pointer}
.es-settings-link>svg,.es-settings-icon{width:24px;height:24px;flex:none;color:#176753}.es-settings-link>span:nth-child(2){flex:1;min-width:0}.es-settings-link strong{display:block;font-size:15px;font-weight:650}.es-settings-link small{display:block;font-size:13px;line-height:1.5;color:#52666b;margin-top:4px}.es-settings-link:hover{background:#f3f8f1;border-color:#176753}
.es-settings-follow{display:block;font-size:13px;color:#176753;padding:12px 0;text-underline-offset:4px}
.es-page :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #176753;outline-offset:3px}
.es-admin-panels [hidden]{display:none!important}.es-admin-tabs{border-bottom:1px solid #d5dfda;padding-bottom:14px}.es-admin-tabs [aria-selected=true]{background:#16343d;color:white}
.es-case-summary{background:#edf5ec;border:1px solid #c4d9c5;border-radius:12px;padding:22px}.es-case-summary h2{font:500 24px Georgia,serif;margin:0 0 16px}.es-case-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:18px}.es-case-summary dt{font-size:12px;font-weight:700;color:#176753;margin-bottom:5px}.es-case-summary dd{font-size:14px;line-height:1.6;margin:0}.es-case-summary p{font-size:12px;margin-top:14px;color:#52666b}
.es-help-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.es-help-choices button{white-space:normal;min-height:70px}.es-help-choices [aria-pressed=true]{background:#16343d;color:white}
.es-code-help{margin:22px 0 0;font-size:14px;line-height:1.65;color:var(--es-ink)}.es-code-help summary{cursor:pointer;font-weight:600;padding:10px 0}.es-code-help p{margin-top:8px}
@media(max-width:600px){#modal-parametres{padding:10px}#modal-parametres .es-settings{max-height:calc(100dvh - 20px);border-radius:14px}.es-settings>div:first-child{padding:20px}.es-settings>div:nth-child(2){padding:18px}.es-settings-link{padding:14px;gap:10px}.es-help-choices{grid-template-columns:1fr}.es-case-summary dl{grid-template-columns:1fr}.es-admin-tabs{gap:6px}.es-admin-tabs a{flex:1 1 42%}}
:root{--es-ink:#16343d;--es-green:#176753;--es-paper:#faf9f5;--es-line:#d5dfda;--es-muted:#52666b;--es-mint:#d6f5d8}
.es-page{background:var(--es-paper);color:var(--es-ink)}
.es-page .barre{background:var(--es-ink)}
.es-page .barre__lien[aria-current=page]{background:#294e51;box-shadow:inset 3px 0 #b5e3bc}
.es-page .cockpit-titre h1,.es-page .fc-admin-title h1{font:500 clamp(28px,3.2vw,42px)/1.15 Georgia,serif;color:var(--es-ink)}
.es-page .fc-page-intro{max-width:800px;font-size:16px;color:var(--es-muted)}
.es-kicker{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--es-green);margin:0 0 14px}
.es-heading{font:500 clamp(30px,4vw,52px)/1.1 Georgia,serif;letter-spacing:-.03em;margin:0 0 18px;color:var(--es-ink)}
.es-actions,.es-localnav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 28px}
.es-actions a,.es-localnav a,.es-localnav button,.es-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid var(--es-line);border-radius:8px;background:#fff;color:var(--es-ink);text-decoration:none;font:600 14px/1.5 var(--fc-font,system-ui);cursor:pointer}
.es-actions a:first-child,.es-button--primary{background:var(--es-green);color:#fff;border-color:var(--es-green)}
.es-localnav a:hover,.es-localnav button:hover{background:#eaf4eb}
.es-localnav [aria-current=page],.es-localnav [aria-pressed=true]{background:var(--es-mint);border-color:#5b8b65;color:var(--es-ink)}
.es-page .main-carte{border-top-color:var(--es-green);border-radius:12px;background:white}
.es-page .main-carte__tete{padding:22px}.es-page .main-carte__tete h2{font-size:21px}
.es-page .stat-card{background:white;border:1px solid var(--es-line)}
.es-page #modal-dossier{padding:0;background:var(--es-paper)}
.es-page #modal-dossier>div.bg-white{width:100%;height:100dvh;max-width:100%;max-height:100dvh;min-width:0;border-radius:0;resize:none;box-shadow:none}
.es-page #modal-dossier>div.bg-white::after{display:none}
.es-page #modal-dossier>div>div:first-child{background:var(--es-paper)}
.es-page #modal-content{scroll-behavior:auto;background:#fff;padding:24px 32px;scroll-padding-top:20px}
.es-page #modal-zone-pro{background:#f1f5f0;border-color:var(--es-line)}
.es-dossier-nav{padding:10px 24px;display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--es-line);background:var(--es-paper);flex:none}
.es-dossier-nav button{border:1px solid var(--es-line);border-radius:7px;background:white;color:var(--es-ink);padding:8px 12px;min-height:42px;font-size:13px}
.es-dossier-nav button[hidden]{display:none}.es-dossier-nav button:hover{background:var(--es-mint)}
.es-section{padding:26px;background:white;border:1px solid var(--es-line);border-radius:12px;margin-bottom:24px;scroll-margin-top:24px;min-width:0;overflow-wrap:anywhere}
.es-section h2{font:500 26px/1.25 Georgia,serif;margin:0 0 16px}.es-section h3{font-size:18px;margin:0 0 12px}.es-section p{line-height:1.7;color:var(--es-muted)}
.es-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.es-section label{display:block;font-weight:600;margin:18px 0 7px}.es-section input,.es-section select,.es-section textarea{width:100%;padding:11px;border:1px solid #829c91;border-radius:7px;background:#fff}.es-section textarea{min-height:140px}
.es-feedback{padding:16px;background:#edf5eb;border-left:3px solid var(--es-green);margin:18px 0;line-height:1.6}.es-feedback:empty{display:none}.es-feedback[data-error=true]{background:#fff0e9;border-color:#a64225;color:#7a311e}
.es-tip{font-size:14px;color:var(--es-muted);margin:12px 0}.es-row{border-top:1px solid var(--es-line);padding:18px 0;overflow-wrap:anywhere}.es-row:first-child{border-top:0}.es-row h3{margin-bottom:8px}.es-row small{display:block;color:var(--es-muted)}
.es-reading{font-size:1.12em;line-height:1.8}.es-reading .es-section,.es-reading .carte{line-height:1.9}
.es-reading p,.es-reading label,.es-reading summary,.es-reading input,.es-reading button,.es-reading .bouton,.es-reading .es-button{font-size:1.25rem!important;line-height:1.65!important}.es-reading .es-localnav{flex-wrap:wrap}
.es-legal{background:var(--es-paper)}.es-legal .bandeau{background:var(--es-ink)}.es-legal main{max-width:920px}.es-legal h1{font:500 clamp(30px,5vw,46px)/1.2 Georgia,serif}.es-legal h2{scroll-margin-top:24px}.es-legal .es-localnav a{font-size:13px;padding:8px 12px}
/* Le Journal : hiérarchie éditoriale, sources toujours visibles. */
.es-journal-head{border-bottom:3px solid var(--es-ink);margin:0 0 24px;padding:12px 0 22px}
.es-journal-head .es-heading{font-size:clamp(36px,5vw,65px);margin-bottom:12px}.es-journal-head p:last-child{max-width:760px;color:var(--es-muted);line-height:1.7}
.es-journal-tools{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:22px 0}.es-journal-tools label{font-size:13px;font-weight:600;display:block;margin-bottom:6px}.es-journal-tools input,.es-journal-tools select{background:white;border:1px solid #849c91;border-radius:7px;padding:10px;max-width:100%}.es-journal-tools>div{flex:1;min-width:170px}
.es-journal-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:30px;align-items:start}
.es-page #synthese-jour{background:var(--es-ink)!important;box-shadow:none!important;border-radius:10px!important;padding:28px!important;margin-bottom:22px!important}
.es-journal-list{border:0!important;background:transparent!important}.es-story{padding:24px 0;border-bottom:1px solid var(--es-line);display:block;text-decoration:none;color:var(--es-ink)}.es-story:first-child{padding-top:4px}.es-story h3{font:500 25px/1.3 Georgia,serif;margin:10px 0}.es-story p{font-size:13px;color:var(--es-muted);line-height:1.7}.es-story a{display:inline-block;margin-top:9px;text-decoration:underline;text-underline-offset:4px;color:var(--es-green);font-weight:600;font-size:14px}.es-story-source{font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--es-green)}
.es-journal-aside{padding:24px;background:#edf3eb;border-radius:10px}.es-journal-aside h2{font:500 27px Georgia,serif;margin-bottom:12px}.es-journal-aside p{font-size:14px;line-height:1.7}.es-journal-aside a{display:block;margin:18px 0 0;color:var(--es-green);font-weight:650;text-decoration:underline}
.es-chart-section{margin-top:40px;padding-top:26px;border-top:1px solid var(--es-line)}.es-chart-section h2{font:500 28px Georgia,serif;margin-bottom:16px}
/* Connexion : même identité, distinction des deux étapes. */
.es-auth{--marine:var(--es-ink);--marine-profond:#0e272e;--fond:var(--es-paper);--bordure:var(--es-line);--vert-encre:var(--es-green)}
.es-auth .acces__marine{background:var(--es-ink)}.es-auth .promesse{font:500 clamp(32px,4vw,54px)/1.12 Georgia,serif;letter-spacing:-.025em}.es-auth .acces__formulaire{max-width:480px}.es-auth .titre-acces{font-size:34px;letter-spacing:-.025em}
.es-auth .bouton{background:var(--es-green);min-height:50px;height:auto;padding:13px 20px}.es-auth .carte{border-radius:14px;max-width:520px}.es-auth .encart{background:#edf5ec;border-color:#c4d9c5}
.es-auth-steps{list-style:none;display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0 0 30px!important;font-size:13px}.es-auth-steps li{padding:7px 12px;border-radius:20px;border:1px solid var(--es-line);color:var(--es-muted)}.es-auth-steps [aria-current=step]{color:var(--es-green);background:var(--es-mint);border-color:#bed9be;font-weight:700}
.es-password{position:relative}.es-password input{padding-right:95px}.es-password button{position:absolute;right:7px;top:5px;min-height:40px;border:0;background:white;color:var(--es-green);font:600 13px system-ui;padding:5px 10px;border-radius:5px}
/* Portail : des mots visibles, des actions confortables sur téléphone. */
.es-personne{background:var(--es-paper);color:var(--es-ink)}.es-personne .entete{background:white;border-bottom:1px solid var(--es-line)}.es-personne .colonne{max-width:700px}.es-personne .titre{font-size:clamp(28px,4vw,36px);line-height:1.2}.es-personne .chapeau,.es-personne .resume{font-size:17px;line-height:1.7}.es-personne .bouton{background:var(--es-green);min-height:52px;height:auto;padding:14px 18px}.es-personne .bouton--secondaire{background:#fff;color:var(--es-green);border-color:var(--es-green)}.es-personne .carte{border-color:var(--es-line);border-radius:12px}.es-personne .onglets{background:#fff}.es-personne .onglet{font-size:14px;min-height:62px}.es-personne .a-faire{background:#edf5eb;border-color:#c9dccb}.es-personne .es-localnav{margin-bottom:24px}.es-personne #es-aide details{padding:13px 0;border-top:1px solid var(--es-line)}.es-personne #es-aide summary{font-weight:650;cursor:pointer}.es-personne #es-aide p{margin-top:12px;line-height:1.7}
@media(max-width:1000px){.es-journal-columns{grid-template-columns:1fr}.es-grid{grid-template-columns:1fr}.es-page #modal-zone-pro{width:330px}.es-auth .acces__marine .atouts{display:none}}
@media(max-width:767px){.es-auth .acces{grid-template-rows:auto 1fr}.es-auth .acces__marine{padding:20px 22px;min-height:0}.es-auth .acces__marine>div,.es-auth .acces__garanties{display:none}.es-auth .acces__clair{padding:28px 22px}.es-auth .titre-acces{font-size:29px}.es-auth-steps{margin-bottom:24px!important}.es-page #modal-dossier{padding:0}.es-page #modal-content{padding:18px}.es-page #modal-zone-pro{width:100%}.es-dossier-nav{padding:8px 12px;gap:6px;max-height:140px;overflow-y:auto}.es-section{padding:20px}.es-journal-head .es-heading{font-size:39px}.es-page #synthese-jour{padding:22px!important}.es-personne .onglet{font-size:12px}.es-actions>*{flex:1 1 auto}.es-localnav{gap:7px}.es-page .cockpit-contenu>main{padding:24px 16px}}
@media(prefers-reduced-motion:reduce){.es-page *,.es-auth *,.es-personne *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Une tâche à la fois : onglets de travail et sous-rubriques du dossier. */
.es-dashboard-panel[hidden],.es-simple-tabs[hidden],.es-case-subtabs[hidden],.es-case-help[hidden],.es-case-subtabs button[hidden],#modal-dossier [data-case-section][hidden],.es-section-empty[hidden]{display:none!important}
.es-simple-tabs{display:flex;gap:6px;border-bottom:1px solid var(--es-line);padding:0 0 12px;margin:22px 0;flex-wrap:wrap}
.es-simple-tabs button{min-height:48px;padding:12px 22px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--es-muted);font-size:16px;font-weight:650;cursor:pointer}
.es-simple-tabs button:hover{background:#eaf4eb}.es-simple-tabs button[aria-selected=true]{background:var(--es-ink);color:white;border-color:var(--es-ink)}
.es-tab-help{color:var(--es-muted);font-size:15px;margin-bottom:20px}.es-dashboard-panel:focus-visible{outline:2px solid var(--es-green);outline-offset:5px}
.es-start-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.es-start-actions .es-button{padding:14px 20px;font-size:15px}
.es-secondary-details{border-top:1px solid var(--es-line);margin:24px 0;padding-top:16px}.es-secondary-details>summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--es-green);padding:10px 0;margin-bottom:12px}
.es-case-tabs{padding:12px 24px;margin:0;flex:none;background:var(--es-paper)}
.es-case-subtabs{display:flex;gap:8px;flex-wrap:wrap;padding:10px 24px 0;background:white;flex:none}
.es-case-subtabs button{background:white;border:0;border-bottom:3px solid transparent;min-height:44px;padding:8px 12px;color:var(--es-muted);font-size:14px;cursor:pointer}
.es-case-subtabs button[aria-selected=true]{border-bottom-color:var(--es-green);color:var(--es-green);font-weight:700}
.es-case-help{padding:12px 32px;margin:0!important;background:white;font-size:14px;color:var(--es-muted);flex:none}
.es-page #modal-zone-pro{width:100%;border:1px solid var(--es-line);border-radius:12px;padding:24px;overflow:visible;background:#f4f7f1}
.es-page #modal-content{width:100%;max-width:1120px;margin:0 auto;padding-top:12px}
.es-page #modal-actions{padding:20px 0;gap:14px;justify-content:flex-start}.es-page #modal-actions>div{gap:10px}.es-page #modal-actions [data-action=closeModalDossier]{display:none}
.es-section-title{font:500 26px Georgia,serif;margin-bottom:18px}.es-section-empty{padding:24px;border:1px dashed var(--es-line);border-radius:10px;color:var(--es-muted);line-height:1.7}
.es-page #modal-dossier>div>div:first-child{flex:none}.es-dossier-brand{flex:none}
.es-page #pro-notes-input{min-height:300px;font-size:16px;line-height:1.7}.es-page #modal-content .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:767px){.es-simple-tabs button{flex:1;padding:10px 12px;font-size:14px}.es-case-tabs{padding:8px 12px;gap:6px}.es-case-tabs button{flex:1 1 44%;min-height:44px}.es-case-subtabs{padding:6px 12px 0;gap:4px}.es-case-subtabs button{flex:1 1 40%;padding:6px;font-size:13px}.es-case-help{padding:10px 18px;font-size:13px}.es-page #modal-content{padding:12px 16px}.es-page #modal-zone-pro{padding:18px}.es-dossier-brand{display:none}.es-page #modal-dossier>div>div:first-child{padding:12px}.es-page #modal-dossier>div>div:first-child>div:last-child>button:first-child{display:none}.es-page #modal-content .grid-cols-2{grid-template-columns:1fr}.es-page #modal-actions>div{width:100%;display:grid;grid-template-columns:1fr}.es-page #modal-actions button{min-height:44px;white-space:normal}.es-start-actions>*{flex:1 1 100%}}
.es-page .cockpit-titre{flex-wrap:wrap;gap:10px 20px}.es-page .cockpit-titre .es-kicker{flex-basis:100%;margin-bottom:0}
@media(max-width:767px){#dossiers table{min-width:0;width:100%;display:block}#dossiers thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#dossiers tbody{display:block}#dossiers tbody tr:not(:has(td[colspan])){display:block;padding:16px;border-bottom:1px solid var(--es-line)}#dossiers tbody td[data-label]{display:flex;width:100%;padding:7px 0;white-space:normal;gap:14px;justify-content:space-between;align-items:center}#dossiers tbody td[data-label]:not(:first-child):not(:last-child)::before{content:attr(data-label);color:var(--es-muted);font-size:12px;max-width:45%}#dossiers tbody td[data-label]:first-child{display:block;padding-bottom:14px}#dossiers tbody td[data-label]:nth-child(3)>div{min-width:90px}#dossiers tbody td[data-label]:last-child button{width:100%;min-height:44px;border:1px solid var(--es-green);border-radius:7px;font-size:14px}#dossiers>div:first-child{flex-wrap:wrap;gap:12px}.es-dashboard-panel .stat-card{min-width:0}}
@media(max-height:650px){.es-page #modal-dossier>div.bg-white{overflow-y:auto}.es-page #modal-dossier>div>div.flex-1{overflow:visible;flex:none}.es-page #modal-content{overflow:visible;flex:none}}
