.wallet-container {
    margin-top: 90px;
    margin-left: 70px;
    margin-bottom: 70px;
}
.container-reduction {
    margin-top: 90px;
    margin-bottom: 80px;
    margin-left: 70px;
    padding: 10px;
}
.tab-content-wrapper {
    padding: 5px;
}
.btn-primary{
    width: 100%;
        padding: 12px;
        font-size: 17px;
        border-radius: 8px;
        border: none;
        color: var(--text-color);
        font-weight: 700;
        text-align: center;
        display: inline-block;
}

/* Bouton retrait: rendu plus premium sans changer la place dans la mise en page */
.balance-section .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    color: #11337a;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.balance-section .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.98);
    filter: saturate(1.05);
}

.balance-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.balance-section .btn-primary:focus-visible {
    outline: 2px solid #dbeafe;
    outline-offset: 2px;
}

.titre_produit{
    font-size: 16px;
    font-weight: bold;
}
.renouvellement-section {
     background: var(--bg-color);
     border-radius: 10px;
     padding: 20px;
     box-shadow: 0 2px 10px var(--shadow-color);
     margin-bottom: 20px;
 }

 .info-abonnement h4 {
     color: #667eea;
     margin-bottom: 15px;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .info-abonnement .details {
     background: var(--bg-color);
     padding: 15px;
     border-radius: 8px;
     margin-bottom: 20px;
 }

 .info-abonnement .details p {
     margin: 5px 0;
 }
 .form-group select {
    
     padding: 10px !important;
 }

 .btn-renouveler {
     background: linear-gradient(135deg, var(--effet-color) 0%, var(--logo-color) 100%);
     color: var(--bg-color);
     border: none;
     padding: 12px 24px;
     border-radius: 6px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s;
     width: 100%;
     font-size: 16px;
 }

 .btn-renouveler:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 15px var(--shadow-color);
 }

 .btn-renouveler:disabled {
     opacity: 0.7;
     cursor: not-allowed;
 }

 .note {
     margin-top: 10px;
     color: var(--text-color);
     font-size: 14px;
     text-align: center;
 }

 
/* Cards compactes */
.wallet-card {
    border: 1px solid #d7deea;
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.tabs-row {
    display: flex;
    justify-content: center;
    border-top: 1px solid #dbdbdb;
    margin-top: 0;
}

.tab-option {
    padding: 14px 0;
    margin: 0 15px;
    font-size: 13px;
    font-weight: 600;
    color: #8e8e8e;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid transparent;
    margin-top: -1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-option.active {
    color: #262626;
    border-top-color: var(--logo-color);
}

/* Contenu compact */
.tab-content-section {
    display: none;
    padding: 20px 0;
}

.tab-content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Grid compact */
.content-grid {
    gap: 15px;
}

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

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Transactions compactes */
.transaction-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.transaction-details {
    flex: 1;
}

.transaction-desc {
    margin: 0 0 3px 0;
    font-weight: 500;
    font-size: 14px;
}

.transaction-date {
    font-size: 11px;
    color: #8e8e8e;
    margin: 0;
}

.transaction-amount {
    font-weight: 600;
    font-size: 13px;
}

.amount-positive {
    color: #28a745;
}

.amount-negative {
    color: #dc3545;
}

/* Formulaires compacts */
.form-grid {
    display: grid;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #262626;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 13px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--border-color);
}



/* Stats compactes */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-card-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 11px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty state compact */
.empty-state {
    text-align: center;
    padding: 40px 15px;
    color: #8e8e8e;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.transaction-status {
    color: #28a745;
}
/* Styles pour les services */
.service-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    background: white;
}

.service-item.highlight {
    border-left: 3px solid #007bff;
    background: #f8fbff;
}

.service-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.service-details {
    flex: 1;
}

.service-name {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.service-date,
.service-expiry {
    margin: 0;
    font-size: 11px;
    color: #6c757d;
}

.service-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-status.active {
    background: #d4edda;
    color: #155724;
}

.service-status.verified {
    background: #d1ecf1;
    color: #0c5460;
}

.service-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.abonnement-type {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 5px;
}

.balance-section {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    color: white;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-info {
    font-size: 14px;
    letter-spacing: 0.3px;
    opacity: 0.92;
    margin-bottom: 12px;
    font-weight: 600;
}

.total-amount {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.spending-summary {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.currency-item {
    text-align: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 8px;
}

.currency-item p {
    margin: 0;
    font-size: 11px;
    opacity: 0.9;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.currency-item strong {
    display: inline-block;
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .currency-item p {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .currency-item strong {
        margin-top: 6px;
        font-size: 28px;
        line-height: 1.05;
        font-weight: 900;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    }

    .balance-section .btn-primary {
        padding: 13px 12px;
        font-size: 18px;
        font-weight: 800;
    }
}

/* Styles pour les transactions */
.month-section {
    margin-bottom: 25px;
}

.month-title {
    margin: 0 0 12px 0;
    font-size: 11px;
    color: black;
    font-weight: 600;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 2px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
}

.transaction-icon {
    margin-right: 12px;
}

.transaction-details {
    flex: 1;
}

.transaction-desc {
    margin: 0;
    font-weight: 500;
    color: black;
    font-size: 12px;
}

.transaction-date {
    margin: 2px 0 0 0;
    font-size: 9px;
    color: black;
}

.transaction-amount {
    font-weight: bold;
    font-size: 10px;
}

.amount-positive {
    color: #10b981;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-text {
    margin: 0;
    font-size: 14px;
}
.chart-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

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

.section-header h3 {
    margin: 0;
    font-size: 12px;
    color: #1f2937;
    font-weight: 600;
}

/* Filtres */
.filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.filter-btn:hover:not(.active) {
    background: #f9fafb;
}

/* Graphique */
.chart-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    margin: 20px 0;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

/* Notice démo */
.demo-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #92400e;
}
@media(max-width: 768px) {
    .wallet-container {
        margin-left: 0px !important;
        margin-top: 83px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .wallet-tabs-container {
        padding: 10px;
    }

    .wallet-stats {
        gap: 20px;
    }

    .tab-option {
        margin: 0 10px;
        padding: 12px 0;
    }
}


/* HEADER */
header {
    background: linear-gradient(405deg, var(--effet-color), var(--logo-color));
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 1rem;
    height: 180px;

}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

.balance-section {
    text-align: center;
    margin-top: 1rem;
}

.account-type {
    background: var(--bg-color);
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    padding: 0.3rem 0.6rem;
    font-size: var(--taille-text-pc);
}

h1 {
    font-size:var(--taille-titre-pc) ;
    margin: 0.5rem 0;
}

.spending-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.spending-summary strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

/* MAIN */
main {
    background: var(--bg-color);
    flex: 1;
    color: var(--text-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: -1rem;
}

.transactions h2 {
    font-size: var(--taille-titre-pc);
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.transaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
}

.icon {
    font-size: var(--taille-icon-pc);
    margin-right: 0.8rem;
}

.details {
    flex: 1;
}

.details .date {
    font-weight: 500;
    color: var(--text-color);
}

.details .desc {
    font-size: var(--taille-text-pc);
    color: var(--text-color);
}

.amount {
    color: var(--text-color);
}

.amount.income {
    color: var(--text-color);
}
.email-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e4e8;
}

.section-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2328;
    margin: 0 0 16px 0;
}

.email-category {
    margin-bottom: 16px;
}

.email-category h5 {
    font-size: 12px;
    font-weight: 600;
    color: #656d76;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.email-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
}

.email-label {
    color: #656d76;
    font-weight: 500;
    min-width: 120px;
}

.email-link {
    color: #0969da;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.email-link:hover {
    color: #03316c;
    text-decoration: underline;
}
.data-filters select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.data-filters select:focus {
    outline: none;
    border-color: #3b82f6;
}


/* Responsive */
@media (max-width: 768px) {
    .email-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .email-label {
        min-width: auto;
    }
}
@media(max-width: 768px) {
    .account-type {
     
            font-size: var(--taille-text-mo);
        }
                h1 {
                    font-size: var(--taille-titre-mo);
                }
.transactions h2 {
    font-size: var(--taille-titre-mo);
   
   
}
.container-reduction {
    margin-left: 0px !important;
}
.icon {
    font-size: var(--taille-icon-mo);
}
.details .desc {
    font-size: var(--taille-text-mo);
}
    }