/* Bannière de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    display: none;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cookie-btn.accept {
    background: #4CAF50;
    color: white;
}

.cookie-btn.accept:hover {
    background: #45a049;
}

.cookie-btn.decline {
    background: #f44336;
    color: white;
}

.cookie-btn.decline:hover {
    background: #da190b;
}

.cookie-btn.settings {
    background: #2196F3;
    color: white;
}

.cookie-btn.settings:hover {
    background: #1976D2;
}

/* Animation d'entrée */
.cookie-banner.show {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        gap: 15px;
    }
    
    .cookie-text h3 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 10px 20px;
    }
}

/* Variante thème sombre */
.cookie-banner.dark {
    background: #1a1a1a;
    border-top: 1px solid #333;
}

/* Variante thème clair */
.cookie-banner.light {
    background: white;
    color: #333;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner.light .cookie-btn.accept {
    background: #4CAF50;
}

.cookie-banner.light .cookie-btn.decline {
    background: #f44336;
}

.cookie-banner.light .cookie-btn.settings {
    background: #2196F3;
}

/* Position alternative - en haut */
.cookie-banner.top {
    top: 0;
    bottom: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cookie-banner.top.show {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Overlay pour bloquer le contenu (optionnel) */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.cookie-overlay.show {
    display: block;
}