/* NADÈ — l'espace connecté : barre latérale, barre du haut, onglets du téléphone, feuille « Tout », recherche « Aller à… ». Préfixe es-. */
.es-corps{background:#F2F5F9;--es-nuit:#0B1F3F;--es-bleu:#16407A;--es-terre:#D2622F;--es-vert:#1E7A4F;--es-cote:276px}
.es-corps main{display:block}
.es-ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.es-app{min-height:100vh}

/* ---------- Barre latérale (ordinateur) ---------- */
.es-cote{position:fixed;inset:0 auto 0 0;width:var(--es-cote);display:flex;flex-direction:column;gap:14px;padding:22px 14px 16px;color:#C9D5E6;
 background:radial-gradient(120% 60% at 0% 0%,#1C4C8C 0,rgba(28,76,140,0) 60%),linear-gradient(180deg,#0E2547 0%,#0B1F3F 55%,#081830 100%);z-index:30;overflow:hidden}
.es-cote::after{content:"";position:absolute;right:-60px;bottom:-60px;width:220px;height:220px;border-radius:50% 50% 0 0;border:22px solid rgba(255,255,255,.03);pointer-events:none}
.es-marque{display:flex;align-items:center;gap:10px;padding:0 8px 4px;text-decoration:none;color:#fff}
.es-marque b{font:800 21px/1 var(--f-display);letter-spacing:.06em;color:#fff}
.es-marque .accent{color:#F4A27A}
.es-chercher{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#C9D5E6;font:500 14px var(--f-body);cursor:pointer;text-align:left;transition:background .15s}
.es-chercher:hover{background:rgba(255,255,255,.11)}
.es-chercher span{flex:1}
.es-chercher kbd{font:600 11px var(--f-body);padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.1);color:#A9B8CF}
.es-nav{flex:1;overflow-y:auto;margin:0 -6px;padding:0 6px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent;display:grid;align-content:start;gap:4px}
.es-groupe-1{display:grid;gap:2px;padding-bottom:8px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}
.es-lien{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:11px;color:#C9D5E6;text-decoration:none;font:500 14px/1.25 var(--f-body);position:relative;transition:background .15s,color .15s}
.es-lien:hover{background:rgba(255,255,255,.07);color:#fff}
.es-lien.actif{background:linear-gradient(90deg,rgba(210,98,47,.22),rgba(210,98,47,.06));color:#fff;font-weight:600}
.es-lien.actif::before{content:"";position:absolute;left:-6px;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--es-terre)}
.es-lien-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.06);color:#A9B8CF;flex:0 0 auto}
.es-lien.actif .es-lien-ic{background:var(--es-terre);color:#fff}
.es-lien-ic .es-ico{width:17px;height:17px}
.es-lien-t{display:grid;min-width:0}
.es-lien-t b{font-weight:inherit}
.es-lien-t small{font-size:12.5px;color:#7C8AA0;font-weight:400}
.es-groupe>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:11px;cursor:pointer;font:600 12px/1 var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:#8FA2BD;user-select:none}
.es-groupe>summary::-webkit-details-marker{display:none}
.es-groupe>summary:hover{color:#fff;background:rgba(255,255,255,.05)}
.es-g-ic{display:grid;place-items:center;width:22px;color:#F4A27A}
.es-g-ic .es-ico{width:17px;height:17px}
.es-groupe>summary>span:nth-child(2){flex:1}
.es-g-n{font:600 11px var(--f-body);letter-spacing:0;color:#6F819C;background:rgba(255,255,255,.06);border-radius:99px;padding:2px 7px}
.es-chevron{width:15px;height:15px;transition:transform .2s;color:#6F819C}
.es-groupe[open]>summary .es-chevron{transform:rotate(90deg)}
.es-groupe[open]>summary{color:#E6ECF4}
.es-g-liens{display:grid;gap:2px;padding:2px 0 8px 8px}
.es-cote-pied{display:grid;gap:2px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.es-qui{display:flex;align-items:center;gap:10px;padding:6px 8px 10px}
.es-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#D2622F,#F4A27A);color:#fff;font:700 13px/1 var(--f-display);flex:0 0 auto;letter-spacing:.02em}
.es-qui-t{display:grid;min-width:0}
.es-qui-t b{font:600 14px/1.2 var(--f-body);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-qui-t small{font-size:12px;color:#8FA2BD}
.es-pied-lien{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:10px;color:#A9B8CF;text-decoration:none;font:500 13.5px var(--f-body);background:none;border:0;cursor:pointer;text-align:left}
.es-pied-lien:hover{background:rgba(255,255,255,.07);color:#fff}
.es-pied-lien .es-ico{width:18px;height:18px}
.es-cote form{margin:0}

/* ---------- Zone de contenu ---------- */
.es-zone{margin-left:var(--es-cote);min-width:0;min-height:100vh;display:flex;flex-direction:column}
.es-haut{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:12px 32px;background:rgba(242,245,249,.97);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid rgba(11,31,63,.06)}
.es-haut-marque{display:none}
.es-haut-titre{flex:1;min-width:0;display:flex;align-items:center;gap:8px;font:500 14px var(--f-body);color:var(--muted)}
.es-haut-titre .es-fil::after{content:"›";margin-left:8px;color:#A3AEBE}
.es-haut-titre b{color:var(--ink);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-haut .es-chercher{width:auto;min-width:240px;background:#fff;border-color:#DCE3EC;color:var(--muted);box-shadow:0 1px 2px rgba(11,31,63,.04)}
.es-haut .es-chercher:hover{border-color:#B9C6D8;background:#fff}
.es-haut .es-chercher kbd{background:#EEF2F7;color:var(--muted)}
.es-lecture{font:600 12px var(--f-body);padding:6px 10px;border-radius:99px;background:#E3EBF6;color:var(--es-bleu)}
.es-moi{position:relative}
.es-moi>summary{list-style:none;cursor:pointer;border-radius:50%}
.es-moi>summary::-webkit-details-marker{display:none}
.es-moi-menu{position:absolute;right:0;top:calc(100% + 10px);width:260px;padding:10px;border-radius:16px;background:#0B1F3F;box-shadow:0 20px 50px rgba(11,31,63,.3);display:grid;gap:2px}
.es-moi-menu form{margin:0}
.es-page.enveloppe.gestion{display:block;max-width:1240px;width:100%;margin:0 auto;padding:22px 32px 40px}
.es-page>.pile{gap:18px}
.es-tete{display:grid;gap:6px;margin:4px 0 2px}
.es-tete-fil{font:600 12px/1 var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:var(--es-terre)}
.es-tete h1{font:800 clamp(26px,3.2vw,34px)/1.1 var(--f-display);letter-spacing:-.015em;color:var(--es-nuit)}
.es-bas{margin:auto 0 0;padding:18px 32px 24px;font-size:12.5px;color:#8A96A8;text-align:center}
.es-bas .accent{color:var(--es-terre)}
.es-onglets,.es-feuille,.es-voile{display:none}

/* ---------- Composants communs des pages ---------- */
.es-page .carte-bloc{border:1px solid #E1E7EF;border-radius:18px;box-shadow:0 1px 2px rgba(11,31,63,.04),0 8px 24px -16px rgba(11,31,63,.18)}
.es-page .carte-bloc h2{font-size:19px;color:var(--es-nuit)}
.es-page a.carte-bloc{transition:transform .15s,box-shadow .15s,border-color .15s}
.es-page a.carte-bloc:hover{transform:translateY(-2px);border-color:#C9D5E6;box-shadow:0 14px 30px -18px rgba(11,31,63,.35)}
.es-page .btn{border-radius:12px;min-height:42px}
.es-page .btn.petit{min-height:34px;border-radius:10px}
.es-page .btn:not(.clair):not(.danger){background:var(--es-nuit);border-color:var(--es-nuit)}
.es-page .btn:not(.clair):not(.danger):hover{background:var(--es-bleu);border-color:var(--es-bleu)}
.es-page .btn.clair{border-color:#C9D5E6;color:var(--es-nuit);background:#fff}
.es-page .btn.clair:hover{border-color:var(--es-nuit)}
.es-page .message{border-radius:14px;border:1px solid transparent;padding:13px 16px}
.es-page .message.ok{border-color:#BFE0CD}.es-page .message.erreur{border-color:#EBC3C3}.es-page .message.info{border-color:#C9D8EE}
.es-page table{font-size:14px}
.es-page th{background:#F6F8FB;color:#6A778A;border-bottom:1px solid #E1E7EF;padding:11px 12px}
.es-page th:first-child{border-top-left-radius:10px}.es-page th:last-child{border-top-right-radius:10px}
.es-page td{padding:12px;border-bottom:1px solid #EDF1F6}
.es-page tbody tr{transition:background .12s}
.es-page tbody tr:hover{background:#F8FAFD}
.es-page .table-defile{border-radius:12px;-webkit-overflow-scrolling:touch}
.es-page .pastille{font-weight:600;padding:5px 10px}
.es-page input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),.es-page select,.es-page textarea{border-radius:11px;border:1px solid #D3DCE7;background:#fff;min-height:44px;transition:border-color .15s,box-shadow .15s}
.es-page input:focus,.es-page select:focus,.es-page textarea:focus{border-color:var(--es-bleu);box-shadow:0 0 0 4px rgba(22,64,122,.12);outline:none}
.es-page label{font-weight:600;color:#33415A}
.es-page details.volet,.es-page details.carte-bloc{transition:box-shadow .15s}
.es-page details>summary{cursor:pointer}
.es-page .filtres.carte-bloc{padding:16px 18px}
.es-page .chiffre b{color:var(--es-nuit)}
.es-page .barre{height:8px;border-radius:99px;background:#E7ECF3;overflow:hidden}
.es-page .barre i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--es-vert),#3DA373)}
.es-page .bandeau-mairie{border-radius:20px}
.es-vide{display:grid;justify-items:center;text-align:center;gap:8px;padding:28px 16px;color:var(--muted)}
.es-vide svg{width:46px;height:46px;stroke:#B9C6D8;fill:none;stroke-width:1.5}

/* ---------- Tableau de bord ---------- */
.es-salut{position:relative;overflow:hidden;border-radius:24px;padding:26px 28px;color:#fff;background:radial-gradient(90% 140% at 100% 0%,#1C4C8C 0,rgba(28,76,140,0) 55%),linear-gradient(135deg,#0E2547,#0B1F3F)}
.es-salut::after{content:"";position:absolute;right:28px;bottom:-40px;width:150px;height:190px;border:18px solid rgba(255,255,255,.05);border-bottom:0;border-radius:80px 80px 0 0}
.es-salut-date{font:600 12px/1 var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:#F4A27A}
.es-salut h2{font:800 clamp(24px,3vw,32px)/1.15 var(--f-display);color:#fff;margin:10px 0 6px}
.es-salut p{margin:0;color:#C9D5E6;max-width:56ch}
.es-salut .es-salut-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;position:relative;z-index:1}
.es-salut .btn{background:#fff!important;color:var(--es-nuit)!important;border-color:#fff!important}
.es-salut .btn.clair{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.25)!important}
.es-sect-titre{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:6px 2px -4px}
.es-sect-titre h2{font:800 19px var(--f-display);color:var(--es-nuit)}
.es-sect-titre span{font-size:13px;color:var(--muted)}
.es-afaire{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.es-tache{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:#fff;border:1px solid #E1E7EF;text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s,border-color .15s}
.es-tache:hover{transform:translateY(-2px);box-shadow:0 14px 28px -18px rgba(11,31,63,.35);border-color:#C9D5E6}
.es-tache-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#EEF2F7;color:var(--es-bleu);flex:0 0 auto}
.es-tache b{display:block;font:800 22px/1 var(--f-display);color:var(--es-nuit);font-variant-numeric:tabular-nums}
.es-tache b+span{display:block;font-size:13.5px;line-height:1.3;color:#4A5668;margin-top:4px}
.es-tache .es-chevron{margin-left:auto;color:#A3AEBE;width:18px;height:18px}
.es-tache.chaud .es-tache-ic{background:#FCE9DF;color:var(--es-terre)}
.es-tache.chaud b{color:var(--es-terre)}
.es-tache.calme{opacity:.78}
.es-tache.calme .es-tache-ic{background:#DFF1E7;color:var(--es-vert)}
.es-rien{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;background:#E6F4EC;color:#175E3D;border:1px solid #BFE0CD;font-weight:500}
.es-rien .es-ico{width:26px;height:26px}
.es-chiffres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.es-chiffre{position:relative;overflow:hidden;padding:18px 18px 16px;border-radius:18px;background:#fff;border:1px solid #E1E7EF}
.es-chiffre::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c,var(--es-bleu))}
.es-chiffre b{display:block;font:800 32px/1 var(--f-display);color:var(--es-nuit);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.es-chiffre span{display:block;margin-top:6px;font-size:13.5px;color:var(--muted)}
.es-chiffre small{display:block;margin-top:10px;font-size:12px;color:#8A96A8}
.es-deux{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.es-communes{display:grid;gap:4px}
.es-commune{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 6px;border-radius:12px;text-decoration:none;color:inherit}
.es-commune:hover{background:#F6F8FB}
.es-commune .es-code{display:grid;place-items:center;height:34px;border-radius:10px;background:#EEF2F7;font:600 13px var(--f-mono);color:var(--es-bleu)}
.es-commune b{display:block;font-weight:600;font-size:14.5px}
.es-commune small{display:block;font-size:12.5px;color:var(--muted)}
.es-commune .barre{margin-top:6px}
.es-commune .es-pc{font:700 14px var(--f-display);color:var(--es-nuit);min-width:44px;text-align:right}
.es-rapides{display:grid;gap:8px}
.es-rapide{display:flex;align-items:center;gap:12px;padding:12px 12px;border-radius:14px;text-decoration:none;color:var(--ink);border:1px solid transparent;transition:background .15s,border-color .15s}
.es-rapide:hover{background:#F6F8FB;border-color:#E1E7EF}
.es-rapide .es-tache-ic{width:38px;height:38px;border-radius:11px}
.es-rapide b{display:block;font-weight:600;font-size:14.5px}
.es-rapide small{display:block;font-size:12.5px;color:var(--muted)}
.es-rapide .es-chevron{margin-left:auto;color:#A3AEBE}
.es-recherches{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.es-recherches div{padding:12px 14px;border-radius:14px;background:#F6F8FB}
.es-recherches b{display:block;font:800 22px/1 var(--f-display);color:var(--es-nuit)}
.es-recherches span{display:block;font-size:12.5px;color:var(--muted);margin-top:4px}
.es-maj{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:#FCE9DF;color:#7A3412;text-decoration:none;border:1px solid #F4C9B2}
.es-maj b{display:block}

/* ---------- Recherche « Aller à… » ---------- */
.es-palette{position:fixed;inset:0;z-index:80;background:rgba(8,20,40,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;opacity:0;transition:opacity .18s}
.es-palette[hidden]{display:none}
.es-palette.vu{opacity:1}
.es-palette-boite{width:100%;max-width:620px;background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(8,20,40,.4);overflow:hidden;transform:translateY(-8px) scale(.98);transition:transform .18s}
.es-palette.vu .es-palette-boite{transform:none}
.es-palette-champ{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #E7ECF3;color:var(--muted)}
.es-palette-champ input{flex:1;border:0!important;outline:0;font:500 17px var(--f-body);color:var(--ink);background:none;min-width:0;box-shadow:none!important;padding:0}
.es-palette-champ kbd{font:600 11px var(--f-body);padding:4px 7px;border-radius:6px;background:#EEF2F7;color:var(--muted)}
.es-resultats{list-style:none;margin:0;padding:8px;max-height:min(420px,60vh);overflow-y:auto}
.es-resultats a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;text-decoration:none;color:var(--ink)}
.es-resultats li.sel a,.es-resultats a:hover{background:#EEF2F7}
.es-r-ic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#F2F5F9;color:var(--es-bleu);flex:0 0 auto}
.es-resultats li.sel .es-r-ic{background:var(--es-nuit);color:#fff}
.es-r-ic .es-ico{width:17px;height:17px}
.es-r-t{flex:1;min-width:0;display:grid}
.es-r-t b{font-weight:600;font-size:14.5px}
.es-r-t small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-r-g{font:600 11px var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:#8A96A8;white-space:nowrap}
.es-palette-vide{margin:0;padding:22px;text-align:center;color:var(--muted)}
html.es-bloque{overflow:hidden}

/* ---------- Téléphone et tablette ---------- */
@media (max-width:999px){
 .es-cote{display:none}
 .es-zone{margin-left:0;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .es-haut{padding:10px 14px;gap:10px;padding-top:calc(10px + env(safe-area-inset-top))}
 .es-haut-marque{display:flex}
 .es-haut-titre{flex-direction:column;align-items:flex-start;gap:1px;font-size:12px}
 .es-haut-titre .es-fil{font:600 10.5px/1 var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:var(--es-terre)}
 .es-haut-titre .es-fil::after{content:none}
 .es-haut-titre b{font:700 16px/1.2 var(--f-display);color:var(--es-nuit);max-width:100%}
 .es-haut .es-chercher{min-width:0;width:42px;height:42px;padding:0;justify-content:center;border-radius:50%}
 .es-haut .es-chercher span,.es-haut .es-chercher kbd{display:none}
 .es-lecture{display:none}
 .es-avatar{width:40px;height:40px}
 .es-moi-menu{width:min(280px,calc(100vw - 28px))}
 .es-page.enveloppe.gestion{padding:16px 14px 24px}
 .es-tete{display:none}
 .es-bas{display:none}
 .es-onglets{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:40;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-top:1px solid rgba(11,31,63,.08)}
 .es-onglets a,.es-onglets button{display:grid;justify-items:center;gap:3px;padding:6px 2px;border:0;background:none;border-radius:12px;color:#6A778A;text-decoration:none;font:600 11px/1.1 var(--f-body);cursor:pointer;min-height:52px;align-content:center}
 .es-onglets .es-ico{width:23px;height:23px}
 .es-onglets .actif{color:var(--es-nuit)}
 .es-onglets .actif .es-ico{color:var(--es-terre)}
 .es-onglets .actif::after{content:"";width:18px;height:3px;border-radius:3px;background:var(--es-terre);margin-top:1px}
 .es-onglets a:not(.actif)::after{content:"";height:3px}
 .es-onglets button[aria-expanded=true]{color:var(--es-nuit)}
 .es-voile{display:block;position:fixed;inset:0;z-index:60;background:rgba(8,20,40,.45);opacity:0;transition:opacity .22s}
 .es-voile[hidden]{display:none}
 .es-voile.vu{opacity:1}
 .es-feuille{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;z-index:70;max-height:90vh;background:#0B1F3F;color:#C9D5E6;border-radius:26px 26px 0 0;box-shadow:0 -20px 60px rgba(8,20,40,.4);transform:translateY(100%);transition:transform .26s cubic-bezier(.2,.8,.2,1)}
 .es-feuille[hidden]{display:none}
 .es-feuille.vu{transform:none}
 .es-feuille-tete{position:relative;display:flex;align-items:center;justify-content:space-between;padding:22px 18px 10px}
 .es-feuille-tete b{font:800 19px var(--f-display);color:#fff}
 .es-poignee{position:absolute;left:50%;top:8px;width:42px;height:5px;margin-left:-21px;border-radius:5px;background:rgba(255,255,255,.2)}
 .es-fermer{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
 .es-feuille-corps{overflow-y:auto;padding:4px 14px calc(18px + env(safe-area-inset-bottom));display:grid;gap:10px;-webkit-overflow-scrolling:touch}
 .es-feuille-corps nav{display:grid;gap:6px}
 .es-feuille .es-groupe{background:rgba(255,255,255,.04);border-radius:16px;padding:4px}
 .es-feuille .es-groupe>summary{padding:12px 10px}
 .es-feuille .es-g-liens{padding:0 2px 6px}
 .es-feuille .es-lien{padding:9px 10px}
 .es-feuille .es-lien.actif::before{left:-2px}
 .es-feuille-pied{display:grid;gap:2px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
 .es-feuille-pied form{margin:0}
 .es-chiffres{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .es-chiffre{padding:15px}
 .es-chiffre b{font-size:27px}
 .es-deux{grid-template-columns:minmax(0,1fr)}
 .es-salut{padding:22px 20px;border-radius:22px}
 .es-afaire{grid-template-columns:minmax(0,1fr);gap:8px}
 .es-palette{padding-top:calc(10px + env(safe-area-inset-top))}
 .es-page table{font-size:13.5px}
}

/* --- Tableau de bord : héros avec anneau, grands espaces --- */
.es-chevron{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.es-salut::after{display:none}
.es-cache{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.es-salut{display:flex;align-items:center;gap:28px;padding:30px 32px}
.es-salut-txt{flex:1;min-width:0;position:relative;z-index:1}
.es-salut h2{font-size:clamp(26px,3.2vw,36px)}
.es-anneau{position:relative;z-index:1;flex:0 0 auto;width:156px;height:156px;display:grid;place-items:center;text-decoration:none;color:#fff;border-radius:50%;transition:transform .2s}
.es-anneau:hover{transform:scale(1.03)}
.es-anneau svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.es-anneau circle{fill:none;stroke-width:11}
.es-anneau-fond{stroke:rgba(255,255,255,.1)}
.es-anneau-plein{stroke:#F4A27A;stroke-linecap:round;stroke-dasharray:calc(var(--p) * 1) 100;filter:drop-shadow(0 0 8px rgba(244,162,122,.45))}
.es-anneau-c{display:grid;justify-items:center;text-align:center;gap:4px}
.es-anneau-c b{font:800 34px/1 var(--f-display);letter-spacing:-.02em}
.es-anneau-c b small{font-size:16px;font-weight:700;color:#F4A27A}
.es-anneau-c span{font-size:11.5px;line-height:1.25;color:#A9B8CF}
.es-espaces{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:12px}
.es-espace{position:relative;overflow:hidden;display:grid;align-content:start;gap:6px;padding:18px 18px 16px;border-radius:18px;background:#fff;border:1px solid #E1E7EF;text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s,border-color .15s}
.es-espace::after{content:"";position:absolute;right:-26px;top:-26px;width:96px;height:96px;border-radius:50%;background:var(--c);opacity:.07;transition:opacity .2s,transform .3s}
.es-espace:hover{transform:translateY(-3px);border-color:#C9D5E6;box-shadow:0 18px 34px -20px rgba(11,31,63,.4)}
.es-espace:hover::after{opacity:.13;transform:scale(1.15)}
.es-espace-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--c);color:#fff;margin-bottom:6px;box-shadow:0 8px 18px -8px var(--c)}
.es-espace-ic .es-ico{width:22px;height:22px}
.es-espace b{font:700 16.5px/1.2 var(--f-display);color:var(--es-nuit)}
.es-espace small{font-size:12.8px;line-height:1.4;color:var(--muted)}
.es-espace-n{display:flex;align-items:center;gap:4px;margin-top:6px;font:600 12.5px var(--f-body);color:var(--c)}
.es-espace-n .es-chevron{width:14px;height:14px;color:var(--c);transition:transform .2s}
.es-espace:hover .es-espace-n .es-chevron{transform:translateX(3px)}
.es-recherches div{display:grid;gap:4px}
.es-recherches .barre{display:block;height:5px;border-radius:5px;background:#E3E9F1;overflow:hidden;margin-top:4px}
.es-recherches .barre i{display:block;height:100%;border-radius:5px;background:var(--es-vert)}
.es-recherches small{font-size:11.5px;color:#8A96A8}
.es-vide{display:flex;gap:14px;align-items:flex-start;padding:16px;border-radius:14px;background:#F6F8FB;color:var(--muted)}
.es-vide .es-ico{width:26px;height:26px;color:#9AA8BC;margin-top:2px}
.es-vide p{margin:0;font-size:14px}
@media (max-width:999px){
 .es-salut{flex-direction:column;align-items:stretch;gap:18px;padding:24px 20px}
 .es-anneau{position:relative;width:auto;height:auto;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:14px;padding:12px 14px;justify-content:flex-start}
 .es-anneau svg{position:relative;inset:auto;width:62px;height:62px;flex:0 0 auto}
 .es-anneau-c{justify-items:start;text-align:left;gap:2px}
 .es-anneau-c b{font-size:24px}
 .es-anneau-c span br{display:none}
 .es-anneau-c span{font-size:13px}
 .es-espaces{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .es-sect-titre{flex-wrap:wrap;row-gap:2px}
 .es-sect-titre h2{font-size:18px}
 .es-espace{padding:15px 14px 13px}
 .es-espace small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}

/* --- Connexion : la porte d'un côté, le formulaire de l'autre --- */
.es-corps .es-cx{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);background:#F2F5F9}
.es-cx-visuel{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:40px 48px 44px;color:#fff;
 background:radial-gradient(70% 60% at 85% 10%,rgba(28,76,140,.95) 0,rgba(28,76,140,0) 70%),radial-gradient(60% 50% at 0% 100%,rgba(210,98,47,.22) 0,rgba(210,98,47,0) 70%),linear-gradient(160deg,#0E2547,#0B1F3F 60%,#081830)}
.es-cx-visuel::before{content:"";position:absolute;inset:0;opacity:.5;background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1.2px);background-size:22px 22px;mask-image:linear-gradient(180deg,#000,transparent 85%);-webkit-mask-image:linear-gradient(180deg,#000,transparent 85%)}
.es-cx-logo{position:relative;display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:#fff}
.es-cx-logo b,.es-cx-logo-m b{font:800 24px/1 var(--f-display);letter-spacing:.06em}
.es-cx-logo .accent{color:#F4A27A}
.es-cx-scene{position:relative;display:grid;place-items:center;flex:1}
.es-cx-mur{position:relative;width:min(100%,520px);aspect-ratio:1.2/1;border-radius:30px;overflow:hidden;background:linear-gradient(160deg,#EADBC2,#DCC7A6);box-shadow:0 40px 80px -30px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.25);transform:perspective(1400px) rotateY(-6deg) rotateX(2deg)}
.es-cx-mur::before{content:"";position:absolute;inset:0;opacity:.4;background-image:radial-gradient(rgba(120,80,40,.2) 1px,transparent 1.2px);background-size:7px 7px}
.es-cx-mur::after{content:"";position:absolute;left:0;right:0;bottom:0;height:14%;background:linear-gradient(180deg,rgba(120,80,40,0),rgba(120,80,40,.18))}
.es-cx-porte{position:absolute;right:-2%;top:13%;bottom:-2%;width:28%;border-radius:120px 120px 0 0;background:linear-gradient(90deg,#123565,#16407A 55%,#0F2E58);box-shadow:inset 10px 0 0 #E5D2B4,inset 0 10px 0 #E5D2B4,-14px 10px 30px rgba(60,35,10,.28)}
.es-cx-porte span{position:absolute;left:22%;top:56%;width:11px;height:11px;border-radius:50%;background:#F4A27A;box-shadow:0 2px 3px rgba(0,0,0,.3)}
.es-cx-plaque{position:absolute;left:6%;top:30%;width:60%;transform:rotate(-2.5deg);filter:drop-shadow(0 16px 20px rgba(60,35,10,.38)) drop-shadow(0 2px 2px rgba(0,0,0,.2));animation:es-cx-flotte 7s ease-in-out infinite}
.es-cx-plaque svg{display:block;width:100%;height:auto}
@keyframes es-cx-flotte{0%,100%{transform:rotate(-2.5deg) translateY(0)}50%{transform:rotate(-1.5deg) translateY(-6px)}}
.es-cx-devise{position:relative;display:grid;gap:10px}
.es-cx-devise b{font:800 clamp(30px,3.4vw,46px)/1.05 var(--f-display);letter-spacing:-.02em}
.es-cx-devise em{font-style:normal;color:#F4A27A}
.es-cx-devise span{color:#A9B8CF;font-size:15px}
.es-cx-zone{display:grid;place-items:center;padding:40px 32px}
.es-cx-boite{width:100%;max-width:420px;display:grid;gap:18px}
.es-cx-retour{justify-self:start;display:inline-flex;align-items:center;gap:6px;padding:6px 10px 6px 6px;margin-left:-6px;border-radius:10px;color:var(--muted);text-decoration:none;font:500 14px var(--f-body)}
.es-cx-retour:hover{background:#E8EDF4;color:var(--es-nuit)}
.es-cx-retour svg,.es-cx-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.es-cx-logo-m{display:none;align-items:center;gap:10px;text-decoration:none;color:var(--es-nuit)}
.es-cx-logo-m b{font-size:21px}
.es-cx-tete{display:grid;gap:8px;margin-top:10px}
.es-cx-tete h1{font:800 clamp(28px,3vw,36px)/1.1 var(--f-display);letter-spacing:-.02em;color:var(--es-nuit);margin:0}
.es-cx-tete p{margin:0;color:var(--muted);font-size:15.5px}
.es-cx-etape{justify-self:start;font:600 12px/1 var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:var(--es-terre);background:#FCE9DF;padding:6px 10px;border-radius:99px}
.es-cx-form{display:grid;gap:16px;padding:24px;border-radius:22px;background:#fff;border:1px solid #E1E7EF;box-shadow:0 1px 2px rgba(11,31,63,.04),0 24px 48px -28px rgba(11,31,63,.3)}
.es-cx-form .champ{display:grid;gap:7px;margin:0}
.es-cx-form label{font:600 13.5px var(--f-body);color:var(--es-nuit)}
.es-cx-champ{position:relative;display:flex;align-items:center}
.es-cx-champ>svg{position:absolute;left:14px;width:19px;height:19px;fill:none;stroke:#8A96A8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:stroke .15s}
.es-cx-champ input,.es-cx-form .es-cx-code{width:100%;min-height:52px;padding:12px 48px 12px 44px;border-radius:14px;border:1.5px solid #DCE3EC;background:#F8FAFC;font:500 16px var(--f-body);color:var(--es-nuit);transition:border-color .15s,background .15s,box-shadow .15s}
.es-cx-champ input:focus,.es-cx-form .es-cx-code:focus{outline:none;border-color:var(--es-bleu);background:#fff;box-shadow:0 0 0 4px rgba(22,64,122,.12)}
.es-cx-champ:focus-within>svg{stroke:var(--es-bleu)}
.es-cx-form .es-cx-code{padding:12px 16px;text-align:center;font:700 26px/1 var(--f-mono,"IBM Plex Mono",monospace);letter-spacing:.35em}
.es-cx-oeil{position:absolute;right:6px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:none;color:#8A96A8;cursor:pointer}
.es-cx-oeil:hover{background:#EEF2F7;color:var(--es-nuit)}
.es-cx-oeil svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.es-cx-oeil.vu{color:var(--es-bleu)}
.es-cx-oeil.vu svg path{stroke-dasharray:none}
.es-cx-btn{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;border-radius:14px!important;font:600 16px var(--f-body)!important;background:linear-gradient(135deg,#16407A,#0B1F3F)!important;border:0!important;color:#fff!important;box-shadow:0 14px 26px -14px rgba(11,31,63,.7);transition:transform .15s,box-shadow .15s}
.es-cx-btn:hover{transform:translateY(-1px);box-shadow:0 18px 30px -14px rgba(11,31,63,.75)}
.es-cx-btn svg{transition:transform .2s}
.es-cx-btn:hover svg{transform:translateX(3px)}
.es-cx-btn.en-cours{opacity:.75;pointer-events:none}
.es-cx-case{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:#4A5668;cursor:pointer}
.es-cx-case input{width:18px;height:18px;margin-top:1px;accent-color:var(--es-bleu)}
.es-cx-aide{font-size:12.5px;color:#8A96A8}
.es-cx-liens{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin:0}
.es-cx-lien{background:none;border:0;padding:6px 0;font:600 14px var(--f-body);color:var(--es-bleu);cursor:pointer;text-decoration:none}
.es-cx-lien:hover{text-decoration:underline}
.es-cx-oubli{border-radius:14px;background:#fff;border:1px solid #E1E7EF;padding:0 16px}
.es-cx-oubli summary{list-style:none;cursor:pointer;padding:14px 0;font:600 14px var(--f-body);color:var(--es-bleu);display:flex;justify-content:space-between;align-items:center}
.es-cx-oubli summary::-webkit-details-marker{display:none}
.es-cx-oubli summary::after{content:"+";font-size:20px;line-height:1;color:#8A96A8;transition:transform .2s}
.es-cx-oubli[open] summary::after{transform:rotate(45deg)}
.es-cx-oubli p{margin:0 0 14px;font-size:14px;color:#4A5668;line-height:1.5}
.es-cx-pied{margin:4px 0 0;font-size:13px;color:#8A96A8}
.es-cx-pied a{color:#4A5668}
.es-cx .message{border-radius:14px;margin:0}
.es-cx-mdp .df-appareils{border-radius:18px}
.es-intro{margin:0;color:var(--muted);max-width:60ch}
.es-etroit{max-width:620px;gap:16px}
.es-mdp .champ{display:grid;gap:7px}
.es-mdp .es-cx-champ input{background:#fff}
@media (max-width:899px){
 .es-corps .es-cx{grid-template-columns:minmax(0,1fr);background:linear-gradient(180deg,#0B1F3F 0,#0B1F3F 230px,#F2F5F9 230px)}
 .es-cx-visuel{display:none}
 .es-cx-zone{place-items:start center;padding:calc(env(safe-area-inset-top) + 18px) 16px 32px}
 .es-cx-boite{gap:16px}
 .es-cx-retour{color:#A9B8CF}
 .es-cx-retour:hover{background:rgba(255,255,255,.08);color:#fff}
 .es-cx-logo-m{display:inline-flex;color:#fff;margin-top:2px}
 .es-cx-logo-m .accent{color:#F4A27A}
 .es-cx-tete{margin-top:4px}
 .es-cx-tete h1{color:#fff;font-size:29px}
 .es-cx-tete p{color:#C9D5E6}
 .es-cx-etape{background:rgba(244,162,122,.16);color:#F4A27A}
 .es-cx-form{padding:20px 18px;border-radius:20px}
}
@media (prefers-reduced-motion:reduce){.es-cx-plaque{animation:none}}

/* --- Tableaux en cartes sur téléphone --- */
@media (max-width:699px){
 .es-page table.es-tab-cartes,.es-page table.es-tab-cartes tbody{display:block;width:100%;min-width:0!important}
 .es-page table.es-tab-cartes tr.es-tab-tete,.es-page table.es-tab-cartes thead{display:none}
 .es-page table.es-tab-cartes tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;padding:14px 2px;border-bottom:1px solid #E6EBF2;background:none}
 .es-page table.es-tab-cartes tr:last-child{border-bottom:0}
 .es-page table.es-tab-cartes td{display:block;padding:0!important;border:0!important;text-align:left!important;min-width:0;font-size:14.5px;white-space:normal!important}
 .es-page table.es-tab-cartes td:first-child{grid-column:1/-1;font-weight:600;font-size:15.5px;color:var(--es-nuit)}
 .es-page table.es-tab-cartes td[data-l]:not(:first-child)::before{content:attr(data-l);display:block;font:600 10.5px/1.2 var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:#8A96A8;margin-bottom:3px}
 .es-page table.es-tab-cartes td:empty{display:none}
 .es-page table.es-tab-cartes td:last-child:has(form,.btn,a.btn){grid-column:1/-1}
 .es-page .table-defile:has(.es-tab-cartes),.es-page div:has(>table.es-tab-cartes){overflow:visible}
}
@media (prefers-reduced-motion:reduce){.es-feuille,.es-palette,.es-palette-boite,.es-voile,.es-tache,.es-page a.carte-bloc{transition:none}}
@media print{.es-cote,.es-haut,.es-onglets,.es-feuille,.es-voile,.es-palette,.es-bas,.es-tete{display:none!important}.es-zone{margin:0!important;padding:0!important}.es-page.enveloppe.gestion{padding:0!important;max-width:none}.es-corps{background:#fff}}

/* 1.8.11 — Rien ne passe en transparence sous l'en-tête, et une ancre (#) arrive juste sous lui, jamais dessous. */
html:has(body.es-corps){scroll-padding-top:96px}
body.es-corps [id]{scroll-margin-top:96px}
@media (max-width:999px){html:has(body.es-corps){scroll-padding-top:calc(84px + env(safe-area-inset-top))}body.es-corps [id]{scroll-margin-top:calc(84px + env(safe-area-inset-top))}}
/* 1.8.14 : filtres compacts sur téléphone (deux par ligne, bouton sur toute la largeur) */
@media (max-width:600px){
 .es-page form.filtres{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;padding:14px 14px 16px}
 .es-page form.filtres>*{min-width:0}
 .es-page form.filtres .champ{margin:0}
 .es-page form.filtres label{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#5B6B82;margin-bottom:5px}
 .es-page form.filtres select,.es-page form.filtres input:not([type=checkbox]):not([type=radio]){height:44px;font-size:15px;padding-top:0;padding-bottom:0}
 .es-page form.filtres .btn{grid-column:1/-1;width:100%;height:46px}
 .es-page form.filtres:has(> .champ:nth-child(odd):nth-last-child(2)) > .btn{grid-column:auto;height:44px}
}
