/* ===== STYLES SPÉCIFIQUES ESPACE MEMBRE ===== */

/* Import des variables principales */
@import url('../style.css');

/* Override pour l'espace membre */
.membres-page {
    background: var(--gris-light);
    min-height: 100vh;
}

/* Header espace membre */
.membres-header {
    background: var(--bleu-marine);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--doré-pdr);
}

.membres-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.membres-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.membres-logo img {
    height: 40px;
}

.membres-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.membre-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.membre-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--doré-pdr);
    color: var(--noir-pdr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.membre-nom {
    font-weight: 600;
}

.btn-logout {
    background: var(--rouge-pdr);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background: var(--rouge-pdr-light);
}

/* Sidebar */
.membres-sidebar {
    background: white;
    width: 250px;
    height: calc(100vh - 70px);
    position: fixed;
    left: 0;
    top: 70px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.sidebar-header h3 {
    color: var(--bleu-marine);
    margin-bottom: 0.5rem;
}

.sidebar-menu {
    padding: 1.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gris);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--gris-light);
    color: var(--bleu-marine);
    border-left-color: var(--bleu-marine);
}

.menu-item.active {
    background: rgba(10, 30, 94, 0.05);
    color: var(--bleu-marine);
    border-left-color: var(--rouge-pdr);
    font-weight: 600;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Main content */
.membres-main {
    margin-left: 250px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    color: var(--bleu-marine);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gris);
}

/* Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-icon.cotisation {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.card-icon.documents {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.card-icon.evenements {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.card-icon.votes {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.card-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bleu-marine);
    line-height: 1;
}

.card-label {
    color: var(--gris);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--bleu-marine);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Tables */
.membres-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    color: var(--bleu-marine);
    margin: 0;
}

.table-content {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--gris-light);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--bleu-marine);
    border-bottom: 2px solid #eee;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: var(--gris);
}

tr:hover {
    background: rgba(10, 30, 94, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #F57C00;
}

.status-expired {
    background: rgba(244, 67, 54, 0.1);
    color: #D32F2F;
}

/* Forms dans l'espace membre */
.membres-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--bleu-marine);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    color: #1565C0;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    color: #F57C00;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .membres-sidebar {
        width: 70px;
    }
    
    .sidebar-header h3,
    .menu-item span {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 1rem;
    }
    
    .membres-main {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .membres-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .membre-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .membres-sidebar {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 1rem;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 1rem;
    }
    
    .menu-item {
        flex-direction: column;
        min-width: 80px;
        padding: 0.5rem;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .menu-item.active {
        border-left: none;
        border-bottom-color: var(--rouge-pdr);
    }
    
    .membres-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .membres-form {
        padding: 1rem;
    }
}