/* ===========================================================
   TBASE SHOP - Bannière de consentement (CGU / cookies)
   =========================================================== */

@keyframes consentSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes consentSlideDown {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(30px); }
}

.consent-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 980px;
    z-index: 8000;
    background: rgba(10, 13, 20, 0.92);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 14px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(37, 99, 235, 0.12);
    padding: 18px 22px;
    display: none;
    animation: consentSlideUp 0.35s ease;
}

.consent-banner.show {
    display: block;
}

.consent-banner.hiding {
    animation: consentSlideDown 0.3s ease forwards;
}

/* Liseré néon en haut de la bannière */
.consent-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #0046d6, #19a8ff, #0046d6, transparent);
    opacity: 0.8;
}

.consent-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.consent-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(37, 99, 235, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0d6bff;
}

.consent-text {
    flex: 1;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-gray, #94a3b8);
}

.consent-text strong {
    color: #e2e8f0;
}

.consent-text a {
    color: #0d6bff;
    text-decoration: none;
    font-weight: 600;
}

.consent-text a:hover {
    text-decoration: underline;
}

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

.consent-btn-accept {
    background: linear-gradient(135deg, #0046d6, #0039b3);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}

.consent-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.consent-btn-read {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.15s, color 0.15s;
}

.consent-btn-read:hover {
    border-color: rgba(37, 99, 235, 0.5);
    color: #e2e8f0;
}

/* ===========================================================
   MOBILE
   =========================================================== */
@media (max-width: 768px) {
    .consent-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 16px;
    }
    .consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    .consent-icon {
        margin: 0 auto;
    }
    .consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    .consent-btn-accept,
    .consent-btn-read {
        width: 100%;
        text-align: center;
        padding: 13px;
    }
}
