/* ===== COOKIE CONSENT BANNER STYLES ===== */

/* Banner principale */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border-top: 3px solid #dc3545;
}

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

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

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.cookie-icon {
    font-size: 2rem;
    animation: cookieBounce 2s infinite;
}

@keyframes cookieBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.cookie-text p {
    margin: 0;
    line-height: 1.4;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
}

.cookie-btn-accept-all {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.cookie-btn-accept-all:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.cookie-btn-necessary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(149, 165, 166, 0.3);
}

.cookie-btn-necessary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.cookie-btn-settings:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
    transform: translateY(-2px);
}

.cookie-privacy {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-privacy a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cookie-privacy a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* ===== MODAL SETTINGS ===== */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#cookie-settings-modal.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    color: #e74c3c;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #bdc3c7;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #27ae60;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: #3498db;
    opacity: 1;
}

input:disabled + .slider:before {
    background-color: white;
}

.cookie-modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid #ecf0f1;
}

.cookie-btn-save {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}

.cookie-btn-save:hover {
    background: linear-gradient(135deg, #d35400 0%, #ba4a00 100%);
    transform: translateY(-2px);
}

.cookie-modal-info {
    padding: 0 2rem 2rem 2rem;
    text-align: center;
}

.cookie-modal-info a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-modal-info a:hover {
    text-decoration: underline;
}

/* ===== TOAST NOTIFICATIONS ===== */
.cookie-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-toast.show {
    transform: translateX(0);
}

.cookie-toast-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.cookie-toast-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.cookie-toast-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.cookie-toast-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        min-width: auto;
        justify-content: center;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .cookie-modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    #cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.8rem;
    }
    
    .cookie-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .cookie-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .cookie-category h3 {
        font-size: 1rem;
    }
}
