/* ============================================
   STYLES POUR L'ESPACE MEMBRE - APA JOGGING
   ============================================ */

/* ==================== SECTION AUTHENTIFICATION ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
}

.auth-title {
    font-family: 'Righteous', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

#loginForm {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.15);
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#loginForm input {
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

#loginForm input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

#loginForm button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#loginForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.3);
}

#loginForm button:active {
    transform: translateY(0);
}

#loginForm button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    color: #d32f2f;
    background: #ffebee;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ef5350;
    animation: shake 0.3s ease;
}

.error-msg.hidden {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ==================== ZONE MEMBRE ==================== */
.member-content {
    min-height: 100vh;
    padding: 120px 5% 50px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.member-content.visible {
    opacity: 1;
}

.member-content.hidden {
    display: none;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.photo-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.2);
    border-color: var(--primary);
}

.photo-card h3 {
    font-family: 'Righteous', cursive;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.photo-card p {
    color: var(--gray);
    line-height: 1.6;
}

.admin-card {
    background: linear-gradient(135deg, #fff 0%, var(--light) 100%);
    border: 2px solid var(--primary);
}

/* ==================== PANNEAU ADMIN ==================== */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.admin-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admin-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h2 {
    font-family: 'Righteous', cursive;
    font-size: 1.8rem;
    margin: 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.admin-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.admin-modal-body h3 {
    font-family: 'Righteous', cursive;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* ==================== LISTE DES MEMBRES ==================== */
#membersList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.member-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.1);
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.member-info strong {
    font-size: 1.1rem;
    color: var(--dark);
}

.member-username {
    color: var(--gray);
    font-size: 0.9rem;
}

.member-role {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-toggle {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
}

.btn-toggle.active {
    background: #4CAF50;
    color: white;
}

.btn-toggle.active:hover {
    background: #388E3C;
}

.btn-toggle.inactive {
    background: #f44336;
    color: white;
}

.btn-toggle.inactive:hover {
    background: #d32f2f;
}

.btn-delete {
    padding: 0.6rem 1.2rem;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
}

.btn-delete:hover {
    background: #f57c00;
}

/* ==================== FORMULAIRE ADMIN ==================== */
.admin-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 2px solid #e0e0e0;
}

.admin-form input,
.admin-form select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.admin-form button {
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
}

.admin-form button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .auth-title {
        font-size: 2rem;
    }
    
    #loginForm {
        padding: 2rem;
    }
    
    .member-grid {
        grid-template-columns: 1fr;
    }
    
    .member-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .admin-modal-content {
        max-height: 95vh;
    }
    
    .admin-modal-header {
        padding: 1.5rem;
    }
    
    .admin-modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 80px 15px 30px;
    }
    
    #loginForm {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.7rem;
    }
}

/* ==================== UTILITAIRES ==================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }