.bppt-ga-wrap,
.bppt-ga-login,
.bppt-ga-public-wrap {
    --bppt-primary: #0d5f75;
    --bppt-primary-dark: #084657;
    --bppt-accent: #f4a62a;
    --bppt-success: #2f7d4a;
    --bppt-warning: #9a5b00;
    --bppt-danger: #a52d2d;
    --bppt-info: #226b82;
    --bppt-border: #dce4e8;
    --bppt-border-strong: #c8d5da;
    --bppt-muted: #60717a;
    --bppt-bg: #f5f8fa;
    --bppt-surface: #ffffff;
    --bppt-shadow: 0 8px 24px rgba(20, 50, 62, .07);
    color: #17252c;
    font-family: inherit;
}

/* Le titre natif WordPress est masqué uniquement sur les pages de l'extension. */
.bppt-ga-page .wp-block-post-title,
.bppt-ga-page .entry-title,
.bppt-ga-page .page-title,
.bppt-ga-page .page-header > h1 {
    display: none !important;
}

.bppt-ga-wrap *,
.bppt-ga-public-wrap * { box-sizing: border-box; }
.bppt-ga-wrap { width: min(1280px, 100%); max-width: 1280px; margin: 0 auto; }

/*
 * La plupart des thèmes WordPress limitent le contenu d'une page à environ
 * 600–700 px. L'interface de gestion a besoin de retrouver sa largeur de
 * travail complète sans modifier les autres pages du site.
 */
body.bppt-ga-management-page { overflow-x: hidden; }
body.bppt-ga-management-page .bppt-ga-wrap {
    position: relative;
    left: 50%;
    width: min(1280px, calc(100vw - 64px));
    max-width: min(1280px, calc(100vw - 64px)) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
}
.bppt-ga-wrap a:focus-visible,
.bppt-ga-wrap button:focus-visible,
.bppt-ga-wrap input:focus-visible,
.bppt-ga-wrap select:focus-visible,
.bppt-ga-wrap textarea:focus-visible,
.bppt-ga-login input:focus-visible {
    outline: 3px solid rgba(13, 95, 117, .28);
    outline-offset: 2px;
}

