/* ==========================================================
   BANDEAU DE CONSENTEMENT COOKIES (RGPD)
   Utilise les variables de thème déjà définies dans styles.css
   ========================================================== */

#cookie-banner{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem;
    transform: translateY(100%);
    transition: transform .35s ease;
}

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

.cookie-banner__inner{
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner__text{
    flex: 1 1 420px;
    color: var(--text);
    font-size: .92rem;
    line-height: 1.55;
}

.cookie-banner__text strong{
    display: block;
    font-size: 1rem;
    margin-bottom: .3rem;
}

.cookie-banner__text a{
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions{
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.cookie-banner__actions button{
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    padding: .7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

#cookie-accept{
    background: var(--primary);
    color: #fff;
}
#cookie-accept:hover{
    background: var(--primary-dark);
}

#cookie-refuse{
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
#cookie-refuse:hover{
    border-color: var(--primary);
    color: var(--primary);
}

/* Petit lien discret pour rouvrir les préférences depuis le footer */
.cookie-settings-link{
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

@media (max-width: 640px){
    #cookie-banner{
        padding: 1.2rem 1.1rem;
    }
    .cookie-banner__actions{
        width: 100%;
    }
    .cookie-banner__actions button{
        flex: 1;
    }
}
