/**
 * Styles améliorés pour les onglets et encadrements
 * Version complète avec textes en blanc
 */

/* Variables pour cohérence */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Styles pour l'en-tête avec titre en blanc et icône sans bordure */
.account-heading-with-icon {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 15px;
    color: white;
}

.heading-icon {
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    /* Arrière-plan complètement transparent */
    background-color: transparent;
}

.heading-icon i {
    font-size: 28px;
    color: white;
}

.heading-text h1 {
    color: white !important;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
}

.heading-text p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
}

/* Onglets avec effet glassmorphism */
.account-tabs {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    gap: 4px;
}

.account-tab {
    flex: 1;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: #6b7280;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.account-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.account-tab:hover::before {
    left: 100%;
}

.account-tab:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.account-tab.active {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.account-tab.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.account-tab i {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Contenu des onglets avec animations */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cartes avec effet glassmorphism amélioré */
.account-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

/* En-têtes de sections avec style moderne */
.codes-promo-header,
.commandes-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.codes-promo-header::before,
.commandes-header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--primary-gradient);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.1;
}

.codes-promo-header h2,
.commandes-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.codes-promo-header p,
.commandes-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sections de licenciés avec design moderne */
.licencie-section {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.licencie-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.licencie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.licencie-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.licencie-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.licencie-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.licence-numero,
.licence-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.licence-numero {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
}

.licence-type {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

/* Badges de statut avec gradients */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.status-badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Statistiques avec effet glassmorphism */
.commandes-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: scale(0);
}

.stat-card:hover::before {
    transform: scale(1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1rem;
    color: white;
    opacity: 0.95;
    font-weight: 500;
}

/* Responsive amélioré */
@media (max-width: 1024px) {
    .account-heading-with-icon {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .heading-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .heading-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .account-tabs {
        flex-direction: column;
        padding: 6px;
    }
    
    .account-tab {
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .licencie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .licencie-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .commandes-stats {
        grid-template-columns: 1fr;
    }
    
    .account-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .codes-promo-header,
    .commandes-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .codes-promo-header h2,
    .commandes-header h2 {
        font-size: 1.75rem;
    }
}