.bppt-ga-eyebrow { margin: 0 0 .35rem; color: var(--bppt-primary); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.bppt-ga-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.bppt-ga-topbar h1 { margin: 0 0 .4rem; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.05; }
.bppt-ga-topbar p { margin: 0; color: var(--bppt-muted); }
.bppt-ga-hero { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--bppt-border); border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f2f8fa 100%); box-shadow: var(--bppt-shadow); }
.bppt-ga-member-hero { align-items: center; }
.bppt-ga-member-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .75rem; color: var(--bppt-muted); }
.bppt-ga-topbar-actions, .bppt-ga-form-actions, .bppt-ga-filter-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.bppt-ga-button,
.bppt-ga-login input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .72rem 1rem;
    border: 1px solid var(--bppt-primary);
    border-radius: 10px;
    background: var(--bppt-primary);
    color: #fff !important;
    font-weight: 780;
    line-height: 1.1;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(13, 95, 117, .12);
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.bppt-ga-button:hover, .bppt-ga-login input[type="submit"]:hover { background: var(--bppt-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 15px rgba(13, 95, 117, .18); }
.bppt-ga-button-light { background: #fff; color: var(--bppt-primary) !important; box-shadow: none; }
.bppt-ga-button-light:hover { background: #edf5f7; }
.bppt-ga-button-danger { border-color: var(--bppt-danger); background: var(--bppt-danger); }
.bppt-ga-button-small { min-height: 36px; padding: .5rem .75rem; border-radius: 8px; font-size: .84rem; }
.bppt-ga-link { color: var(--bppt-primary); font-weight: 800; }

.bppt-ga-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.bppt-ga-card { position: relative; overflow: hidden; padding: 1.2rem; border: 1px solid var(--bppt-border); border-radius: 15px; background: #fff; box-shadow: var(--bppt-shadow); }
.bppt-ga-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--bppt-primary); content: ""; }
.bppt-ga-card-success::before { background: var(--bppt-success); }
.bppt-ga-card-warning::before { background: var(--bppt-accent); }
.bppt-ga-card-info::before { background: var(--bppt-info); }
.bppt-ga-card-neutral::before { background: #829198; }
.bppt-ga-card span { display: block; min-height: 2.4em; color: var(--bppt-muted); font-size: .88rem; }
.bppt-ga-card strong { display: block; margin-top: .35rem; color: var(--bppt-primary); font-size: 2rem; line-height: 1; }

.bppt-ga-panel,
.bppt-ga-filters,
.bppt-ga-list-section,
.bppt-ga-login { margin-bottom: 1.4rem; padding: 1.35rem; border: 1px solid var(--bppt-border); border-radius: 16px; background: #fff; box-shadow: var(--bppt-shadow); }
.bppt-ga-panel { border-top: 4px solid #d9e9ed; }
.bppt-ga-panel h2, .bppt-ga-filters h2, .bppt-ga-list-section h2 { margin: 0; line-height: 1.15; }
.bppt-ga-panel-heading, .bppt-ga-list-heading, .bppt-ga-filters-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.bppt-ga-panel-heading, .bppt-ga-list-heading { margin-bottom: 1.15rem; }
.bppt-ga-panel-heading p, .bppt-ga-list-heading p, .bppt-ga-filters-heading p { margin: .35rem 0 0; color: var(--bppt-muted); }
.bppt-ga-required-note, .bppt-ga-doc-counter, .bppt-ga-season-chip { display: inline-flex; align-items: center; min-height: 30px; padding: .35rem .7rem; border-radius: 999px; background: #edf5f7; color: var(--bppt-primary-dark); font-size: .8rem; font-weight: 800; white-space: nowrap; }

.bppt-ga-filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 1rem; align-items: end; }
.bppt-ga-filters-heading { grid-column: 1 / -1; padding-bottom: .9rem; border-bottom: 1px solid var(--bppt-border); }
.bppt-ga-filter-actions { grid-column: 1 / -1; }
.bppt-ga-field { display: flex; flex-direction: column; gap: .38rem; }
.bppt-ga-field label { font-size: .9rem; font-weight: 780; }
.bppt-ga-field input,
.bppt-ga-field select,
.bppt-ga-field textarea,
.bppt-ga-login input[type="text"],
.bppt-ga-login input[type="password"] { width: 100%; min-height: 44px; padding: .68rem .78rem; border: 1px solid #b9c6cc; border-radius: 9px; background: #fff; color: #17252c; transition: border-color .16s ease, box-shadow .16s ease; }
.bppt-ga-field input:hover, .bppt-ga-field select:hover, .bppt-ga-field textarea:hover { border-color: #8ea5ae; }
.bppt-ga-field .bppt-ga-locked-control,
.bppt-ga-field select:disabled.bppt-ga-locked-control {
    background: #eef4f6;
    color: #455a63;
    cursor: not-allowed;
    opacity: 1;
}
.bppt-ga-field textarea { min-height: 96px; resize: vertical; }
.bppt-ga-checkbox-field { justify-content: flex-end; }
.bppt-ga-checkbox-field label { display: flex; align-items: center; gap: .45rem; min-height: 44px; }
.bppt-ga-checkbox-field input { width: auto; min-height: auto; }
.bppt-ga-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bppt-ga-field-full { grid-column: 1 / -1; }
.bppt-ga-field small { color: var(--bppt-muted); }
.bppt-ga-subsection { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--bppt-border); }
.bppt-ga-subsection h3 { margin: 0 0 .85rem; font-size: 1rem; }
.bppt-ga-table .bppt-ga-inline-control { margin-right: .75rem; margin-bottom: .35rem; }
.bppt-ga-table input,
.bppt-ga-table select,
.bppt-ga-table textarea { width: 100%; min-width: 120px; }
.bppt-ga-table input[type="checkbox"] { width: auto; min-width: auto; }

.bppt-ga-list-section { padding: 0; overflow: hidden; }
.bppt-ga-list-heading { margin: 0; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--bppt-border); background: linear-gradient(180deg, #fff, #fbfdfe); }
.bppt-ga-table-wrap { overflow-x: auto; }
.bppt-ga-panel > .bppt-ga-table-wrap { margin: 0; border: 1px solid var(--bppt-border); border-radius: 13px; }
.bppt-ga-table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.bppt-ga-table th, .bppt-ga-table td { padding: .95rem 1rem; border-bottom: 1px solid var(--bppt-border); text-align: left; vertical-align: middle; }
.bppt-ga-table th { background: var(--bppt-bg); color: #30434c; font-size: .8rem; letter-spacing: .045em; text-transform: uppercase; }
.bppt-ga-table tr:last-child td { border-bottom: 0; }
.bppt-ga-members-table tbody tr { transition: background .16s ease; }
.bppt-ga-members-table tbody tr:hover { background: #f8fbfc; }
.bppt-ga-member-name { display: inline-block; color: #17252c; font-weight: 850; text-decoration: none; }
.bppt-ga-member-name:hover { color: var(--bppt-primary); text-decoration: underline; }
.bppt-ga-member-number { display: block; margin-top: .2rem; color: var(--bppt-muted); font-size: .82rem; }
.bppt-ga-contact-cell a, .bppt-ga-contact-cell span { display: block; overflow-wrap: anywhere; color: inherit; }
.bppt-ga-contact-cell a + a { margin-top: .2rem; color: var(--bppt-primary); font-size: .86rem; }
.bppt-ga-documents-table input, .bppt-ga-documents-table select { min-width: 140px; padding: .58rem; border: 1px solid #b9c6cc; border-radius: 8px; }

.bppt-ga-badge { display: inline-flex; align-items: center; min-height: 28px; padding: .32rem .62rem; border-radius: 999px; background: #e4f2f5; color: var(--bppt-primary-dark); font-size: .8rem; font-weight: 800; line-height: 1.2; }
.bppt-ga-badge-success, .bppt-ga-badge-valid { background: #e8f6ed; color: #245f39; }
.bppt-ga-badge-warning { background: #fff1d8; color: #7a4700; }
.bppt-ga-badge-danger { background: #fde8e8; color: #8d2424; }
.bppt-ga-badge-info { background: #e5f2f6; color: #175a70; }
.bppt-ga-badge-neutral, .bppt-ga-badge-cancelled { background: #f0f2f3; color: #5e696e; }

.bppt-ga-progress-label { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; font-size: .82rem; }
.bppt-ga-progress-label span { color: var(--bppt-muted); }
.bppt-ga-progress { width: 100%; min-width: 110px; height: 8px; overflow: hidden; border-radius: 999px; background: #e7ecef; }
.bppt-ga-progress span { display: block; height: 100%; border-radius: inherit; background: var(--bppt-accent); }
.bppt-ga-progress.is-complete span { background: var(--bppt-success); }

.bppt-ga-empty-state { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2.3rem 1rem; color: var(--bppt-muted); text-align: center; }
.bppt-ga-empty-state strong { color: #30434c; font-size: 1.05rem; }
.bppt-ga-empty-text { color: var(--bppt-muted); }

.bppt-ga-help { color: var(--bppt-muted); font-size: .9rem; }
.bppt-ga-alert { margin-bottom: 1rem; padding: .95rem 1rem; border-radius: 10px; border-left: 4px solid; }
.bppt-ga-alert-success { border-color: var(--bppt-success); background: #e8f6ed; }
.bppt-ga-alert-error { border-color: var(--bppt-danger); background: #fdecec; }
.bppt-ga-alert-warning { border-color: #b66a00; background: #fff4df; }
.bppt-ga-pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.bppt-ga-pagination a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--bppt-border); border-radius: 9px; background: #fff; color: var(--bppt-primary); text-decoration: none; }
.bppt-ga-pagination a.is-current { border-color: var(--bppt-primary); background: var(--bppt-primary); color: #fff; }

.bppt-ga-form-actions-prominent { position: sticky; bottom: .8rem; z-index: 8; justify-content: flex-end; margin: 1.2rem 0 1.6rem; padding: .85rem; border: 1px solid var(--bppt-border-strong); border-radius: 13px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 28px rgba(20, 50, 62, .13); backdrop-filter: blur(8px); }
.bppt-ga-inline-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--bppt-border); }
.bppt-ga-section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.bppt-ga-payment-summary { padding: .8rem 1rem; border-radius: 11px; background: var(--bppt-bg); white-space: nowrap; }
.bppt-ga-payment-summary-success { background: #e8f6ed; color: #245f39; }
.bppt-ga-payment-summary-warning { background: #fff4df; color: #7a4700; }

.bppt-ga-history { margin: 0; padding: 0; list-style: none; }
.bppt-ga-timeline li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: .75rem; padding-bottom: 1rem; }
.bppt-ga-timeline li:not(:last-child)::before { position: absolute; top: 18px; bottom: 0; left: 6px; width: 2px; background: #dce8eb; content: ""; }
.bppt-ga-timeline-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 4px; border: 3px solid #d8edf2; border-radius: 50%; background: var(--bppt-primary); }
.bppt-ga-timeline strong { font-size: .9rem; }
.bppt-ga-timeline p { margin: .2rem 0 0; color: #374950; }

.bppt-ga-danger-zone { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 1rem; margin: 1.5rem 0; padding: 1rem; border: 1px dashed #d9b0b0; border-radius: 14px; background: #fffafa; }
.bppt-ga-delete-block { max-width: 620px; padding: 1rem; border: 1px solid #d8a3a3; border-radius: 12px; background: #fff3f3; }
.bppt-ga-delete-block p { margin: 0 0 .85rem; color: #7c2222; }
.bppt-ga-delete-block p span { color: #6f4747; font-size: .9rem; }

.bppt-ga-payments-table tr.is-cancelled td { color: #6d7478; background: #fafafa; }
.bppt-ga-payments-table tr.is-cancelled td:nth-child(2) { text-decoration: line-through; }
.bppt-ga-payments-table form { margin: 0; }
.bppt-ga-payment-actions { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; align-items: center; }
.bppt-ga-payment-receipt-row > td { padding: 0 1rem 1rem; background: #f9fcfd; }
.bppt-ga-payment-receipt-details { border: 1px solid var(--bppt-border); border-radius: 10px; background: #fff; }
.bppt-ga-payment-receipt-details summary { padding: .75rem .9rem; color: var(--bppt-primary); font-weight: 800; cursor: pointer; }
.bppt-ga-payment-receipt-form { padding: 0 .9rem .9rem; border-top: 1px solid var(--bppt-border); }

.bppt-ga-login { max-width: 540px; margin: 2rem auto; }
.bppt-ga-login form p { margin-bottom: 1rem; }
.bppt-ga-login label { display: block; margin-bottom: .35rem; font-weight: 700; }
.bppt-ga-login .login-remember label { display: flex; gap: .45rem; align-items: center; }
.bppt-ga-login .login-remember input { width: auto; }

@media (max-width: 1080px) {
    .bppt-ga-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bppt-ga-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    body.bppt-ga-management-page .bppt-ga-wrap {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px) !important;
    }
    .bppt-ga-topbar, .bppt-ga-section-heading, .bppt-ga-panel-heading, .bppt-ga-list-heading { flex-direction: column; }
    .bppt-ga-topbar-actions, .bppt-ga-topbar-actions .bppt-ga-button { width: 100%; }
    .bppt-ga-cards, .bppt-ga-grid, .bppt-ga-filters { grid-template-columns: 1fr; }
    .bppt-ga-field-full, .bppt-ga-filter-actions, .bppt-ga-filters-heading { grid-column: auto; }
    .bppt-ga-payment-summary { white-space: normal; }
    .bppt-ga-form-actions-prominent { position: static; }
    .bppt-ga-form-actions-prominent .bppt-ga-button { flex: 1 1 100%; }
    .bppt-ga-table thead { display: none; }
    .bppt-ga-table, .bppt-ga-table tbody, .bppt-ga-table tr, .bppt-ga-table td { display: block; width: 100%; }
    .bppt-ga-table tr { padding: .7rem; border-bottom: 1px solid var(--bppt-border); }
    .bppt-ga-table td { display: grid; grid-template-columns: minmax(105px, 35%) 1fr; gap: .75rem; padding: .58rem; border: 0; }
    .bppt-ga-table td::before { content: attr(data-label); color: var(--bppt-muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; }
    .bppt-ga-documents-table input, .bppt-ga-documents-table select { min-width: 0; width: 100%; }
    .bppt-ga-list-section .bppt-ga-table-wrap { overflow: visible; }
    .bppt-ga-members-table tbody tr { margin: .7rem; border: 1px solid var(--bppt-border); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(20, 50, 62, .05); }
}

/* Gestion des saisons et renouvellements. */
.bppt-ga-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.bppt-ga-alert-info { border-color: var(--bppt-info); background: #eaf5f8; }
.bppt-ga-settings-summary { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.bppt-ga-summary-card { display: flex; min-height: 125px; flex-direction: column; justify-content: center; padding: 1.15rem 1.25rem; border: 1px solid var(--bppt-border); border-radius: 15px; background: #fff; box-shadow: var(--bppt-shadow); }
.bppt-ga-summary-card-main { border-top: 4px solid var(--bppt-primary); background: linear-gradient(135deg, #fff, #f0f8fa); }
.bppt-ga-summary-card span { color: var(--bppt-muted); font-size: .86rem; }
.bppt-ga-summary-card strong { margin-top: .3rem; color: var(--bppt-primary-dark); font-size: 1.65rem; line-height: 1.1; }
.bppt-ga-summary-card small { margin-top: .4rem; color: var(--bppt-muted); }
.bppt-ga-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bppt-ga-season-create-form .bppt-ga-checkbox-field { align-items: flex-start; justify-content: flex-start; gap: .25rem; }
.bppt-ga-season-create-form .bppt-ga-checkbox-field label { min-height: 32px; }
.bppt-ga-season-list { display: grid; gap: 1rem; }
.bppt-ga-season-card { overflow: hidden; border: 1px solid var(--bppt-border); border-radius: 14px; background: #fff; }
.bppt-ga-season-card.is-current { border-color: #8fc8a2; box-shadow: 0 0 0 2px rgba(47, 125, 74, .08); }
.bppt-ga-season-card.is-closed { background: #fafbfb; }
.bppt-ga-season-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--bppt-border); background: linear-gradient(180deg, #fff, #fbfdfe); }
.bppt-ga-season-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.bppt-ga-season-title-row h3 { margin: 0; font-size: 1.3rem; }
.bppt-ga-season-card-head p { margin: .35rem 0 0; color: var(--bppt-muted); }
.bppt-ga-season-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.bppt-ga-season-stats span { min-width: 82px; padding: .48rem .65rem; border-radius: 9px; background: var(--bppt-bg); color: var(--bppt-muted); font-size: .76rem; text-align: center; }
.bppt-ga-season-stats strong { display: block; color: var(--bppt-primary-dark); font-size: 1.05rem; }
.bppt-ga-season-card-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 1rem; align-items: end; padding: 1rem 1.1rem; }
.bppt-ga-season-settings-form { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(220px, 1fr) auto; gap: .8rem; align-items: end; }
.bppt-ga-season-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; align-items: center; }
.bppt-ga-season-actions form, .bppt-ga-member-hero form { margin: 0; }
.bppt-ga-help-inline { max-width: 230px; color: var(--bppt-muted); font-size: .78rem; line-height: 1.35; }
.bppt-ga-bulk-renewal-form { max-width: 880px; }
.bppt-ga-renewal-panel { border-top-color: #f5c66f; }

@media (max-width: 1080px) {
    .bppt-ga-settings-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bppt-ga-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bppt-ga-season-card-body { grid-template-columns: 1fr; }
    .bppt-ga-season-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
    .bppt-ga-settings-summary, .bppt-ga-grid-4 { grid-template-columns: 1fr; }
    .bppt-ga-season-card-head { flex-direction: column; }
    .bppt-ga-season-stats { width: 100%; justify-content: flex-start; }
    .bppt-ga-season-stats span { flex: 1 1 85px; }
    .bppt-ga-season-settings-form { grid-template-columns: 1fr; }
    .bppt-ga-season-actions, .bppt-ga-season-actions .bppt-ga-button, .bppt-ga-season-actions form { width: 100%; }
    .bppt-ga-season-actions form .bppt-ga-button { width: 100%; }
}

/* Version 0.1.6 — lecture seule, navigation et relances. */
.bppt-ga-button-secondary {
    border-color: #7b929b;
    background: #6e858e;
}
.bppt-ga-button-secondary:hover { background: #586f78; }
.bppt-ga-button-reminder {
    border-color: #b87300;
    background: #b87300;
}
.bppt-ga-button-reminder:hover { background: #8e5800; }

.bppt-ga-form-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.bppt-ga-form.is-read-only .bppt-ga-form-fieldset[disabled] {
    opacity: 1;
}
.bppt-ga-form.is-read-only .bppt-ga-form-fieldset[disabled] input,
.bppt-ga-form.is-read-only .bppt-ga-form-fieldset[disabled] select,
.bppt-ga-form.is-read-only .bppt-ga-form-fieldset[disabled] textarea {
    border-color: #d8e0e4;
    background: #f5f7f8;
    color: #43535a;
    cursor: not-allowed;
    opacity: 1;
}

.bppt-ga-reminder-cell { min-width: 155px; }
.bppt-ga-reminder-cell small {
    display: block;
    margin-top: .4rem;
    color: var(--bppt-muted);
    font-size: .76rem;
}
.bppt-ga-reminder-wrap .bppt-ga-panel { border-top-color: #f5c66f; }
.bppt-ga-reminder-summary {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, minmax(0, .75fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.bppt-ga-reminder-summary > div {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 12px;
    background: var(--bppt-bg);
}
.bppt-ga-reminder-summary span {
    color: var(--bppt-muted);
    font-size: .82rem;
}
.bppt-ga-reminder-summary strong {
    margin-top: .3rem;
    color: var(--bppt-primary-dark);
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}
.bppt-ga-reminder-missing-list {
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--bppt-accent);
    border-radius: 10px;
    background: #fff8ea;
}
.bppt-ga-reminder-missing-list h3 { margin: 0 0 .6rem; }
.bppt-ga-reminder-missing-list ul { margin: 0 0 0 1.2rem; }
.bppt-ga-reminder-form { max-width: 920px; }
.bppt-ga-reminder-form textarea { min-height: 320px; font-family: inherit; line-height: 1.55; }
.bppt-ga-email-settings-panel { border-top-color: #8ac2d2; }

@media (max-width: 920px) {
    .bppt-ga-reminder-summary { grid-template-columns: 1fr; }
}


/* Version 0.1.7 — e-mails HTML et séparation des réglages administratifs. */
.bppt-ga-hero-content { min-width: 0; }
.bppt-ga-hero-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}
.bppt-ga-button-settings {
    min-height: 38px;
    padding: .58rem .85rem;
    border-color: #8aa6af;
    background: rgba(255, 255, 255, .82);
    font-size: .88rem;
}
.bppt-ga-topbar-primary-actions { align-self: flex-start; }

.bppt-ga-email-model-preview {
    overflow: hidden;
    margin-top: .2rem;
    border: 1px solid var(--bppt-border);
    border-radius: 14px;
    background: #eef3f5;
}
.bppt-ga-email-model-preview-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--bppt-border);
    background: #fff;
}
.bppt-ga-email-model-preview-heading strong,
.bppt-ga-email-model-preview-heading span { display: block; }
.bppt-ga-email-model-preview-heading span {
    margin-top: .2rem;
    color: var(--bppt-muted);
    font-size: .78rem;
}
.bppt-ga-email-model-preview iframe {
    display: block;
    width: 100%;
    height: 680px;
    border: 0;
    background: #f5f8fa;
}

@media (max-width: 720px) {
    .bppt-ga-hero-secondary-actions,
    .bppt-ga-hero-secondary-actions .bppt-ga-button,
    .bppt-ga-topbar-primary-actions,
    .bppt-ga-topbar-primary-actions .bppt-ga-button {
        width: 100%;
    }
    .bppt-ga-email-model-preview iframe { height: 760px; }
}

/* Version 0.1.8 — comptes Gestionnaire et séparation des droits. */
.bppt-ga-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .28rem .65rem;
    border: 1px solid #bdd5dc;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--bppt-primary-dark);
    font-size: .76rem;
    font-weight: 800;
}
.bppt-ga-managers-panel { border-top-color: #7db6c6; }
.bppt-ga-permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.bppt-ga-permission-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 12px;
    background: var(--bppt-bg);
}
.bppt-ga-permission-card.is-allowed { border-left: 4px solid var(--bppt-success); }
.bppt-ga-permission-card.is-blocked { border-left: 4px solid var(--bppt-accent); }
.bppt-ga-permission-card strong { color: var(--bppt-primary-dark); }
.bppt-ga-permission-card ul { margin: .65rem 0 0 1.15rem; }
.bppt-ga-permission-card li { margin-bottom: .42rem; color: #43545c; }
.bppt-ga-manager-create-form {
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 12px;
    background: #fbfdfe;
}
.bppt-ga-manager-create-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    margin-top: .9rem;
}
.bppt-ga-manager-create-actions span {
    color: var(--bppt-muted);
    font-size: .82rem;
}
.bppt-ga-manager-list-heading h3 { margin: 0 0 .8rem; }
.bppt-ga-manager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.bppt-ga-manager-actions form { margin: 0; }
.bppt-ga-managers-table code {
    padding: .18rem .38rem;
    border-radius: 5px;
    background: #eef3f5;
    color: #28434d;
}
.bppt-ga-muted { color: var(--bppt-muted); }

@media (max-width: 860px) {
    .bppt-ga-permissions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .bppt-ga-manager-create-actions,
    .bppt-ga-manager-create-actions .bppt-ga-button,
    .bppt-ga-manager-actions,
    .bppt-ga-manager-actions form,
    .bppt-ga-manager-actions .bppt-ga-button {
        width: 100%;
    }
}


/* Version 0.1.9 — onglets Saisons / Paramètres. */
.bppt-ga-settings-tabs {
    display: inline-flex;
    gap: .5rem;
    margin: 0 0 1.4rem;
    padding: .35rem;
    border: 1px solid var(--bppt-border);
    border-radius: 13px;
    background: #eef4f6;
    box-shadow: 0 4px 14px rgba(20, 50, 62, .05);
}
.bppt-ga-settings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--bppt-primary-dark);
    font-weight: 800;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.bppt-ga-settings-tab:hover,
.bppt-ga-settings-tab:focus-visible {
    border-color: #9bbbc4;
    background: #fff;
    color: var(--bppt-primary-dark);
}
.bppt-ga-settings-tab.is-active {
    border-color: var(--bppt-primary);
    background: var(--bppt-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 95, 117, .16);
}
.bppt-ga-settings-intro {
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--bppt-border);
    border-left: 4px solid var(--bppt-primary);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #f2f8fa);
    box-shadow: var(--bppt-shadow);
}
.bppt-ga-settings-intro h2 { margin: .2rem 0 .35rem; }
.bppt-ga-settings-intro p:last-child { margin-bottom: 0; color: var(--bppt-muted); }

@media (max-width: 560px) {
    .bppt-ga-settings-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .bppt-ga-settings-tab {
        min-width: 0;
        width: 100%;
    }
}

/* Version 0.2.0 — extension générique et droits fins sur les saisons. */
.bppt-ga-permission-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-bottom: 1rem;
}
.bppt-ga-permission-checkbox {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    min-height: 54px;
    padding: .85rem .95rem;
    border: 1px solid var(--bppt-border);
    border-radius: 11px;
    background: #fbfdfe;
    color: #26383f;
    font-weight: 700;
    cursor: pointer;
}
.bppt-ga-permission-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: .12rem;
    flex: 0 0 auto;
}
.bppt-ga-permission-checkbox:has(input:checked) {
    border-color: #8ac3a0;
    background: #eff9f2;
}
.bppt-ga-permission-checkbox:has(input:disabled) {
    cursor: default;
}
.bppt-ga-season-readonly-values {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.3rem;
    padding: .8rem .95rem;
    border: 1px solid var(--bppt-border);
    border-radius: 10px;
    background: #f7fafb;
    color: #41545d;
}
.bppt-ga-form input:disabled,
.bppt-ga-form select:disabled,
.bppt-ga-form textarea:disabled {
    opacity: 1;
    color: #52636b;
    background: #f1f4f5;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .bppt-ga-permission-checkboxes { grid-template-columns: 1fr; }
}

/* Version 0.2.1 — autorisations saisonnières individuelles par gestionnaire. */
.bppt-ga-current-manager-rights,
.bppt-ga-manager-rights-editor {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 14px;
    background: #f9fcfd;
}
.bppt-ga-manager-rights-editor {
    scroll-margin-top: 1.25rem;
    border-left: 4px solid var(--bppt-primary);
    box-shadow: 0 8px 24px rgba(20, 50, 62, .08);
}
.bppt-ga-current-manager-rights .bppt-ga-panel-heading,
.bppt-ga-manager-rights-editor .bppt-ga-panel-heading {
    margin-bottom: 1rem;
}
.bppt-ga-current-manager-rights h3,
.bppt-ga-manager-rights-editor h3 {
    margin: 0;
}
.bppt-ga-permission-checkboxes.is-read-only {
    margin-bottom: 0;
}
.bppt-ga-manager-row-selected td {
    background: #eef8fb;
}
.bppt-ga-manager-rights-editor .bppt-ga-form-actions {
    align-items: center;
    margin-top: .25rem;
}
.bppt-ga-manager-rights-editor .bppt-ga-form-actions .bppt-ga-muted {
    max-width: 680px;
    font-size: .84rem;
}
.bppt-ga-managers-table .bppt-ga-badge {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .bppt-ga-manager-rights-editor .bppt-ga-form-actions,
    .bppt-ga-manager-rights-editor .bppt-ga-form-actions .bppt-ga-button {
        width: 100%;
    }
}

/* Version 0.2.2 — suppression sécurisée des saisons clôturées. */
.bppt-ga-season-delete-zone {
    margin-top: 1rem;
    border: 1px solid #e0a3a3;
    border-radius: 12px;
    background: #fff8f8;
    overflow: hidden;
}
.bppt-ga-season-delete-zone > summary {
    padding: .8rem 1rem;
    color: #9f1d24;
    font-weight: 800;
    cursor: pointer;
    list-style-position: inside;
}
.bppt-ga-season-delete-zone > summary:hover,
.bppt-ga-season-delete-zone > summary:focus-visible {
    background: #fff0f0;
}
.bppt-ga-season-delete-content {
    padding: 0 1rem 1rem;
}
.bppt-ga-season-delete-form {
    display: grid;
    gap: .9rem;
}
.bppt-ga-season-delete-form .bppt-ga-field {
    max-width: 520px;
}
.bppt-ga-danger-acknowledgement {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    max-width: 760px;
    font-weight: 700;
    color: #6e1e23;
}
.bppt-ga-danger-acknowledgement input {
    width: 18px;
    height: 18px;
    margin-top: .12rem;
    flex: 0 0 auto;
}
.bppt-ga-season-delete-form .bppt-ga-button-danger {
    justify-self: start;
}

@media (max-width: 560px) {
    .bppt-ga-season-delete-form .bppt-ga-button-danger {
        width: 100%;
    }
}


/* Version 0.2.3 — exports CSV et listes imprimables. */
.bppt-ga-tools-section {
    margin: 1.4rem 0;
    padding: 1.25rem;
    border: 1px solid var(--bppt-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fcfd 0%, #fff 70%);
    box-shadow: 0 8px 24px rgba(20, 50, 62, .06);
}
.bppt-ga-tools-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.bppt-ga-tools-heading h2,
.bppt-ga-tool-card h3 { margin: 0 0 .35rem; }
.bppt-ga-tools-heading p,
.bppt-ga-tool-card p { margin: 0; color: #586b73; }
.bppt-ga-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.bppt-ga-tool-card {
    padding: 1rem;
    border: 1px solid #d7e2e6;
    border-radius: 13px;
    background: #fff;
}
.bppt-ga-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .9rem;
}
.bppt-ga-tools-privacy {
    margin: 1rem 0 0;
    padding: .75rem .9rem;
    border-radius: 10px;
    background: #fff8e8;
    color: #67501c;
    font-size: .86rem;
}
@media (max-width: 820px) {
    .bppt-ga-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .bppt-ga-tools-heading { flex-direction: column; }
    .bppt-ga-tool-actions,
    .bppt-ga-tool-actions .bppt-ga-button { width: 100%; }
}

/* Version 0.2.4 — accès permanent à l’espace privé depuis le menu du site. */
.bppt-ga-toggle-line {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 12px;
    background: #f8fbfc;
    cursor: pointer;
}
.bppt-ga-toggle-line input {
    width: 19px;
    height: 19px;
    margin-top: .16rem;
    flex: 0 0 auto;
}
.bppt-ga-toggle-line span {
    display: grid;
    gap: .2rem;
}
.bppt-ga-toggle-line small {
    color: var(--bppt-muted);
    font-weight: 400;
}
.bppt-ga-toggle-line:has(input:disabled) {
    cursor: default;
}
.bppt-ga-navigation-target {
    overflow-wrap: anywhere;
    margin: .2rem 0 1rem;
    color: #40545c;
}
.bppt-ga-navigation-target code {
    white-space: normal;
}

/* Version 0.2.5 — formulaire public de demande d’adhésion. */
.bppt-ga-registration-page .entry-content,
.bppt-ga-registration-page .wp-block-post-content,
.bppt-ga-registration-page main,
.bppt-ga-registration-page .site-main {
    max-width: none;
}
.bppt-ga-public-wrap {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 1rem clamp(.75rem, 2vw, 1.5rem) 2.5rem;
    box-sizing: border-box;
}
.bppt-ga-public-hero {
    margin-bottom: 1.25rem;
    padding: clamp(1.35rem, 3vw, 2.2rem);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #0d5f75 0%, #167d93 100%);
    border-bottom: 6px solid #f4a62a;
    box-shadow: 0 16px 40px rgba(13, 95, 117, .18);
}
.bppt-ga-public-hero h1 {
    margin: 0 0 .55rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.05;
}
.bppt-ga-public-hero > p:not(.bppt-ga-eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #e7f5f8;
    font-size: 1.03rem;
}
.bppt-ga-public-season {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .45rem .75rem;
    margin-top: 1.15rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 13px;
    background: rgba(255,255,255,.1);
}
.bppt-ga-public-season span {
    color: #cfeaf0;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bppt-ga-public-season strong {
    color: #fff;
    font-size: 1.08rem;
}
.bppt-ga-public-season small {
    flex-basis: 100%;
    color: #e3f3f6;
}
.bppt-ga-public-form {
    display: grid;
    gap: 1rem;
}
.bppt-ga-public-section,
.bppt-ga-public-consent,
.bppt-ga-public-image-rights,
.bppt-ga-public-success {
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border: 1px solid #d9e4e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 50, 62, .07);
}
.bppt-ga-public-section .bppt-ga-panel-heading {
    margin-bottom: 1rem;
}
.bppt-ga-public-section .bppt-ga-panel-heading > div {
    position: relative;
    padding-left: 3.15rem;
}
.bppt-ga-public-step {
    position: absolute;
    top: -.1rem;
    left: 0;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: #e7f4f7;
    color: #0d5f75;
    font-weight: 900;
}
.bppt-ga-public-section h2 {
    margin: 0 0 .2rem;
}
.bppt-ga-public-section .bppt-ga-panel-heading p {
    margin: 0;
    color: #62747b;
}
.bppt-ga-public-form input,
.bppt-ga-public-form textarea,
.bppt-ga-public-form select {
    width: 100%;
    box-sizing: border-box;
}
.bppt-ga-public-consent label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-weight: 700;
    color: #273a42;
}
.bppt-ga-public-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: .1rem;
    flex: 0 0 auto;
}
.bppt-ga-public-consent p {
    margin: .8rem 0 0 2.75rem;
    color: #65767d;
    font-size: .9rem;
}
.bppt-ga-public-image-rights {
    border-color: #f0c36d;
    border-left: 5px solid #ef8c1a;
    background: #fffaf0;
}
.bppt-ga-public-image-rights label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: #273a42;
}
.bppt-ga-public-image-rights input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: .18rem;
    flex: 0 0 auto;
}
.bppt-ga-public-image-rights strong {
    display: inline-block;
    margin-right: .45rem;
    font-size: 1.02rem;
}
.bppt-ga-public-image-rights em {
    color: #a05a00;
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
}
.bppt-ga-public-image-rights p {
    margin: .75rem 0 0 2.75rem;
    color: #5f4a27;
    font-size: .92rem;
}
.bppt-ga-public-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem 1.1rem;
    padding: 1rem 0 .25rem;
}
.bppt-ga-public-actions span {
    color: #60717a;
    font-size: .9rem;
}
.bppt-ga-button-large {
    min-height: 48px;
    padding-inline: 1.35rem;
    font-size: 1rem;
}
.bppt-ga-public-success {
    text-align: center;
    padding: clamp(1.6rem, 4vw, 2.6rem);
}
.bppt-ga-public-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 50%;
    background: #e6f5ed;
    color: #197044;
    font-size: 1.9rem;
    font-weight: 900;
}
.bppt-ga-public-success h2 {
    margin: 0 0 .6rem;
}
.bppt-ga-public-success p {
    max-width: 660px;
    margin: 0 auto 1.25rem;
    color: #566a72;
}
.bppt-ga-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.bppt-ga-public-registration-settings-panel textarea {
    min-height: 90px;
}
@media (max-width: 680px) {
    .bppt-ga-public-wrap {
        padding-inline: .35rem;
    }
    .bppt-ga-public-section .bppt-ga-panel-heading > div {
        padding-left: 2.9rem;
    }
    .bppt-ga-public-actions,
    .bppt-ga-public-actions .bppt-ga-button {
        width: 100%;
    }
    .bppt-ga-public-consent p {
        margin-left: 0;
    }
}

/* Version 0.2.6 — étapes des saisons et dépôt de documents */
.bppt-ga-step-label {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(13, 95, 117, 0.1);
    color: #0d5f75;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.bppt-ga-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.bppt-ga-upload-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #d7e4e8;
    border-radius: 14px;
    background: #f8fbfc;
}

.bppt-ga-upload-card label {
    font-weight: 800;
    color: #17343d;
}

.bppt-ga-upload-card input[type="file"],
.bppt-ga-file-input {
    width: 100%;
    max-width: 100%;
    padding: 9px;
    border: 1px dashed #9db9c2;
    border-radius: 10px;
    background: #fff;
    font-size: 0.86rem;
}

.bppt-ga-file-input {
    margin-top: 8px;
}

.bppt-ga-file-link {
    display: block;
    font-weight: 800;
    color: #0d5f75;
    overflow-wrap: anywhere;
}

.bppt-ga-documents-table td[data-label="Fichier joint"] {
    min-width: 220px;
}

.bppt-ga-file-list {
    display: grid;
    gap: 12px;
}

.bppt-ga-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 16px;
    border: 1px solid #dbe6e9;
    border-radius: 14px;
    background: #fbfdfe;
}

.bppt-ga-file-item > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.bppt-ga-file-item span,
.bppt-ga-file-item small {
    overflow-wrap: anywhere;
}

.bppt-ga-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.bppt-ga-file-actions form {
    margin: 0;
}

.bppt-ga-public-upload-settings {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #dbe6e9;
}

.bppt-ga-public-upload-settings h3 {
    margin: 0 0 6px;
    color: #17343d;
}

.bppt-ga-document-upload-options {
    margin-top: 14px;
}

.bppt-ga-upload-size-setting {
    max-width: 320px;
    margin-top: 16px;
}

.bppt-ga-inline-number-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bppt-ga-inline-number-field input {
    max-width: 110px;
}

.bppt-ga-inline-number-field span {
    font-weight: 800;
    color: #48616a;
}

@media (max-width: 780px) {
    .bppt-ga-file-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .bppt-ga-file-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .bppt-ga-step-label {
        margin-left: 4px;
    }
}

/* Version 0.2.7 — validation avancée des documents */
.bppt-ga-document-cards {
    display: grid;
    gap: 16px;
}

.bppt-ga-document-card {
    padding: 18px;
    border: 1px solid #d9e5e9;
    border-radius: 16px;
    background: #fbfdfe;
    box-shadow: 0 3px 12px rgba(24, 61, 74, 0.04);
}

.bppt-ga-document-card.has-expiry-soon {
    border-color: #e8bd70;
    background: #fffaf0;
}

.bppt-ga-document-card.has-expiry-expired {
    border-color: #df9d9d;
    background: #fff7f7;
}

.bppt-ga-document-card-head,
.bppt-ga-document-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bppt-ga-document-card-head h3 {
    margin: 0 0 8px;
    color: #17343d;
    font-size: 1.05rem;
}

.bppt-ga-document-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bppt-ga-document-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.bppt-ga-document-footer {
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e1eaed;
}

.bppt-ga-document-validation-meta,
.bppt-ga-document-file-control {
    display: grid;
    gap: 4px;
}

.bppt-ga-document-validation-meta {
    max-width: 46%;
    color: #536a73;
    font-size: .88rem;
}

.bppt-ga-document-validation-meta strong {
    color: #1d4d5b;
}

.bppt-ga-document-file-control {
    width: min(100%, 420px);
}

.bppt-ga-document-request-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 18px;
}

.bppt-ga-document-request-facts span {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f9fa;
    color: #435b64;
}

.bppt-ga-document-request-facts .bppt-ga-document-request-reason {
    grid-column: 1 / -1;
    border: 1px solid #efc7a4;
    background: #fff7ee;
}

.bppt-ga-email-preview-frame {
    overflow: hidden;
    border: 1px solid #dce5e8;
    border-radius: 14px;
    background: #f5f8fa;
}

.bppt-ga-email-preview-frame > html,
.bppt-ga-email-preview-frame > body {
    margin: 0;
}

@media (max-width: 900px) {
    .bppt-ga-document-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .bppt-ga-document-card-head,
    .bppt-ga-document-footer {
        flex-direction: column;
    }

    .bppt-ga-document-card-head .bppt-ga-button,
    .bppt-ga-document-file-control,
    .bppt-ga-document-validation-meta {
        width: 100%;
        max-width: none;
    }

    .bppt-ga-document-fields {
        grid-template-columns: 1fr;
    }
}


/* Version 0.2.8 — tri de la liste des adhérents. */
.bppt-ga-filters select[name="bppt_sort"] { min-width: 180px; }


/* Version 0.2.9 — suivi du dossier sans compte. */
.bppt-ga-public-access-actions,
.bppt-ga-portal-document-head,
.bppt-ga-portal-payment,
.bppt-ga-portal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bppt-ga-public-access-actions > div { display:grid; gap:4px; }
.bppt-ga-public-access-actions form { margin:0; flex:0 0 auto; }
.bppt-ga-portal-summary { align-items:stretch; margin: 0 0 22px; }
.bppt-ga-portal-summary > div { flex:1 1 0; min-width:0; padding:18px; border:1px solid #d9e5e9; border-radius:16px; background:#fff; box-shadow:0 3px 14px rgba(24,61,74,.05); display:grid; gap:6px; }
.bppt-ga-portal-summary span,
.bppt-ga-portal-payment span { color:#60747c; font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.bppt-ga-portal-summary strong { color:#0d5f75; font-size:1.15rem; overflow-wrap:anywhere; }
.bppt-ga-portal-person { flex:1.35 1 0!important; }
.bppt-ga-portal-person small { color:#60747c; }
.bppt-ga-portal-identity { display:flex; flex-wrap:wrap; gap:10px 18px; margin:0 0 18px; padding:14px 16px; border-radius:12px; background:#f5f9fa; }
.bppt-ga-portal-documents { display:grid; gap:14px; }
.bppt-ga-portal-document { padding:17px; border:1px solid #d9e5e9; border-radius:15px; background:#fbfdfe; }
.bppt-ga-portal-document-head { align-items:flex-start; }
.bppt-ga-portal-document-head h3 { margin:0 0 8px; color:#17343d; font-size:1.03rem; }
.bppt-ga-portal-document-head small { color:#60747c; }
.bppt-ga-portal-upload-form { display:grid; grid-template-columns:minmax(220px,1fr) auto; align-items:center; gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid #e1eaed; }
.bppt-ga-portal-upload-form small { grid-column:1/-1; color:#60747c; }
.bppt-ga-portal-payment { align-items:stretch; }
.bppt-ga-portal-payment > div { flex:1 1 0; display:grid; gap:6px; padding:16px; border-radius:13px; background:#f5f9fa; }
.bppt-ga-portal-payment strong { color:#17343d; font-size:1.15rem; }
@media (max-width: 800px) {
    .bppt-ga-portal-summary,
    .bppt-ga-portal-payment,
    .bppt-ga-public-access-actions { align-items:stretch; flex-direction:column; }
    .bppt-ga-portal-upload-form { grid-template-columns:1fr; }
    .bppt-ga-portal-upload-form small { grid-column:auto; }
    .bppt-ga-public-access-actions form,
    .bppt-ga-public-access-actions .bppt-ga-button { width:100%; }
}

body.bppt-ga-public-portal-page .entry-content,
body.bppt-ga-public-portal-page .wp-block-post-content,
body.bppt-ga-public-portal-page main,
body.bppt-ga-public-portal-page .site-main { max-width: none; }


/* Version 0.2.10 — correction de visibilité des boutons publics. */
.bppt-ga-public-wrap .bppt-ga-button,
.bppt-ga-public-wrap a.bppt-ga-button,
.bppt-ga-public-wrap button.bppt-ga-button {
    border-color: #0d5f75 !important;
    background-color: #0d5f75 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: none;
    appearance: none;
}
.bppt-ga-public-wrap .bppt-ga-button:hover,
.bppt-ga-public-wrap .bppt-ga-button:focus {
    border-color: #084657 !important;
    background-color: #084657 !important;
    color: #ffffff !important;
}
.bppt-ga-public-wrap button.bppt-ga-button:disabled {
    border-color: #6f98a4 !important;
    background-color: #6f98a4 !important;
    color: #ffffff !important;
    opacity: .72 !important;
    cursor: wait;
}

/* Version 0.3.0 — espace adhérent connecté */
.bppt-ga-member-login{max-width:560px;margin:30px auto;padding:30px;border:1px solid var(--bppt-ga-border,#d8e2e6);border-radius:18px;background:#fff;box-shadow:0 12px 36px rgba(14,54,68,.09)}
.bppt-ga-member-login h2{margin-top:0}
.bppt-ga-login-links{margin:16px 0 0}
.bppt-ga-member-space-wrap{max-width:1280px}
.bppt-ga-member-space-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.bppt-ga-member-season-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.bppt-ga-member-season-tab{display:flex;flex-direction:column;gap:5px;padding:16px;border:1px solid #d6e1e5;border-radius:13px;background:#f8fbfc;color:#17313b;text-decoration:none;transition:.18s ease}
.bppt-ga-member-season-tab:hover,.bppt-ga-member-season-tab:focus{border-color:#0d6a82;transform:translateY(-1px);box-shadow:0 8px 20px rgba(13,95,117,.11)}
.bppt-ga-member-season-tab.is-active{border-color:#0d5f75;background:#eaf5f8;box-shadow:inset 0 0 0 1px #0d5f75}
.bppt-ga-member-season-tab span{font-size:13px;color:#53666e}
.bppt-ga-member-season-tab em{align-self:flex-start;padding:4px 8px;border-radius:999px;background:#dff3e7;color:#176636;font-size:11px;font-style:normal;font-weight:800}
.bppt-ga-member-detail-grid,.bppt-ga-member-identity-grid,.bppt-ga-member-account-summary,.bppt-ga-member-payment-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bppt-ga-member-detail-grid>div,.bppt-ga-member-identity-grid>div,.bppt-ga-member-account-summary>div,.bppt-ga-member-payment-cards>div{padding:14px;border:1px solid #dce5e8;border-radius:12px;background:#f8fafb}
.bppt-ga-member-detail-grid span,.bppt-ga-member-identity-grid span,.bppt-ga-member-account-summary span,.bppt-ga-member-payment-cards span{display:block;margin-bottom:5px;color:#61747c;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.bppt-ga-member-documents-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bppt-ga-member-document-card{padding:17px;border:1px solid #d9e3e7;border-radius:14px;background:#fff}
.bppt-ga-member-document-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.bppt-ga-member-document-head h3{margin:0;font-size:18px}
.bppt-ga-member-file-meta{color:#5f727b;font-size:13px;word-break:break-word}
.bppt-ga-member-document-upload{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #e3eaed}
.bppt-ga-member-document-upload input[type=file]{max-width:100%}
.bppt-ga-member-payment-cards{margin-bottom:16px}
.bppt-ga-member-account-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.bppt-ga-member-account-create{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.bppt-ga-member-portal-links{margin:16px 0;padding:14px;border-radius:12px;background:#f5f9fa;word-break:break-word}
.bppt-ga-member-portal-links p{margin:6px 0}
.bppt-ga-member-contact-form{margin-top:18px;padding-top:18px;border-top:1px solid #e1e8eb}
.bppt-ga-member-menu-item>a{font-weight:700}

@media (max-width:900px){
  .bppt-ga-member-space-summary,.bppt-ga-member-detail-grid,.bppt-ga-member-identity-grid,.bppt-ga-member-account-summary,.bppt-ga-member-payment-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .bppt-ga-member-space-summary,.bppt-ga-member-detail-grid,.bppt-ga-member-identity-grid,.bppt-ga-member-account-summary,.bppt-ga-member-payment-cards,.bppt-ga-member-documents-grid{grid-template-columns:1fr}
  .bppt-ga-member-space-hero .bppt-ga-topbar-actions{width:100%}
  .bppt-ga-member-space-hero .bppt-ga-topbar-actions .bppt-ga-button{flex:1;text-align:center}
}


/* Version 0.3.1 — relances ciblées et tarification couple */
.bppt-ga-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.bppt-ga-choice-card{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid #ccdce2;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.bppt-ga-choice-card:hover{border-color:#0d5f75;box-shadow:0 7px 18px rgba(13,95,117,.09);transform:translateY(-1px)}
.bppt-ga-choice-card input{margin-top:4px;accent-color:#0d5f75}
.bppt-ga-choice-card span{display:flex;flex-direction:column;gap:4px}
.bppt-ga-choice-card strong{font-size:16px;color:#17343e}
.bppt-ga-choice-card small{color:#5f747d;line-height:1.45}
.bppt-ga-couple-note,.bppt-ga-couple-payment-zone{margin-top:14px;padding:14px 16px;border:1px solid #b9dbe4;border-radius:12px;background:#edf7fa}
.bppt-ga-couple-payment-zone summary{cursor:pointer;font-weight:750;color:#0d5f75}
.bppt-ga-panel:target,.bppt-ga-portal-document:target{scroll-margin-top:24px;animation:bpptGaTargetPulse 2.2s ease}
@keyframes bpptGaTargetPulse{0%,100%{box-shadow:0 0 0 0 rgba(244,166,42,0)}25%{box-shadow:0 0 0 5px rgba(244,166,42,.32)}65%{box-shadow:0 0 0 2px rgba(244,166,42,.12)}}
[hidden]{display:none!important}
@media (max-width:640px){.bppt-ga-choice-grid{grid-template-columns:1fr}}

/* Version 0.3.2 — documents repliables et outils administratifs déplacés. */
.bppt-ga-document-card {
    padding: 0;
    overflow: hidden;
}

.bppt-ga-document-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.bppt-ga-document-summary::-webkit-details-marker {
    display: none;
}

.bppt-ga-document-summary:hover {
    background: rgba(13, 95, 117, .045);
}

.bppt-ga-document-summary:focus-visible {
    outline: 3px solid rgba(13, 95, 117, .25);
    outline-offset: -3px;
}

.bppt-ga-document-summary-main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 10px 12px;
    min-width: 0;
}

.bppt-ga-document-title {
    margin: 0;
    color: #17343d;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.bppt-ga-document-chevron {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-right: 2px solid #49626c;
    border-bottom: 2px solid #49626c;
    transform: rotate(45deg);
    transition: transform .22s ease;
}

.bppt-ga-document-summary-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 14px;
    margin-left: auto;
}

.bppt-ga-document-validate-button {
    min-height: 34px;
    padding: .48rem .72rem;
    white-space: nowrap;
}

.bppt-ga-document-card[open] .bppt-ga-document-chevron {
    transform: rotate(225deg);
}

.bppt-ga-document-card[open] .bppt-ga-document-summary {
    border-bottom: 1px solid #e1eaed;
    background: rgba(255, 255, 255, .55);
}

.bppt-ga-document-card-body {
    padding: 0 18px 18px;
}

.bppt-ga-document-card-body > .bppt-ga-document-card-head {
    padding-top: 18px;
}

.bppt-ga-document-card.is-targeted {
    animation: bppt-ga-document-target 2.4s ease;
}

@keyframes bppt-ga-document-target {
    0%, 100% { box-shadow: 0 3px 12px rgba(24, 61, 74, 0.04); }
    20%, 70% { box-shadow: 0 0 0 4px rgba(242, 140, 40, .28), 0 8px 24px rgba(24, 61, 74, .12); }
}

.bppt-ga-list-section + .bppt-ga-pagination + .bppt-ga-tools-section,
.bppt-ga-list-section + .bppt-ga-tools-section {
    margin-top: 1.4rem;
}

@media (max-width: 680px) {
    .bppt-ga-document-summary {
        align-items: flex-start;
        min-height: 58px;
        padding: 14px 15px;
    }

    .bppt-ga-document-summary-main {
        gap: 8px;
    }

    .bppt-ga-document-summary-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .bppt-ga-document-validate-button {
        flex: 1 1 auto;
    }

    .bppt-ga-document-card-body {
        padding-right: 15px;
        padding-left: 15px;
    }
}


/* Version 0.3.3 — activation du compte et identifiant choisi */
.bppt-ga-member-activation{max-width:620px}
.bppt-ga-activation-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.bppt-ga-activation-summary>div{padding:14px;border:1px solid #dce5e8;border-radius:12px;background:#f8fafb}
.bppt-ga-activation-summary span{display:block;margin-bottom:5px;color:#61747c;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.bppt-ga-activation-form{display:grid;gap:16px}
.bppt-ga-activation-form .bppt-ga-field{gap:6px}
.bppt-ga-password-toggle{display:flex!important;align-items:center;gap:8px;margin:0 0 4px!important;font-weight:650!important}
.bppt-ga-password-toggle input{width:auto!important;min-height:auto!important}
.bppt-ga-activation-expiry{margin-top:18px;text-align:center}
.bppt-ga-member-account-create small{display:block;max-width:700px;color:#60717a;line-height:1.5}
@media(max-width:640px){
  .bppt-ga-activation-summary{grid-template-columns:1fr}
  .bppt-ga-member-account-create,.bppt-ga-member-account-create form,.bppt-ga-member-account-create .bppt-ga-button{width:100%}
}

/* Version 0.3.4 — résumé, filtres, actions groupées et historiques repliables. */
.bppt-ga-summary-section { margin-bottom: 1.5rem; padding: 1.2rem; border: 1px solid var(--bppt-border); border-radius: 16px; background: linear-gradient(135deg, #fff, #f7fbfc); box-shadow: var(--bppt-shadow); }
.bppt-ga-summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.bppt-ga-summary-heading h2 { margin: 0; color: var(--bppt-primary-dark); }
.bppt-ga-summary-heading p:not(.bppt-ga-eyebrow) { margin: .35rem 0 0; color: var(--bppt-muted); }
.bppt-ga-summary-section .bppt-ga-cards { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); margin-bottom: 0; }
.bppt-ga-card { color: inherit; text-decoration: none !important; }
.bppt-ga-card:hover { border-color: #b9d2d9; background: #fbfeff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,50,62,.11); }
.bppt-ga-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bppt-ga-field-wide { grid-column: span 2; }
.bppt-ga-bulk-form { margin: 0; }
.bppt-ga-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--bppt-border); background: #f7fafb; }
.bppt-ga-bulk-selection { display: flex; flex-direction: column; gap: .12rem; }
.bppt-ga-bulk-selection small { color: var(--bppt-muted); }
.bppt-ga-bulk-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .55rem; }
.bppt-ga-bulk-controls select { min-height: 38px; min-width: 190px; padding: .48rem .65rem; border: 1px solid #b9c6cc; border-radius: 8px; background: #fff; }
.bppt-ga-select-column, .bppt-ga-select-cell { width: 46px; text-align: center !important; }
.bppt-ga-select-column input, .bppt-ga-select-cell input { width: 18px; height: 18px; accent-color: var(--bppt-primary); }
.bppt-ga-history-panel { padding: 0; overflow: hidden; }
.bppt-ga-history-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; cursor: pointer; list-style: none; background: linear-gradient(180deg, #fff, #fbfdfe); }
.bppt-ga-history-summary::-webkit-details-marker { display: none; }
.bppt-ga-history-summary > span:first-child { display: flex; flex-direction: column; gap: .28rem; }
.bppt-ga-history-summary strong { color: var(--bppt-primary-dark); font-size: 1.35rem; }
.bppt-ga-history-summary small { color: var(--bppt-muted); }
.bppt-ga-history-summary-meta { display: inline-flex; align-items: center; gap: .75rem; }
.bppt-ga-history-chevron { width: 12px; height: 12px; border-right: 2px solid var(--bppt-primary); border-bottom: 2px solid var(--bppt-primary); transform: rotate(45deg); transition: transform .18s ease; }
.bppt-ga-history-panel[open] .bppt-ga-history-chevron { transform: rotate(225deg); }
.bppt-ga-history-panel[open] .bppt-ga-history-summary { border-bottom: 1px solid var(--bppt-border); }
.bppt-ga-history-body { padding: 1.2rem 1.3rem; }
.bppt-ga-public-success-note { max-width: 760px; margin: 1rem auto !important; padding: .9rem 1rem; border: 1px solid #b9dbe4; border-radius: 11px; background: #edf7fa; color: #244b58; }
.bppt-ga-public-success-note-warning { border-color: #efcf98; background: #fff6e6; color: #714600; }
.bppt-ga-member-password-reset .bppt-ga-activation-form { display: grid; gap: 1rem; }

@media (max-width: 900px) {
    .bppt-ga-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bppt-ga-bulk-toolbar, .bppt-ga-summary-heading { flex-direction: column; align-items: stretch; }
    .bppt-ga-bulk-controls { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .bppt-ga-filters { grid-template-columns: 1fr; }
    .bppt-ga-field-wide { grid-column: auto; }
    .bppt-ga-bulk-controls, .bppt-ga-bulk-controls select, .bppt-ga-bulk-controls .bppt-ga-button { width: 100%; }
    .bppt-ga-select-cell { display: flex !important; grid-template-columns: 1fr !important; justify-content: flex-end; }
    .bppt-ga-history-summary { align-items: flex-start; }
    .bppt-ga-history-summary-meta { flex-shrink: 0; }
}


/* Version 0.3.5 — validations rapides et réinitialisation des accès. */
.bppt-ga-external-action-form { display: none !important; }
.bppt-ga-document-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .65rem; }
.bppt-ga-row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-width: 145px; }
.bppt-ga-row-actions .bppt-ga-button { width: 100%; white-space: nowrap; }
.bppt-ga-row-actions .bppt-ga-badge { justify-content: center; width: 100%; box-sizing: border-box; }
@media (max-width: 720px) {
    .bppt-ga-document-heading-actions { width: 100%; justify-content: flex-start; }
    .bppt-ga-document-heading-actions .bppt-ga-button { width: 100%; }
    .bppt-ga-row-actions { width: 100%; }
}


/* Version 0.3.6 — retour visuel après une action rapide */
.bppt-ga-members-table tr.bppt-ga-row-highlight > td {
    background: #eef9f5;
    animation: bppt-ga-row-highlight 2.8s ease-out both;
}
.bppt-ga-members-table tr.bppt-ga-row-highlight > td:first-child {
    box-shadow: inset 4px 0 0 #16835d;
}
@keyframes bppt-ga-row-highlight {
    0%, 55% { background: #dff5ec; }
    100% { background: #eef9f5; }
}
@media (prefers-reduced-motion: reduce) {
    .bppt-ga-members-table tr.bppt-ga-row-highlight > td { animation: none; }
}

/* Version 0.3.7 — résumé regroupé et aide contextuelle. */
.bppt-ga-summary-groups { display: grid; gap: 1rem; }
.bppt-ga-summary-group { padding: 1rem; border: 1px solid var(--bppt-border); border-radius: 14px; background: rgba(255,255,255,.76); }
.bppt-ga-summary-group-heading { margin-bottom: .85rem; }
.bppt-ga-summary-group-heading h3 { margin: 0; color: var(--bppt-primary-dark); font-size: 1.05rem; }
.bppt-ga-summary-group-heading p { margin: .25rem 0 0; color: var(--bppt-muted); font-size: .86rem; }
.bppt-ga-summary-group .bppt-ga-cards { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .8rem; }
.bppt-ga-summary-group .bppt-ga-cards-compact { grid-template-columns: minmax(190px, 320px); }
.bppt-ga-card-shell { position: relative; min-width: 0; }
.bppt-ga-card-shell .bppt-ga-card { display: block; height: 100%; padding-right: 3rem; }
.bppt-ga-card-shell > .bppt-ga-help-tip-wrap { position: absolute; top: .72rem; right: .72rem; z-index: 4; }
.bppt-ga-card-meta { display: block; margin-top: .5rem; color: var(--bppt-muted); font-size: .75rem; line-height: 1.3; }

.bppt-ga-heading-with-help,
.bppt-ga-label-row,
.bppt-ga-table-heading-help,
.bppt-ga-action-with-help { display: inline-flex; align-items: center; gap: .45rem; }
.bppt-ga-heading-with-help { flex-wrap: wrap; }
.bppt-ga-heading-with-help h2,
.bppt-ga-heading-with-help h3,
.bppt-ga-heading-with-help strong { margin-top: 0; margin-bottom: 0; }
.bppt-ga-label-row { justify-content: flex-start; width: fit-content; max-width: 100%; }
.bppt-ga-action-with-help { align-items: center; max-width: 100%; }
.bppt-ga-control-label { display: inline-flex; align-items: center; gap: .4rem; color: var(--bppt-muted); font-size: .78rem; font-weight: 750; }
.bppt-ga-danger-zone { position: relative; }
.bppt-ga-danger-zone-help { position: absolute; top: .75rem; right: .75rem; z-index: 2; }

.bppt-ga-help-tip-wrap { position: relative; display: inline-flex; flex: 0 0 auto; vertical-align: middle; }
.bppt-ga-help-tip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid #9fb7c0; border-radius: 50%; background: #f4f9fb; color: var(--bppt-primary); font: inherit; font-size: .76rem; font-weight: 900; line-height: 1; cursor: help; box-shadow: none; }
.bppt-ga-help-tip:hover,
.bppt-ga-help-tip:focus-visible,
.bppt-ga-help-tip-wrap.is-open .bppt-ga-help-tip { border-color: var(--bppt-primary); background: #e4f3f7; color: var(--bppt-primary-dark); }
.bppt-ga-help-tooltip { position: absolute; z-index: 1000; left: 50%; bottom: calc(100% + 9px); width: min(310px, calc(100vw - 32px)); padding: .7rem .78rem; border: 1px solid #b8ccd3; border-radius: 9px; background: #153f4e; color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.2); font-size: .78rem; font-weight: 500; line-height: 1.42; text-align: left; text-transform: none; letter-spacing: normal; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .15s ease, visibility .15s ease, transform .15s ease; }
.bppt-ga-help-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; border: 6px solid transparent; border-top-color: #153f4e; transform: translateX(-50%); }
.bppt-ga-help-tip-wrap:hover .bppt-ga-help-tooltip,
.bppt-ga-help-tip:focus + .bppt-ga-help-tooltip,
.bppt-ga-help-tip-wrap.is-open .bppt-ga-help-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 720px) {
    .bppt-ga-summary-group { padding: .85rem; }
    .bppt-ga-summary-group .bppt-ga-cards,
    .bppt-ga-summary-group .bppt-ga-cards-compact { grid-template-columns: 1fr; }
    .bppt-ga-help-tip-wrap.is-open .bppt-ga-help-tooltip,
    .bppt-ga-help-tip:focus + .bppt-ga-help-tooltip { position: fixed; right: 1rem; bottom: 1rem; left: 1rem; width: auto; transform: none; }
    .bppt-ga-help-tip-wrap.is-open .bppt-ga-help-tooltip::after,
    .bppt-ga-help-tip:focus + .bppt-ga-help-tooltip::after { display: none; }
    .bppt-ga-action-with-help { width: 100%; }
    .bppt-ga-action-with-help .bppt-ga-button { flex: 1 1 auto; }
    .bppt-ga-danger-zone-help { position: static; display: flex; justify-content: flex-end; margin-bottom: .5rem; }
}

/* Version 0.3.7.1 — vue rapide et groupes détaillés repliables. */
.bppt-ga-summary-section-compact { padding-bottom: 1rem; }
.bppt-ga-summary-quick-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: .25rem 0 .8rem; }
.bppt-ga-summary-quick-heading h3 { margin: 0; color: var(--bppt-primary-dark); font-size: 1.08rem; }
.bppt-ga-summary-quick-heading p { margin: .2rem 0 0; color: var(--bppt-muted); font-size: .84rem; }
.bppt-ga-summary-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.bppt-ga-summary-controls .bppt-ga-button { min-height: 34px; }
.bppt-ga-quick-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.bppt-ga-quick-card-shell { min-height: 92px; }
.bppt-ga-quick-card-shell .bppt-ga-quick-card { display: flex; height: 100%; min-height: 92px; flex-direction: column; justify-content: center; padding: .85rem 2.65rem .85rem 1rem; border-radius: 13px; }
.bppt-ga-quick-card span { font-size: .79rem; line-height: 1.3; }
.bppt-ga-quick-card strong { margin-top: .18rem; font-size: 1.62rem; line-height: 1; }
.bppt-ga-quick-card-shell > .bppt-ga-help-tip-wrap { top: .55rem; right: .55rem; }
.bppt-ga-summary-accordions { gap: .65rem; }
.bppt-ga-summary-accordion { padding: 0; overflow: visible; background: #fff; }
.bppt-ga-summary-group-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .82rem 1rem; cursor: pointer; list-style: none; border-radius: 13px; background: linear-gradient(180deg, #fff, #f8fbfc); }
.bppt-ga-summary-group-summary::-webkit-details-marker { display: none; }
.bppt-ga-summary-group-summary:hover { background: #f1f8fa; }
.bppt-ga-summary-group-summary:focus-visible { outline: 3px solid rgba(22,139,193,.28); outline-offset: -3px; }
.bppt-ga-summary-group-summary-main { display: flex; min-width: 0; flex-direction: column; gap: .22rem; }
.bppt-ga-summary-group-summary-main strong { color: var(--bppt-primary-dark); font-size: 1rem; line-height: 1.25; }
.bppt-ga-summary-group-summary-main small { color: var(--bppt-muted); font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.bppt-ga-summary-group-chevron { flex: 0 0 auto; width: 11px; height: 11px; margin-right: .2rem; border-right: 2px solid var(--bppt-primary); border-bottom: 2px solid var(--bppt-primary); transform: rotate(45deg); transition: transform .18s ease; }
.bppt-ga-summary-accordion[open] .bppt-ga-summary-group-chevron { transform: rotate(225deg); }
.bppt-ga-summary-accordion[open] .bppt-ga-summary-group-summary { border-bottom: 1px solid var(--bppt-border); border-radius: 13px 13px 0 0; }
.bppt-ga-summary-group-body { padding: .85rem 1rem 1rem; }
.bppt-ga-summary-group-description { margin: 0 0 .75rem; color: var(--bppt-muted); font-size: .84rem; }

@media (max-width: 1050px) {
    .bppt-ga-quick-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bppt-ga-summary-quick-heading { align-items: stretch; flex-direction: column; }
    .bppt-ga-summary-controls { justify-content: flex-start; }
    .bppt-ga-summary-controls .bppt-ga-button { flex: 1 1 auto; }
    .bppt-ga-quick-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bppt-ga-quick-card-shell:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .bppt-ga-summary-group-summary { align-items: flex-start; padding: .78rem .85rem; }
    .bppt-ga-summary-group-body { padding: .75rem .85rem .85rem; }
}
@media (max-width: 380px) {
    .bppt-ga-quick-cards { grid-template-columns: 1fr; }
    .bppt-ga-quick-card-shell:last-child:nth-child(odd) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .bppt-ga-summary-group-chevron { transition: none; }
}



/* Version 0.3.8 — import CSV des adhérents. */
.bppt-ga-import-card { grid-column: 1 / -1; }
.bppt-ga-import-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: .9rem 1rem; margin-top: 1rem; }
.bppt-ga-import-form label { display: grid; gap: .4rem; font-weight: 700; color: #17343d; }
.bppt-ga-import-form input[type="file"], .bppt-ga-import-form select { width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid #b9cbd1; border-radius: 9px; background: #fff; }
.bppt-ga-import-form .bppt-ga-help-text { grid-column: 1 / -1; margin: 0; font-size: .87rem; }
.bppt-ga-import-form > .bppt-ga-button { justify-self: start; }
.bppt-ga-import-preview, .bppt-ga-import-result { margin-top: 1rem; padding: 1rem; border: 1px solid #cfe0e5; border-radius: 12px; background: #f8fcfd; }
.bppt-ga-import-preview h4 { margin: 0 0 .45rem; font-size: 1.1rem; }
.bppt-ga-import-preview p, .bppt-ga-import-result p { margin: .35rem 0; }
.bppt-ga-import-warning { color: #82570b; }
.bppt-ga-import-preview-table-wrap { overflow-x: auto; margin-top: .8rem; border: 1px solid #d7e2e6; border-radius: 10px; background: #fff; }
.bppt-ga-import-preview-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .85rem; }
.bppt-ga-import-preview-table th, .bppt-ga-import-preview-table td { padding: .65rem .7rem; border-bottom: 1px solid #e3eaed; text-align: left; vertical-align: top; }
.bppt-ga-import-preview-table th { background: #eef6f8; color: #164d5c; }
.bppt-ga-import-row-error { background: #fff1f1; }
.bppt-ga-import-row-skip { background: #fff9e9; }
.bppt-ga-import-confirm-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1rem; }
.bppt-ga-import-result details { margin-top: .65rem; }
.bppt-ga-import-result ul { max-height: 220px; overflow: auto; margin-bottom: 0; }
@media (max-width: 700px) {
    .bppt-ga-import-form { grid-template-columns: 1fr; }
    .bppt-ga-import-form .bppt-ga-help-text { grid-column: auto; }
    .bppt-ga-import-form > .bppt-ga-button { width: 100%; }
}


/* Version 0.3.8.1 — actions rapides accessibles et affichage couple compact. */
.bppt-ga-payment-cell { min-width: 0; max-width: 190px; }
.bppt-ga-couple-note-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: .42rem;
    padding: .42rem .52rem;
    border: 1px solid #b9dbe4;
    border-radius: 9px;
    background: #edf7fa;
    color: #31545f;
    font-size: .74rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: normal;
}
.bppt-ga-couple-note-list span,
.bppt-ga-couple-note-list a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.bppt-ga-couple-note-list a { color: var(--bppt-primary); font-weight: 700; }
@media (max-width: 720px) {
    .bppt-ga-payment-cell { max-width: none; }
    .bppt-ga-couple-note-list { width: auto; }
}

/* Version 0.3.9 — sauvegarde et restauration ZIP. */
.bppt-ga-backup-card { grid-column: 1 / -1; }
.bppt-ga-backup-warning {
    margin: .9rem 0;
    padding: .85rem 1rem;
    border: 1px solid #e2c36e;
    border-left: 4px solid #c98908;
    border-radius: 10px;
    background: #fff9e8;
    color: #6f4b05;
    line-height: 1.5;
}
.bppt-ga-backup-download-form { margin: .9rem 0 0; }
.bppt-ga-restore-upload-form,
.bppt-ga-restore-confirm-form {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}
.bppt-ga-restore-upload-form label,
.bppt-ga-restore-confirm-form label {
    display: grid;
    gap: .4rem;
    font-weight: 700;
    color: #17343d;
}
.bppt-ga-restore-upload-form input[type="file"],
.bppt-ga-restore-confirm-form select {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #b9cbd1;
    border-radius: 9px;
    background: #fff;
}
.bppt-ga-restore-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin: .85rem 0;
}
.bppt-ga-restore-summary > div {
    padding: .7rem .75rem;
    border: 1px solid #d8e5e9;
    border-radius: 9px;
    background: #fff;
}
.bppt-ga-restore-summary dt {
    margin: 0 0 .2rem;
    color: #526b73;
    font-size: .75rem;
    font-weight: 700;
}
.bppt-ga-restore-summary dd {
    margin: 0;
    color: #153f4b;
    font-size: .95rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.bppt-ga-restore-confirm-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: .55rem !important;
    padding: .75rem;
    border: 1px solid #efcaca;
    border-radius: 9px;
    background: #fff5f5;
    color: #743030 !important;
    font-weight: 700;
}
.bppt-ga-restore-confirm-check input { margin-top: .15rem; }
.bppt-ga-restore-cancel-form { margin-top: .65rem; }
.bppt-ga-restore-preview .bppt-ga-import-warning ul { margin-bottom: 0; }
@media (max-width: 900px) {
    .bppt-ga-restore-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .bppt-ga-restore-summary { grid-template-columns: 1fr; }
    .bppt-ga-backup-download-form .bppt-ga-button,
    .bppt-ga-restore-upload-form .bppt-ga-button,
    .bppt-ga-restore-confirm-form .bppt-ga-button,
    .bppt-ga-restore-cancel-form .bppt-ga-button { width: 100%; }
}

/* Version 0.3.9.1 — résultat positif de restauration mieux identifié. */
.bppt-ga-restore-success {
    border-color: #add9bb;
    border-left: 4px solid #2f9257;
    background: #f0faf4;
    color: #245f3b;
    box-shadow: 0 4px 14px rgba(47, 146, 87, .08);
}
.bppt-ga-restore-success-heading {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #1f6b3e;
}
.bppt-ga-restore-success-icon {
    display: inline-flex;
    width: 1.45rem;
    height: 1.45rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d8f1e1;
    color: #247a45;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1;
}
.bppt-ga-restore-success p {
    color: #416e51;
}
.bppt-ga-restore-success details {
    color: #526b5b;
}



/* Version 0.4.0 — autorisations individuelles regroupées par domaine. */
.bppt-ga-permission-groups {
    display: grid;
    gap: 1rem;
}
.bppt-ga-permission-group {
    padding: 1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 13px;
    background: #fff;
}
.bppt-ga-permission-group-heading {
    margin-bottom: .8rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #dce7ea;
}
.bppt-ga-permission-group-heading h4 {
    margin: 0 0 .2rem;
    color: var(--bppt-primary-dark);
    font-size: 1rem;
}
.bppt-ga-permission-group-heading p {
    margin: 0;
    color: var(--bppt-muted);
    font-size: .84rem;
}
.bppt-ga-permission-group .bppt-ga-permission-checkboxes {
    margin-bottom: 0;
}
.bppt-ga-permission-groups.is-read-only .bppt-ga-permission-group {
    background: #f8fbfc;
}

/* Version 0.4.4 — vue rapide personnalisable, repères publics et panneaux mémorisés. */
.bppt-ga-quick-customizer {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #bcd3da;
    border-left: 4px solid var(--bppt-primary);
    border-radius: 13px;
    background: #f7fbfc;
}
.bppt-ga-quick-customizer[hidden] { display: none !important; }
.bppt-ga-quick-customizer-heading,
.bppt-ga-quick-customizer-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.bppt-ga-quick-customizer-heading h3,
.bppt-ga-quick-customizer h4,
.bppt-ga-quick-customizer h5 { margin: 0; color: var(--bppt-primary-dark); }
.bppt-ga-quick-customizer-heading p { margin: .3rem 0 0; color: var(--bppt-muted); }
.bppt-ga-quick-customizer-heading > strong {
    flex: 0 0 auto;
    padding: .42rem .65rem;
    border-radius: 999px;
    background: #e5f2f6;
    color: #175a70;
    font-size: .82rem;
}
.bppt-ga-quick-customizer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 1rem;
    margin-top: 1rem;
}
.bppt-ga-quick-selected,
.bppt-ga-quick-available {
    min-height: 140px;
    margin: .55rem 0 0;
    padding: .65rem;
    border: 1px dashed #b8ccd3;
    border-radius: 11px;
    background: #fff;
}
.bppt-ga-quick-selected { display: grid; gap: .45rem; list-style-position: inside; }
.bppt-ga-quick-selected.is-drop-target,
.bppt-ga-quick-available.is-drop-target { border-color: var(--bppt-primary); background: #eef8fb; }
.bppt-ga-quick-available { display: grid; gap: .8rem; }
.bppt-ga-quick-available-group { display: grid; gap: .42rem; }
.bppt-ga-quick-available-group h5 {
    padding-bottom: .28rem;
    border-bottom: 1px solid #e1eaed;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.bppt-ga-quick-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    padding: .58rem .65rem;
    border: 1px solid #d7e3e7;
    border-radius: 9px;
    background: #fff;
    color: #17343d;
}
.bppt-ga-quick-choice.is-available { grid-template-columns: minmax(0, 1fr) auto; }
.bppt-ga-quick-choice.is-chosen { background: #f2f6f7; opacity: .66; }
.bppt-ga-quick-choice.is-dragging { opacity: .45; }
.bppt-ga-quick-choice strong,
.bppt-ga-quick-choice small { display: block; }
.bppt-ga-quick-choice small { margin-top: .12rem; color: var(--bppt-muted); font-size: .74rem; }
.bppt-ga-quick-drag { color: #67818a; font-weight: 900; cursor: grab; letter-spacing: -3px; }
.bppt-ga-quick-choice-actions { display: inline-flex; gap: .25rem; }
.bppt-ga-quick-icon-button {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid #b8cbd1;
    border-radius: 7px;
    background: #fff;
    color: var(--bppt-primary-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
.bppt-ga-quick-icon-button:hover:not(:disabled) { border-color: var(--bppt-primary); background: #edf7fa; }
.bppt-ga-quick-icon-button.is-remove { color: #9a2727; }
.bppt-ga-quick-icon-button:disabled,
.bppt-ga-quick-choice button:disabled { cursor: not-allowed; opacity: .45; }
.bppt-ga-quick-customizer-actions {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.bppt-ga-quick-save-status { color: var(--bppt-muted); font-weight: 700; }
.bppt-ga-quick-save-status.is-success { color: #22613a; }
.bppt-ga-quick-save-status.is-error { color: #972b2b; }
.bppt-ga-card-meta { display: block; margin-top: .24rem; color: #5e737b; font-size: .7rem; font-weight: 700; }

.bppt-ga-dashboard-panel {
    margin: 1.4rem 0;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--bppt-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bppt-shadow);
}
.bppt-ga-dashboard-panel-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    list-style: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f7fbfc);
}
.bppt-ga-dashboard-panel-summary::-webkit-details-marker { display: none; }
.bppt-ga-dashboard-panel-summary > span:first-child { display: flex; min-width: 0; flex-direction: column; gap: .2rem; }
.bppt-ga-dashboard-panel-summary strong { color: var(--bppt-primary-dark); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 400; line-height: 1.08; }
.bppt-ga-dashboard-panel-summary small { color: var(--bppt-muted); font-size: .9rem; line-height: 1.4; }
.bppt-ga-dashboard-panel-summary-side { display: inline-flex; align-items: center; gap: .85rem; flex: 0 0 auto; }
.bppt-ga-dashboard-panel-chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--bppt-primary);
    border-bottom: 2px solid var(--bppt-primary);
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.bppt-ga-dashboard-panel[open] .bppt-ga-dashboard-panel-chevron { transform: rotate(225deg); }
.bppt-ga-dashboard-panel[open] > .bppt-ga-dashboard-panel-summary { border-bottom: 1px solid var(--bppt-border); border-radius: 16px 16px 0 0; }
.bppt-ga-dashboard-panel-body { padding: 1.15rem 1.25rem 1.25rem; }
.bppt-ga-dashboard-panel .bppt-ga-filters-inner {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.bppt-ga-dashboard-panel.bppt-ga-tools-section { margin: 1.4rem 0; padding: 0; }
.bppt-ga-tools-panel-body .bppt-ga-tools-grid { margin: 0; }

.bppt-ga-public-visibility-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid #bdd4dc;
    border-left: 4px solid var(--bppt-primary);
    border-radius: 12px;
    background: #f5fafc;
}
.bppt-ga-public-visibility-legend strong { color: var(--bppt-primary-dark); }
.bppt-ga-public-visibility-legend p { margin: .25rem 0 0; color: var(--bppt-muted); font-size: .86rem; }
.bppt-ga-public-visibility-legend-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.bppt-ga-public-visibility-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: .24rem .55rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.25;
    vertical-align: middle;
}
.bppt-ga-public-visibility-visible { border-color: #9bc9d7; background: #e8f5f9; color: #15566a; }
.bppt-ga-public-visibility-editable { border-color: #9bcfae; background: #ebf8ef; color: #25613b; }
.bppt-ga-public-visibility-badge.is-compact { min-height: 20px; padding: .16rem .42rem; font-size: .65rem; }
.bppt-ga-label-row label .bppt-ga-public-visibility-badge,
.bppt-ga-field > label .bppt-ga-public-visibility-badge { margin-left: .35rem; }
.bppt-ga-public-visibility-section-note {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    margin-top: .7rem;
    color: var(--bppt-muted);
    font-size: .82rem;
}

@media (max-width: 900px) {
    .bppt-ga-quick-customizer-grid { grid-template-columns: 1fr; }
    .bppt-ga-public-visibility-legend { align-items: flex-start; flex-direction: column; }
    .bppt-ga-public-visibility-legend-badges { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .bppt-ga-dashboard-panel-summary { padding: 1rem; }
    .bppt-ga-dashboard-panel-summary-side .bppt-ga-season-chip { display: none; }
    .bppt-ga-dashboard-panel-body { padding: 1rem; }
    .bppt-ga-quick-customizer-heading { align-items: stretch; flex-direction: column; }
    .bppt-ga-quick-customizer-heading > strong { align-self: flex-start; }
    .bppt-ga-quick-choice { grid-template-columns: auto minmax(0, 1fr); }
    .bppt-ga-quick-choice-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .bppt-ga-quick-customizer-actions .bppt-ga-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .bppt-ga-dashboard-panel-chevron { transition: none; }
}

/* Version 0.4.5 — rapports imprimables, outils séparés et vue rapide fiabilisée. */
.bppt-ga-admin-tools-grid {
    grid-template-columns: 1fr;
}
.bppt-ga-data-tools-section { margin-top: 1.4rem; }

.bppt-ga-tool-card-full { grid-column: 1 / -1; }
.bppt-ga-print-tools-card h4 {
    margin: 0 0 .35rem;
    color: var(--bppt-primary-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 400;
}
.bppt-ga-report-divider {
    height: 1px;
    margin: 1.15rem 0;
    background: #d9e5e8;
}
.bppt-ga-report-builder {
    margin-top: 1rem;
    border: 1px solid #c9d9de;
    border-radius: 11px;
    background: #f8fbfc;
}
.bppt-ga-report-builder > summary {
    padding: .8rem .9rem;
    cursor: pointer;
    color: var(--bppt-primary-dark);
    font-weight: 800;
}
.bppt-ga-report-builder[open] > summary {
    border-bottom: 1px solid #d8e4e8;
}
.bppt-ga-report-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}
.bppt-ga-report-form fieldset {
    min-width: 0;
    margin: 0;
    padding: .8rem;
    border: 1px solid #d5e1e5;
    border-radius: 10px;
    background: #fff;
}
.bppt-ga-report-form legend {
    padding: 0 .35rem;
    color: var(--bppt-primary-dark);
    font-weight: 800;
}
.bppt-ga-report-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem .8rem;
}
.bppt-ga-report-seasons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bppt-ga-report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bppt-ga-report-options label {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    padding: .4rem .45rem;
    border-radius: 8px;
    color: #24414b;
    font-size: .82rem;
    line-height: 1.35;
}
.bppt-ga-report-options label:hover { background: #edf6f8; }
.bppt-ga-report-options input { margin-top: .16rem; }
.bppt-ga-print-tools-card .bppt-ga-tool-actions,
.bppt-ga-report-card .bppt-ga-tool-actions { align-items: flex-start; }
@media (max-width: 980px) {
    .bppt-ga-admin-tools-grid { grid-template-columns: 1fr; }
    .bppt-ga-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .bppt-ga-report-options,
    .bppt-ga-report-seasons,
    .bppt-ga-report-metrics { grid-template-columns: 1fr; }
    .bppt-ga-report-form > .bppt-ga-button { width: 100%; }
}

/* v0.4.6 — organisation des tarifs et types d’adhésion */
.bppt-ga-season-settings-groups {
    display: grid;
    gap: 1rem;
    width: 100%;
}
.bppt-ga-season-setting-group {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #d5e1e5;
    border-radius: 12px;
    background: #f9fbfc;
}
.bppt-ga-season-setting-group legend {
    padding: 0 .45rem;
    color: var(--bppt-primary-dark);
    font-weight: 800;
}
.bppt-ga-season-setting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1rem;
    align-items: end;
}
.bppt-ga-season-setting-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bppt-ga-season-weekly-price { max-width: 360px; margin-top: .8rem; }
.bppt-ga-toggle-line-compact { margin: 0 0 .8rem; padding: .7rem .8rem; }
.bppt-ga-season-dates-grid { margin-bottom: 1rem; }
.bppt-ga-membership-type-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.bppt-ga-membership-type-setting {
    padding: 1rem;
    border: 1px solid #d5e1e5;
    border-radius: 12px;
    background: #f9fbfc;
}
.bppt-ga-membership-type-setting[hidden] {
    display: none !important;
}
.bppt-ga-membership-type-setting.is-required { border-left: 4px solid var(--bppt-primary); }
.bppt-ga-membership-type-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem .9rem;
    align-items: center;
}
.bppt-ga-membership-type-actions small {
    color: var(--bppt-muted);
}
.bppt-ga-membership-type-retire {
    margin-top: .8rem;
}
#bppt-ga-members-list:focus { outline: 3px solid rgba(13,95,117,.22); outline-offset: 4px; }
@media (max-width: 820px) {
    .bppt-ga-season-setting-grid,
    .bppt-ga-season-setting-grid-3,
    .bppt-ga-membership-type-settings-grid { grid-template-columns: 1fr; }
}

/* v0.4.7.0 — cotisations lisibles, saisons compactes et choix d’adhésion adaptatifs */
.bppt-ga-status-column,
.bppt-ga-status-cell {
    min-width: 132px;
    width: 132px;
}
.bppt-ga-status-cell .bppt-ga-badge {
    white-space: nowrap;
    padding-inline: .52rem;
    font-size: .76rem;
}

.bppt-ga-payment-cell {
    min-width: 155px;
    max-width: 205px;
}
.bppt-ga-payment-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .38rem;
    min-width: 0;
}
.bppt-ga-payment-detail {
    display: block;
    width: 100%;
    min-width: 0;
    padding: .42rem .55rem;
    border: 1px solid #add5e2;
    border-radius: 9px;
    background: #edf8fb;
    color: #31545f;
    font-size: .74rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
.bppt-ga-payment-type {
    border-color: #91c8da;
    background: #e8f5f9;
    color: #15566a;
    font-weight: 800;
}
.bppt-ga-payment-amount { background: #f2f9fb; }
.bppt-ga-payment-meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    width: 100%;
    color: var(--bppt-muted);
    font-size: .72rem;
    line-height: 1.3;
}
.bppt-ga-payment-meta:empty { display: none; }
.bppt-ga-payment-meta a { color: var(--bppt-primary); font-weight: 750; }

.bppt-ga-public-visibility-manager {
    position: relative;
    overflow: hidden;
    border-color: #d6ad43;
    background: linear-gradient(135deg, #fff8d8 0%, #f4d77c 48%, #fff2b7 100%);
    color: #684900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 2px 7px rgba(145,102,0,.12);
}
.bppt-ga-public-visibility-manager::after {
    content: "";
    position: absolute;
    inset: -70% auto -70% -35%;
    width: 28%;
    transform: rotate(18deg);
    background: rgba(255,255,255,.52);
    pointer-events: none;
}

.bppt-ga-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.bppt-ga-choice-grid.is-odd > .bppt-ga-choice-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
}
.bppt-ga-choice-count-1 > .bppt-ga-choice-card:last-child {
    width: min(100%, 360px);
}
.bppt-ga-choice-card {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 118px;
    padding: 17px 18px;
    border: 1px solid #c8dbe2;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.bppt-ga-choice-card:hover {
    border-color: #6cabbc;
    box-shadow: 0 8px 20px rgba(13,95,117,.1);
    transform: translateY(-1px);
}
.bppt-ga-choice-card.is-selected {
    border-color: var(--bppt-primary);
    background: linear-gradient(180deg, #f7fcfd, #edf8fb);
    box-shadow: 0 0 0 3px rgba(13,95,117,.1), 0 9px 22px rgba(13,95,117,.12);
}
.bppt-ga-choice-card > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.bppt-ga-choice-card:focus-within {
    outline: 3px solid rgba(13,95,117,.22);
    outline-offset: 3px;
}
.bppt-ga-choice-radio {
    position: relative;
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0;
    border: 2px solid #79939d;
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bppt-ga-choice-radio::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bppt-primary);
    opacity: 0;
    transform: scale(.25);
    transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}
.bppt-ga-choice-card.is-selected .bppt-ga-choice-radio {
    border-color: var(--bppt-primary);
    box-shadow: 0 0 0 4px rgba(13,95,117,.1);
    transform: scale(1.04);
}
.bppt-ga-choice-card > input[type="radio"]:checked + .bppt-ga-choice-radio {
    border-color: var(--bppt-primary);
    box-shadow: 0 0 0 4px rgba(13,95,117,.1);
    transform: scale(1.04);
}
.bppt-ga-choice-card.is-selected .bppt-ga-choice-radio::after {
    opacity: 1;
    transform: scale(1);
}
.bppt-ga-choice-card > input[type="radio"]:checked + .bppt-ga-choice-radio::after {
    opacity: 1;
    transform: scale(1);
}
.bppt-ga-choice-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}
.bppt-ga-choice-content strong {
    color: #17343e;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.bppt-ga-choice-content small {
    color: #5f747d;
    line-height: 1.42;
}

.bppt-ga-choice-grid > .bppt-ga-public-quantity {
    grid-column: 1 / -1;
}

.bppt-ga-public-quantity {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #c8dbe2;
    border-radius: 8px;
    background: #f7fbfc;
}

.bppt-ga-membership-choice.has-quantity-selection .bppt-ga-public-quantity,
.bppt-ga-membership-choice:has(input[name="application_type"][data-bppt-pricing-mode="quantity"]:checked) .bppt-ga-public-quantity {
    display: flex;
}

.bppt-ga-public-quantity[hidden] {
    display: none !important;
}

.bppt-ga-association-profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bppt-ga-association-profile-card {
    align-items: flex-start;
    min-height: 0;
}

.bppt-ga-association-profile-card .bppt-ga-choice-content {
    align-items: flex-start;
    justify-content: flex-start;
    gap: .45rem;
    text-align: left;
}

.bppt-ga-association-profile-card .bppt-ga-association-profile-chip {
    display: inline-flex;
    width: fit-content;
    padding: .18rem .55rem;
    border: 1px solid #c9e2e9;
    border-radius: 999px;
    background: #eff8fa;
    color: #075a70;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.2;
}

.bppt-ga-association-profile-module {
    display: inline-flex;
    width: fit-content;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1.2;
}

.bppt-ga-association-profile-module.is-enabled {
    background: #e6f7ec;
    color: #0f6736;
}

.bppt-ga-association-profile-module.is-disabled {
    background: #fff3df;
    color: #8a4f00;
}

.bppt-ga-association-profile-card .bppt-ga-choice-content em {
    color: #245665;
    font-size: .84rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.bppt-ga-association-profile-list {
    display: grid;
    gap: .28rem;
    width: 100%;
    margin-top: .2rem;
}

.bppt-ga-association-profile-list span {
    display: block;
    padding: .35rem .5rem;
    border: 1px solid #e1eef2;
    border-radius: 8px;
    background: #f8fcfd;
    color: #4f6770;
    font-size: .8rem;
    line-height: 1.35;
}

.bppt-ga-season-card-body {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
.bppt-ga-season-settings-form {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
.bppt-ga-season-settings-groups {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    align-items: start;
}
.bppt-ga-season-setting-main,
.bppt-ga-season-setting-family {
    grid-column: 1 / -1;
}
.bppt-ga-season-setting-main .bppt-ga-season-setting-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.bppt-ga-season-setting-family .bppt-ga-season-setting-grid-3 {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.bppt-ga-season-setting-group legend {
    max-width: calc(100% - 1rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.bppt-ga-season-settings-form > .bppt-ga-button {
    justify-self: end;
    min-width: 190px;
}
.bppt-ga-season-actions {
    padding-top: .15rem;
    border-top: 1px solid #e1e9ec;
}
.bppt-ga-membership-type-setting-extra {
    border-style: dashed;
}

@media (max-width: 980px) {
    .bppt-ga-season-setting-main .bppt-ga-season-setting-grid,
    .bppt-ga-season-setting-family .bppt-ga-season-setting-grid-3 {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}
@media (max-width: 760px) {
    .bppt-ga-status-column,
    .bppt-ga-status-cell { width: auto; min-width: 0; }
    .bppt-ga-payment-cell { max-width: none; }
    .bppt-ga-choice-grid,
    .bppt-ga-season-settings-groups,
    .bppt-ga-season-setting-main .bppt-ga-season-setting-grid,
    .bppt-ga-season-setting-family .bppt-ga-season-setting-grid-3 {
        grid-template-columns: 1fr;
    }
    .bppt-ga-choice-grid.is-odd > .bppt-ga-choice-card:last-child,
    .bppt-ga-choice-count-1 > .bppt-ga-choice-card:last-child {
        grid-column: auto;
        width: 100%;
    }
    .bppt-ga-choice-card { min-height: 104px; }
    .bppt-ga-season-setting-main,
    .bppt-ga-season-setting-family { grid-column: auto; }
    .bppt-ga-season-settings-form > .bppt-ga-button { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    .bppt-ga-choice-card,
    .bppt-ga-choice-radio,
    .bppt-ga-choice-radio::after { transition: none; }
}

/* ==========================================================================
   Module Tournois — v0.5.0.0
   ========================================================================== */
.bppt-ga-tournament-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 7px;
    border: 1px solid var(--bppt-border, #d4e2e8);
    border-radius: 14px;
    background: #f5fafc;
}
.bppt-ga-tournament-subtabs a {
    padding: 10px 14px;
    border-radius: 10px;
    color: #064f63;
    font-weight: 700;
    text-decoration: none;
}
.bppt-ga-tournament-subtabs a:hover,
.bppt-ga-tournament-subtabs a:focus-visible,
.bppt-ga-tournament-subtabs a.is-active {
    color: #fff;
    background: #0b6c82;
}
.bppt-ga-tournament-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bppt-ga-tournament-card-grid,
.bppt-ga-public-tournament-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.bppt-ga-tournament-overview-card,
.bppt-ga-public-tournament-card,
.bppt-ga-rule-source-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border: 1px solid #d2e1e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(6, 64, 79, .06);
}
.bppt-ga-tournament-card-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}
.bppt-ga-tournament-card-head h3,
.bppt-ga-public-tournament-card h3,
.bppt-ga-rule-source-card h3 {
    margin: 0 0 5px;
}
.bppt-ga-tournament-overview-card dl,
.bppt-ga-public-tournament-card dl,
.bppt-ga-tournament-public-summary dl,
.bppt-ga-tournament-tracking-grid,
.bppt-ga-participant-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.bppt-ga-tournament-overview-card dl div,
.bppt-ga-public-tournament-card dl div,
.bppt-ga-tournament-public-summary dl div,
.bppt-ga-tournament-tracking-grid div,
.bppt-ga-participant-details dl div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f9fb;
}
.bppt-ga-tournament-overview-card dt,
.bppt-ga-public-tournament-card dt,
.bppt-ga-tournament-public-summary dt,
.bppt-ga-tournament-tracking-grid dt,
.bppt-ga-participant-details dt {
    color: #56707a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.bppt-ga-tournament-overview-card dd,
.bppt-ga-public-tournament-card dd,
.bppt-ga-tournament-public-summary dd,
.bppt-ga-tournament-tracking-grid dd,
.bppt-ga-participant-details dd {
    margin: 4px 0 0;
    font-weight: 700;
}
.bppt-ga-tournament-form,
.bppt-ga-draw-form,
.bppt-ga-participant-status-form,
.bppt-ga-payment-form {
    margin-top: 14px;
}
.bppt-ga-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bppt-ga-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bppt-ga-field-wide { grid-column: span 2; }
.bppt-ga-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.bppt-ga-details-block,
.bppt-ga-add-draw,
.bppt-ga-tournament-admin-card > .bppt-ga-season-card-body > details {
    margin: 14px 0;
    border: 1px solid #d3e1e6;
    border-radius: 12px;
    background: #fbfdfe;
}
.bppt-ga-details-block > summary,
.bppt-ga-add-draw > summary,
.bppt-ga-tournament-admin-card > .bppt-ga-season-card-body > details > summary {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 800;
}
.bppt-ga-details-block[open] > summary,
.bppt-ga-add-draw[open] > summary,
.bppt-ga-tournament-admin-card > .bppt-ga-season-card-body > details[open] > summary {
    border-bottom: 1px solid #d3e1e6;
}
.bppt-ga-details-block > :not(summary),
.bppt-ga-add-draw > :not(summary),
.bppt-ga-tournament-admin-card > .bppt-ga-season-card-body > details > :not(summary) {
    margin: 16px;
}
.bppt-ga-tournament-draws {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d6e3e8;
}
.bppt-ga-draw-list,
.bppt-ga-participant-list,
.bppt-ga-rule-source-list {
    display: grid;
    gap: 12px;
}
.bppt-ga-draw-card,
.bppt-ga-participant-card {
    border: 1px solid #d3e2e8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.bppt-ga-draw-card.is-inactive { opacity: .82; background: #f7f9fa; }
.bppt-ga-draw-card > summary,
.bppt-ga-participant-card > summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}
.bppt-ga-draw-card > summary::-webkit-details-marker,
.bppt-ga-participant-card > summary::-webkit-details-marker { display: none; }
.bppt-ga-draw-card > summary span:first-child,
.bppt-ga-participant-card > summary span:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bppt-ga-draw-card > summary small,
.bppt-ga-participant-card > summary small { color: #607780; }
.bppt-ga-draw-card[open] > summary,
.bppt-ga-participant-card[open] > summary { border-bottom: 1px solid #d3e2e8; background: #f7fbfc; }
.bppt-ga-draw-card > form,
.bppt-ga-participant-details { padding: 16px; }
.bppt-ga-inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #d5e2e7;
    border-radius: 10px;
}
.bppt-ga-inline-checks legend { padding: 0 7px; font-weight: 800; }
.bppt-ga-tournaments-wrap .bppt-ga-inline-form,
.bppt-ga-tournament-public-wrap .bppt-ga-inline-form { display: inline-flex; margin: 8px 0 0 16px; }
.bppt-ga-filter-bar {
    display: flex;
    gap: 12px;
    align-items: end;
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 12px;
    background: #f2f8fa;
}
.bppt-ga-filter-bar label { display: grid; gap: 6px; min-width: 300px; font-weight: 700; }
.bppt-ga-participant-summary-badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.bppt-ga-entry-detail-list,
.bppt-ga-tracking-entry-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}
.bppt-ga-entry-detail-list > span,
.bppt-ga-tracking-entry-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef7fa;
}
.bppt-ga-tracking-entry-list > div { flex-direction: column; }
.bppt-ga-payment-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    background: #f6fafb;
}
.bppt-ga-payment-list { display: grid; gap: 7px; margin-bottom: 14px; }
.bppt-ga-payment-row {
    display: grid;
    grid-template-columns: 110px 100px minmax(90px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #d8e5e9;
    border-radius: 9px;
    background: #fff;
}
.bppt-ga-payment-row.is-cancelled { opacity: .6; text-decoration: line-through; }
.bppt-ga-rule-source-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr) auto; align-items: center; }
.bppt-ga-rule-source-card.has-update { border-color: #e3b34c; box-shadow: 0 0 0 2px rgba(227,179,76,.12); }
.bppt-ga-rule-source-meta { display: grid; gap: 7px; justify-items: start; }
.bppt-ga-rule-source-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bppt-ga-badge-danger { color: #8f1d1d; background: #fde7e7; }

.bppt-ga-tournament-public-wrap { max-width: 980px; margin-inline: auto; }
.bppt-ga-public-tournament-card { min-height: 100%; }
.bppt-ga-public-tournament-card .bppt-ga-button { margin-top: auto; align-self: flex-start; }
.bppt-ga-tournament-public-summary { display: grid; gap: 18px; }
.bppt-ga-tournament-draw-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.bppt-ga-tournament-draw-choice {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 108px;
    padding: 16px;
    border: 1px solid #bfd7e0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.bppt-ga-tournament-draw-choice:hover { transform: translateY(-1px); border-color: #0b7891; box-shadow: 0 8px 22px rgba(7,93,113,.1); }
.bppt-ga-tournament-draw-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.bppt-ga-choice-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #7ca6b3;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 5px #fff;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.bppt-ga-tournament-draw-choice:has(input:checked) {
    border-color: #08748c;
    background: #eef9fc;
    box-shadow: 0 0 0 2px rgba(8,116,140,.12), 0 10px 25px rgba(8,116,140,.1);
}
.bppt-ga-tournament-draw-choice:has(input:checked) .bppt-ga-choice-indicator {
    border-color: #08748c;
    background: #08748c;
    transform: scale(1.05);
}
.bppt-ga-tournament-draw-choice.is-disabled { opacity: .55; cursor: not-allowed; }
.bppt-ga-choice-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bppt-ga-choice-content strong { color: #053f50; font-size: 16px; }
.bppt-ga-choice-content small { color: #607680; }
.bppt-ga-choice-content em { color: #0b6f85; font-style: normal; font-weight: 800; }
.bppt-ga-tournament-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 17px;
}
.bppt-ga-tournament-total strong { padding: 8px 12px; border-radius: 10px; background: #e8f6f9; color: #075c70; }
.bppt-ga-tournament-tracking { display: grid; gap: 16px; }
.bppt-ga-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 980px) {
    .bppt-ga-tournament-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bppt-ga-grid-3,
    .bppt-ga-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bppt-ga-rule-source-card { grid-template-columns: 1fr; }
    .bppt-ga-rule-source-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
    .bppt-ga-tournament-card-grid,
    .bppt-ga-public-tournament-grid,
    .bppt-ga-tournament-draw-choice-grid,
    .bppt-ga-toggle-grid,
    .bppt-ga-grid-3,
    .bppt-ga-grid-4,
    .bppt-ga-tournament-overview-card dl,
    .bppt-ga-public-tournament-card dl,
    .bppt-ga-tournament-public-summary dl,
    .bppt-ga-tournament-tracking-grid,
    .bppt-ga-participant-details dl { grid-template-columns: 1fr; }
    .bppt-ga-field-wide { grid-column: auto; }
    .bppt-ga-payment-row { grid-template-columns: 1fr 1fr; }
    .bppt-ga-draw-card > summary,
    .bppt-ga-participant-card > summary,
    .bppt-ga-tournament-card-head { align-items: flex-start; flex-direction: column; }
    .bppt-ga-participant-summary-badges { justify-content: flex-start; }
    .bppt-ga-filter-bar label { min-width: 0; width: 100%; }
}

/* v0.5.0.0 — repères documentaires FFTT */
.bppt-ga-tournament-rule-guide {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d5e4ea;
    border-radius: 16px;
    background: #f7fbfc;
}

.bppt-ga-tournament-rule-guide h3 {
    margin: 0 0 14px;
}

.bppt-ga-tournament-rule-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bppt-ga-tournament-rule-guide-grid article {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid #dce8ed;
    border-radius: 13px;
    background: #fff;
}

.bppt-ga-tournament-rule-guide-grid span {
    color: #536b78;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .bppt-ga-tournament-rule-guide-grid {
        grid-template-columns: 1fr;
    }
}

.bppt-ga-export-menu {
    position: relative;
}

.bppt-ga-export-menu > summary {
    list-style: none;
    cursor: pointer;
}

.bppt-ga-export-menu > summary::-webkit-details-marker {
    display: none;
}

.bppt-ga-export-menu-list {
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    min-width: 240px;
    padding: 8px;
    border: 1px solid #d5e4ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 59, 79, .15);
}

.bppt-ga-export-menu-list a,
.bppt-ga-export-menu-title {
    padding: 9px 10px;
    border-radius: 8px;
}

.bppt-ga-export-menu-list a {
    color: #063d50;
    text-decoration: none;
}

.bppt-ga-export-menu-list a:hover,
.bppt-ga-export-menu-list a:focus-visible {
    background: #edf7fa;
}

.bppt-ga-export-menu-title {
    margin-top: 5px;
    border-top: 1px solid #e2ebef;
    border-radius: 0;
    color: #60737d;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 700px) {
    .bppt-ga-export-menu-list {
        position: static;
        margin-top: 8px;
        min-width: 0;
    }
}

/* v0.5.1.0 — espace de gestion, formulaires documentés et paramètres personnalisables */
.bppt-ga-hero-description {
    margin: .35rem 0 .65rem;
    color: var(--bppt-muted);
    line-height: 1.5;
}

.bppt-ga-hero-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .75rem;
}

.bppt-ga-settings-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .75rem;
    border: 1px solid var(--bppt-border);
    border-radius: 12px;
    background: #f5fafb;
}

.bppt-ga-settings-panel-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.bppt-ga-settings-panel-status {
    min-height: 1.3em;
    color: var(--bppt-muted);
    font-size: .82rem;
    font-weight: 700;
}

.bppt-ga-settings-panel-status.is-success { color: #176b3c; }
.bppt-ga-settings-panel-status.is-error { color: #a82727; }

.bppt-ga-initial-configuration-panel {
    border-top-color: #0d5f75;
}

.bppt-ga-setup-summary {
    display: grid;
    gap: .3rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bppt-border);
    border-left: 5px solid #8aa6af;
    border-radius: 10px;
    background: #fff;
}

.bppt-ga-setup-summary.is-ready {
    border-left-color: #2f8f5f;
    background: #f4fbf6;
}

.bppt-ga-setup-summary.is-attention {
    border-left-color: #f0a52b;
    background: #fffaf0;
}

.bppt-ga-setup-summary.is-blocked {
    border-left-color: #b72f2f;
    background: #fff6f6;
}

.bppt-ga-setup-summary span {
    color: var(--bppt-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.bppt-ga-setup-summary strong {
    color: var(--bppt-text);
    font-size: 1.08rem;
}

.bppt-ga-setup-summary p {
    margin: 0;
    color: var(--bppt-muted);
}

.bppt-ga-setup-groups {
    display: grid;
    gap: 1rem;
}

.bppt-ga-setup-group {
    display: grid;
    gap: .65rem;
}

.bppt-ga-setup-group > h3 {
    margin: 0;
    color: var(--bppt-primary-dark);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bppt-ga-setup-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.bppt-ga-setup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem;
    border: 1px solid var(--bppt-border);
    border-left: 4px solid #8aa6af;
    border-radius: 10px;
    background: #fff;
}

.bppt-ga-setup-item.is-ok {
    border-left-color: #2f8f5f;
    background: #f4fbf6;
}

.bppt-ga-setup-item.is-warning {
    border-left-color: #f0a52b;
    background: #fffaf0;
}

.bppt-ga-setup-item.is-missing {
    border-left-color: #b72f2f;
    background: #fff6f6;
}

.bppt-ga-setup-item-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
}

.bppt-ga-setup-item h3,
.bppt-ga-setup-item h4 {
    margin: 0 0 .25rem;
    color: var(--bppt-text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.25;
}

.bppt-ga-setup-item p {
    margin: 0;
    color: var(--bppt-muted);
    font-size: .9rem;
}

.bppt-ga-setup-item .bppt-ga-setup-hint {
    margin-top: .4rem;
    color: var(--bppt-primary-dark);
    font-size: .84rem;
    font-weight: 700;
}

.bppt-ga-setup-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #eef3f5;
    color: var(--bppt-primary-dark);
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.bppt-ga-setup-item.is-ok .bppt-ga-setup-status {
    background: #dff4e7;
    color: #176b3c;
}

.bppt-ga-setup-item.is-warning .bppt-ga-setup-status {
    background: #fff0cc;
    color: #8a5200;
}

.bppt-ga-setup-item.is-missing .bppt-ga-setup-status {
    background: #ffe1e1;
    color: #9b1f1f;
}

.bppt-ga-settings-panel-list {
    display: grid;
    gap: 1rem;
}

.bppt-ga-settings-panel-list > .bppt-ga-panel {
    margin-bottom: 0;
    transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.bppt-ga-settings-panel-list.is-drop-target > .bppt-ga-panel {
    border-color: #9fc6d1;
}

.bppt-ga-settings-panel-list > .bppt-ga-panel.is-dragging {
    opacity: .55;
    box-shadow: 0 12px 28px rgba(13, 95, 117, .2);
}

.bppt-ga-settings-panel-heading {
    align-items: center;
    margin: -1.35rem -1.35rem 0;
    padding: 1.15rem 1.35rem;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    user-select: none;
}

.bppt-ga-settings-panel-heading:focus-visible {
    outline: 3px solid rgba(13, 95, 117, .26);
    outline-offset: 2px;
}

.bppt-ga-settings-panel-content {
    padding-top: 1.15rem;
}

.bppt-ga-settings-panel-list > .bppt-ga-panel.is-collapsed {
    padding-bottom: 1.35rem;
}

.bppt-ga-settings-panel-list > .bppt-ga-panel.is-collapsed .bppt-ga-settings-panel-heading {
    margin-bottom: -1.35rem;
    border-radius: 12px;
}

.bppt-ga-settings-panel-controls {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
}

.bppt-ga-settings-drag,
.bppt-ga-settings-move,
.bppt-ga-settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #b9ccd3;
    border-radius: 8px;
    background: #fff;
    color: var(--bppt-primary-dark);
    font: inherit;
    font-weight: 900;
    line-height: 1;
}

.bppt-ga-settings-drag {
    cursor: grab;
    letter-spacing: -3px;
}

.bppt-ga-settings-drag:active { cursor: grabbing; }
.bppt-ga-settings-move:not(:disabled):hover,
.bppt-ga-settings-toggle:hover,
.bppt-ga-settings-drag:hover,
.bppt-ga-settings-move:focus-visible,
.bppt-ga-settings-toggle:focus-visible,
.bppt-ga-settings-drag:focus-visible {
    border-color: var(--bppt-primary);
    background: #edf7fa;
}

.bppt-ga-settings-move:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.bppt-ga-settings-toggle span {
    display: block;
    font-size: 1.25rem;
    transition: transform .16s ease;
}

.bppt-ga-panel.is-collapsed .bppt-ga-settings-toggle span {
    transform: rotate(-90deg);
}

.bppt-ga-form-requirement-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .75rem;
    margin: 0 0 1rem;
    padding: .65rem .8rem;
    border: 1px solid #d5e5ea;
    border-radius: 10px;
    background: #f7fbfc;
    color: #536b78;
    font-size: .79rem;
}

.bppt-ga-form-requirement-legend strong { color: var(--bppt-primary-dark); }
.bppt-ga-form-requirement-legend b { color: #a22b2b; }

.bppt-ga-field-requirement {
    display: inline;
    margin-left: .25rem;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
}

.bppt-ga-field-requirement.is-required { color: #9b2424; }
.bppt-ga-field-requirement.is-optional { color: #657b85; }
.bppt-ga-field-requirement.is-automatic {
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    padding: .16rem .46rem;
    border: 1px solid #8fc8d9;
    border-radius: 999px;
    background: #e8f7fb;
    color: #075a70;
    font-size: .65rem;
    line-height: 1.15;
}

.bppt-ga-label-with-auto-help {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
}

.bppt-ga-label-with-auto-help .bppt-ga-help-tip-wrap {
    margin-left: .15rem;
}

.bppt-ga-inline-control {
    display: inline-flex !important;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    color: var(--bppt-muted);
    font-size: .8rem !important;
}

.bppt-ga-inline-control input {
    width: auto !important;
    min-height: auto !important;
}

.bppt-ga-publication-diagnostic {
    margin-bottom: 1rem;
}

.bppt-ga-publication-diagnostic ul {
    margin: .45rem 0 0 1.2rem;
}

.bppt-ga-section-title-without-step {
    grid-template-columns: 1fr;
}

@media (max-width: 760px) {
    .bppt-ga-settings-panel-toolbar,
    .bppt-ga-settings-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .bppt-ga-settings-panel-toolbar > div,
    .bppt-ga-settings-panel-toolbar .bppt-ga-button,
    .bppt-ga-hero-secondary-actions,
    .bppt-ga-hero-secondary-actions .bppt-ga-button {
        width: 100%;
    }

    .bppt-ga-settings-panel-controls {
        width: 100%;
        margin-left: 0;
    }

    .bppt-ga-settings-panel-controls .bppt-ga-settings-drag {
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .bppt-ga-settings-tabs {
        grid-template-columns: 1fr;
    }
}

/* v0.5.1.1 — corrections du formulaire public des tournois */
.bppt-ga-public-manager-actions {
    display: flex;
    justify-content: flex-end;
    margin: -0.35rem 0 1rem;
}

.bppt-ga-licence-status-choice {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #d5e4ea;
    border-radius: 12px;
    background: #f7fbfc;
}

.bppt-ga-licence-status-choice legend {
    width: 100%;
    padding: 0 .35rem;
    color: var(--bppt-primary-dark);
    font-weight: 800;
}

.bppt-ga-licence-status-choice label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .65rem .8rem;
    border: 1px solid #cbdde3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.bppt-ga-licence-status-choice label:has(input:checked) {
    border-color: var(--bppt-primary);
    background: #edf8fb;
    box-shadow: 0 0 0 2px rgba(13, 95, 117, .1);
}

.bppt-ga-licence-status-choice input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 0;
    flex: 0 0 auto;
}

.bppt-ga-licence-required-notice {
    margin-bottom: 1rem;
}

.bppt-ga-dynamic-requirement-note {
    display: block;
    margin-top: .35rem;
    color: #6c5b21;
    font-size: .76rem;
    line-height: 1.4;
}

.bppt-ga-tournament-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    width: fit-content;
    max-width: 100%;
    margin: 1rem 0;
    padding: .75rem .85rem;
    border: 1px solid #d5e4ea;
    border-radius: 10px;
    background: #f7fbfc;
    color: #273a42;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
}

.bppt-ga-tournament-consent input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-height: 0 !important;
    margin: .08rem 0 0 !important;
    flex: 0 0 20px;
}

.bppt-ga-tournament-consent > span {
    min-width: 0;
}

#bppt-ga-double-partner-section[hidden],
.bppt-ga-dynamic-requirement-note[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .bppt-ga-public-manager-actions,
    .bppt-ga-public-manager-actions .bppt-ga-button {
        width: 100%;
    }

    .bppt-ga-licence-status-choice {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bppt-ga-tournament-consent {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Tournois — archivage et ergonomie v0.5.2.0
   ========================================================================== */
.bppt-ga-create-tournament-panel {
    overflow: hidden;
}
.bppt-ga-create-tournament-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}
.bppt-ga-create-tournament-panel > summary::-webkit-details-marker { display: none; }
.bppt-ga-create-tournament-panel > summary .bppt-ga-details-chevron::before {
    content: "⌄";
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform .18s ease;
}
.bppt-ga-create-tournament-panel:not([open]) > summary .bppt-ga-details-chevron::before {
    transform: rotate(-90deg);
}
.bppt-ga-create-tournament-form {
    padding: 0 20px 20px;
}
.bppt-ga-tournament-overview-heading {
    align-items: center;
    gap: 18px;
}
.bppt-ga-archive-toggle-form { margin: 0; }
.bppt-ga-archive-toggle-form .bppt-ga-toggle-line { min-width: 255px; margin: 0; }
.bppt-ga-archive-filters {
    flex-wrap: wrap;
}
.bppt-ga-archive-filters label { min-width: 150px; }
.bppt-ga-archive-filters label:first-of-type { min-width: 240px; flex: 1 1 240px; }
.bppt-ga-tournament-overview-card.is-archived,
.bppt-ga-tournament-admin-card.is-archived {
    border-color: #d6b45c;
    background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}
.bppt-ga-badge-gold {
    border: 1px solid #d6b45c;
    color: #6f4d00;
    background: linear-gradient(135deg, #fff8d8, #f2d78c);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.bppt-ga-archive-date {
    margin: -4px 0 0;
    color: #6f6040;
    font-size: .92rem;
}
.bppt-ga-tournament-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.bppt-ga-tournament-card-actions .bppt-ga-inline-form,
.bppt-ga-season-actions .bppt-ga-inline-form {
    margin: 0;
}
.bppt-ga-archive-snapshot {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #e1c878;
    border-radius: 14px;
    background: #fffaf0;
}
.bppt-ga-archive-snapshot .bppt-ga-panel-heading { margin-bottom: 12px; }
.bppt-ga-archive-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.bppt-ga-archive-stat-grid > div {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.82);
}
.bppt-ga-archive-stat-grid dt {
    color: #76663a;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.bppt-ga-archive-stat-grid dd {
    margin: 4px 0 0;
    font-weight: 800;
}
.bppt-ga-tournament-admin-card.is-targeted {
    outline: 3px solid rgba(11,108,130,.28);
    outline-offset: 4px;
}
@media (max-width: 900px) {
    .bppt-ga-tournament-overview-heading { align-items: stretch; flex-direction: column; }
    .bppt-ga-archive-toggle-form .bppt-ga-toggle-line { min-width: 0; }
    .bppt-ga-archive-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .bppt-ga-archive-stat-grid { grid-template-columns: 1fr; }
    .bppt-ga-tournament-card-actions > * { width: 100%; }
    .bppt-ga-tournament-card-actions .bppt-ga-button { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Tournois archivés repliables — v0.5.2.1
   ========================================================================== */
.bppt-ga-season-card-head-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.bppt-ga-archived-tournament-card > summary {
    display: block;
    cursor: pointer;
    list-style: none;
}
.bppt-ga-archived-tournament-card > summary::-webkit-details-marker { display: none; }
.bppt-ga-archived-tournament-card > summary:focus-visible {
    outline: 3px solid rgba(11,108,130,.3);
    outline-offset: -3px;
    border-radius: 13px;
}
.bppt-ga-archived-tournament-card > summary .bppt-ga-season-card-head {
    border-bottom: 0;
    transition: background-color .18s ease;
}
.bppt-ga-archived-tournament-card > summary:hover .bppt-ga-season-card-head,
.bppt-ga-archived-tournament-card > summary:focus-visible .bppt-ga-season-card-head {
    background: linear-gradient(180deg, #fffdf4, #fff9e9);
}
.bppt-ga-archived-tournament-card[open] > summary .bppt-ga-season-card-head {
    border-bottom: 1px solid var(--bppt-border);
}
.bppt-ga-archive-card-chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-right: 2px solid #6f4d00;
    border-bottom: 2px solid #6f4d00;
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.bppt-ga-archived-tournament-card[open] .bppt-ga-archive-card-chevron {
    transform: rotate(225deg);
}
@media (max-width: 720px) {
    .bppt-ga-season-card-head-side {
        width: 100%;
        justify-content: space-between;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bppt-ga-archive-card-chevron,
    .bppt-ga-archived-tournament-card > summary .bppt-ga-season-card-head { transition: none; }
}

/* ==========================================================================
   Suivi des cartes et justificatifs — v0.5.3.0
   ========================================================================== */
.bppt-ga-settings-subsection {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--bppt-border);
    border-radius: 16px;
    background: #f8fbfc;
}
.bppt-ga-settings-subsection .bppt-ga-panel-heading { margin-bottom: 16px; }
.bppt-ga-card-reminder-settings .bppt-ga-choice-card { margin-bottom: 18px; }
.bppt-ga-card-delivery-panel { border-top: 3px solid #d39a25; }
.bppt-ga-card-delivery-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}
.bppt-ga-card-delivery-form .bppt-ga-card-delivery-choice {
    flex: 1 1 360px;
    margin: 0;
}
.bppt-ga-status-cell {
    vertical-align: top;
}
.bppt-ga-status-cell .bppt-ga-card-status-badge {
    display: table;
    margin-top: 7px;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .bppt-ga-settings-subsection { padding: 16px; }
    .bppt-ga-card-delivery-form { align-items: stretch; }
    .bppt-ga-card-delivery-form .bppt-ga-button { width: 100%; justify-content: center; }
}

/* Formulaire public d’adhésion — correctif v0.5.3.1 */
.bppt-ga-public-client-errors p { margin: .45rem 0; }
.bppt-ga-public-client-errors ul,
#bppt-public-server-errors ul { margin: .55rem 0 0 1.15rem; }
.bppt-ga-public-form [aria-invalid="true"] {
    border-color: var(--bppt-danger) !important;
    box-shadow: 0 0 0 3px rgba(174, 44, 44, .13) !important;
}
.bppt-ga-public-form.is-submitting { cursor: wait; }
.bppt-ga-public-form.is-submitting .bppt-ga-button[disabled] {
    cursor: wait;
    opacity: .72;
}


/* ==========================================================================
   Ergonomie des fiches et notifications — v0.5.3.2
   ========================================================================== */
.bppt-ga-management-panel-list,
.bppt-ga-member-form-panel-list,
.bppt-ga-nested-panel-list {
    margin-bottom: 1.4rem;
}

.bppt-ga-management-organizable-panel .bppt-ga-filters {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section {
    overflow: hidden;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section > .bppt-ga-settings-panel-content {
    padding-top: 0;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section .bppt-ga-bulk-toolbar {
    margin-right: -1.35rem;
    margin-left: -1.35rem;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section .bppt-ga-table-wrap {
    margin-right: -1.35rem;
    margin-left: -1.35rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.bppt-ga-nested-panel-list .bppt-ga-settings-subsection {
    margin: 0;
    background: #f8fbfc;
}

.bppt-ga-nested-panel-list .bppt-ga-settings-subsection .bppt-ga-settings-panel-heading {
    margin-bottom: 0;
}

.bppt-ga-member-form-panel-toolbar,
.bppt-ga-management-panel-toolbar {
    margin-top: .25rem;
}

.bppt-ga-member-payment-form {
    display: block;
    width: 100%;
    margin: 1.2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--bppt-border);
}

.bppt-ga-member-payment-form > .bppt-ga-form-requirement-legend {
    width: 100%;
    box-sizing: border-box;
}

.bppt-ga-member-payment-form > .bppt-ga-grid {
    width: 100%;
}

.bppt-ga-payment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.bppt-ga-payment-form-actions .bppt-ga-button {
    width: auto;
    min-height: 42px;
}

.bppt-ga-status-cell > .bppt-ga-badge {
    display: flex;
    width: max-content;
    max-width: 100%;
}

.bppt-ga-status-cell .bppt-ga-card-status-badge {
    margin-top: 7px;
    white-space: nowrap;
}

.bppt-ga-account-activation-notice-settings {
    margin-top: 1.2rem;
}

@media (max-width: 720px) {
    .bppt-ga-management-organizable-panel.bppt-ga-list-section .bppt-ga-bulk-toolbar,
    .bppt-ga-management-organizable-panel.bppt-ga-list-section .bppt-ga-table-wrap {
        margin-right: 0;
        margin-left: 0;
    }

    .bppt-ga-payment-form-actions,
    .bppt-ga-payment-form-actions .bppt-ga-button {
        width: 100%;
    }
}

/* ==========================================================================
   Harmonisation de la page de gestion et repères d’accès — v0.5.3.3
   ========================================================================== */

/* Les panneaux de gestion utilisent tous la même base visuelle et restent
 * suffisamment ouverts pour que les aides contextuelles ne soient pas coupées. */
.bppt-ga-management-panel-list > .bppt-ga-management-organizable-panel {
    min-width: 0;
    overflow: visible;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section {
    padding: 1.35rem;
    overflow: visible;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section > .bppt-ga-list-heading {
    margin: -1.35rem -1.35rem 0;
    padding: 1.15rem 1.35rem;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #fff, #f7fbfc);
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section > .bppt-ga-settings-panel-content {
    min-width: 0;
    padding-top: 1.15rem;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section .bppt-ga-bulk-toolbar {
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 12px;
    background: #fbfdfe;
}

.bppt-ga-management-organizable-panel.bppt-ga-list-section .bppt-ga-table-wrap {
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    border: 1px solid var(--bppt-border);
    border-radius: 13px;
    background: #fff;
}

.bppt-ga-management-organizable-panel .bppt-ga-tools-grid {
    margin: 0;
}

.bppt-ga-management-organizable-panel .bppt-ga-tools-privacy {
    margin-bottom: 0;
}

.bppt-ga-members-table {
    min-width: 1090px;
    table-layout: auto;
}

.bppt-ga-members-table .bppt-ga-select-column,
.bppt-ga-members-table .bppt-ga-select-cell { width: 46px; }
.bppt-ga-members-table th:nth-child(2) { min-width: 145px; }
.bppt-ga-members-table th:nth-child(3) { min-width: 180px; }
.bppt-ga-members-table .bppt-ga-status-column { min-width: 150px; }
.bppt-ga-members-table th:nth-last-child(4) { min-width: 145px; }
.bppt-ga-members-table th:nth-last-child(3) { min-width: 155px; }
.bppt-ga-members-table th:nth-last-child(2) { min-width: 115px; }
.bppt-ga-members-table th:last-child { min-width: 175px; }
.bppt-ga-members-table .bppt-ga-row-actions {
    min-width: 158px;
}
.bppt-ga-members-table .bppt-ga-row-actions .bppt-ga-button,
.bppt-ga-members-table .bppt-ga-row-actions .bppt-ga-badge {
    max-width: 100%;
}

/* Quatrième niveau d’accès : informations visibles uniquement après connexion. */
.bppt-ga-public-visibility-account {
    border-color: #aebbe4;
    background: #eef1fb;
    color: #364d91;
}

.bppt-ga-access-heading-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
}

.bppt-ga-payment-access-notes {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: .45rem .65rem;
}

.bppt-ga-danger-zone-access {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 3;
}

.bppt-ga-danger-zone {
    padding-top: 3.15rem;
}

/* Les info-bulles de la fiche doivent toujours passer devant les blocs voisins. */
.bppt-ga-history-panel {
    position: relative;
    overflow: visible;
}

.bppt-ga-history-summary {
    border-radius: 12px;
}

.bppt-ga-history-panel[open] .bppt-ga-history-summary {
    border-radius: 12px 12px 0 0;
}

.bppt-ga-history-panel:hover,
.bppt-ga-history-panel:focus-within,
.bppt-ga-panel:focus-within {
    z-index: 30;
}

.bppt-ga-help-tip-wrap {
    z-index: 40;
}

.bppt-ga-help-tooltip {
    z-index: 10000;
}

@media (max-width: 720px) {
    .bppt-ga-management-organizable-panel.bppt-ga-list-section {
        padding: 1rem;
    }

    .bppt-ga-management-organizable-panel.bppt-ga-list-section > .bppt-ga-list-heading {
        margin: -1rem -1rem 0;
        padding: 1rem;
    }

    .bppt-ga-management-organizable-panel.bppt-ga-list-section .bppt-ga-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .bppt-ga-members-table {
        min-width: 0;
    }

    .bppt-ga-payment-access-notes {
        grid-template-columns: 1fr;
    }

    .bppt-ga-access-heading-badges {
        width: 100%;
        justify-content: flex-start;
    }

    .bppt-ga-danger-zone-access,
    .bppt-ga-danger-zone-help {
        position: static;
    }

    .bppt-ga-danger-zone {
        display: grid;
        gap: .6rem;
        padding-top: 1rem;
    }

    .bppt-ga-danger-zone-help {
        justify-content: flex-start;
        margin: 0;
    }
}

/* ==========================================================================
   Panneaux imbriqués et fiabilité des blocs de gestion — v0.5.3.4
   ========================================================================== */

/* Les quatre panneaux principaux doivent rester des enfants directs du
 * conteneur réorganisable afin que les commandes soient injectées et actives. */
.bppt-ga-management-panel-list > [data-bppt-organizable-panel] {
    width: 100%;
    box-sizing: border-box;
}

/* Sous-panneaux indépendants : Import CSV et sauvegarde ZIP. */
.bppt-ga-subtool-panel {
    padding: 0;
    overflow: visible;
}

.bppt-ga-subtool-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.bppt-ga-subtool-summary::-webkit-details-marker {
    display: none;
}

.bppt-ga-subtool-summary:focus-visible {
    outline: 3px solid rgba(13, 95, 117, .26);
    outline-offset: 2px;
    border-radius: 12px;
}

.bppt-ga-subtool-summary-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .25rem;
}

.bppt-ga-subtool-summary .bppt-ga-heading-with-help {
    align-items: center;
    margin: 0;
}

.bppt-ga-subtool-summary strong {
    color: var(--bppt-primary-dark);
    font-size: 1.05rem;
    line-height: 1.25;
}

.bppt-ga-subtool-summary small {
    color: var(--bppt-muted);
    font-size: .86rem;
    line-height: 1.4;
}

.bppt-ga-subtool-chevron {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-right: 2px solid var(--bppt-primary);
    border-bottom: 2px solid var(--bppt-primary);
    transform: rotate(45deg);
    transition: transform .16s ease;
}

.bppt-ga-subtool-panel[open] > .bppt-ga-subtool-summary {
    border-bottom: 1px solid var(--bppt-border);
}

.bppt-ga-subtool-panel[open] > .bppt-ga-subtool-summary .bppt-ga-subtool-chevron {
    transform: rotate(225deg);
}

.bppt-ga-subtool-body {
    padding: 1rem;
}

.bppt-ga-subtool-body > :first-child {
    margin-top: 0;
}

.bppt-ga-subtool-body > :last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .bppt-ga-subtool-summary {
        align-items: flex-start;
        padding: .9rem;
    }

    .bppt-ga-subtool-body {
        padding: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bppt-ga-subtool-chevron {
        transition: none;
    }
}

/* v0.5.4.0 — centre e-mail, SMTP et journal */
.bppt-ga-email-center-form .bppt-ga-settings-subsection {
    margin-top: 18px;
}
.bppt-ga-email-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}
.bppt-ga-email-status-grid .bppt-ga-summary-card {
    min-height: 104px;
}
.bppt-ga-email-dns-results {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dce5e9;
    border-radius: 14px;
    background: #f8fbfc;
}
.bppt-ga-email-dns-results h4 {
    margin: 0 0 10px;
}
.bppt-ga-email-dns-list {
    margin: 12px 0 0;
    padding-left: 20px;
}
.bppt-ga-email-dns-list li {
    margin: 8px 0;
    overflow-wrap: anywhere;
}
.bppt-ga-email-test-actions,
.bppt-ga-email-save-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}
.bppt-ga-email-log-wrap {
    max-height: 540px;
    overflow: auto;
}
.bppt-ga-email-log-table td,
.bppt-ga-email-log-table th {
    vertical-align: top;
}
.bppt-ga-email-log-table code {
    white-space: nowrap;
}
.bppt-ga-email-error {
    display: block;
    margin-top: 6px;
    color: #9a3412;
    line-height: 1.4;
}
.bppt-ga-email-log-table .bppt-ga-badge-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.bppt-ga-email-center-form input[type="color"] {
    min-height: 46px;
    padding: 4px;
}
@media (max-width: 980px) {
    .bppt-ga-email-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .bppt-ga-email-status-grid {
        grid-template-columns: 1fr;
    }
    .bppt-ga-email-test-actions .bppt-ga-button,
    .bppt-ga-email-save-actions .bppt-ga-button {
        width: 100%;
    }
    .bppt-ga-email-log-wrap {
        max-height: none;
    }
}

/* Aperçu en direct des e-mails — v0.5.4.0 */
.bppt-ga-email-preview-wrap {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #dce6e9;
}
.bppt-ga-email-preview-wrap > h4 { margin: 0 0 6px; }
.bppt-ga-email-preview {
    --bppt-email-primary: #0d5f75;
    --bppt-email-accent: #f4a62a;
    width: min(100%, 660px);
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #dce4e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 50, 62, .08);
}
.bppt-ga-email-preview-header {
    padding: 22px 25px;
    color: #fff;
    background: var(--bppt-email-primary);
    border-bottom: 5px solid var(--bppt-email-accent);
}
.bppt-ga-email-preview-header img {
    display: block;
    width: 64px;
    max-height: 64px;
    object-fit: contain;
    margin: 0 0 10px;
}
.bppt-ga-email-preview-header small,
.bppt-ga-email-preview-header strong,
.bppt-ga-email-preview-header span { display: block; }
.bppt-ga-email-preview-header small {
    margin-bottom: 5px;
    color: #d9eef3;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.bppt-ga-email-preview-header strong { font-size: 24px; line-height: 1.2; }
.bppt-ga-email-preview-header span {
    width: fit-content;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--bppt-email-primary);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}
.bppt-ga-email-preview-body {
    padding: 24px 26px;
    color: #26383f;
    line-height: 1.6;
}
.bppt-ga-email-preview-body > a {
    display: inline-block;
    margin: 10px 0 18px;
    padding: 11px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--bppt-email-primary);
    text-decoration: none;
    font-weight: 700;
    pointer-events: none;
}
.bppt-ga-email-preview-signature {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e9ec;
    color: #60717a;
    font-size: 13px;
}


/* ==========================================================================
   Actions guidées après validation — v0.5.4.1
   ========================================================================== */
.bppt-ga-members-table th:last-child {
    min-width: 205px;
}

.bppt-ga-row-actions .bppt-ga-button-followup {
    position: relative;
    min-height: 40px;
    overflow: hidden;
    padding: .58rem .78rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    box-shadow: 0 5px 14px rgba(13, 95, 117, .2);
}

.bppt-ga-button-tracking {
    border-color: #0d5f75;
    background: linear-gradient(135deg, #0d5f75 0%, #16809b 100%);
}

.bppt-ga-button-tracking:hover {
    background: linear-gradient(135deg, #084657 0%, #0d6c83 100%);
}

.bppt-ga-button-activation {
    border-color: #8b5700;
    background: linear-gradient(135deg, #8b5700 0%, #bd7600 100%);
    box-shadow: 0 5px 14px rgba(139, 87, 0, .2);
}

.bppt-ga-button-activation:hover {
    background: linear-gradient(135deg, #714600 0%, #9d6100 100%);
    box-shadow: 0 7px 17px rgba(139, 87, 0, .25);
}

.bppt-ga-button-followup::after {
    width: 7px;
    height: 7px;
    margin-left: .45rem;
    flex: 0 0 auto;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    content: "";
}

.bppt-ga-button-followup.is-loading::after {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    transform: none;
    animation: bppt-ga-guided-action-spin .75s linear infinite;
}

.bppt-ga-button-followup[disabled] {
    opacity: .78;
    cursor: wait;
    transform: none;
}

@keyframes bppt-ga-guided-action-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bppt-ga-button-followup.is-loading::after {
        animation: none;
    }
}

/* ==========================================================================
   Attente de création du compte adhérent — v0.5.4.2
   ========================================================================== */
.bppt-ga-row-actions .bppt-ga-badge-account-pending {
    min-height: 40px;
    padding: .58rem .78rem;
    border: 1px solid #d79a28;
    background: linear-gradient(135deg, #fff4d8 0%, #ffe7ad 100%);
    color: #704300;
    text-align: center;
    line-height: 1.25;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 4px 12px rgba(139, 87, 0, .12);
}

.bppt-ga-row-actions .bppt-ga-badge-account-pending::before {
    width: 8px;
    height: 8px;
    margin-right: .45rem;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    content: "";
}


/* ==========================================================================
   Architecture modulaire et profils de gestion — v0.5.5.0
   ========================================================================== */
.bppt-ga-modules-panel,
.bppt-ga-profiles-panel {
    overflow: visible;
}

.bppt-ga-module-group {
    margin: 1.25rem 0 0;
    padding: 0;
    border: 0;
}

.bppt-ga-module-group > legend {
    width: 100%;
    margin: 0 0 .65rem;
    padding: 0;
    color: #173d4a;
    font-size: 1rem;
    font-weight: 800;
}

.bppt-ga-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.bppt-ga-module-card {
    display: flex;
    min-width: 0;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #d7e2e6;
    border-radius: 14px;
    background: #fff;
    flex-direction: column;
    gap: .65rem;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(16, 61, 76, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bppt-ga-module-card:hover,
.bppt-ga-module-card:focus-within {
    border-color: #0d6f86;
    box-shadow: 0 8px 20px rgba(13, 95, 117, .12);
    transform: translateY(-1px);
}

.bppt-ga-module-card.is-enabled {
    border-color: #87b9c5;
    background: linear-gradient(145deg, #fff 0%, #f0fafc 100%);
}

.bppt-ga-module-card.is-disabled {
    background: #f7f9fa;
    color: #61727a;
}

.bppt-ga-module-card.is-required {
    border-color: #e0ba65;
    background: linear-gradient(145deg, #fffdf7 0%, #fff7df 100%);
    cursor: default;
}

.bppt-ga-module-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
}

.bppt-ga-module-card-head input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
}

.bppt-ga-module-card-head strong {
    color: #173d4a;
    line-height: 1.25;
}

.bppt-ga-module-description {
    display: block;
    flex: 1 1 auto;
    line-height: 1.5;
}

.bppt-ga-module-card small {
    display: block;
    color: #62747b;
    line-height: 1.4;
}

.bppt-ga-module-card .bppt-ga-module-warning {
    color: #8a5700;
    font-weight: 700;
}

.bppt-ga-profile-list {
    display: grid;
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.bppt-ga-profile-card {
    display: flex;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #d7e2e6;
    border-radius: 14px;
    background: #fff;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 5px 16px rgba(16, 61, 76, .06);
}

.bppt-ga-profile-card.is-selected {
    border-color: #0d6f86;
    box-shadow: 0 0 0 2px rgba(13, 111, 134, .12), 0 8px 20px rgba(13, 95, 117, .1);
}

.bppt-ga-profile-card h3,
.bppt-ga-profile-preview h3,
.bppt-ga-profile-editor h3 {
    margin: 0;
}

.bppt-ga-profile-card p {
    margin: .55rem 0;
    color: #536970;
    line-height: 1.45;
}

.bppt-ga-profile-title-row,
.bppt-ga-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

.bppt-ga-profile-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.bppt-ga-profile-actions form {
    margin: 0;
}

.bppt-ga-profile-preview,
.bppt-ga-profile-editor {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #bdd6dc;
    border-radius: 14px;
    background: #f7fcfd;
}

.bppt-ga-settings-panel-list > .bppt-ga-panel.bppt-ga-profile-editor {
    margin-top: 0;
    padding: 1.35rem;
}

.bppt-ga-permission-group.is-module-disabled {
    opacity: .72;
    background: #f3f5f6;
}

.bppt-ga-manager-profile-apply {
    display: flex;
    margin: 1rem 0;
    align-items: flex-end;
    gap: .75rem;
}

.bppt-ga-readonly-value {
    display: block;
    min-height: 42px;
    padding: .65rem .75rem;
    border: 1px solid #d7e2e6;
    border-radius: 9px;
    background: #f5f8f9;
    color: #294b56;
    font-weight: 700;
}

@media (max-width: 900px) {
    .bppt-ga-module-grid,
    .bppt-ga-profile-list {
        grid-template-columns: 1fr;
    }

    .bppt-ga-profile-card {
        flex-direction: column;
    }

    .bppt-ga-profile-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .bppt-ga-module-card-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .bppt-ga-module-card-head .bppt-ga-badge {
        grid-column: 2;
        justify-self: start;
    }

    .bppt-ga-manager-profile-apply {
        align-items: stretch;
        flex-direction: column;
    }
}


/* ==========================================================================
   Correctif v0.5.5.1 — modules, saisons, profils et comptes existants
   ========================================================================== */
.bppt-ga-collapsible-panel > summary,
.bppt-ga-season-card-summary {
    display: block;
    cursor: pointer;
    list-style: none;
}
.bppt-ga-collapsible-panel > summary::-webkit-details-marker,
.bppt-ga-season-card-summary::-webkit-details-marker { display: none; }
.bppt-ga-collapsible-panel > summary::marker,
.bppt-ga-season-card-summary::marker { content: ''; }
.bppt-ga-collapsible-panel > summary:focus-visible,
.bppt-ga-season-card-summary:focus-visible {
    outline: 3px solid rgba(11, 108, 130, .28);
    outline-offset: 3px;
    border-radius: 10px;
}
.bppt-ga-collapsible-panel-side {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem;
}
.bppt-ga-collapsible-panel-chevron,
.bppt-ga-season-card-chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-right: 2px solid var(--bppt-primary-dark);
    border-bottom: 2px solid var(--bppt-primary-dark);
    transform: rotate(45deg);
    transition: transform .18s ease;
}
.bppt-ga-collapsible-panel[open] .bppt-ga-collapsible-panel-chevron,
.bppt-ga-season-card[open] .bppt-ga-season-card-chevron {
    transform: rotate(225deg);
}
.bppt-ga-collapsible-panel-content {
    margin-top: 1.15rem;
}
.bppt-ga-collapsible-panel:not([open]) {
    padding-bottom: 1.1rem;
}

.bppt-ga-season-card-summary .bppt-ga-season-card-head {
    border-bottom: 0;
    transition: background-color .18s ease;
}
.bppt-ga-season-card-summary:hover .bppt-ga-season-card-head,
.bppt-ga-season-card-summary:focus-visible .bppt-ga-season-card-head {
    background: linear-gradient(180deg, #f8fcfd, #f0f8fa);
}
.bppt-ga-season-card[open] > .bppt-ga-season-card-summary .bppt-ga-season-card-head {
    border-bottom: 1px solid var(--bppt-border);
}
.bppt-ga-season-dates {
    display: block;
    margin-top: .35rem;
    color: var(--bppt-muted);
}
.bppt-ga-season-card-head-side {
    min-width: 0;
}

/* Les actions d’un profil restent à l’intérieur de leur carte, quelle que soit la largeur. */
.bppt-ga-profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
.bppt-ga-profile-card > div:first-child { min-width: 0; }
.bppt-ga-profile-actions {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-start;
}
.bppt-ga-profile-actions > a,
.bppt-ga-profile-actions > form {
    max-width: 100%;
}
.bppt-ga-profile-actions form { display: inline-flex; }

/* Attribution d’un profil à un compte WordPress existant. */
.bppt-ga-existing-manager-section {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--bppt-border);
    border-radius: 12px;
    background: #f7fbfc;
}
.bppt-ga-existing-manager-section .bppt-ga-manager-list-heading p,
.bppt-ga-manager-create-heading p {
    margin: .35rem 0 .8rem;
    color: var(--bppt-muted);
}
.bppt-ga-existing-manager-grid {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(280px, 1.4fr) minmax(200px, 1fr) auto;
    align-items: start;
    gap: .8rem;
}
.bppt-ga-existing-manager-grid .bppt-ga-field {
    min-width: 0;
}
.bppt-ga-existing-manager-grid .bppt-ga-field > label {
    display: flex;
    align-items: flex-end;
    min-height: 1.25rem;
}
.bppt-ga-existing-manager-submit {
    display: flex;
    align-items: flex-start;
    padding-top: calc(1.25rem + .38rem);
}
.bppt-ga-existing-manager-submit .bppt-ga-button { min-height: 44px; }
.bppt-ga-existing-manager-form select option:disabled { color: #6f7f85; }

@media (max-width: 1050px) {
    .bppt-ga-existing-manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .bppt-ga-collapsible-panel-side { width: auto; margin-left: auto; }
    .bppt-ga-season-card-head-side { width: 100%; justify-content: space-between; }
    .bppt-ga-existing-manager-grid { grid-template-columns: 1fr; }
    .bppt-ga-existing-manager-submit { padding-top: 0; }
    .bppt-ga-existing-manager-submit,
    .bppt-ga-existing-manager-submit .bppt-ga-button { width: 100%; }
    .bppt-ga-profile-actions > a,
    .bppt-ga-profile-actions > form,
    .bppt-ga-profile-actions form .bppt-ga-button { width: 100%; }
    .bppt-ga-profile-actions .bppt-ga-button { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .bppt-ga-collapsible-panel-chevron,
    .bppt-ga-season-card-chevron,
    .bppt-ga-season-card-summary .bppt-ga-season-card-head { transition: none; }
}

/* En-têtes valides des panneaux repliables v0.5.5.1. */
.bppt-ga-collapsible-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.bppt-ga-collapsible-panel-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.bppt-ga-collapsible-panel-title {
    color: var(--bppt-primary-dark);
    font-size: 1.45rem;
    line-height: 1.2;
}
.bppt-ga-collapsible-panel-description {
    margin-top: .35rem;
    color: var(--bppt-muted);
    line-height: 1.45;
}
.bppt-ga-season-card-title {
    color: var(--bppt-primary-dark);
    font-size: 1.3rem;
    line-height: 1.25;
}
@media (max-width: 720px) {
    .bppt-ga-collapsible-panel-heading { align-items: center; }
    .bppt-ga-collapsible-panel-description { display: none; }
    .bppt-ga-collapsible-panel-title { font-size: 1.2rem; }
}

/* Carte module : le bouton d’aide reste indépendant de la case à cocher. */
.bppt-ga-module-card { cursor: default; }
.bppt-ga-module-card-head {
    grid-template-columns: minmax(0, 1fr) auto auto;
}
.bppt-ga-module-toggle {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .65rem;
    cursor: pointer;
}
.bppt-ga-module-toggle strong { min-width: 0; }
.bppt-ga-module-card.is-required .bppt-ga-module-toggle { cursor: default; }
@media (max-width: 560px) {
    .bppt-ga-module-card-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
    .bppt-ga-module-card-head > .bppt-ga-help-tip-wrap { justify-self: end; }
    .bppt-ga-module-card-head > .bppt-ga-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* ==========================================================================
   Lisibilité des modèles centralisés d’e-mails — v0.5.5.2-alpha2
   ========================================================================== */
.bppt-ga-email-common-variables {
    margin-bottom: 14px;
}

.bppt-ga-email-common-variables code,
.bppt-ga-email-variable-directory code,
.bppt-ga-email-template-groups code {
    display: inline-block;
    padding: .08rem .35rem;
    border: 1px solid #d5e3e8;
    border-radius: 6px;
    color: #0b586b;
    background: #f3f9fb;
    font-size: .92em;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.bppt-ga-email-variable-directory {
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid #cbdde3;
    border-radius: 14px;
    background: #f8fbfc;
}

.bppt-ga-email-variable-directory > summary {
    display: flex;
    min-height: 52px;
    padding: 13px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #174552;
    background: linear-gradient(135deg, #eef8fa 0%, #f8fbfc 100%);
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.bppt-ga-email-variable-directory > summary::-webkit-details-marker {
    display: none;
}

.bppt-ga-email-variable-directory > summary::after {
    width: 9px;
    height: 9px;
    margin-left: auto;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
    content: "";
}

.bppt-ga-email-variable-directory[open] > summary::after {
    transform: rotate(225deg);
}

.bppt-ga-email-variable-directory > summary small {
    color: #647a82;
    font-size: .78rem;
    font-weight: 650;
}

.bppt-ga-email-variable-directory-body {
    padding: 16px;
    border-top: 1px solid #d7e5e9;
    background: #fff;
}

.bppt-ga-email-variable-directory-body > :first-child {
    margin-top: 0;
}

.bppt-ga-email-variable-section + .bppt-ga-email-variable-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e1eaed;
}

.bppt-ga-email-variable-section h4 {
    margin: 0 0 10px;
    color: #173d4a;
    font-size: 1rem;
}

.bppt-ga-email-variable-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.bppt-ga-email-variable-item {
    display: grid;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e0e9ec;
    border-radius: 11px;
    background: #f9fbfc;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 5px 10px;
}

.bppt-ga-email-variable-item code {
    grid-row: 1 / span 2;
}

.bppt-ga-email-variable-item strong {
    min-width: 0;
    color: #263f48;
    line-height: 1.35;
}

.bppt-ga-email-variable-item small {
    min-width: 0;
    color: #65767d;
    line-height: 1.4;
}

.bppt-ga-email-template-groups {
    display: grid;
    gap: 16px;
}

.bppt-ga-email-template-toolbar {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #d7e8ed;
    border-radius: 12px;
    background: #f7fbfc;
}

.bppt-ga-email-template-groups.is-drop-target > .bppt-ga-email-template-group {
    border-color: #8fbfcb;
}

.bppt-ga-email-template-groups > .bppt-ga-email-template-group.is-dragging {
    opacity: .55;
    box-shadow: 0 14px 30px rgba(13, 95, 117, .22);
}

.bppt-ga-email-template-group {
    position: relative;
    min-width: 0;
    overflow: visible;
    border: 1px solid #d7e3e7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 61, 76, .055);
}

.bppt-ga-email-template-group:hover,
.bppt-ga-email-template-group:focus-within {
    z-index: 60;
}

.bppt-ga-email-template-group .bppt-ga-help-tip-wrap {
    z-index: 70;
}

.bppt-ga-email-template-group .bppt-ga-help-tooltip {
    z-index: 10001;
}

.bppt-ga-email-template-group-heading {
    display: flex;
    margin: 0;
    padding: 16px 17px 16px 20px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #dce7ea;
    border-left: 5px solid #0f6b7a;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #ffffff 0%, #edf7fa 100%);
}

.bppt-ga-email-template-group-heading.bppt-ga-settings-panel-heading {
    margin: 0;
}

.bppt-ga-email-template-group.is-collapsed .bppt-ga-email-template-group-heading {
    border-bottom-color: transparent;
    border-radius: 15px;
}

.bppt-ga-email-template-group > .bppt-ga-settings-panel-content {
    padding-top: 0;
}

.bppt-ga-email-template-group-heading h4 {
    margin: 0 0 6px;
    color: #083744;
    font-size: 1.18rem;
    line-height: 1.18;
}

.bppt-ga-email-template-group-heading p {
    max-width: 880px;
    margin: 0;
    color: #60737a;
    line-height: 1.45;
}

.bppt-ga-email-template-group-heading .bppt-ga-season-chip {
    flex: 0 0 auto;
    margin-top: 1px;
}

.bppt-ga-email-template-meta {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
}

.bppt-ga-email-template-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    max-width: 430px;
}

.bppt-ga-email-template-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: .28rem .62rem;
    border: 1px solid #cfe4ea;
    border-radius: 999px;
    background: #f4fafb;
    color: #174b59;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.bppt-ga-email-template-state.is-active {
    border-color: #c8ecd5;
    background: #e8f7ee;
    color: #146135;
}

.bppt-ga-email-template-state.is-disabled {
    border-color: #f0caca;
    background: #fdebec;
    color: #9a1f27;
}

.bppt-ga-email-template-state.is-always-active {
    border-color: #c8d9f3;
    background: #edf4ff;
    color: #1f4e8c;
}

.bppt-ga-email-template-fields {
    display: grid;
    padding: 17px;
    gap: 15px;
}

.bppt-ga-email-template-fields .bppt-ga-field {
    margin: 0;
}

.bppt-ga-email-template-fields textarea {
    min-height: 132px;
    resize: vertical;
}

.bppt-ga-email-template-divider {
    height: 1px;
    margin: 2px 0;
    background: #dfe8eb;
}

.bppt-ga-email-template-subheading {
    display: flex;
    padding: 10px 12px;
    border-left: 4px solid #5fa4b5;
    border-radius: 8px;
    background: #f2f8fa;
    align-items: baseline;
    gap: 9px;
}

.bppt-ga-email-template-subheading strong {
    color: #174552;
}

.bppt-ga-email-template-subheading small {
    color: #65777e;
}

.bppt-ga-email-template-toggle {
    padding: 12px 14px;
    border: 1px solid #d9e6e9;
    border-radius: 11px;
    background: #f8fbfc;
}

.bppt-ga-email-template-toggle label {
    margin: 0;
}

@media (max-width: 780px) {
    .bppt-ga-email-variable-list {
        grid-template-columns: 1fr;
    }

    .bppt-ga-email-template-group-heading {
        flex-direction: column;
        padding: 14px;
    }

    .bppt-ga-email-template-meta {
        justify-content: flex-start;
        width: 100%;
    }

    .bppt-ga-email-template-badges {
        justify-content: flex-start;
        max-width: none;
    }

    .bppt-ga-email-template-subheading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 520px) {
    .bppt-ga-email-variable-directory > summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .bppt-ga-email-variable-directory > summary small {
        width: calc(100% - 28px);
    }

    .bppt-ga-email-variable-directory-body,
    .bppt-ga-email-template-fields {
        padding: 13px;
    }

    .bppt-ga-email-variable-item {
        grid-template-columns: 1fr;
    }

    .bppt-ga-email-variable-item code {
        width: fit-content;
        grid-row: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bppt-ga-email-variable-directory > summary::after {
        transition: none;
    }
}

@media (max-width: 900px) {
    .bppt-ga-setup-checklist {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .bppt-ga-setup-item {
        align-items: stretch;
        flex-direction: column;
    }

    .bppt-ga-setup-item .bppt-ga-button {
        justify-content: center;
        width: 100%;
    }
}

/* Version 0.5.6.51 - premiers reglages des reseaux sociaux. */
.bppt-ga-social-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bppt-ga-social-setting {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    background: #fff;
}

.bppt-ga-social-setting .bppt-ga-field {
    margin-top: 12px;
}

/* Version 0.5.6.52 - presentation configurable des reseaux sociaux. */
.bppt-ga-social-display-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Version 0.5.6.53 - apercu du rendu social dans les parametres. */
.bppt-ga-social-preview {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    background: #f7fbfc;
}

.bppt-ga-social-preview h3,
.bppt-ga-social-preview p {
    margin: 0;
}

.bppt-ga-social-preview-frame {
    min-width: 0;
    padding: 14px;
    border: 1px dashed #b8cdd5;
    border-radius: 8px;
    background: #fff;
}

.bppt-ga-social-preview-frame .bppt-ga-social-links {
    margin: 0;
}

/* Version 0.5.6.54 - assistant de diffusion des articles. */
.bppt-ga-social-article-assistant {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    background: #fff;
}

.bppt-ga-social-article-heading h3,
.bppt-ga-social-article-heading p {
    margin: 0;
}

.bppt-ga-social-article-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.bppt-ga-social-article-list {
    display: grid;
    gap: 12px;
}

.bppt-ga-social-article-card {
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    background: #f7fbfc;
    overflow: hidden;
}

.bppt-ga-social-article-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.bppt-ga-social-article-card > summary span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.bppt-ga-social-article-card > summary strong,
.bppt-ga-social-share-heading h4 {
    margin: 0;
}

.bppt-ga-social-article-card > summary small {
    color: var(--bppt-muted);
}

.bppt-ga-social-article-body {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

.bppt-ga-social-article-body > p {
    margin: 0;
    color: var(--bppt-muted);
}

.bppt-ga-social-share-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bppt-ga-social-share-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    background: #fff;
}

.bppt-ga-social-share-card textarea {
    width: 100%;
    min-height: 155px;
    resize: vertical;
    font-size: .92rem;
    line-height: 1.45;
}

.bppt-ga-social-share-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bppt-ga-social-share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.bppt-ga-social-share-card.is-facebook { border-color: #b7cff7; }
.bppt-ga-social-share-card.is-instagram { border-color: #e5b3cd; }
.bppt-ga-social-share-card.is-tiktok { border-color: #a8e5eb; }

.bppt-ga-social-links {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    justify-items: start;
    text-align: left;
}

.bppt-ga-social-links.is-align-center {
    justify-items: center;
    text-align: center;
}

.bppt-ga-social-links.is-align-right {
    justify-items: end;
    text-align: right;
}

.bppt-ga-social-links h2,
.bppt-ga-social-links p {
    margin: 0;
}

.bppt-ga-social-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    list-style: none;
}

.bppt-ga-social-links.is-align-center ul {
    justify-content: center;
}

.bppt-ga-social-links.is-align-right ul {
    justify-content: flex-end;
}

.bppt-ga-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #cbd8dd;
    border-radius: 8px;
    background: #fff;
    color: #173d4a;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.bppt-ga-social-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 999px;
    background: #edf4f7;
    color: #173d4a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.bppt-ga-social-link:hover,
.bppt-ga-social-link:focus-visible {
    border-color: #0d6f86;
    color: #0b5d70;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(13, 111, 134, .16);
}

.bppt-ga-social-link.is-facebook { border-color: #7daaf2; }
.bppt-ga-social-link.is-instagram { border-color: #d88bb6; }
.bppt-ga-social-link.is-tiktok { border-color: #6fd5df; }
.bppt-ga-social-link.is-facebook .bppt-ga-social-link-icon { background: #1877f2; color: #fff; }
.bppt-ga-social-link.is-instagram .bppt-ga-social-link-icon { background: #c13584; color: #fff; }
.bppt-ga-social-link.is-tiktok .bppt-ga-social-link-icon { background: #101820; color: #fff; }

.bppt-ga-social-links.is-style-compact .bppt-ga-social-link {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .92rem;
}

.bppt-ga-social-links.is-style-compact .bppt-ga-social-link-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 10px;
}

.bppt-ga-social-links.is-style-icons .bppt-ga-social-link {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
}

.bppt-ga-social-links.is-style-icons .bppt-ga-social-link-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.bppt-ga-social-links.is-style-icons .bppt-ga-social-link-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .bppt-ga-social-settings-grid,
    .bppt-ga-social-display-options,
    .bppt-ga-social-share-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .bppt-ga-social-article-card > summary,
    .bppt-ga-social-share-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .bppt-ga-social-share-actions {
        justify-content: flex-start;
    }

    .bppt-ga-social-links:not(.is-style-icons) li {
        width: 100%;
    }

    .bppt-ga-social-links:not(.is-style-icons) .bppt-ga-social-link {
        width: 100%;
    }

    .bppt-ga-social-links ul,
    .bppt-ga-social-links.is-align-right ul {
        justify-content: center;
    }

    .bppt-ga-social-links,
    .bppt-ga-social-links.is-align-right {
        justify-items: center;
        text-align: center;
    }
}
