/* =============================================================
 *  Bandeau de consentement aux cookies
 *  Jean-Charles Couverture
 * ============================================================= */

.consent-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md, 0.75rem);
    box-shadow: 0 24px 48px -12px rgba(10, 15, 26, 0.25);
    padding: 1.5rem;
    z-index: 99999;
    font-family: var(--font-body, 'Inter', sans-serif);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.consent-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.consent-banner h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.05rem;
    color: var(--color-secondary, #0A0F1A);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.consent-banner p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light, #5A697E);
    margin: 0 0 1.25rem;
}

.consent-banner a {
    color: var(--color-primary, #D14900);
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Les deux boutons ont volontairement la même taille et la même
   importance visuelle : refuser doit être aussi simple qu'accepter. */
.consent-actions button {
    flex: 1 1 0;
    min-width: 140px;
    padding: 0.8rem 1.25rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm, 0.375rem);
    cursor: pointer;
    transition: all 0.2s ease;
}

.consent-refuse {
    background: transparent;
    color: var(--color-secondary, #0A0F1A);
    border: 1.5px solid rgba(10, 15, 26, 0.25);
}

.consent-refuse:hover {
    background: rgba(10, 15, 26, 0.05);
    border-color: rgba(10, 15, 26, 0.4);
}

.consent-accept {
    background: var(--color-primary, #D14900);
    color: #fff;
    border: 1.5px solid var(--color-primary, #D14900);
}

.consent-accept:hover {
    background: var(--color-primary-dark, #A33600);
    border-color: var(--color-primary-dark, #A33600);
}

/* Lien « Gérer les cookies » dans le pied de page */
.consent-manage-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 480px) {
    .consent-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 1.25rem;
    }

    .consent-actions button {
        flex: 1 1 100%;
    }
}
