/* Components CSS - Buttons, Forms, Cards, Common UI Elements */

/* CTA Button */
.cta-button {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 14px var(--space-3);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(0, 196, 180, 0.3);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2.5s infinite;
}

.cta-button:hover {
    background: #009e94;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(0, 196, 180, 0.4);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Features List */
.feature-list {
    list-style: none;
    margin: var(--space-3) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    color: var(--neutral-200);
    padding: var(--space-1);
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    font-weight: 400;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--neutral-100);
    transform: translateX(2px);
}

/* Feature Icon */
.feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 22px;
    height: 22px;
    stroke: var(--success);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    background: rgba(20,20,30,0.18);
    border-radius: 50%;
    padding: 2px;
}

/* Trust Icon */
.trust-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    stroke: var(--success);
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    background: rgba(20,20,30,0.18);
    border-radius: 50%;
    padding: 2px;
}

/* Form Elements */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px var(--space-2);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--neutral-100);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
    opacity: 1;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.form-input.valid {
    border-color: var(--success);
}

.form-input.invalid {
    border-color: var(--warning);
}

/* Form Select */
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-select option {
    background: var(--neutral-700);
    color: var(--neutral-100);
}

/* Validation Message */
.validation-message {
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 1rem;
    font-weight: 500;
}

.validation-message.error {
    color: #FF6B6B;
}

.validation-message.success {
    color: var(--success);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive Components */
@media (max-width: 768px) {
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .feature-list {
        gap: var(--space-2);
    }
}

/* Bouton principal (CTA) */
.cta-button, .modal-button.primary {
    background: var(--success);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(0, 196, 180, 0.3);
}

.cta-button:hover, .modal-button.primary:hover {
    background: #009e94;
    color: #fff;
}

/* Bouton secondaire */
.modal-button.secondary {
    background: #222;
    color: #fff;
    border: none;
}

/* Liens */
a, .nav-link {
    color: #2a7cff;
    text-decoration: underline;
}

a:hover, .nav-link:hover {
    color: var(--accent);
}

/* Placeholders */
::placeholder {
    color: #888;
    opacity: 1;
}

/* Icônes sur fond complexe */
.feature-icon, .trust-icon, .label-icon {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    background: rgba(20,20,30,0.18);
    border-radius: 50%;
    padding: 2px;
}

/* Nav-link menu principal sans soulignement et en blanc pur */
.nav-link {
    color: #fff !important;
    text-decoration: none !important;
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}