   /* =========================================================
   CONFIGURATION — ABONNEMENT STARK
   ========================================================= */


/* =========================================================
   1. FOND DE LA MODALE
   ========================================================= */

  .abonnement-config-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 21000;
}


/* =========================================================
   2. FENÊTRE PRINCIPALE
   ========================================================= */
.abonnement-config-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    max-height: 92vh;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   3. EN-TÊTE
   ========================================================= */

.abonnement-config-header {
    flex-shrink: 0;

    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    background: #82c91e;

    color: #ffffff;
}


.abonnement-config-title {
    display: flex;
    align-items: center;

    gap: 9px;

    font-size: 1rem;
    font-weight: 600;
}


.abonnement-config-title i {
    font-size: 1rem;
}


.abonnement-config-close {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;

    border: none;
    border-radius: 50%;

    color: #ffffff;

    font-size: 1.5rem;

    cursor: pointer;
}


.abonnement-config-close:hover {
    background: rgba(255, 255, 255, 0.16);
}


/* =========================================================
   4. CORPS
   ========================================================= */

.abonnement-config-body {
    flex: 1;

    padding: 16px;

    background: #f7f8fa;

    overflow-y: auto;

    overscroll-behavior: contain;
}


/* =========================================================
   5. SECTIONS
   ========================================================= */

.abonnement-config-section {
    margin-bottom: 16px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 8px;
}


.abonnement-config-section:last-child {
    margin-bottom: 0;
}


.abonnement-config-section h4 {
    margin: 0 0 5px;

    color: #333333;

    font-size: 0.95rem;
    font-weight: 700;
}


.abonnement-config-description {
    margin: 0 0 15px;

    color: #888888;

    font-size: 0.76rem;

    line-height: 1.45;
}


/* =========================================================
   6. CARTE DU STATUT
   ========================================================= */

.abonnement-status-card {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px;

    background: #fafafa;

    border: 1px solid #e3e3e3;
    border-radius: 8px;
}


/* =========================================================
   7. ICÔNE DU STATUT
   ========================================================= */

.abonnement-status-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef7df;

    border-radius: 50%;

    color: #74b816;

    font-size: 1.05rem;
}


/* =========================================================
   8. INFORMATIONS DE L'OFFRE
   ========================================================= */

.abonnement-status-info {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.abonnement-status-info > span {
    color: #888888;

    font-size: 0.68rem;
}


.abonnement-status-info > strong {
    color: #333333;

    font-size: 0.9rem;
    font-weight: 700;
}


.abonnement-status-info > small {
    color: #888888;

    font-size: 0.69rem;

    line-height: 1.35;
}


/* =========================================================
   9. BADGES
   ========================================================= */

.abonnement-status-badge {
    flex-shrink: 0;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 0.67rem;
    font-weight: 700;
}


.abonnement-status-active {
    background: #eaf7db;

    color: #5c8d18;
}


.abonnement-status-trial {
    background: #e7f4fb;

    color: #1976a3;
}


.abonnement-status-warning {
    background: #fff4d8;

    color: #a16d00;
}


.abonnement-status-inactive {
    background: #eeeeee;

    color: #777777;
}


/* =========================================================
   10. INFORMATIONS ABONNEMENT
   ========================================================= */

.abonnement-information-list {
    width: 100%;

    background: #fafafa;

    border: 1px solid #e5e5e5;
    border-radius: 6px;

    box-sizing: border-box;
}


.abonnement-information-row {
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 8px 12px;

    border-bottom: 1px solid #e9e9e9;
}


.abonnement-information-row:last-child {
    border-bottom: none;
}


.abonnement-information-row span {
    color: #777777;

    font-size: 0.75rem;
}


.abonnement-information-row strong {
    color: #333333;

    font-size: 0.76rem;

    text-align: right;
}


/* =========================================================
   11. UTILISATION
   ========================================================= */

.abonnement-usage-item {
    margin-bottom: 16px;
}


.abonnement-usage-item:last-child {
    margin-bottom: 0;
}


.abonnement-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 7px;
}


.abonnement-usage-header span {
    color: #555555;

    font-size: 0.76rem;
}


.abonnement-usage-header strong {
    color: #333333;

    font-size: 0.72rem;
}


/* =========================================================
   12. BARRE D'UTILISATION
   ========================================================= */

