/* =========================================
   ACCOUNT-CHOOSE-USER-TYPE-PROFESSIONAL.CSS - CSS PROFESSIONNEL COHÉRENT
   CSS spécialisé pour la vue Account/ChooseUserType avec cohérence visuelle
   Hérite du système professionnel commun avec extensions spécifiques
   ========================================= */

/* === IMPORTS ET BASE === */

/* === LAYOUT PROFESSIONNEL USER TYPE SELECTION === */

/* Professional User Type Section */
.professional-user-type-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

.professional-user-type-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="usertypegrid" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M 25 0 L 0 0 0 25" fill="none" stroke="rgba(97,80,85,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23usertypegrid)"/></svg>') repeat;
    z-index: 1;
}

.professional-user-type-wrapper {
    position: relative;
    z-index: 2;
}

/* === PROFESSIONAL SELECTION HEADER === */

.professional-selection-header {
    margin-bottom: var(--spacing-3xl);
}

/* Professional Brand Section */
.professional-brand-section {
    margin-bottom: var(--spacing-3xl);
}

.professional-brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.3);
}

.professional-brand-logo i {
    font-size: 2.5rem;
    color: white;
}

.brand-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.brand-tagline {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Professional Selection Intro */
.professional-selection-intro {
    margin-bottom: var(--spacing-3xl);
}

.selection-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-base);
}

.selection-title .text-primary {
    color: var(--primary-color) !important;
}

.selection-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Professional Onboarding Stats */
.professional-onboarding-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.professional-onboarding-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
}

.professional-onboarding-stats.animate .stat-number {
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === PROFESSIONAL USER TYPE CARDS === */

.professional-user-type-cards {
    margin-bottom: var(--spacing-3xl);
}

.professional-user-type-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.professional-user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.professional-user-type-card:hover::before,
.professional-user-type-card.selected::before {
    transform: scaleX(1);
}

.professional-user-type-card:hover,
.professional-user-type-card.hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.professional-user-type-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(var(--primary-color-rgb), 0.2);
}

/* Card Header */
.professional-user-type-card .card-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.candidate-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--tertiary-light));
}

.employer-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

.card-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-pill);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Card Content */
.professional-user-type-card .card-content {
    padding: var(--spacing-xl);
    flex: 1;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-base);
}

.card-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-lg);
    margin-bottom: var(--spacing-xl);
}

/* Professional Features Grid */
.professional-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.professional-features-grid .feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.professional-features-grid .feature-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.professional-features-grid .feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Card Footer */
.professional-user-type-card .card-footer {
    padding: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.card-stats .stat {
    text-align: center;
    flex: 1;
}

.card-stats .stat-number {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.card-stats .stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* Professional Select Button */
.professional-select-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    color: white;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.3);
}

.professional-select-btn:hover:not(.loading) {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(var(--primary-color-rgb), 0.4);
}

.professional-select-btn.loading {
    pointer-events: none;
}

.professional-select-btn.loading .btn-content {
    opacity: 0.7;
}

.professional-select-btn.loading .btn-arrow {
    animation: slideOut 0.3s ease-in-out;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
}

.btn-arrow {
    transition: all 0.3s ease;
}

.btn-arrow i {
    font-size: 1.2rem;
}

@keyframes slideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(20px); opacity: 0; }
}

/* Specific button styles */
.candidate-btn:hover:not(.loading) {
    background: linear-gradient(135deg, var(--accent-color), var(--tertiary-light));
}

.employer-btn:hover:not(.loading) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* === PROFESSIONAL VALIDATION === */

.professional-alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--error-light);
    border: 1px solid var(--error-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.professional-alert .alert-icon {
    color: var(--error-color);
    font-size: 1.2rem;
}

.professional-validation-feedback {
    font-size: var(--font-size-base);
    color: var(--error-color);
    font-weight: var(--font-weight-semibold);
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--error-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--error-color);
}

/* === PROFESSIONAL FOOTER === */

.professional-selection-footer {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-3xl);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.footer-benefits {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.login-section {
    text-align: center;
}

.login-divider {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    background: var(--card-bg);
    padding: 0 var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.professional-login-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-secondary);
    color: var(--primary-color);
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
}

.professional-login-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .professional-user-type-section {
        padding: var(--spacing-xl) 0;
    }
    
    .professional-selection-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .professional-onboarding-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .professional-features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .footer-benefits {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .card-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .professional-select-btn {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .professional-user-type-card .card-header,
    .professional-user-type-card .card-content,
    .professional-user-type-card .card-footer {
        padding: var(--spacing-lg);
    }
    
    .selection-title {
        font-size: var(--font-size-xl);
    }
    
    .card-title {
        font-size: var(--font-size-lg);
    }
    
    .professional-brand-logo {
        width: 60px;
        height: 60px;
    }
    
    .professional-brand-logo i {
        font-size: 2rem;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .professional-user-type-card:hover,
    .professional-user-type-card.selected,
    .professional-select-btn:hover,
    .professional-login-link:hover {
        transform: none;
    }
    
    .professional-onboarding-stats.animate .stat-number {
        animation: none;
    }
    
    .professional-select-btn.loading .btn-arrow {
        animation: none;
    }
}

/* === PRINT STYLES === */
@media print {
    .professional-user-type-section {
        background: white !important;
    }
    
    .professional-user-type-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .professional-select-btn,
    .professional-login-link {
        display: none !important;
    }
}