/* Membres Plugin - Styles principaux */

:root {
    --membres-primary: #0066cc;
    --membres-secondary: #f0f0f0;
    --membres-text: #333;
    --membres-border: #ddd;
    --membres-success: #28a745;
    --membres-error: #dc3545;
}

/* ============ Alertes ============ */
.membres-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.membres-alert-success {
    background: #d4edda;
    border-color: var(--membres-success);
    color: #155724;
}

.membres-alert-error {
    background: #f8d7da;
    border-color: var(--membres-error);
    color: #721c24;
}

/* ============ Wrapper général ============ */
.membres-profile-wrapper,
.membres-directory-wrapper,
.membres-login-form-wrapper,
.membres-register-form-wrapper {
    max-width: 100%;
    padding: 20px;
    background: #fff;
}

/* ============ Profil ============ */
.membres-profile-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.membres-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membres-profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.membres-avatar {
    flex-shrink: 0;
}

.membres-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--membres-primary);
}

.membres-user-info h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--membres-text);
}

.membres-user-login {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.membres-user-url {
    display: inline-block;
    margin-top: 10px;
    color: var(--membres-primary);
    text-decoration: none;
}

.membres-user-url:hover {
    text-decoration: underline;
}

.membres-profile-bio {
    background: var(--membres-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.membres-profile-activities h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.membres-activities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membres-activity-item {
    padding: 20px;
    border: 1px solid var(--membres-border);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.membres-activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.membres-activity-item h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.membres-activity-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.membres-activity-content {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.membres-activity-link {
    display: inline-block;
    color: var(--membres-primary);
    text-decoration: none;
    font-weight: bold;
}

.membres-activity-link:hover {
    text-decoration: underline;
}

/* ============ Annuaire ============ */
.membres-directory-wrapper h1 {
    text-align: center;
    margin-bottom: 40px;
}

.membres-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.membres-directory-card {
    border: 1px solid var(--membres-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.membres-directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.membres-card-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--membres-primary);
}

.membres-card-content h3 {
    margin: 10px 0 5px 0;
    font-size: 18px;
}

.membres-card-login {
    color: #999;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.membres-card-bio {
    color: #666;
    font-size: 14px;
    margin: 10px 0 15px 0;
    line-height: 1.4;
}

.membres-card-link {
    display: inline-block;
    margin-top: 10px;
}

.membres-directory-pagination {
    text-align: center;
    margin-top: 40px;
}

.membres-directory-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid var(--membres-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--membres-primary);
}

.membres-directory-pagination .page-numbers.current {
    background: var(--membres-primary);
    color: #fff;
    border-color: var(--membres-primary);
}

/* ============ Formulaires ============ */
.membres-login-form-wrapper,
.membres-register-form-wrapper {
    max-width: 400px;
}

.membres-login-form,
.membres-register-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--membres-border);
}

.membres-login-form h2,
.membres-register-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.membres-form-group {
    margin-bottom: 20px;
}

.membres-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--membres-text);
}

.membres-form-group input[type="text"],
.membres-form-group input[type="email"],
.membres-form-group input[type="password"],
.membres-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--membres-border);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.membres-form-group input[type="text"]:focus,
.membres-form-group input[type="email"]:focus,
.membres-form-group input[type="password"]:focus,
.membres-form-group textarea:focus {
    outline: none;
    border-color: var(--membres-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.membres-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.g-recaptcha {
    margin: 15px 0;
}

.membres-form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.membres-form-footer a {
    color: var(--membres-primary);
    text-decoration: none;
}

.membres-form-footer a:hover {
    text-decoration: underline;
}

/* ============ Boutons ============ */
.membres-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.membres-btn-primary {
    width: 100%;
    background: var(--membres-primary);
    color: #fff;
}

.membres-btn-primary:hover {
    background: #0052a3;
}

.membres-btn {
    background: var(--membres-secondary);
    color: var(--membres-text);
}

.membres-btn:hover {
    background: #e0e0e0;
}

/* ============ Header Auth ============ */
.membres-header-auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

.membres-header-auth .membres-btn {
    padding: 8px 15px;
    font-size: 13px;
}

.membres-profile-link,
.membres-login-link,
.membres-register-link,
.membres-logout-link {
    list-style: none;
}

.membres-profile-link a,
.membres-login-link a,
.membres-register-link a,
.membres-logout-link a {
    color: var(--membres-primary);
    text-decoration: none;
}

.membres-profile-link a:hover,
.membres-login-link a:hover,
.membres-register-link a:hover,
.membres-logout-link a:hover {
    text-decoration: underline;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .membres-profile-header {
        flex-direction: column;
        gap: 20px;
    }

    .membres-directory-grid {
        grid-template-columns: 1fr;
    }

    .membres-profile-wrapper {
        padding: 15px;
    }

    .membres-profile-content {
        gap: 10px;
    }

    .membres-profile-banner {
        height: 200px;
        margin-bottom: 20px;
    }

    .membres-login-form,
    .membres-register-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .membres-profile-wrapper {
        padding: 10px;
    }

    .membres-profile-content {
        gap: 8px;
    }
}
