/* ===========================================
   BANNIÈRE DE COOKIES - STYLES CSS
   Composant réutilisable pour toutes les pages
   =========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #EC281C 0%, #d4241a 100%);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(236, 40, 28, 0.3);
    animation: slideUp 0.5s ease-out;
}

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

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

.cookie-text h4 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #f8f9fa;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.cookie-actions .btn-primary {
    background: #ffffff;
    color: #EC281C;
    border: 2px solid #ffffff;
}

.cookie-actions .btn-primary:hover {
    background: #f8f9fa;
    color: #d4241a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cookie-actions .btn-primary:active {
    transform: translateY(0);
}

.cookie-actions .btn-outline-secondary {
    color: #ffffff;
    border: 2px solid #ffffff;
    background: transparent;
}

.cookie-actions .btn-outline-secondary:hover {
    background: #ffffff;
    color: #EC281C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cookie-actions .btn-outline-secondary:active {
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* Tablettes */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .cookie-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-text h4 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .cookie-text h4 {
        font-size: 15px;
    }
    
    .cookie-text p {
        font-size: 12px;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-content {
        gap: 12px;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-actions .btn {
        width: 100%;
        padding: 10px;
    }
}

/* ===========================================
   VARIANTES THÉMATIQUES
   =========================================== */

/* Variante pour l'administration */
.cookie-banner.admin-theme {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.cookie-banner.admin-theme .cookie-text h4 {
    color: #e2e8f0;
}

.cookie-banner.admin-theme .cookie-text p {
    color: #a0aec0;
}

/* Variante pour les pages sombres */
.cookie-banner.dark-theme {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

/* ===========================================
   ACCESSIBILITÉ
   =========================================== */

.cookie-banner:focus-within {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cookie-actions .btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===========================================
   ANIMATIONS AVANCÉES
   =========================================== */

.cookie-banner.entering {
    animation: slideUp 0.5s ease-out;
}

.cookie-banner.leaving {
    animation: slideDown 0.5s ease-in;
}

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

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
    .cookie-banner {
        display: none !important;
    }
}