.abonnement-usage-progress {
    width: 100%;
    height: 7px;

    background: #e8e8e8;

    border-radius: 10px;

    overflow: hidden;
}


.abonnement-usage-progress-bar {
    width: 0;
    height: 100%;

    background: #82c91e;

    border-radius: 10px;

    transition: width 0.3s ease;
}


/* =========================================================
   13. FONCTIONNALITÉS
   ========================================================= */

.abonnement-features {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}


.abonnement-feature {
    min-height: 40px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 8px 10px;

    background: #fafafa;

    border: 1px solid #eeeeee;
    border-radius: 5px;

    box-sizing: border-box;
}


.abonnement-feature i {
    flex-shrink: 0;

    color: #82c91e;

    font-size: 0.72rem;
}


.abonnement-feature span {
    color: #555555;

    font-size: 0.72rem;

    line-height: 1.3;
}


/* =========================================================
   14. ACTIONS
   ========================================================= */

.abonnement-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.abonnement-primary-button,
.abonnement-secondary-button {
    min-height: 42px;

    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 5px;

    font-family: inherit;
    font-size: 0.77rem;
    font-weight: 600;

    cursor: pointer;
}


.abonnement-primary-button {
    background: #82c91e;

    border: 1px solid #82c91e;

    color: #ffffff;
}


.abonnement-primary-button:hover {
    background: #74b816;

    border-color: #74b816;
}


.abonnement-secondary-button {
    background: #ffffff;

    border: 1px solid #cccccc;

    color: #555555;
}


.abonnement-secondary-button:hover {
    background: #f5f5f5;
}


/* =========================================================
   15. EN-TÊTE HISTORIQUE
   ========================================================= */

.abonnement-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}


.abonnement-section-header >
div {
    min-width: 0;

    flex: 1;
}


.abonnement-refresh-button {
    flex-shrink: 0;

    min-height: 34px;

    padding: 6px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    background: #ffffff;

    border: 1px solid #cccccc;
    border-radius: 4px;

    color: #555555;

    font-family: inherit;
    font-size: 0.7rem;

    cursor: pointer;
}


.abonnement-refresh-button:hover {
    background: #f5f5f5;
}


.abonnement-refresh-button:disabled {
    opacity: 0.6;

    cursor: wait;
}


/* =========================================================
   16. HISTORIQUE DES PAIEMENTS
   ========================================================= */

.abonnement-payments {
    width: 100%;
}


.abonnement-payment-row {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 9px 0;

    border-bottom: 1px solid #eeeeee;
}


.abonnement-payment-row:last-child {
    border-bottom: none;
}


.abonnement-payment-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.abonnement-payment-info strong {
    color: #444444;

    font-size: 0.76rem;
}


.abonnement-payment-info small {
    color: #999999;

    font-size: 0.67rem;
}


.abonnement-payment-amount {
    flex-shrink: 0;

    color: #333333;

    font-size: 0.77rem;
}


/* =========================================================
   17. HISTORIQUE VIDE
   ========================================================= */

.abonnement-empty {
    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 15px;

    color: #999999;

    text-align: center;
}


.abonnement-empty i {
    font-size: 1.3rem;

    color: #bbbbbb;
}


.abonnement-empty strong {
    color: #666666;

    font-size: 0.78rem;
}


.abonnement-empty span {
    max-width: 330px;

    color: #999999;

    font-size: 0.69rem;

    line-height: 1.4;
}


/* =========================================================
   18. INFORMATION DE SÉCURITÉ
   ========================================================= */

.abonnement-information-box {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 12px;

    background: #f4f8fc;

    border: 1px solid #dce9f3;
    border-radius: 6px;
}


.abonnement-information-box > i {
    flex-shrink: 0;

    margin-top: 2px;

    color: #159bd0;

    font-size: 1rem;
}


.abonnement-information-box > div {
    min-width: 0;
}


.abonnement-information-box strong {
    display: block;

    margin-bottom: 4px;

    color: #3d566e;

    font-size: 0.8rem;
}


.abonnement-information-box p {
    margin: 0;

    color: #667788;

    font-size: 0.72rem;

    line-height: 1.5;
}


/* =========================================================
   19. PIED DE LA MODALE
   ========================================================= */

.abonnement-config-footer {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 12px 16px;

    background: #ffffff;

    border-top: 1px solid #e5e5e5;
}


