/**
 * Styles pour la bannière de consentement aux cookies - Conforme RGPD
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 1.5rem;
    animation: slideUp 0.3s ease-out;
    border-top: 3px solid #3498db;
}

@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-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.cookie-consent-text p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #2980b9;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-actions .btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-actions .btn-primary {
    background: #3498db;
    color: white;
}

.cookie-consent-actions .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.cookie-consent-actions .btn-secondary {
    background: #95a5a6;
    color: white;
}

.cookie-consent-actions .btn-secondary:hover {
    background: #7f8c8d;
}

.cookie-consent-actions .btn-link {
    background: transparent;
    color: #3498db;
    text-decoration: underline;
}

.cookie-consent-actions .btn-link:hover {
    color: #2980b9;
}

/* Panneau de préférences */
.cookie-preferences {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
}

.cookie-preferences h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cookie-option {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.cookie-option label {
    display: block;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-option strong {
    color: #2c3e50;
    font-size: 1rem;
}

.cookie-option p {
    margin: 0.5rem 0 0 1.8rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-actions .btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-option {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }

    .cookie-consent-text h3 {
        font-size: 1rem;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }
}

/* Lien dans le footer pour gérer les préférences */
.cookie-settings-link {
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
}

.cookie-settings-link:hover {
    color: #2980b9;
}
