/**
 * Bloc 1 — encadré « Mon abonnement » injecté dans /mon-compte/.
 *
 * Volontairement sobre : le bloc s'insère à côté des cartes .service du tableau de
 * bord et doit s'y fondre, pas attirer l'œil. Aucune dépendance externe, aucune
 * variable CSS du thème (elles ne sont pas garanties sur toutes les routes SPA).
 */

.pige-sub-info {
    margin: 16px 0 0;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    /* Filet bleu de marque : rattache visuellement le bloc au reste de l'app. */
    border-left: 3px solid #0083D6;
}

.pige-sub-info__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #004979;
}

.pige-sub-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pige-sub-info li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f3f7;
}

.pige-sub-info li:last-child {
    border-bottom: 0;
}

.pige-sub-info__label {
    color: #5a6b7c;
    font-size: 14px;
}

.pige-sub-info__value {
    color: #1c2b3a;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.pige-sub-info__empty {
    margin: 0 0 10px;
    font-size: 14px;
    color: #5a6b7c;
}

.pige-sub-info__link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #0083D6;
    text-decoration: underline;
}

/* Sur mobile, label et valeur se superposent plutôt que de se serrer sur une ligne. */
@media (max-width: 600px) {
    .pige-sub-info li {
        flex-direction: column;
        align-items: flex-start;
    }

    .pige-sub-info__value {
        text-align: left;
    }
}

/* ─── Bloc 4 — modale de confirmation du passage à PRO ───────────────────────── */

.pige-upgrade-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 24, 36, 0.55);
}

.pige-upgrade-modal__card {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.pige-upgrade-modal__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #004979;
}

.pige-upgrade-modal__lead {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #5a6b7c;
}

.pige-upgrade-modal__lines {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.pige-upgrade-modal__lines li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    font-size: 14px;
    color: #1c2b3a;
    border-bottom: 1px solid #f0f3f7;
}

.pige-upgrade-modal__lines li.is-total {
    border-bottom: 0;
    border-top: 2px solid #e3e8ee;
    margin-top: 4px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
}

.pige-upgrade-modal__note {
    margin: 0 0 22px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #004979;
    background: #eaf6fd;
    border-radius: 6px;
}

.pige-upgrade-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pige-upgrade-modal__confirm,
.pige-upgrade-modal__cancel {
    flex: 1 1 auto;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.pige-upgrade-modal__confirm {
    color: #ffffff;
    background: #0083D6;
}

.pige-upgrade-modal__confirm[disabled] {
    opacity: 0.6;
    cursor: default;
}

.pige-upgrade-modal__cancel {
    color: #5a6b7c;
    background: #ffffff;
    border-color: #d7dee6;
}

/* ─── Bloc 6 — rappel visuel avant échéance ────────────────────────────────── */

.pige-renew-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 27, 38, 0.55);
}

.pige-renew-modal__card {
    width: 100%;
    max-width: 460px;
    padding: 26px 28px 22px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 27, 38, 0.28);
}

.pige-renew-modal__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    color: #0f1b26;
}

.pige-renew-modal__lead {
    margin: 0 0 10px;
    font-size: 15px;
    color: #33475b;
}

.pige-renew-modal__note {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #5a6b7c;
}

.pige-renew-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pige-renew-modal__confirm,
.pige-renew-modal__cancel {
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.pige-renew-modal__confirm {
    color: #ffffff;
    background: #0083D6;
}

.pige-renew-modal__cancel {
    color: #5a6b7c;
    background: #ffffff;
    border-color: #d7dee6;
}

/* Promotions temporaires (assets/js/promo.js) ------------------------------------------ */

/* Bannière, en bas de toutes les pages */
.pige-promo-banniere {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 18px 56px 18px 24px;
    background: linear-gradient(90deg, #c2185b 0%, #e64a19 100%);
    color: #ffffff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    line-height: 1.35;
}

.pige-promo-banniere__texte strong {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.pige-promo-banniere__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.pige-promo-banniere__cta {
    padding: 11px 22px;
    background: #ffd166;
    color: #1c2b3a !important;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
}

.pige-promo-banniere__jamais {
    background: none;
    border: 0;
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    opacity: 0.9;
}

.pige-promo-x {
    position: absolute;
    top: 8px;
    right: 14px;
    background: none;
    border: 0;
    color: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.pige-promo-x--carte {
    color: #5a6b7c;
}

@media (max-width: 760px) {
    .pige-promo-banniere {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 16px 44px 16px 16px;
    }
}

/* Fenêtre (futurs abonnés et « ajouter une année ») */
.pige-promo-popup {
    position: relative;
    border-top: 6px solid #e64a19;
}

.pige-promo-popup__surtitre {
    margin: 0 0 4px;
    color: #e64a19;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pige-promo-lien {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.pige-promo-barre {
    color: #8a97a5;
    font-weight: 400;
}

/* Tarifs : ancien prix barré, nouveau prix, économie */
.pige-promo-ancien,
.pige-promo-ancien * {
    font-size: 22px !important;
    line-height: 1.2 !important;
    color: #8a97a5 !important;
    text-decoration: line-through;
    vertical-align: baseline !important;
}

/* Le bundle aligne le prix en bas (flex-end) et donne 5 px de marge basse à « /mois » : à taille
   égale, « /mois » remontait au-dessus de la ligne. L'ancien prix redevient une simple ligne. */
.pige-promo-ancien {
    display: inline-block !important;
}

.pige-promo-ancien * {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pige-promo-prix {
    margin: 4px 0 6px;
    color: #e64a19;
    font-weight: 800;
}

.pige-promo-prix__montant {
    font-size: 46px;
    line-height: 1;
}

.pige-promo-prix__mois {
    font-size: 18px;
    margin-left: 2px;
}

.pige-promo-economie {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #ffd166;
    color: #1c2b3a;
    font-size: 18px;
    font-weight: 800;
    border-radius: 6px;
}

.pige-promo-economie__detail {
    margin-top: 6px;
    color: #5a6b7c;
    font-size: 13px;
}

/* Panier : le code appliqué automatiquement */
.pige-promo-panier {
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #fff4e5;
    border-left: 4px solid #e64a19;
    color: #1c2b3a;
    font-size: 14px;
}

/* Panier : code promo refusé (assets/js/code-promo.js) */
.pige-promo-refus {
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #1c2b3a;
    font-size: 14px;
}