.abonnement-config-footer-close {
    min-height: 38px;

    padding: 7px 18px;

    background: #82c91e;

    border: 1px solid #82c91e;
    border-radius: 4px;

    color: #ffffff;

    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;

    cursor: pointer;
}


.abonnement-config-footer-close:hover {
    background: #74b816;

    border-color: #74b816;
}


/* =========================================================
   20. SCROLLBAR
   ========================================================= */

.abonnement-config-body::-webkit-scrollbar {
    width: 7px;
}


.abonnement-config-body::-webkit-scrollbar-track {
    background: #f4f4f4;
}


.abonnement-config-body::-webkit-scrollbar-thumb {
    background: #cccccc;

    border-radius: 10px;
}


.abonnement-config-body::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
}


/* =========================================================
   21. TABLETTE
   ========================================================= */

@media screen and (max-width: 768px) {

    .abonnement-config-overlay {
        padding: 12px;
    }


    .abonnement-config-modal {
        max-width: 660px;

        max-height: 94vh;
    }


    .abonnement-config-body {
        padding: 12px;
    }


    .abonnement-config-section {
        padding: 14px;
    }


    .abonnement-features {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* =========================================================
   22. TÉLÉPHONE
   ========================================================= */

@media screen and (max-width: 520px) {

    .abonnement-config-overlay {
        height: 100dvh;
        padding: max(8px, env(safe-area-inset-top)) 0
                 max(8px, env(safe-area-inset-bottom));
        box-sizing: border-box;
        overflow: hidden;
        align-items: stretch;
    }

    .abonnement-config-modal {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .abonnement-config-header {
        flex: 0 0 auto;
        min-height: 54px;
        padding: 0 14px;
    }

    .abonnement-config-title {
        font-size: 0.88rem;
    }

    .abonnement-config-close {
        width: 34px;
        height: 34px;
    }

    .abonnement-config-body {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 9px;
    }

    .abonnement-config-section {
        margin-bottom: 10px;
        padding: 12px;
    }

    .abonnement-config-section h4 {
        font-size: 0.9rem;
    }

    .abonnement-config-description {
        font-size: 0.71rem;
    }

    .abonnement-status-card {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 11px;
    }

    .abonnement-status-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .abonnement-status-info {
        width: calc(100% - 58px);
    }

    .abonnement-status-badge {
        margin-left: 54px;
    }

    .abonnement-information-row {
        min-height: 43px;
        gap: 10px;
        padding: 7px 9px;
    }

    .abonnement-information-row span,
    .abonnement-information-row strong {
        font-size: 0.7rem;
    }

    .abonnement-usage-header span {
        font-size: 0.72rem;
    }

    .abonnement-usage-header strong {
        font-size: 0.69rem;
    }

    .abonnement-features {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .abonnement-feature {
        min-height: 38px;
    }

    .abonnement-actions {
        flex-direction: column;
        gap: 8px;
    }

    .abonnement-primary-button,
    .abonnement-secondary-button {
        width: 100%;
        min-height: 42px;
    }

    .abonnement-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .abonnement-refresh-button {
        width: 100%;
        min-height: 38px;
    }

    .abonnement-payment-row {
        min-height: 48px;
        gap: 10px;
    }

    .abonnement-payment-info strong,
    .abonnement-payment-amount {
        font-size: 0.72rem;
    }

    .abonnement-payment-info small {
        font-size: 0.65rem;
    }

    .abonnement-empty {
        min-height: 105px;
        padding: 12px;
    }

    .abonnement-empty i {
        font-size: 1.15rem;
    }

    .abonnement-empty strong {
        font-size: 0.74rem;
    }

    .abonnement-empty span {
        font-size: 0.66rem;
    }

    .abonnement-information-box {
        gap: 8px;
        padding: 10px;
    }

    .abonnement-information-box strong {
        font-size: 0.77rem;
    }

    .abonnement-information-box p {
        font-size: 0.68rem;
    }

    .abonnement-config-footer {
        position: static;
        flex: 0 0 auto;
        padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: #ffffff;
        z-index: 5;
    }

    .abonnement-config-footer-close {
        width: 100%;
        min-height: 40px;
    }
}
/* =========================================================
   FIN STYLE — ABONNEMENT IABAKO
   ========================================================= */
