#atch-root{--a:#c9a96e;--a2:#d9a56d;--bg:#111;--bg2:#1b1b1b;--line:#333;--mut:#a8a8a8;font-family:Manrope,'Helvetica Neue',Arial,sans-serif}
#atch-root *{box-sizing:border-box}
.atch-btn{position:fixed;right:20px;bottom:20px;width:58px;height:58px;border-radius:50%;background:var(--a);color:#111;border:0;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:99990;padding:0}
.atch-btn:hover{background:var(--a2)}
.atch-btn svg{width:26px;height:26px}
.atch-panel{position:fixed;right:20px;bottom:90px;width:350px;max-width:calc(100vw - 24px);max-height:min(640px,calc(100vh - 110px));background:var(--bg);border:1px solid var(--line);border-radius:6px;box-shadow:0 18px 50px rgba(0,0,0,.55);display:none;flex-direction:column;overflow:hidden;z-index:99991;font-size:14px;color:#fff}
.atch-panel.open{display:flex}
.atch-head{background:var(--bg);color:#fff;padding:16px;position:relative;border-bottom:2px solid var(--a)}
.atch-who{display:flex;align-items:center;gap:10px}
.atch-av{display:flex}
.atch-av i{width:38px;height:38px;border-radius:50%;background:var(--a);color:#111;font-style:normal;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;border:2px solid var(--bg)}
.atch-av i+i{margin-left:-10px;background:#fff}
.atch-head b{display:block;font-family:Fraunces,Georgia,serif;font-size:17px;font-weight:700}
.atch-head small{display:block;color:var(--mut);font-size:11.5px;margin-top:2px}
.atch-head .atch-ct{margin-top:10px;font-size:12px}
.atch-head a{color:var(--a);text-decoration:none}
.atch-head a:hover{text-decoration:underline}
.atch-x{position:absolute;right:10px;top:8px;background:none;border:0;color:#fff;font-size:24px;cursor:pointer;line-height:1}
.atch-body{padding:14px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:8px;background:var(--bg2)}
.atch-m{max-width:88%;padding:9px 12px;border-radius:10px;line-height:1.45}
.atch-m.bot{background:#2a2a2a;color:#fff;align-self:flex-start;border-bottom-left-radius:2px}
.atch-m.me{background:var(--a);color:#111;align-self:flex-end;border-bottom-right-radius:2px;font-weight:500}
.atch-m a.atch-lk{display:inline-block;margin-top:8px;background:var(--a);color:#fff;padding:7px 14px;border-radius:3px;text-decoration:none;font-weight:600;font-size:12.5px;letter-spacing:.03em}
.atch-sub{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--mut);margin-top:6px}
.atch-q{background:transparent;border:1px solid var(--line);border-radius:4px;padding:9px 12px;text-align:left;cursor:pointer;font:inherit;color:#fff}
.atch-q:hover{border-color:var(--a);color:var(--a)}
.atch-q.pri{background:var(--a);color:#fff;border-color:var(--a);font-weight:600;text-align:center;letter-spacing:.04em}
.atch-q.pri:hover{background:var(--a2);color:#fff}
.atch-row{display:flex;gap:8px}.atch-row .atch-q{flex:1;text-align:center}
.atch-form{display:flex;flex-direction:column;gap:8px}
.atch-form input,.atch-form textarea{width:100%;border:1px solid var(--line);border-radius:4px;padding:9px 11px;font:inherit;background:#111;color:#fff}
.atch-form input:focus,.atch-form textarea:focus{outline:0;border-color:var(--a)}
.atch-form textarea{min-height:90px;resize:vertical}
.atch-form .hp{position:absolute;left:-9999px;opacity:0}
.atch-err{color:#ff8a8a;font-size:13px}
@media(max-width:480px){.atch-btn{right:14px;bottom:14px}.atch-panel{right:12px;bottom:80px}}
.atch-btn{position:fixed}.atch-dot{display:none;position:absolute;top:4px;right:4px;width:14px;height:14px;border-radius:50%;background:#e11d48;border:2px solid #111}
.atch-btn.new .atch-dot{display:block}
.atch-menu{display:flex;flex-direction:column;gap:8px}
.atch-info{font-size:12px;color:var(--mut);text-align:center}.atch-info a{color:var(--a)}
.atch-nm{font-size:11px;color:var(--a);font-weight:600;margin-bottom:2px}
.atch-tx{white-space:pre-wrap;word-wrap:break-word}
.atch-foot{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--bg)}
.atch-foot textarea{flex:1;border:1px solid var(--line);border-radius:4px;background:#111;color:#fff;padding:9px 11px;font:inherit;resize:none;max-height:100px}
.atch-foot textarea:focus{outline:0;border-color:var(--a)}
.atch-foot button{background:var(--a);color:#fff;border:0;border-radius:4px;width:44px;cursor:pointer;font-size:16px}
/* Priorité sur le thème : texte saisi toujours blanc sur fond noir */
#atch-root input,#atch-root textarea,#atch-root .atch-form input,#atch-root .atch-form textarea,#atch-root .atch-foot textarea{color:#fff!important;-webkit-text-fill-color:#fff!important;caret-color:#c9a96e!important;background:#111!important;border:1px solid #333!important;font-family:inherit!important;font-size:14px!important}
#atch-root input::placeholder,#atch-root textarea::placeholder{color:#8a8a8a!important;-webkit-text-fill-color:#8a8a8a!important;opacity:1}
#atch-root input:focus,#atch-root textarea:focus{border-color:#c9a96e!important;outline:0!important;box-shadow:none!important}
#atch-root input:-webkit-autofill{-webkit-text-fill-color:#fff!important;box-shadow:0 0 0 100px #111 inset!important}
#atch-root .atch-m.bot,#atch-root .atch-m.bot .atch-tx{color:#fff!important}
#atch-root .atch-m.me,#atch-root .atch-m.me .atch-tx{color:#111!important}

/* ===== Thème Alliance Wedding (fond blanc, noir et or) ===== */
#atch-root[data-theme="wedding"]{--a:#1a1a1a;--a2:#333;--bg:#fff;--bg2:#faf7f2;--line:#e4ddd2;--mut:#7a7066;--gold:#c9a96e}
#atch-root[data-theme="wedding"] .atch-btn{color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.2)}
#atch-root[data-theme="wedding"] .atch-panel{color:#1a1a1a;border-color:var(--line);box-shadow:0 18px 50px rgba(0,0,0,.18)}
#atch-root[data-theme="wedding"] .atch-head{background:#fff;color:#1a1a1a;border-bottom:2px solid var(--gold)}
#atch-root[data-theme="wedding"] .atch-head b{color:#1a1a1a}
#atch-root[data-theme="wedding"] .atch-head a{color:var(--gold)}
#atch-root[data-theme="wedding"] .atch-x{color:#1a1a1a}
#atch-root[data-theme="wedding"] .atch-av i{background:var(--gold);color:#fff;border-color:#fff}
#atch-root[data-theme="wedding"] .atch-av i+i{background:#1a1a1a;color:#fff}
#atch-root[data-theme="wedding"] .atch-m.bot,#atch-root[data-theme="wedding"] .atch-m.bot .atch-tx{background:#efe9df;color:#1a1a1a!important}
#atch-root[data-theme="wedding"] .atch-m.me,#atch-root[data-theme="wedding"] .atch-m.me .atch-tx{background:#1a1a1a;color:#fff!important}
#atch-root[data-theme="wedding"] .atch-m.me .atch-tx{background:transparent}
#atch-root[data-theme="wedding"] .atch-m.bot .atch-tx{background:transparent}
#atch-root[data-theme="wedding"] .atch-nm{color:var(--gold)}
#atch-root[data-theme="wedding"] .atch-q{background:#fff;color:#1a1a1a;border-color:var(--line)}
#atch-root[data-theme="wedding"] .atch-q:hover{border-color:var(--gold);color:var(--gold)}
#atch-root[data-theme="wedding"] .atch-q.pri{background:#1a1a1a;color:#fff;border-color:#1a1a1a}
#atch-root[data-theme="wedding"] .atch-q.pri:hover{background:var(--gold);border-color:var(--gold);color:#fff}
#atch-root[data-theme="wedding"] .atch-m a.atch-lk{background:#1a1a1a;color:#fff}
#atch-root[data-theme="wedding"] .atch-info a{color:var(--gold)}
#atch-root[data-theme="wedding"] .atch-foot{background:#fff}
#atch-root[data-theme="wedding"] .atch-foot button{background:#1a1a1a}
#atch-root[data-theme="wedding"] .atch-dot{border-color:#fff}
#atch-root[data-theme="wedding"] .atch-err{color:#b91c1c}
#atch-root[data-theme="wedding"] input,#atch-root[data-theme="wedding"] textarea,#atch-root[data-theme="wedding"] .atch-form input,#atch-root[data-theme="wedding"] .atch-form textarea,#atch-root[data-theme="wedding"] .atch-foot textarea{color:#1a1a1a!important;-webkit-text-fill-color:#1a1a1a!important;caret-color:#c9a96e!important;background:#fff!important;border:1px solid #e4ddd2!important}
#atch-root[data-theme="wedding"] input::placeholder,#atch-root[data-theme="wedding"] textarea::placeholder{color:#9a9086!important;-webkit-text-fill-color:#9a9086!important}
#atch-root[data-theme="wedding"] input:focus,#atch-root[data-theme="wedding"] textarea:focus{border-color:#c9a96e!important}
#atch-root[data-theme="wedding"] input:-webkit-autofill{-webkit-text-fill-color:#1a1a1a!important;box-shadow:0 0 0 100px #fff inset!important}



/* Au-dessus du bouton musique du site */
.atch-btn{bottom:84px}.atch-panel{bottom:154px}
@media(max-width:480px){.atch-btn{bottom:84px}.atch-panel{bottom:154px}}
#atch-root[data-theme="wedding"] .atch-btn{background:#111}
#atch-root[data-theme="wedding"] .atch-head{background:#111;color:#fff;border-bottom:2px solid #c9a96e}
#atch-root[data-theme="wedding"] .atch-head b,#atch-root[data-theme="wedding"] .atch-x{color:#fff}
#atch-root[data-theme="wedding"] .atch-head small{color:#cfcfcf}
#atch-root[data-theme="wedding"] .atch-av i{background:#c9a96e;color:#111;border-color:#111}
