/* ============================================
   COOKIE BANNER - Système Anti-Fraude
   Style professionnel et discret
   ============================================ */

/* Banner principal - En haut de page */
#cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0084ff 0%, #00a8ff 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner.hide {
    transform: translateY(-100%);
}

/* Container du banner - Plus compact */
.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Contenu texte */
.cookie-banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

/* Actions du banner */
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Lien "En savoir plus" */
.cookie-learn-more {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-learn-more:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Bouton fermer */
.cookie-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-learn-more {
        font-size: 13px;
        padding: 8px 12px;
    }
}

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

#cookie-banner.show {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

