/* ========================================================
   MAROCPSY - BANNIÈRE DE CONSENTEMENT COOKIES & RGPD
   Style Ultra-Light & Épuré (Couleur Topline #1e293b)
   ======================================================== */

.psy-consent-banner {
    position: fixed;
    bottom: 16px;
    inset-inline: 16px;
    max-width: 620px;
    margin-inline: auto;
    z-index: 9999;
    background: rgba(30, 41, 59, 0.96); /* Bleu de l'arrière-plan topline */
    color: #cbd5e1;
    border: 1px solid #334155; /* Bordure topline */
    border-radius: 10px;
    padding: 9px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.psy-consent-banner[aria-hidden="true"] {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: none !important;
}

.psy-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.psy-consent-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.psy-consent-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.16);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.psy-consent-text {
    min-width: 0;
    font-size: 0.77rem;
    line-height: 1.4;
    color: #94a3b8;
}

.psy-consent-title {
    color: #f8fafc;
    font-weight: 700;
}

.psy-consent-desc {
    display: inline;
    margin: 0;
}

.psy-consent-link {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-inline-start: 4px;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.psy-consent-link:hover {
    color: #7dd3fc;
}

.psy-consent-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.psy-consent-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.psy-consent-btn-essential {
    background: rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.psy-consent-btn-essential:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}

.psy-consent-btn-accept {
    background: #3b82f6; /* Bleu vif discret du badge topline */
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

.psy-consent-btn-accept:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* Mobile & Petits écrans */
@media (max-width: 600px) {
    .psy-consent-banner {
        bottom: 10px;
        inset-inline: 10px;
        padding: 9px 12px;
        border-radius: 9px;
    }

    .psy-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

    .psy-consent-content {
        align-items: flex-start;
    }

    .psy-consent-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .psy-consent-btn {
        width: 100%;
        padding: 7px 6px;
        font-size: 0.74rem;
    }
}
