/*
 * Bandeau de consentement aux cookies de mesure d'audience.
 * Voir resources/views/partials/consentement.blade.php
 */

.consentement {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 3px solid #4c5ca4;
    box-shadow: 0 -4px 24px rgba(32, 30, 71, 0.18);
    padding: 20px 24px;
}

.consentement[hidden] {
    display: none;
}

.consentement-contenu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.consentement-texte {
    flex: 1 1 420px;
    min-width: 0;
}

.consentement-titre {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #201e47;
}

.consentement-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #343434;
}

.consentement-lien {
    color: #4c5ca4;
    text-decoration: underline;
}

.consentement-actions {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

/* Refuser doit etre aussi accessible qu'accepter : meme taille, meme place,
   meme lisibilite. Seule la couleur de fond distingue les deux. */
.consentement-btn {
    min-width: 132px;
    padding: 11px 22px;
    border-radius: 6px;
    border: 2px solid #4c5ca4;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.consentement-btn-accord {
    background: #4c5ca4;
    color: #ffffff;
}

.consentement-btn-accord:hover {
    background: #302d63;
    border-color: #302d63;
}

.consentement-btn-refus {
    background: #ffffff;
    color: #4c5ca4;
}

.consentement-btn-refus:hover {
    background: #f3f4f6;
}

.consentement-btn:focus-visible {
    outline: 3px solid #201e47;
    outline-offset: 2px;
}

/* Lien de reouverture dans le pied de page. */
.consentement-rouvrir {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 768px) {
    .consentement {
        padding: 16px;
    }

    .consentement-contenu {
        gap: 16px;
    }

    .consentement-actions {
        width: 100%;
    }

    .consentement-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}
