/* Bannière cookies maison (assets/js/cookie-consent.js) */
.dmc {
    position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px;
    display: flex; justify-content: center; pointer-events: none;
    font-family: inherit; color: #102a43;
}
.dmc.is-detailed {
    top: 0; left: 0; right: 0; bottom: 0; align-items: center; padding: 16px;
    background: rgba(16, 42, 67, .45); pointer-events: auto;
}
.dmc-box {
    pointer-events: auto; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #fff; border: 1px solid #e3eef8; border-radius: 16px;
    box-shadow: 0 12px 40px rgba(16, 42, 67, .18); padding: 22px 24px;
}
.dmc.is-detailed .dmc-box { max-width: 620px; }
.dmc-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #102a43; }
.dmc-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #3e5468; }
.dmc-more { color: #1f8fe0; text-decoration: underline; white-space: nowrap; }
.dmc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.dmc-btn {
    flex: 1 1 160px; max-width: 220px; min-height: 44px; padding: 10px 18px; border-radius: 10px;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.dmc-solid { background: #1f8fe0; border: 1px solid #1f8fe0; color: #fff; }
.dmc-solid:hover { background: #1677c4; border-color: #1677c4; }
.dmc-outline { background: #fff; border: 1px solid #1f8fe0; color: #1f8fe0; }
.dmc-outline:hover { background: #e3f2fd; }
.dmc-btn:focus-visible, .dmc-switch:focus-visible, .dmc-chat:focus-visible { outline: 3px solid #93cdf6; outline-offset: 2px; }

.dmc-cats { margin-top: 16px; border-top: 1px solid #e3eef8; }
.dmc-cat {
    display: flex; align-items: center; gap: 16px; padding: 14px 0; margin: 0;
    border-bottom: 1px solid #e3eef8; cursor: pointer; font-weight: 400;
}
.dmc-cat, .dmc-cat * { text-transform: none; letter-spacing: normal; }
.dmc-cat-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dmc-cat-name { font-size: 15px; font-weight: 700; color: #102a43; }
.dmc-cat-desc { font-size: 13.5px; line-height: 1.45; color: #5d7387; }
.dmc-always { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: #127a4f; }
.dmc-switch {
    flex: 0 0 auto; appearance: none; -webkit-appearance: none; margin: 0;
    width: 46px; height: 26px; border-radius: 13px; background: #c9d6e2; position: relative; cursor: pointer;
    transition: background .15s;
}
.dmc-switch::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s;
}
.dmc-switch:checked { background: #1f8fe0; }
.dmc-switch:checked::after { transform: translateX(20px); }

/* Bouton de chat affiché tant que le chat (Intercom) n'est pas accepté */
.dmc-chat {
    position: fixed; z-index: 2147482000; right: 20px; bottom: 20px; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center; padding: 0;
    border: 0; border-radius: 50%; background: #1f8fe0; cursor: pointer;
    box-shadow: 0 6px 20px rgba(31, 143, 224, .4);
}
.dmc-chat:hover { background: #1677c4; }

@media (max-width: 640px) {
    .dmc-box { padding: 18px 16px; }
    .dmc-btn { max-width: none; flex-basis: 100%; }
    .dmc-actions { flex-direction: column; }
}
