/**
 * Styles pour la bannière de consentement de cookies
 * Conforme aux standards RGPD
 */

.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    right: auto;
    width: 560px;
    max-width: calc(100vw - 48px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transform: translateX(-50%) translateY(calc(100% + 24px));
    transition: transform 0.3s ease-in-out;
    border: 1px solid #0f3460;
}

.cookie-consent-banner.cookie-consent-visible {
    transform: translateX(-50%) translateY(0);
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-message h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.cookie-consent-message p {
    margin: 0 0 0.4rem 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #e0e0e0;
}

.cookie-consent-link {
    margin-top: 0.4rem;
}

.cookie-consent-link a {
    color: #61dafb;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-consent-link a:hover {
    color: #50b8d8;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-refuse {
    background: transparent;
    color: #ffffff;
    border: 2px solid #666;
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #999;
    transform: translateY(-2px);
}

/* Responsive pour les petits écrans : la carte se rapproche des bords,
   et les boutons repassent en pile (trop étroit pour être côte à côte) */
@media (max-width: 480px) {
    .cookie-consent-banner {
        left: 12px;
        bottom: 12px;
        width: auto;
        max-width: calc(100vw - 24px);
        padding: 1rem 1.25rem;
        transform: translateY(calc(100% + 12px));
    }

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

    .cookie-consent-actions {
        flex-direction: column;
    }
}

/* Animation d'entrée */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Assurer que la bannière reste au-dessus de tout */
.cookie-consent-banner {
    z-index: 99999 !important;
}

/* Style pour le bouton de révocation sur la page de politique */
.cookie-revoke-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cookie-revoke-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    transform: translateY(-2px);
}
