/* ── Wrapper principal ─────────────────────────────────────────── */
.fd_my_account {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Navigation onglets ────────────────────────────────────────── */
.fd_tabs_nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #E0B4C1;
}

.fd_tab_link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #002D56;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    transition: background 0.2s, color 0.2s;
}

.fd_tab_link:hover {
    background: #f5e8ed;
    color: #002D56;
    text-decoration: none;
}

.fd_tab_link.active {
    background: #E0B4C1;
    color: #002D56;
    border-bottom: 2px solid #E0B4C1;
    margin-bottom: -2px;
}

/* ── Contenu onglet ────────────────────────────────────────────── */
.fd_tab_content {
    padding: 8px 0 24px;
}

/* ── Notices ───────────────────────────────────────────────────── */
.fd_notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 15px;
}

.fd_notice p {
    margin: 0;
}

.fd_notice_success {
    background: #e6f4ea;
    border-left: 4px solid #1a9e5a;
    color: #145a32;
}

.fd_notice_warning {
    background: #fff8e1;
    border-left: 4px solid #f0a500;
    color: #7a5200;
}

.fd_notice_error {
    background: #fdecea;
    border-left: 4px solid #d63638;
    color: #7a1a1a;
}

/* ── Statut abonnement actif ───────────────────────────────────── */
.fd_subscription_status {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

.fd_subscription_status p {
    margin: 4px 0;
}

.fd_status_active {
    background: #e6f4ea;
    border-left: 4px solid #1a9e5a;
    color: #145a32;
}

.fd_status_warning {
    background: #fff8e1;
    border-left: 4px solid #f0a500;
    color: #7a5200;
}

.fd_status_inactive {
    background: #fdecea;
    border-left: 4px solid #d63638;
    color: #7a1a1a;
}

/* ── Carte offre abonnement ────────────────────────────────────── */
.fd_subscription_offer {
    display: inline-block;
    background: #002D56;
    color: #fff;
    border-radius: 8px;
    padding: 24px 32px;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0, 45, 86, 0.15);
}

.fd_subscription_offer h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #E0B4C1;
}

.fd_subscription_price {
    font-size: 28px;
    font-weight: 700;
    color: #E0B4C1;
    margin: 0 0 16px;
}

.fd_subscription_price span {
    font-size: 15px;
    font-weight: 400;
    color: #ccc;
}

/* ── Bouton principal ──────────────────────────────────────────── */
.fd_btn {
    display: inline-block;
    box-shadow: 0 0 15px 0 #002D56;
    background: #E0B4C1;
    color: #002D56;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.fd_btn:hover {
    box-shadow: 0 0 15px 0 #E0B4C1;
    background: #002D56;
    color: #E0B4C1;
    text-decoration: none;
}

/* ── Désabonnement ─────────────────────────────────────────────── */
.fd_cancel_details {
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 12px;
}

.fd_cancel_details summary {
    font-size: 13px;
    color: #002D56;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E0B4C1;
    padding: 7px 16px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.fd_cancel_details summary::-webkit-details-marker { display: none; }
.fd_cancel_details summary:hover { background: #d4a0b0; color: #002D56; }
.fd_cancel_details summary::before { content: '\25B8\00A0'; }
.fd_cancel_details[open] summary::before { content: '\25BE\00A0'; }

.fd_cancel_confirm {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 14px 16px;
}

.fd_cancel_confirm p { font-size: 14px; color: #002D56; margin: 0 0 12px; }

.fd_btn_cancel {
    background: #E0B4C1;
    border: none;
    color: #002D56;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.fd_btn_cancel:hover { background: #002D56; color: #E0B4C1; }
.fd_info_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    background: #002D56;
    padding: 28px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 45, 86, 0.15);
}

.fd_info_form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.fd_info_form input[type="text"],
.fd_info_form input[type="email"],
.fd_info_form input[type="tel"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}

.fd_info_form input:focus {
    outline: none;
    border-color: #a0a0a0;
}

/* Groupes 2 colonnes dans le formulaire (champs wrappés dans <div>) */
/* Reset grid-auto-flow et grid-template-rows hérités de inscription.css */
.fd_info_form .fd_form_flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    gap: 20px;
}

/* Chaque champ individuel : label au-dessus de l'input */
.fd_info_form .fd_form_flex > div,
.fd_info_form > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fd_info_form .fd_btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 540px) {
    .fd_info_form {
        padding: 20px 16px;
    }

    .fd_info_form .fd_form_flex {
        grid-template-columns: 1fr;
    }
}

/* ── Tableau factures ──────────────────────────────────────────── */
.fd_invoices_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.fd_invoices_table thead {
    background: #002D56;
    color: #fff;
}

.fd_invoices_table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.fd_invoices_table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.fd_invoices_table tbody tr:hover {
    background: #f9f0f3;
}

.fd_invoices_table a {
    color: #002D56;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .fd_tabs_nav {
        flex-wrap: wrap;
    }

    .fd_tab_link {
        font-size: 13px;
        padding: 8px 12px;
    }

    .fd_subscription_offer {
        padding: 16px;
    }

    .fd_form_flex {
        grid-template-columns: 1fr;
    }

    .fd_invoices_table th,
    .fd_invoices_table td {
        padding: 8px 8px;
        font-size: 13px;
    }
}