/* ============================================
   Bandeau Cookies Freeglass — RGPD / CNIL
   ============================================ */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0A0A0A;
    border-top: 2px solid #A7D92B;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    padding: 1.25rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

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

#cookie-banner .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

#cookie-banner .cookie-text {
    flex: 1 1 320px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #d1d5db;
}

#cookie-banner .cookie-text strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

#cookie-banner .cookie-text i {
    color: #A7D92B;
    margin-right: 0.5rem;
}

#cookie-banner .cookie-text a {
    color: #A7D92B;
    text-decoration: underline;
    font-weight: 600;
}

#cookie-banner .cookie-text a:hover {
    color: #C0E85A;
}

#cookie-banner .cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

#cookie-banner button {
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#cookie-banner .btn-cookie-refuse {
    background: transparent;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#cookie-banner .btn-cookie-refuse:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

#cookie-banner .btn-cookie-accept {
    background: #A7D92B;
    color: #0A0A0A;
    box-shadow: 0 4px 12px rgba(167, 217, 43, 0.3);
}

#cookie-banner .btn-cookie-accept:hover {
    background: #C0E85A;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(167, 217, 43, 0.45);
}

/* Bouton flottant pour rouvrir les préférences */
#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    background: #161616;
    color: #A7D92B;
    border: 1px solid rgba(167, 217, 43, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#cookie-settings-btn:hover {
    background: #A7D92B;
    color: #0A0A0A;
    transform: scale(1.05);
}

#cookie-settings-btn.is-visible {
    display: flex;
}

@media (max-width: 640px) {
    #cookie-banner .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    #cookie-banner .cookie-actions {
        flex-direction: column;
    }
    #cookie-banner .cookie-actions button {
        width: 100%;
    }
}
