/*
 * Fenêtres du front (refonte 2026, étape 10 bis) : habillage Signature des fenêtres jQuery UI ($.popup.open, $.confirmDialog,
 * messages des formulaires), d'après les maquettes (ex-dialog de la fiche expert, ec-dialog de l'espace client, pk-dialog
 * des packs). Chargé par includes/head.tpl sur toutes les pages du front, migrées ou non : sélecteurs préfixés par
 * « html body » pour passer devant le thème jQuery UI, quel que soit l'ordre de chargement. Contenus : classes dl-*.
 */
@font-face{font-family:'Lora';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/lora-400.woff2) format('woff2')}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/work-sans-400.woff2) format('woff2')}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/signature/work-sans-500.woff2) format('woff2')}

/* Cadre */
html body .ui-widget-overlay{background:#302636;opacity:.45}
html body .ui-dialog{padding:0;border:1px solid #cbbbd2;border-radius:0;background:#faf8f3;color:#382b3e;box-shadow:0 20px 60px rgba(48,38,54,.25);font:400 13px/1.8 'Work Sans',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;max-width:calc(100vw - 30px);text-align:left}
html body .ui-dialog .ui-dialog-titlebar{position:relative;padding:30px 60px 0 34px;border:0;border-radius:0;background:none;color:#382b3e}
html body .ui-dialog .ui-dialog-title{float:none;display:block;width:auto;margin:0;white-space:normal;overflow:visible;font:400 26px/1.35 'Lora',Georgia,serif;letter-spacing:-.01em}
html body .ui-dialog .ui-dialog-titlebar-close{position:absolute;top:12px;right:12px;width:38px;height:38px;margin:0;padding:0;border:0;border-radius:0;background:none;color:#80638b;box-shadow:none;font-size:0;text-indent:0;overflow:hidden}
html body .ui-dialog .ui-dialog-titlebar-close .ui-icon,html body .ui-dialog .ui-dialog-titlebar-close .ui-button-icon-space{display:none}
html body .ui-dialog .ui-dialog-titlebar-close::before{content:'\00d7';display:block;font:300 30px/38px 'Work Sans',Arial,sans-serif;text-align:center}
html body .ui-dialog .ui-dialog-titlebar-close:hover{background:#eee9f0}
html body .ui-dialog .ui-dialog-content{padding:18px 34px 30px;border:0;background:none;color:#6c606f;font:inherit;overflow-x:hidden}
html body .ui-dialog .ui-dialog-content p{margin:0 0 12px}
html body .ui-dialog .ui-dialog-content a:not(.dl-button){color:#64466e}
html body .ui-dialog .ui-dialog-buttonpane{margin:0;padding:0 34px 30px;border:0;background:none}
html body .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
html body .ui-dialog .ui-dialog-buttonpane button,html body .ui-dialog .dl-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin:0;padding:10px 20px;border:1px solid #64466e;border-radius:0;background:#64466e;color:#fff;font:500 13px/1.3 'Work Sans',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;text-decoration:none;text-align:center;cursor:pointer;box-shadow:none}
html body .ui-dialog .ui-dialog-buttonpane button:hover,html body .ui-dialog .dl-button:hover{background:#503658;border-color:#503658;color:#fff;text-decoration:none}
html body .ui-dialog .ui-dialog-buttonpane button+button,html body .ui-dialog .dl-button-secondary{background:transparent;color:#64466e}
html body .ui-dialog .ui-dialog-buttonpane button+button:hover,html body .ui-dialog .dl-button-secondary:hover{background:#eee9f0;color:#503658}
html body .ui-dialog button:focus-visible,html body .ui-dialog a:focus-visible,html body .ui-dialog input:focus-visible,html body .ui-dialog summary:focus-visible{outline:2px solid #382b3e;outline-offset:2px}

/* Contenus */
html body .ui-dialog .dl-body{display:grid;gap:18px}
html body .ui-dialog .dl-kicker{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:#397328}
html body .ui-dialog .dl-kicker svg{width:16px;height:16px;flex:none}
html body .ui-dialog .dl-expert{display:flex;align-items:center;gap:18px}
html body .ui-dialog .dl-expert img{width:72px;height:72px;flex:none;border-radius:50%;object-fit:cover;border:3px solid #faf8f3;outline:1px solid #cfc0d7;outline-offset:3px}
html body .ui-dialog .dl-expert p{margin:0;font-size:12px;color:#80698a}
html body .ui-dialog .dl-expert strong{display:block;font:400 24px/1.3 'Lora',Georgia,serif;color:#513858}
html body .ui-dialog .dl-panel{padding:16px 18px;background:#eee9f0}
html body .ui-dialog .dl-panel p:last-child{margin-bottom:0}
html body .ui-dialog .dl-price{font:400 24px/1.3 'Lora',Georgia,serif;color:#73537f;white-space:nowrap}
html body .ui-dialog .dl-note{font-size:12px;color:#80698a}
html body .ui-dialog .dl-strong{color:#382b3e;font-weight:500}
html body .ui-dialog .dl-line{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid #e1d8e5;border-bottom:1px solid #e1d8e5}
html body .ui-dialog .dl-line strong{display:block;color:#382b3e;font-weight:500}
html body .ui-dialog .dl-line span{display:block;font-size:12px;color:#80698a}
html body .ui-dialog .dl-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
html body .ui-dialog .dl-actions-stack{flex-direction:column;align-items:stretch}
html body .ui-dialog .dl-link{border:0;background:none;padding:4px 0;color:#64466e;font:inherit;font-size:12px;text-align:center;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
html body .ui-dialog .dl-help summary{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#64466e;cursor:pointer;list-style:none}
html body .ui-dialog .dl-help summary::-webkit-details-marker{display:none}
html body .ui-dialog .dl-help summary::after{content:'+';font-size:16px}
html body .ui-dialog .dl-help[open] summary::after{content:'\2212'}
html body .ui-dialog .dl-help ul{margin:10px 0 0;padding-left:20px;font-size:12px;line-height:1.7}
html body .ui-dialog .dl-help li{margin-bottom:6px}
html body .ui-dialog .dl-fieldset{margin:0;padding:0;border:0}
html body .ui-dialog .dl-fieldset legend{margin:0 0 8px;padding:0;font-size:12px;font-weight:500;color:#382b3e;width:auto}
html body .ui-dialog .dl-choices{display:flex;flex-wrap:wrap;gap:8px}
html body .ui-dialog .dl-choices label{display:inline-flex;align-items:center;gap:8px;margin:0;padding:8px 12px;border:1px solid #d8ccde;background:#fff;font-size:12px;color:#382b3e;cursor:pointer}
html body .ui-dialog .dl-choices input{width:16px;height:16px;margin:0;accent-color:#64466e}
html body .ui-dialog .dl-choices svg{width:16px;height:16px;flex:none;color:#80638b}
html body .ui-dialog .dl-check{display:flex;align-items:center;gap:8px;justify-content:center;font-size:12px}
html body .ui-dialog .dl-check input{width:16px;height:16px;margin:0;accent-color:#64466e}
html body .ui-dialog .dl-error{font-size:12px;color:#993c3c}
html body .ui-dialog .dl-error:empty{display:none}
/* Fenêtre « message » ($.alertDialog des formulaires, avertissement du tchat) : réponse du serveur, lignes séparées par <br> */
html body .ui-dialog .dl-message{color:#382b3e;font-size:14px;line-height:1.7}
/* Attente pendant le chargement d'une fenêtre ($.popup.open) : anneau sur une pastille papier, à la place du gif. Le style en
   ligne de jquery.popup.js (position, voile), gardé pour l'admin et les panels, reste en vigueur */
html body .dl-loader{width:64px;height:64px;padding:16px;box-sizing:border-box;background:#faf8f3;box-shadow:0 20px 60px rgba(48,38,54,.25)}
html body .dl-loader img{display:none}
html body .dl-loader::after{content:'';display:block;width:100%;height:100%;box-sizing:border-box;border:3px solid #e1d8e5;border-top-color:#64466e;border-radius:50%;animation:dl-spin .8s linear infinite}
@keyframes dl-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html body .dl-loader::after{animation-duration:2.4s}}
/* Document dans une fenêtre (règlement à l'inscription : content/page.tpl en AJAX) : il défile dans la fenêtre */
html body .ui-dialog .dl-document{max-height:min(62vh,560px);overflow-y:auto;padding-right:8px;font-size:13px;line-height:1.8}
html body .ui-dialog .dl-document :is(h2,h3){margin:22px 0 10px;font:400 19px/1.4 'Lora',Georgia,serif;color:#48354f}
html body .ui-dialog .dl-document .dl-document-title{margin-top:0;font-size:24px}
html body .ui-dialog .dl-document h2.ip-part{padding-top:18px;border-top:1px solid #e1d8e5;font-size:22px}
html body .ui-dialog .dl-document p{margin:0 0 12px}
html body .ui-dialog .dl-document img{max-width:100%;height:auto}

@media(max-width:580px){
	html body .ui-dialog{left:15px!important;right:15px;width:auto!important;max-height:calc(100vh - 30px);overflow-y:auto}
	html body .ui-dialog .ui-dialog-titlebar{padding:24px 54px 0 22px}
	html body .ui-dialog .ui-dialog-title{font-size:23px}
	html body .ui-dialog .ui-dialog-content{padding:14px 22px 24px}
	html body .ui-dialog .ui-dialog-buttonpane{padding:0 22px 24px}
	html body .ui-dialog .dl-actions,html body .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{flex-direction:column-reverse;align-items:stretch}
	html body .ui-dialog .dl-line{flex-direction:column;align-items:flex-start;gap:8px}
	html body .ui-dialog .dl-actions.dl-actions-stack{flex-direction:column}
}
