/* Consentement aux cookies */

.pz-ck {
    color: #46504a;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 50px -8px rgba(0,0,0,.38);
    font-family: 'Poppins', sans-serif;
    font-size: .875rem;
    line-height: 1.6;
}
.pz-ck[hidden] { display: none; }
.pz-ck h2 { margin: 0 0 10px; font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 600; line-height: 1.4; color: #222; }
.pz-ck p { margin: 0; }
.pz-ck a { color: #222; text-decoration: underline; text-decoration-color: var(--couleur-vert-paletiz, #63b340); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pz-ck button:focus-visible, .pz-ck a:focus-visible, .pz-ck input:focus-visible { outline: 3px solid #222; outline-offset: 2px; }

/* Accepter et refuser ont le même poids visuel */
.pz-ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-ck-btn {
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 40px;
    background: var(--couleur-vert-paletiz, #63b340);
    color: #222;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.pz-ck-btn:hover { background: #222; color: #fff; }

.pz-ck-link {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #222;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--couleur-vert-paletiz, #63b340);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
}

/* Bandeau */
.pz-ck-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10000;
    width: 440px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px 24px 10px;
    animation: pz-ck-entree .45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pz-ck-banner .pz-ck-actions { margin-top: 18px; }
.pz-ck-banner > .pz-ck-link { display: block; margin: 4px auto 0; }

/* Panneau de préférences */
.pz-ck-dialog { width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 0; margin: auto; }
.pz-ck-dialog[open] { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; left: 0; height: fit-content; z-index: 10001; animation: pz-ck-entree .35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pz-ck-dialog::backdrop { background: rgba(20,20,20,.6); }
.pz-ck-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 12px; }
.pz-ck-dialog__head h2 { margin: 0; }
.pz-ck-close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--paletiz-gray, #f8f9fa); color: #222; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pz-ck-close:hover { background: #e9ecef; }
.pz-ck-dialog__body { overflow-y: auto; padding: 0 24px; }
.pz-ck .pz-ck-cat { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; margin: 0; padding: 18px 0; border-top: 1px solid #e2e5e8; font-weight: 400; }
.pz-ck label.pz-ck-cat { cursor: pointer; }
.pz-ck-cat h3, .pz-ck-cat__titre { display: block; margin: 0 0 4px; font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 600; line-height: 1.4; color: #222; }
.pz-ck-cat__texte { display: block; }
.pz-ck-always { flex: none; font-size: .75rem; font-weight: 600; color: #222; background: var(--paletiz-gray, #f8f9fa); padding: 4px 12px; border-radius: 20px; }

/* Interrupteur */
.pz-ck input[type="checkbox"].pz-ck-switch {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: none;
    width: 52px;
    height: 30px;
    margin: 0;
    border-radius: 30px;
    background: #8b9096;
    cursor: pointer;
    transition: background-color .2s;
}
.pz-ck-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1); }
.pz-ck input[type="checkbox"].pz-ck-switch:checked { background: var(--couleur-vert-paletiz, #63b340); }
.pz-ck-switch:checked::after { transform: translateX(22px); }

.pz-ck-dialog__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 16px 24px 20px; border-top: 1px solid #e2e5e8; }

@keyframes pz-ck-entree { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
    .pz-ck-banner { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; max-height: 80vh; padding: 18px 18px 6px; font-size: .8125rem; }
    .pz-ck-dialog__head, .pz-ck-dialog__body, .pz-ck-dialog__foot { padding-left: 18px; padding-right: 18px; }
    .pz-ck-dialog__foot { flex-direction: column-reverse; align-items: stretch; }
    .pz-ck div.pz-ck-cat { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pz-ck-btn { padding-left: 8px; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .pz-ck, .pz-ck *, .pz-ck *::after { animation: none !important; transition: none !important; }
}
