/* Styles RGPD pour les formulaires de contact */

.gdpr-consent {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(var(--card-bg-rgb), 0.3);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
    user-select: none;
}

.gdpr-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 2px;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid #FCCF03;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(252, 207, 3, 0.2);
}

.gdpr-checkbox:hover input ~ .checkmark {
    border-color: #FCCF03;
    box-shadow: 0 4px 12px rgba(252, 207, 3, 0.4);
    transform: scale(1.05);
}

.gdpr-checkbox input:checked ~ .checkmark {
    background-color: #FCCF03;
    border-color: #FCCF03;
    box-shadow: 0 4px 16px rgba(252, 207, 3, 0.5);
    transform: scale(1.02);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 2px;
    width: 8px;
    height: 14px;
    border: solid #1a1a1a;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    font-weight: bold;
}

.gdpr-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.gdpr-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
}

.gdpr-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gdpr-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.gdpr-info {
    margin: 0.8rem 0 0 30px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .gdpr-consent {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .gdpr-checkbox {
        font-size: 0.85rem;
    }
    
    .gdpr-info {
        margin-left: 30px;
        font-size: 0.75rem;
    }
    
    .checkmark {
        width: 22px;
        height: 22px;
        margin-right: 12px;
        border-width: 2px;
    }
    
    .checkmark:after {
        left: 6px;
        top: 1px;
        width: 7px;
        height: 12px;
        border-width: 0 2px 2px 0;
    }
}

/* États de validation */
.gdpr-checkbox input:invalid {
    /* Style pour champ invalide si nécessaire */
}

.gdpr-checkbox input:valid ~ .checkmark {
    /* Style pour champ valide si nécessaire */
}

/* Animation d'erreur */
@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

.gdpr-consent.error {
    animation: shake 0.5s ease-in-out;
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.gdpr-consent.error .checkmark {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

/* Style pour le focus accessibilité */
.gdpr-checkbox input:focus ~ .checkmark {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Amélioration contraste pour accessibilité */
@media (prefers-contrast: high) {
    .checkmark {
        border-width: 3px;
    }
    
    .gdpr-text {
        font-weight: 500;
    }
}