/* Design System Moderne pour l'application */

/* Correction du texte des formulaires */
.form-control {
    color: #212529 !important;
    background-color: #ffffff !important;
}

.form-control:focus {
    color: #212529 !important;
    background-color: #ffffff !important;
}

.form-control::placeholder {
    color: #6c757d !important;
}

.form-floating label {
    color: #6c757d !important;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #212529 !important;
}

select.form-control option {
    color: #212529 !important;
    background-color: #ffffff !important;
}

textarea.form-control {
    color: #212529 !important;
    background-color: #ffffff !important;
}

/* Cartes d'idées */
.idea-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.idea-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idea-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #3B82F6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.idea-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.idea-body {
    padding: 20px;
}

.idea-title {
    margin-bottom: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.idea-title a {
    transition: color 0.3s ease;
}

.idea-title a:hover {
    color: #22C55E !important;
}

.idea-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.idea-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idea-stats {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.idea-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Composants modernes */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
    color: white;
}

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

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.5s ease;
    z-index: 0;
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover * {
    color: white !important;
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    color: white;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-dark);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-success);
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ideas Grid */
.idea-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.idea-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.idea-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.idea-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-info small {
    color: var(--bf-gray);
    font-size: 0.8rem;
}

.idea-body {
    padding: 1.5rem;
}

.idea-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bf-dark);
}

.idea-description {
    color: var(--bf-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.idea-footer {
    padding: 1rem 1.5rem;
    background: var(--bf-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idea-category {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
}

.idea-stats {
    display: flex;
    gap: 1rem;
    color: var(--bf-gray);
    font-size: 0.9rem;
}

.idea-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background: var(--bf-light);
    color: var(--bf-dark);
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--bf-red);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bf-light);
    border-top: 4px solid var(--bf-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .idea-card {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .feature-card,
    .idea-card,
    .filter-bar {
        background: var(--bf-dark);
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .idea-footer {
        background: rgba(255, 255, 255, 0.05);
    }
}
