/* CHARENTIS Application Mobile — Prestige 2.0. Components are scoped. */
.chp-root{--chp-navy:#10243d;--chp-ink:#14253b;--chp-gold:#d2ae6e;--chp-line:#e7decd;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.chp-root *{box-sizing:border-box}.chp-root [hidden]{display:none!important}
.chp-trigger{position:fixed;bottom:20px;left:20px;z-index:9988;display:flex;align-items:center;gap:10px;border:1px solid #c29c60;border-radius:999px;padding:12px 16px;background:linear-gradient(120deg,#10243d,#1b3756);box-shadow:0 9px 32px rgba(11,31,55,.22);color:#fff;font:600 13px/1.1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.01em;cursor:pointer;transition:transform .2s,box-shadow .2s}
.chp-trigger:hover{transform:translateY(-3px);box-shadow:0 15px 38px rgba(11,31,55,.3)}.chp-trigger:focus-visible,.chp-root button:focus-visible{outline:3px solid #b58a43;outline-offset:3px}.chp-trigger-icon{display:grid;place-items:center;width:27px;height:27px;border:1px solid rgba(216,184,125,.55);border-radius:50%;color:#f1d49e;font-size:17px}.chp-trigger-chevron{color:#f1d49e;font-size:17px}
.chp-overlay{position:fixed;inset:0;background:rgba(5,16,31,.5);backdrop-filter:blur(3px);z-index:99989}
.chp-dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:99990;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;background:#fff;color:var(--chp-ink);border-radius:23px;border:1px solid var(--chp-line);box-shadow:0 35px 110px rgba(3,19,40,.32);text-align:left}
.chp-hero{position:relative;overflow:hidden;padding:27px 29px 24px;background:radial-gradient(circle at 96% 10%,rgba(219,178,105,.19),transparent 45%),linear-gradient(130deg,#0d2038,#1d3855);color:white}.chp-hero:after{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#b18a4d,#f1d39a,#b18a4d)}
.chp-eyebrow{font-size:10px;font-weight:700;letter-spacing:.17em;color:#e6c892}.chp-spark{font-size:17px;vertical-align:middle;margin-right:5px}.chp-brand{margin-top:18px;display:flex;gap:12px;align-items:center}.chp-brandmark{display:grid;place-items:center;width:56px;height:56px;border:1px solid #c5a266;border-radius:15px;background:rgba(2,14,29,.25);font:italic 38px Georgia,serif;color:#f0d49d}.chp-brand-title,.chp-brand-sub{display:block}.chp-brand-title{font:26px Georgia,"Times New Roman",serif;letter-spacing:.08em;color:#fff}.chp-brand-sub{margin-top:4px;font-size:9px;letter-spacing:.22em;color:#ddc395}
.chp-hero h2{font:normal 31px/1.14 Georgia,"Times New Roman",serif;margin:22px 0 12px;color:#fff;letter-spacing:-.025em}.chp-hero h2 em{font-style:normal;color:#e7c686}.chp-hero p{font-size:13px;line-height:1.65;color:#d8e2ed;margin:0;max-width:350px}.chp-close{position:absolute;top:14px;right:14px;background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:10px;width:32px;height:32px;cursor:pointer;font-size:23px;line-height:1}
.chp-body{padding:23px 28px 25px}.chp-benefits{display:grid;gap:11px;margin-bottom:20px}.chp-benefits>div{display:flex;align-items:center;gap:10px;font-size:13px;color:#33435a}.chp-benefits>div>span:first-child{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:8px;background:#f5f0e6;color:#9f7740;font-size:17px}
.chp-method{font-size:12px;color:#46556b;border:1px solid #e8e0d3;background:#faf8f4;border-radius:10px;padding:12px 13px;margin-bottom:13px;line-height:1.5}.chp-steps{border:1px solid #e6dfd3;border-radius:12px;padding:13px;margin-bottom:12px;background:#fff;font-size:13px;line-height:1.65}.chp-steps ol{margin:5px 0 0 20px;padding:0}.chp-steps li+li{margin-top:5px}
.chp-action{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px;border:0;border-radius:10px;background:linear-gradient(110deg,#d0a65c,#f2d18f,#c59a52);color:#122541;font:700 13px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;box-shadow:0 5px 18px rgba(178,131,59,.19)}.chp-action:hover{filter:brightness(1.045)}.chp-later{display:block;margin:11px auto 0;background:transparent;border:0;color:#637087;font:500 12px Inter,sans-serif;text-decoration:underline;cursor:pointer;padding:5px}.chp-privacy{border-top:1px solid #ece5db;margin:19px 0 0;padding-top:14px;text-align:center;color:#69768a;font-size:11px;line-height:1.55}.chp-privacy>span{color:#b99152}
@media(max-width:600px){.chp-trigger{left:12px;bottom:14px;padding:9px 12px;font-size:11px;gap:7px}.chp-trigger-icon{width:23px;height:23px}.chp-dialog{border-radius:20px}.chp-hero{padding:24px 22px}.chp-body{padding:21px 22px}.chp-hero h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){.chp-root *{transition:none!important;animation:none!important}}

/* 2.1 — aucune pastille PWA sur téléphone : fenêtre d'accueil uniquement. */
@media (max-width:767px) and (pointer:coarse){
  .chp-root .chp-trigger{display:none!important;}
  .chp-root .chp-dialog{width:min(430px,calc(100vw - 24px));max-height:min(740px,calc(100dvh - 26px));overscroll-behavior:contain;}
  .chp-root .chp-overlay{z-index:2147482000;}
  .chp-root .chp-dialog{z-index:2147482001;}
}
@media (max-width:400px){
  .chp-root .chp-hero{padding:20px 18px 17px;}
  .chp-root .chp-brand{margin-top:9px;}
  .chp-root .chp-hero h2{font-size:25px;margin:13px 0 9px;}
  .chp-root .chp-body{padding:16px 18px;}
  .chp-root .chp-benefits{gap:7px;margin-bottom:10px;}
  .chp-root .chp-privacy{margin-top:12px;padding-top:10px;}
}


/* 2.2 — Contrast & theme isolation: never inherit theme button/heading colors. */
.chp-root .chp-dialog{background:#ffffff!important;color:#14253b!important;color-scheme:light;}
.chp-root .chp-hero{color:#ffffff!important;background:radial-gradient(circle at 96% 10%,rgba(219,178,105,.19),transparent 45%),linear-gradient(130deg,#0d2038,#1d3855)!important;}
.chp-root .chp-eyebrow,.chp-root .chp-brand-sub{color:#f0d299!important;}
.chp-root .chp-brand-title,.chp-root .chp-hero h2{color:#ffffff!important;}
.chp-root .chp-brandmark,.chp-root .chp-hero h2 em{color:#f0d299!important;}
.chp-root .chp-hero p{color:#eef2f7!important;}
.chp-root .chp-close,.chp-root .chp-close:hover,.chp-root .chp-close:focus-visible{background:rgba(255,255,255,.14)!important;color:#ffffff!important;border-color:rgba(255,255,255,.45)!important;opacity:1!important;}
.chp-root .chp-body{background:#ffffff!important;color:#14253b!important;}
.chp-root .chp-benefits>div,.chp-root .chp-benefits>div>span:last-child{color:#24364a!important;background:transparent!important;}
.chp-root .chp-benefits>div>span:first-child{background:#f5f0e6!important;color:#76552d!important;}
.chp-root .chp-method,.chp-root .chp-method *{background:#f9f6f1!important;color:#273a50!important;}
.chp-root .chp-steps,.chp-root .chp-steps *{background:#ffffff!important;color:#24364a!important;}
.chp-root .chp-steps strong{font-weight:700!important;}
.chp-root .chp-action,.chp-root .chp-action:hover,.chp-root .chp-action:focus-visible{background:linear-gradient(110deg,#d0a65c,#f2d18f,#c59a52)!important;color:#14253b!important;border:0!important;opacity:1!important;text-shadow:none!important;}
.chp-root .chp-action *{color:#14253b!important;}
.chp-root .chp-later,.chp-root .chp-later:hover,.chp-root .chp-later:focus-visible{background:transparent!important;color:#334b65!important;text-decoration:underline!important;opacity:1!important;text-shadow:none!important;}
.chp-root .chp-privacy{background:#ffffff!important;color:#47586d!important;}
.chp-root .chp-privacy>span{color:#795727!important;}
.chp-root .chp-trigger,.chp-root .chp-trigger:hover,.chp-root .chp-trigger:focus-visible{background:linear-gradient(120deg,#10243d,#1b3756)!important;color:#ffffff!important;opacity:1!important;border-color:#c29c60!important;}
.chp-root .chp-trigger-icon,.chp-root .chp-trigger-chevron{color:#f0d299!important;}
.chp-root .chp-dialog a{color:#194c84!important;}
.chp-root .chp-dialog a:hover{color:#0c335e!important;}
