:root{--as-commercial-footer-h:42px}
body{padding-bottom:var(--as-commercial-footer-h)!important}
html.as-commercial-modal-open,html.as-commercial-modal-open body{overflow:hidden!important}
html.as-commercial-embedded body{padding-bottom:0!important}
.as-commercial-footer{position:fixed;z-index:2147482000;left:0;right:0;bottom:0;height:var(--as-commercial-footer-h);display:flex;align-items:center;justify-content:center;gap:8px;padding:5px 12px;background:rgba(7,17,38,.96);border-top:1px solid rgba(96,165,250,.26);box-shadow:0 -10px 28px rgba(0,0,0,.16);backdrop-filter:blur(12px);font-family:Inter,Arial,sans-serif}
.as-commercial-footer a,.as-commercial-footer button{appearance:none;border:1px solid rgba(148,163,184,.28);background:rgba(15,23,42,.78);color:#dbeafe;border-radius:10px;min-height:30px;padding:5px 11px;font:700 11px/1.1 Inter,Arial,sans-serif;letter-spacing:.02em;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.as-commercial-footer a:hover,.as-commercial-footer button:hover,.as-commercial-footer a:focus-visible,.as-commercial-footer button:focus-visible{border-color:#60a5fa;background:rgba(30,64,175,.22);color:#fff;outline:none}
.as-commercial-footer .as-foot-contact{border-color:rgba(45,212,191,.35);color:#99f6e4}
.as-commercial-footer .as-foot-copy{margin-left:8px;color:#64748b;font:600 10px/1 Inter,Arial,sans-serif}

.as-contact-overlay,.as-doc-overlay{position:fixed;z-index:2147483000;inset:0;background:rgba(2,6,23,.80);display:none;align-items:center;justify-content:center;padding:18px;font-family:Inter,Arial,sans-serif}
.as-contact-overlay.open,.as-doc-overlay.open{display:flex}
.as-contact-modal{width:min(900px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#0b1429;color:#e5eefb;border:1px solid rgba(96,165,250,.35);border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.as-contact-head,.as-doc-head{position:sticky;top:0;z-index:8;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px;border-bottom:1px solid rgba(148,163,184,.18);background:rgba(11,20,41,.985);box-shadow:0 8px 18px rgba(2,6,23,.22)}
.as-contact-head h2{margin:0 0 4px!important;padding:0!important;border:0!important;font:800 22px/1.15 Inter,Arial,sans-serif!important;color:#fff!important}
.as-contact-head p{margin:0;color:#93a4bd;font-size:12px}
.as-contact-close,.as-doc-close{appearance:none!important;display:grid!important;place-items:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0!important;padding:0!important;border:1px solid rgba(248,113,113,.48)!important;background:#2a1621!important;color:#fff!important;border-radius:11px!important;cursor:pointer!important;font:800 28px/1 Arial,sans-serif!important;box-shadow:0 5px 18px rgba(0,0,0,.24)!important;opacity:1!important;visibility:visible!important}
.as-contact-close:hover,.as-doc-close:hover,.as-contact-close:focus-visible,.as-doc-close:focus-visible{background:#7f1d1d!important;border-color:#fca5a5!important;outline:2px solid rgba(252,165,165,.35)!important;outline-offset:2px!important}
.as-contact-body{padding:18px 22px 22px}
.as-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.as-contact-field{display:flex;flex-direction:column;gap:6px}
.as-contact-field.full{grid-column:1/-1}
.as-contact-field label{font-size:11px;font-weight:800;letter-spacing:.03em;color:#bfdbfe;text-transform:uppercase}
.as-contact-field input,.as-contact-field select,.as-contact-field textarea{width:100%;border:1px solid #263657;border-radius:11px;background:#0f1b34;color:#f8fafc;padding:10px 11px;font:500 13px/1.35 Inter,Arial,sans-serif;outline:none}
.as-contact-field input:focus,.as-contact-field select:focus,.as-contact-field textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(59,130,246,.15)}
.as-contact-field textarea{min-height:150px;resize:vertical}
.as-contact-consent{grid-column:1/-1;display:flex;gap:9px;align-items:flex-start;color:#b7c3d6;font-size:11px;line-height:1.45}
.as-contact-consent input{margin-top:2px}
.as-contact-consent a{color:#7dd3fc}
.as-contact-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;justify-content:flex-end;margin-top:4px}
.as-contact-submit{border:1px solid #0f766e;background:linear-gradient(135deg,#0f766e,#0b8f7d);color:white;border-radius:11px;padding:10px 16px;font-weight:800;cursor:pointer}
.as-contact-submit:disabled{opacity:.55;cursor:wait}
.as-contact-status{grid-column:1/-1;display:none;border-radius:11px;padding:10px 12px;font-size:12px;line-height:1.45}
.as-contact-status.show{display:block}
.as-contact-status.ok{background:rgba(16,185,129,.12);border:1px solid rgba(52,211,153,.28);color:#a7f3d0}
.as-contact-status.bad{background:rgba(239,68,68,.10);border:1px solid rgba(248,113,113,.28);color:#fecaca}
.as-contact-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

.as-doc-modal{width:min(1100px,100%);height:min(820px,calc(100vh - 36px));display:flex;flex-direction:column;overflow:hidden;background:#0b1429;color:#e5eefb;border:1px solid rgba(96,165,250,.35);border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.48)}
.as-doc-head{position:relative;top:auto;align-items:center;padding:12px 14px 12px 18px;flex:0 0 auto}
.as-doc-title{font:800 16px/1.2 Inter,Arial,sans-serif;color:#f8fafc}

#asPrivacyFab,.as-privacy-fab,.privacy-fab{bottom:calc(var(--as-commercial-footer-h) + 10px)!important}

@media(max-width:720px){
  :root{--as-commercial-footer-h:46px}
  .as-commercial-footer{justify-content:flex-start;overflow-x:auto;padding-inline:8px}
  .as-commercial-footer .as-foot-copy{display:none}
  .as-commercial-footer a,.as-commercial-footer button{flex:0 0 auto}
  .as-contact-grid{grid-template-columns:1fr}
  .as-contact-field.full,.as-contact-consent,.as-contact-actions,.as-contact-status{grid-column:1}
  .as-contact-modal,.as-doc-modal{width:100%;height:calc(100vh - 16px);max-height:calc(100vh - 16px);border-radius:14px}
  .as-contact-overlay,.as-doc-overlay{padding:8px}
  .as-contact-head,.as-contact-body{padding-left:14px;padding-right:14px}
  .as-contact-close,.as-doc-close{flex-basis:42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  .as-doc-title{font-size:14px}
}


/* V2.8.52 R3 — documents juridiques rendus dans le DOM, sans iframe.
   Conserve frame-ancestors / X-Frame-Options stricts sur les pages publiques. */
.as-doc-content{flex:1 1 auto;min-height:0;overflow:auto;background:#050814;color:#eef2ff;padding:18px;--bg:#050814;--panel:#0f1830;--line:rgba(255,255,255,.10);--text:#eef2ff;--muted:rgba(238,242,255,.66);--pri:#7c8cff;--good:#3fe0a0}
.as-doc-content *{box-sizing:border-box}
.as-doc-content .as-doc-page{max-width:900px;margin:0 auto;border:1px solid var(--line);background:linear-gradient(180deg,rgba(15,24,48,.97),rgba(7,12,27,.97));border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.38);overflow:hidden}
.as-doc-content .as-doc-source-bar{height:3px;background:linear-gradient(90deg,#7c8cff,#5fd6ff,#3fe0a0)}
.as-doc-content .as-doc-source-header,.as-doc-content .as-doc-source-main,.as-doc-content .as-doc-source-footer{padding:24px 28px}
.as-doc-content .as-doc-source-header{border-bottom:1px solid var(--line)}
.as-doc-content h1{margin:0 0 8px!important;padding:0!important;border:0!important;font:800 26px/1.2 Inter,Segoe UI,system-ui,sans-serif!important;color:var(--text)!important}
.as-doc-content h2{font:800 17px/1.25 Inter,Segoe UI,system-ui,sans-serif!important;margin:26px 0 8px!important;padding:0!important;border:0!important;color:#dbeafe!important}
.as-doc-content p,.as-doc-content li{color:var(--muted)!important;line-height:1.65!important;font-size:14px!important}
.as-doc-content a{color:#9fb0ff!important}
.as-doc-content strong{color:var(--text)!important}
.as-doc-content .notice{padding:12px 14px;border:1px solid rgba(124,140,255,.25);border-radius:12px;background:rgba(124,140,255,.08);color:#dbeafe;font-size:13px;line-height:1.55}
.as-doc-content .as-doc-source-footer{border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.as-doc-content .aspc-inline-open{border:1px solid rgba(124,140,255,.38);background:rgba(124,140,255,.12);color:#dbeafe;border-radius:9px;padding:6px 10px;font-weight:700;cursor:pointer}

/* R5 : isolation renforcée contre les styles globaux CRM/AUDIT/COMPTA. */
.as-doc-content .as-doc-page{display:block!important;padding:0!important;gap:0!important;visibility:visible!important;opacity:1!important}
.as-doc-content .as-doc-source-header,.as-doc-content .as-doc-source-main,.as-doc-content .as-doc-source-footer{display:block!important;position:static!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;overflow:visible!important;grid-template-columns:none!important;grid-template-rows:none!important;background:transparent!important}
.as-doc-content .as-doc-source-header{border-bottom:1px solid var(--line)!important}
.as-doc-content .as-doc-source-footer{border-top:1px solid var(--line)!important}
.as-doc-loading,.as-doc-error{margin:auto;max-width:620px;padding:28px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:rgba(15,23,42,.72);color:#dbeafe;text-align:center;font-size:14px;line-height:1.6}
.as-doc-error{border-color:rgba(248,113,113,.30);color:#fecaca}
@media(max-width:720px){.as-doc-content{padding:10px}.as-doc-content .as-doc-source-header,.as-doc-content .as-doc-source-main,.as-doc-content .as-doc-source-footer{padding:18px}.as-doc-content .as-doc-page{border-radius:12px}.as-doc-content h1{font-size:22px!important}}

/* --------------------------------------------------------------------------
   V2.8.70 FULL UI R2 — correctif responsive footer commercial
   Périmètre : <= 720 px uniquement.
   Objectif  : rendre Contact / CGV / Mentions légales / Confidentialité
               simultanément visibles, sans scroll horizontal interne,
               sans modifier la hauteur de footer (46 px) ni le desktop.
   Validation : 430x932 / 393x852 / 360x800 / 320x800 via Playwright.
   -------------------------------------------------------------------------- */
@media(max-width:720px){
  .as-commercial-footer{
    justify-content:center!important;
    overflow:hidden!important;
    overflow-x:hidden!important;
    overflow-y:hidden!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
  .as-commercial-footer .as-foot-contact,
  .as-commercial-footer a{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding-left:4px!important;
    padding-right:4px!important;
    min-height:34px!important;
    font-size:9.5px!important;
    line-height:1.05!important;
    letter-spacing:0!important;
    gap:2px!important;
    white-space:nowrap!important;
  }
  .as-commercial-footer .as-foot-copy{display:none!important}
}

