/* C  KIE by BL NK — bandeau de consentement. Couleurs : variables injectées depuis les réglages. */
.blnk-ck{--blnk-primary:#1A171B;--blnk-text:#2C2A2D;--blnk-bg:#fff;--blnk-radius:6px;font-family:inherit;color:var(--blnk-text);font-size:14px;line-height:1.5}
.blnk-ck[hidden],.blnk-ck [hidden]{display:none!important}
.blnk-ck *,.blnk-ck *::before,.blnk-ck *::after{box-sizing:border-box}
.blnk-ck p{margin:0}
.blnk-ck a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.blnk-ck button{font:inherit}

.blnk-ck-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(10,10,12,.45)}

/* Bandeau */
.blnk-ck-banner{position:fixed;z-index:2147483001;background:var(--blnk-bg);color:var(--blnk-text);box-shadow:0 10px 40px rgba(0,0,0,.16),0 2px 8px rgba(0,0,0,.06);display:flex;gap:16px 32px}
.blnk-ck-layout-bar .blnk-ck-banner{left:0;right:0;bottom:0;padding:22px max(24px,calc((100vw - 1200px)/2)) 20px;align-items:center;flex-wrap:wrap;border-top:1px solid rgba(0,0,0,.08)}
.blnk-ck-layout-bar .blnk-ck-body{flex:1 1 460px;min-width:0}
.blnk-ck-layout-box .blnk-ck-banner{left:20px;bottom:20px;width:min(420px,calc(100vw - 40px));padding:22px;flex-direction:column;border-radius:calc(var(--blnk-radius) * 2)}
.blnk-ck-layout-center .blnk-ck-banner{left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:28px;flex-direction:column;border-radius:calc(var(--blnk-radius) * 2)}
.blnk-ck-title{font-weight:600;font-size:16px;line-height:1.3;margin-bottom:6px!important;color:var(--blnk-text)}
.blnk-ck-text{font-size:14px;opacity:.92}
.blnk-ck-policy{white-space:nowrap}

.blnk-ck-close{position:absolute;top:8px;right:12px;background:none;border:0;padding:4px 6px;cursor:pointer;color:var(--blnk-text);opacity:.7;font-size:12px!important;display:inline-flex;align-items:center;gap:6px;text-decoration:underline;text-underline-offset:2px}
.blnk-ck-close span{font-size:18px;line-height:1;text-decoration:none}
.blnk-ck-close:hover{opacity:1}
.blnk-ck-layout-bar .blnk-ck-banner{padding-top:34px}
.blnk-ck-layout-box .blnk-ck-banner,.blnk-ck-layout-center .blnk-ck-banner{padding-top:40px}

.blnk-ck-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.blnk-ck-layout-box .blnk-ck-actions,.blnk-ck-layout-center .blnk-ck-actions{justify-content:flex-end}

/* Boutons : « Tout accepter » et « Tout refuser » ont exactement le même poids visuel. */
.blnk-ck-btn{appearance:none;border:1px solid var(--blnk-primary);background:var(--blnk-primary);color:#fff;border-radius:var(--blnk-radius);padding:10px 18px;font-size:14px!important;font-weight:500;line-height:1.2;cursor:pointer;white-space:nowrap;transition:filter .14s,background .14s,color .14s}
.blnk-ck-btn:hover{filter:brightness(1.12)}
.blnk-ck-btn-ghost{background:transparent;color:var(--blnk-text);border-color:rgba(0,0,0,.22)}
.blnk-ck-btn-ghost:hover{filter:none;border-color:var(--blnk-text)}
.blnk-ck button:focus-visible,.blnk-ck a:focus-visible,.blnk-ck input:focus-visible+span{outline:2px solid var(--blnk-primary);outline-offset:2px}

/* Panneau de réglages (le bandeau s'efface derrière tant qu'il est ouvert) */
.blnk-ck.is-panel .blnk-ck-banner{visibility:hidden}
.blnk-ck-panel{position:fixed;z-index:2147483002;left:50%;top:50%;transform:translate(-50%,-50%);width:min(600px,calc(100vw - 24px));max-height:calc(100vh - 24px);display:flex;flex-direction:column;background:var(--blnk-bg);color:var(--blnk-text);border-radius:calc(var(--blnk-radius) * 2);box-shadow:0 20px 60px rgba(0,0,0,.25)}
.blnk-ck-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 12px}
.blnk-ck-panel-head .blnk-ck-title{margin:0!important;font-size:18px}
.blnk-ck .blnk-ck-x{background:none;border:0;font-size:26px;line-height:1;cursor:pointer;color:var(--blnk-text);padding:2px 8px;border-radius:var(--blnk-radius)}
.blnk-ck-panel-body{padding:0 24px 8px;overflow:auto}
.blnk-ck-panel-body>.blnk-ck-text{margin-bottom:12px}
.blnk-ck-cat{border-top:1px solid rgba(0,0,0,.08);padding:14px 0}
.blnk-ck-cat-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.blnk-ck-cat-label{font-weight:600;cursor:pointer}
.blnk-ck-always{font-size:12px;font-weight:500;opacity:.7}
.blnk-ck-cat-desc{font-size:13px;opacity:.85;margin-top:4px!important}
.blnk-ck-cat-services{font-size:12px;opacity:.65;margin-top:4px!important}
.blnk-ck-id{font-size:12px;opacity:.7;border-top:1px solid rgba(0,0,0,.08);padding-top:12px!important;margin-top:4px!important;word-break:break-all}
.blnk-ck-id code{font-size:11px;background:rgba(0,0,0,.05);padding:1px 5px;border-radius:3px}
.blnk-ck-panel-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:14px 24px 20px;border-top:1px solid rgba(0,0,0,.08)}

/* Interrupteur */
.blnk-ck-switch{position:relative;flex:0 0 auto;width:44px;height:24px}
.blnk-ck-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.blnk-ck-switch span{position:absolute;inset:0;border-radius:24px;background:rgba(0,0,0,.2);transition:background .15s}
.blnk-ck-switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.blnk-ck-switch input:checked+span{background:var(--blnk-primary)}
.blnk-ck-switch input:checked+span::after{transform:translateX(20px)}

/* Bouton flottant */
.blnk-ck-fab{position:fixed;left:16px;bottom:16px;z-index:2147482999;width:44px;height:44px;border-radius:50%;border:1px solid rgba(0,0,0,.1);background:var(--blnk-bg);color:var(--blnk-text);box-shadow:0 4px 16px rgba(0,0,0,.14);display:flex;align-items:center;justify-content:center;cursor:pointer}

@media (max-width:640px){
  .blnk-ck-layout-bar .blnk-ck-banner{padding:34px 18px 16px}
  .blnk-ck-layout-box .blnk-ck-banner{left:10px;right:10px;bottom:10px;width:auto}
  .blnk-ck-actions{width:100%}
  .blnk-ck-actions .blnk-ck-btn{flex:1 1 auto}
  .blnk-ck-actions .blnk-ck-btn-ghost{order:3;flex-basis:100%}
  .blnk-ck-panel-foot .blnk-ck-btn{flex:1 1 auto}
  .blnk-ck-panel-foot [data-blnk-ck="save"]{flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){.blnk-ck *{transition:none!important}}
