/* ===== STYLES POUR LES COMPOSANTS MODULAIRES ===== */

/* Form Fields */
.form-field-container {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #ef4444;
}

.form-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Checkbox et Radio */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    margin-right: 0.75rem;
}

.form-check-input:checked {
    background-color: #1e40af;
    border-color: #1e40af;
}

.form-check-label {
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* Registration Form */
.registration-form-container {
    max-width: 650px;
    margin: 0 auto;
}

.registration-form-container .card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.registration-form-container .card-header {
    padding: 2rem;
    border-bottom: none;
}

.registration-form-container .card-body {
    padding: 2rem;
}

/* Social Login */
.social-login .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}

.social-login .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-login .btn i {
    margin-right: 0.5rem;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
}

.divider-text {
    background: white;
    padding: 0 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Component */
.section-header {
    position: relative;
    z-index: 2;
}

.section-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.8;
}

.section-icon {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-content {
    position: relative;
    z-index: 2;
}

.section-cta {
    position: relative;
    z-index: 2;
}

/* Section Overlay */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.8) 100%);
    z-index: 1;
}

/* Background Variants - Inspirées de références.be */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

/* Feature Cards */
.feature-card .card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.feature-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card .card-body {
    padding: 2rem;
}

/* Pricing Cards */
.pricing-comparison .card {
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.pricing-comparison .card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pricing-comparison .card-header {
    border-bottom: none;
    padding: 1.5rem;
}

.pricing-comparison .card-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.pricing-comparison .card-header small {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-comparison .card-body {
    padding: 2rem 1.5rem;
}

.pricing-comparison ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-comparison ul li:last-child {
    border-bottom: none;
}

.pricing-comparison ul li i {
    margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .registration-form-container {
        margin: 0 1rem;
    }
    
    .registration-form-container .card-header,
    .registration-form-container .card-body {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-card .card-body {
        padding: 1.5rem;
    }
    
    .pricing-comparison .card-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .social-login .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .divider-text {
        font-size: 0.75rem;
    }
    
    .section-icon i {
        font-size: 2rem !important;
    }
}

/* Utilities */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Focus states améliorés */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Améliorations de l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* States des boutons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
