/* Membership Styles */

.membres-membership-plans {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.membership-header {
    text-align: center;
    margin-bottom: 60px;
}

.membership-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
}

.membership-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.membership-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.membership-plan-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.membership-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.membership-plan-card.featured {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.membership-plan-card.featured::before {
    content: "POPULAIRE";
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f3f4f6;
}

.plan-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.plan-name {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 48px;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 5px;
}

.plan-price span {
    font-size: 20px;
    color: #6b7280;
    font-weight: 400;
}

.plan-duration {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-features {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.plan-features li {
    padding: 12px 0;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: #10b981;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.btn-membership {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-membership-primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-membership-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-membership-stripe {
    background: #635bff;
    color: white;
}

.btn-membership-paypal {
    background: #0070ba;
    color: white;
}

.btn-membership:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard */
.membres-membership-dashboard {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.membership-status-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.membership-status-card.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.membership-status-card.expired {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.active {
    background: #10b981;
    color: white;
}

.status-badge.expired {
    background: #ef4444;
    color: white;
}

.membership-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.membership-benefits {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.benefit-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Payment Modal */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.payment-modal.active {
    display: flex;
}

.payment-modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-out;
}

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

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.payment-modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #f3f4f6;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.payment-method-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.payment-button {
    width: 100%;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .membership-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .membership-details {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-left: 8px;
    vertical-align: middle;
}

.premium-badge i {
    font-size: 14px;
}

/* Membership Card (Carte d'adhérent) */
.membership-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.membership-card {
    position: relative;
    width: 100%;
    aspect-ratio: 85.6 / 53.98;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: clamp(12px, 3vw, 24px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.card-header {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);
}

.card-avatar {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.card-name {
    flex: 1;
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-badge {
    padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
    border-radius: 20px;
    font-size: clamp(10px, 1.5vw, 12px);
    font-weight: 700;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    white-space: nowrap;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-plan {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 800;
    margin-bottom: clamp(8px, 1.5vw, 12px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-details {
    display: grid;
    gap: clamp(4px, 1vw, 8px);
}

.card-info-row {
    display: flex;
    justify-content: space-between;
    font-size: clamp(11px, 1.8vw, 14px);
}

.card-label {
    opacity: 0.9;
}

.card-value {
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-site {
    font-size: clamp(10px, 1.5vw, 12px);
    font-weight: 600;
    opacity: 0.8;
}

.card-qr {
    width: clamp(30px, 6vw, 50px);
    height: clamp(30px, 6vw, 50px);
}

.card-qr-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(8px, 1.2vw, 10px);
    color: #333;
}

.card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 2px;
}

/* Dark Mode */
body.dark-mode .membres-membership-plans,
body.dark-mode .membres-membership-dashboard {
    color: #e5e7eb;
}

body.dark-mode .membership-plan-card,
body.dark-mode .membership-status-card,
body.dark-mode .membership-benefits {
    background: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .plan-name,
body.dark-mode .detail-value {
    color: #f9fafb;
}

body.dark-mode .benefit-item {
    background: #374151;
}
