/*
 * Bandeau de consentement — barre basse, discrete, jamais un mur.
 *
 * Regle produit : ne jamais bloquer l'acces au paiement. Le bandeau ne couvre
 * donc pas la page, n'a pas de fond assombri, et laisse le tunnel utilisable
 * meme sans choix exprime. Ne pas le transformer en modale.
 */
.ov-consent {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 9000;
    width: min(52rem, calc(100vw - 2rem));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1.1rem;
    background: #14141a;
    color: #e9e9ef;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    font-size: 0.875rem;
    line-height: 1.45;
}

.ov-consent[hidden] {
    display: none;
}

.ov-consent__texte {
    flex: 1 1 22rem;
    margin: 0;
}

.ov-consent__texte a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ov-consent__actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Refuser et Accepter ont volontairement le meme gabarit : exigence CNIL. */
.ov-consent__btn {
    flex: 0 0 auto;
    min-width: 6.5rem;
    padding: 0.55rem 1rem;
    font: inherit;
    font-weight: 600;
    color: #e9e9ef;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    cursor: pointer;
}

.ov-consent__btn:hover,
.ov-consent__btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.7);
}

.ov-consent__btn--ok {
    color: #0d0d12;
    background: #f4f4f8;
    border-color: #f4f4f8;
}

.ov-consent__btn--ok:hover,
.ov-consent__btn--ok:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
}

@media (max-width: 40rem) {
    .ov-consent {
        bottom: 0.5rem;
        padding: 0.75rem 0.9rem;
    }

    .ov-consent__actions {
        width: 100%;
        margin-left: 0;
    }

    .ov-consent__btn {
        flex: 1 1 0;
    }
}
