/* ============================================
   COOKIE CONSENT v2.0 - Styles
   Module réutilisable RGPD avec catégories
   Version : 2.0
   ============================================ */

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--cookie-gradient-1) 0%, var(--cookie-gradient-2) 100%);
    color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.cookie-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.cookie-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-text p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

/* Catégories de cookies */
.cookie-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.cookie-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.category-icon {
    font-size: 14px;
}

.category-name {
    white-space: nowrap;
}

/* Boutons */
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-refuse {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cookie-btn-accept {
    background: var(--cookie-btn-accept-bg);
    color: var(--cookie-btn-accept-text);
}

.cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Lien footer "Gérer mes cookies" */
.cookie-settings-link {
    color: var(--cookie-link-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.cookie-settings-link:hover {
    color: var(--cookie-link-hover);
}

/* Dark Mode Support */
body.dark-mode .cookie-banner {
    background: linear-gradient(135deg, var(--cookie-dark-gradient-1) 0%, var(--cookie-dark-gradient-2) 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cookie-settings-link:hover {
    color: var(--cookie-dark-link-hover);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .cookie-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cookie-categories {
        justify-content: center;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px;
    }

    .cookie-text strong {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-icon {
        font-size: 28px;
    }

    .cookie-category {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Responsive Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .cookie-content {
        padding: 18px;
    }

    .cookie-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .cookie-categories {
        gap: 8px;
    }

    .cookie-category {
        font-size: 12px;
        padding: 5px 10px;
    }
}
