/* =====================================================================
   cookies.css — Bandeau consentement cookies (RGPD/CNIL)
   ===================================================================== */

/* ── Bandeau principal ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #1a1a1a;
    color: #fff;
    padding: 1.125rem 1rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .28);
    transform: translateY(110%);
    transition: transform .38s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

#cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
    #cookie-banner {
        padding: 1rem 1.5rem;
    }
}

.cookie-banner__text {
    font-size: .8125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .72);
}

.cookie-banner__text a {
    color: rgba(255, 255, 255, .88);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
    color: #fff;
}

.cookie-banner__actions {
    display: flex;
    gap: .625rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.cookie-btn-refuse,
.cookie-btn-accept {
    padding: .5rem 1.125rem;
    border-radius: 9999px;
    font-size: .78rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    min-height: 36px;
    transition: background .2s, border-color .2s, color .2s;
}

.cookie-btn-refuse {
    border: 1.5px solid rgba(255, 255, 255, .32);
    background: transparent;
    color: rgba(255, 255, 255, .72);
}

.cookie-btn-refuse:hover,
.cookie-btn-refuse:focus-visible {
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
    outline: none;
}

.cookie-btn-accept {
    border: 1.5px solid #C0392B;
    background: #C0392B;
    color: #fff;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus-visible {
    background: #a93226;
    border-color: #a93226;
    outline: none;
}

/* ── Décalage si bouton flottant visible (mobile) ── */
@media (max-width: 1023px) {
    body.has-float-call #cookie-banner {
        bottom: 68px;
    }
}
