/* Constructeur de signature e-mail : styles communs (site vitrine et espace client) */
.sgb{--sgb-v:#8249D3;--sgb-ink:#1b1033;--sgb-mut:#6b6480;--sgb-line:#e7e1f1;--sgb-bg:#fff;--sgb-soft:#f7f4fc;color:var(--sgb-ink);font-size:15px;line-height:1.5;text-align:left}
.sgb *{box-sizing:border-box}
.sgb [hidden]{display:none!important}
.sgb button{font:inherit;cursor:pointer}
.sgb-steps{list-style:none;margin:0 0 18px;padding:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.sgb-steps::-webkit-scrollbar{display:none}
.sgb-steps li{flex:1 0 auto;display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:12px;background:var(--sgb-soft);color:var(--sgb-mut);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;border:1px solid transparent}
.sgb-steps li span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--sgb-line);font-size:12.5px;flex:none}
.sgb-steps li.done{color:var(--sgb-ink)}
.sgb-steps li.done span{background:#efe7fb;border-color:#d9c8f4;color:var(--sgb-v)}
.sgb-steps li.on{background:#fff;border-color:var(--sgb-v);color:var(--sgb-ink);box-shadow:0 2px 10px rgba(130,73,211,.12)}
.sgb-steps li.on span{background:var(--sgb-v);border-color:var(--sgb-v);color:#fff}
.sgb-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:22px;align-items:start}
.sgb-form,.sgb-side{min-width:0}
.sgb-form{background:var(--sgb-bg);border:1px solid var(--sgb-line);border-radius:18px;padding:22px}
.sgb-panel h3{margin:0 0 4px;font-size:20px;line-height:1.25}
.sgb-d{margin:0 0 16px;color:var(--sgb-mut);font-size:14.5px}
.sgb-row{display:flex;gap:12px;flex-wrap:wrap}
.sgb-f{margin:0 0 14px;flex:1 1 100%;min-width:0}
.sgb-f.half{flex:1 1 180px}
.sgb-f>label{display:block;font-weight:600;font-size:14px;margin:0 0 5px}
.sgb-f input[type=text],.sgb-f input[type=url],.sgb-f input[type=tel],.sgb-f input[type=email],.sgb-f textarea,.sgb-f select,.sgb-soc input{width:100%;padding:10px 12px;border:1px solid #d9d2e6;border-radius:10px;background:#fff;color:var(--sgb-ink);font:inherit;font-size:15px;min-height:42px}
.sgb-f textarea{resize:vertical;min-height:60px}
.sgb-f input:focus,.sgb-f textarea:focus,.sgb-f select:focus,.sgb-soc input:focus{outline:none;border-color:var(--sgb-v);box-shadow:0 0 0 3px rgba(130,73,211,.15)}
.sgb-f input:disabled,.sgb-f textarea:disabled,.sgb-f select:disabled{background:#f4f2f8;color:#6b6480}
.sgb-f.bad input{border-color:#d14343}
.sgb-h{margin:5px 0 0;color:var(--sgb-mut);font-size:13px}
.sgb-msg{color:#b42318;font-size:13px;min-height:0}
.sgb-msg:empty{display:none}
.sgb-lock{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:99px;background:#efe7fb;color:#5b2ea6;font-size:11.5px;font-weight:600;vertical-align:1px}
.sgb-f input[type=range]{width:100%;accent-color:var(--sgb-v)}
.sgb-f output{color:var(--sgb-mut);font-weight:500}
.sgb-tpls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sgb-tpl{border:1px solid var(--sgb-line);background:#fff;border-radius:12px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--sgb-ink)}
.sgb-tpl b{font-size:13px;font-weight:600}
.sgb-tpl.on{border-color:var(--sgb-v);box-shadow:0 0 0 2px var(--sgb-v) inset}
.sgb-tpl:disabled{opacity:.55;cursor:not-allowed}
.sgb-mini{position:relative;display:block;width:100%;height:46px;border-radius:6px;background:var(--sgb-soft)}
.sgb-mini i{position:absolute;display:block;border-radius:3px;background:#cfc3e6}
.sgb-mini i:first-child{background:var(--sgb-v)}
.sgb-mini-classic i:nth-child(1){left:10%;top:10px;width:45%;height:6px}.sgb-mini-classic i:nth-child(2){left:10%;top:20px;width:15%;height:2px}.sgb-mini-classic i:nth-child(3){left:10%;top:27px;width:60%;height:4px}.sgb-mini-classic i:nth-child(4){left:10%;top:35px;width:40%;height:4px}
.sgb-mini-sidebar i:nth-child(1){left:9%;top:9px;width:22%;height:28px;border-radius:50%}.sgb-mini-sidebar i:nth-child(2){left:36%;top:8px;width:2px;height:30px}.sgb-mini-sidebar i:nth-child(3){left:43%;top:12px;width:45%;height:5px}.sgb-mini-sidebar i:nth-child(4){left:43%;top:24px;width:35%;height:4px}
.sgb-mini-card i:nth-child(1){left:8%;top:8px;width:4px;height:30px}.sgb-mini-card i:nth-child(2){left:8%;top:8px;right:8%;height:30px;background:transparent;border:1px solid #cfc3e6}.sgb-mini-card i:nth-child(3){left:20%;top:15px;width:40%;height:5px}.sgb-mini-card i:nth-child(4){left:20%;top:26px;width:55%;height:4px}
.sgb-mini-compact i:nth-child(1){left:8%;top:14px;width:28%;height:5px}.sgb-mini-compact i:nth-child(2){left:40%;top:14px;width:22%;height:5px}.sgb-mini-compact i:nth-child(3){left:66%;top:14px;width:24%;height:5px}.sgb-mini-compact i:nth-child(4){left:8%;top:26px;width:82%;height:4px}
.sgb-mini-banner i:nth-child(1){left:8%;right:8%;top:30px;height:9px}.sgb-mini-banner i:nth-child(2){left:8%;top:8px;width:20%;height:16px}.sgb-mini-banner i:nth-child(3){left:34%;top:9px;width:45%;height:5px}.sgb-mini-banner i:nth-child(4){left:34%;top:18px;width:35%;height:4px}
.sgb-mini-minimal i:nth-child(1){left:10%;top:13px;width:38%;height:5px;background:#9b8fb5}.sgb-mini-minimal i:nth-child(2){left:10%;top:22px;width:55%;height:4px}.sgb-mini-minimal i:nth-child(3){left:10%;top:30px;width:70%;height:3px}.sgb-mini-minimal i:nth-child(4){display:none}
.sgb-colors{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sgb-c{width:32px;height:32px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--sgb-line);padding:0}
.sgb-c.on{box-shadow:0 0 0 2px var(--sgb-ink)}
.sgb-cc{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--sgb-mut);margin-left:4px;cursor:pointer}
.sgb-cc input{width:34px;height:32px;padding:0;border:1px solid var(--sgb-line);border-radius:8px;background:#fff;cursor:pointer}
.sgb-seg{display:inline-flex;background:var(--sgb-soft);border-radius:10px;padding:3px;gap:2px;flex-wrap:wrap}
.sgb-seg button{border:0;background:transparent;padding:7px 12px;border-radius:8px;color:var(--sgb-mut);font-weight:600;font-size:13.5px}
.sgb-seg button.on{background:#fff;color:var(--sgb-ink);box-shadow:0 1px 3px rgba(27,16,51,.12)}
.sgb-soc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.sgb-soc label{display:flex;flex-direction:column;gap:3px;font-size:13px;font-weight:600;min-width:0}
.sgb-opt{background:var(--sgb-soft);border-radius:12px;padding:12px 14px}
.sgb-opt textarea{margin-top:10px}
.sgb-sw{display:flex!important;align-items:center;gap:10px;cursor:pointer;margin:0!important}
.sgb-sw input{position:absolute;opacity:0;width:1px;height:1px}
.sgb-sw > input + span{flex:none;width:38px;height:22px;border-radius:99px;background:#cfc8dc;position:relative;transition:background .15s}
.sgb-sw > input + span:after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.sgb-sw input:checked+span{background:var(--sgb-v)}
.sgb-sw input:checked+span:after{transform:translateX(16px)}
.sgb-sw input:focus-visible+span{box-shadow:0 0 0 3px rgba(130,73,211,.3)}
.sgb-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border-radius:10px;border:1px solid #d9d2e6;background:#fff;color:var(--sgb-ink);font-weight:600;font-size:14.5px;min-height:42px;text-decoration:none}
.sgb-btn:hover{border-color:var(--sgb-v)}
.sgb-btn.pri{background:var(--sgb-v);border-color:var(--sgb-v);color:#fff}
.sgb-btn.pri:hover{filter:brightness(1.07)}
.sgb-btn.ok{background:#16a34a;border-color:#16a34a;color:#fff}
.sgb-btn:disabled{opacity:.6;cursor:wait}
.sgb-link{border:0;background:none;color:var(--sgb-mut);text-decoration:underline;font-size:13.5px;padding:6px}
.sgb-nav{display:flex;align-items:center;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--sgb-line)}
.sgb-nav [data-next]{margin-left:auto}
.sgb-nav .sgb-link,.sgb-state{margin-left:auto}
.sgb-nav .sgb-link+[data-next],.sgb-state+[data-save]+[data-next]{margin-left:0}
.sgb-state{color:#b54708;font-size:13px}
.sgb-act{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.sgb-act.sm .sgb-btn{padding:7px 12px;min-height:36px;font-size:13.5px}
.sgb-cl{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px}
.sgb-cl button{border:1px solid var(--sgb-line);background:#fff;border-radius:99px;padding:6px 12px;font-size:13px;font-weight:600;color:var(--sgb-mut)}
.sgb-cl button.on{background:var(--sgb-ink);border-color:var(--sgb-ink);color:#fff}
.sgb-howto{margin:0;padding:0 0 0 22px;font-size:14.5px}
.sgb-howto li{margin:0 0 6px;padding-left:2px}
.sgb-tips{margin-top:16px;background:#fff8e8;border:1px solid #f3e2b5;border-radius:12px;padding:12px 14px;font-size:14px}
.sgb-tips ul{margin:6px 0 0;padding-left:20px}
.sgb-side{position:sticky;top:90px}
.sgb-pv-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.sgb-pv-bar b{font-size:14px;margin-right:auto}
.sgb-tog{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--sgb-mut);cursor:pointer}
.sgb-tog input{accent-color:var(--sgb-v)}
.sgb-mail{background:#fff;border:1px solid var(--sgb-line);border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(27,16,51,.07);margin:0 auto;max-width:100%;transition:max-width .2s}
.sgb-mail.mob{max-width:360px}
.sgb-mail-h{padding:12px 16px;border-bottom:1px solid #eee9f5;font-size:13.5px;color:var(--sgb-mut);display:flex;flex-wrap:wrap;gap:4px 8px}
.sgb-mail-h b{color:var(--sgb-ink);font-weight:600;overflow-wrap:anywhere}
.sgb-mail-h em{flex-basis:100%;font-style:normal;color:var(--sgb-ink);font-weight:600}
.sgb-mail-b{padding:16px;overflow-x:auto}
.sgb-mail-b>p{margin:0 0 16px;font-family:Arial,sans-serif;font-size:14px;color:#2b2b35}
.sgb-sig{background:#fff;padding:2px 0;max-width:100%}
.sgb-mail.dark,.sgb-mail.dark .sgb-mail-h{background:#1e1e24;border-color:#33333d;color:#a8a8b5}
.sgb-mail.dark .sgb-mail-h b,.sgb-mail.dark .sgb-mail-h em,.sgb-mail.dark .sgb-mail-b>p{color:#e6e6ec}
.sgb-mail.dark .sgb-sig{background:transparent;filter:invert(.88) hue-rotate(180deg)}
.sgb-mail.dark .sgb-sig img{filter:invert(1) hue-rotate(180deg)}
.sgb-priv{margin:10px 0 0;color:var(--sgb-mut);font-size:13px;text-align:center}
.sgb-priv:empty{display:none}
.sgb-sig-only{overflow-x:auto;padding:4px 0 12px}
@media (max-width:900px){
 .sgb-grid{grid-template-columns:minmax(0,1fr)}
 .sgb-side{position:static}
 .sgb-steps li{flex:0 0 auto;padding:8px 10px}
 .sgb-steps li:not(.on){font-size:0;gap:0}
 .sgb-steps li:not(.on) span{font-size:12.5px}
}
@media (max-width:560px){
 .sgb-form{padding:16px;border-radius:14px}
 .sgb-tpls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sgb-soc{grid-template-columns:minmax(0,1fr)}
 .sgb-nav{gap:6px}
 .sgb-nav .sgb-btn{padding:10px 13px}
 .sgb-act .sgb-btn{flex:1 1 100%}
 .sgb-mail-b{padding:12px}
}
.sgb-after{margin-top:22px}
.sgb-sig.sgb-demo{opacity:.55}
.sgb-team{display:grid;gap:16px}
.sgb-team-c{padding:20px 22px;min-width:0}
.sgb-team-h{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;margin:0 0 12px}
.sgb-tpls{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
.sgb-mini{height:58px;padding:4px;background:#faf8fe}
.sgb-mini svg{display:block;width:100%;height:100%}
@media (max-width:560px){.sgb-tpls{grid-template-columns:repeat(3,minmax(0,1fr))}.sgb-tpl b{font-size:12px}.sgb-mini{height:48px}}
.sgb-sig img{max-width:none!important;height:auto}
.sgb-sig img[style*="vertical-align"]{display:inline!important}
.sgb-sig table{width:auto;margin:0;border:0}
.sgb-sig table[width="100%"]{width:100%}
.sgb-sig td{border:0;padding-left:0}
.sgb-lock{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:2px 9px 2px 7px;border-radius:99px;background:#f1edf7;color:#6b6480;font-size:11.5px;font-weight:600;vertical-align:1px;text-decoration:none;line-height:1.4}
.sgb-lock svg{width:11px;height:11px;flex:none}
a.sgb-lock-edit{color:#5b2ea6;background:#efe7fb}
a.sgb-lock-edit:hover{background:#e3d5f8;text-decoration:none}
.sgb-lock-pen{display:inline-flex;align-items:center;gap:3px;margin-left:4px;padding-left:7px;border-left:1px solid #d6c6f2;color:#8249D3}
.sgb-shared{display:flex;gap:10px;align-items:flex-start;background:#f7f4fc;border:1px solid #e7e1f1;border-radius:12px;padding:10px 12px;margin:0 0 16px;font-size:13.5px;color:#4b4361}
.sgb-shared-ic{flex:none;width:26px;height:26px;border-radius:8px;background:#efe7fb;color:#8249D3;display:grid;place-items:center}
.sgb-shared-ic svg{width:13px;height:13px}
.sgb-shared b{color:#1b1033;font-weight:600}
.sgb-shared a{display:inline-flex;align-items:center;gap:4px;color:#8249D3;font-weight:600;text-decoration:none;white-space:nowrap}
.sgb-shared a svg{width:12px;height:12px}
.sgb-shared a:hover{text-decoration:underline}
.sgb-f>label{display:flex;align-items:center;gap:6px}
.sgb-lk{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:6px;background:#f1edf7;color:#8a82a0;cursor:help}
.sgb-lk svg,.sgb-lk-edit svg{width:11px;height:11px}
.sgb-lk-edit{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:1px solid #e0d6f0;background:#fff;color:#8249D3;text-decoration:none}
.sgb-lk-edit svg{width:13px;height:13px}
.sgb-lk-edit:hover{background:#efe7fb;border-color:#8249D3}
.sgb-sw{flex-wrap:wrap}
