/* ========================================
   STYLES POUR LA PAGE INSCRIPTION
   ======================================== */

.inscription-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.inscription-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 111, 177, 0.1), rgba(165, 107, 255, 0.1));
    border-radius: 12px;
    border: 2px solid var(--primary, #FF6FB1);
}

.inscription-header h1 {
    margin: 0 0 0.5rem 0;
    color: var(--primary, #FF6FB1);
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
}

.inscription-header .subtitle {
    color: var(--text-muted, #a0a0a0);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.inscription-header .links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.inscription-header .links a {
    color: var(--accent, #A56BFF);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.inscription-header .links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.intro-section, .association-info {
    background: var(--bg-card, #1e1e1e);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary, #FF6FB1);
}

.intro-section h2, .association-info h3 {
    color: var(--primary, #FF6FB1);
    margin-top: 0;
}

.intro-section p, .association-info p {
    line-height: 1.8;
    color: var(--text, #f5f5f5);
}

.inscription-form {
    background: var(--bg-card, #1e1e1e);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary, #FF6FB1);
}

.section-header h2 {
    color: var(--text-muted, #a0a0a0);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h3 {
    color: var(--primary, #FF6FB1);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.section-desc, .section-description {
    color: var(--text-muted, #a0a0a0);
    font-size: 0.95rem;
    margin: 0;
}

.recommendation-box, .organization-info, .links-box {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recommendation-box h4, .organization-info h4, .links-box h4 {
    color: #ffa500;
    margin-top: 0;
}

.recommendation-box ul, .organization-info ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--text, #f5f5f5);
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.links-list li {
    margin: 0.5rem 0;
    color: var(--text, #f5f5f5);
}

.links-list a {
    color: var(--accent, #A56BFF);
    text-decoration: none;
}

.links-list a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text, #f5f5f5);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg, #0f0f0f);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 6px;
    color: var(--text, #f5f5f5);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary, #FF6FB1);
    box-shadow: 0 0 0 3px rgba(255, 111, 177, 0.1);
}

.readonly-field {
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.btn-fetch-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #9146FF, #6441a5);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.btn-fetch-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
}

.btn-fetch-stats:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #00cc00, #00aa00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4);
}

.btn-submit:disabled {
    background: #666 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    transform: none !important;
}

.btn-submit:disabled:hover {
    background: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-fetch-stats.loading {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.auto-filled {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.field-note {
    margin-top: 0.5rem;
}

.field-note small {
    color: var(--text-muted, #a0a0a0);
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
}

.stats-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    color: #10b981;
}

.stats-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    color: #ef4444;
}

.moderator-group {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent, #A56BFF);
}

.moderator-group h4, .moderator-group h3 {
    margin: 0 0 1rem 0;
    color: var(--accent, #A56BFF);
}

.mod-inputs, .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary, #FF6FB1);
}

.checkbox-label span {
    color: var(--text, #f5f5f5);
    font-size: 1rem;
}

.form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prev, .btn-next, .btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text, #f5f5f5);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-next {
    background: linear-gradient(135deg, var(--accent, #A56BFF), #6441a5);
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 107, 255, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    font-weight: 700;
    margin-left: auto;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4);
}

.alert {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.alert-info h3 {
    color: #3b82f6;
    margin-top: 0;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.alert-success h3 {
    color: #00ff00;
    margin-top: 0;
}

.alert-success p {
    color: var(--text, #f5f5f5);
    line-height: 1.8;
}

.alert-warning {
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
}

.alert-warning h3 {
    color: #ffa500;
    margin-top: 0;
}

.alert-warning p {
    color: var(--text, #f5f5f5);
    line-height: 1.8;
}

.alert-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.alert-content {
    text-align: center;
}

.twitch-login-required {
    text-align: center;
}

.btn-twitch-login {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #9146FF, #6441a5);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-twitch-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
}

.twitch-icon {
    font-size: 1.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.contact-info li {
    margin: 0.5rem 0;
    color: var(--text, #f5f5f5);
}

.contact-info strong {
    color: var(--primary, #FF6FB1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary, #FF6FB1), var(--accent, #A56BFF));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 111, 177, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text, #f5f5f5);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--border, #2a2a2a);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary, #FF6FB1);
}

/* Bouton modifier inscription (crayon) */
.edit-inscription-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.edit-inscription-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: var(--primary, #8b5cf6);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .inscription-header h1 {
        font-size: 1.5rem;
    }
    
    .inscription-form {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mod-inputs, .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-next, .btn-submit {
        margin-left: 0;
    }
}
