<style>
            .emcc-member-search{display:flex;flex-direction:column;gap:12px;margin:0 0 24px}
            .emcc-member-search-row{display:grid;gap:12px 16px}
            .emcc-member-search-row-full{grid-template-columns:minmax(0,1fr)}
            .emcc-member-search-row-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
            .emcc-member-search label{display:flex;flex-direction:column;gap:6px;font-weight:var(--emcc-font-weight-semibold);color:var(--emcc-color-heading);min-width:0}
            .emcc-member-search input,.emcc-member-search select,.emcc-member-search button{min-height:42px;border-radius:var(--emcc-radius-small);border:1px solid var(--emcc-color-border-field);padding:0 12px;font:inherit}
            .emcc-member-search button{background-color:var(--emcc-color-primary);border-color:var(--emcc-color-primary);color:var(--emcc-color-on-primary);font-weight:var(--emcc-button-font-weight);cursor:pointer}
            .emcc-member-search button:hover,.emcc-member-search button:focus{background-color:var(--emcc-color-primary-hover);border-color:var(--emcc-color-primary-hover)}
            .emcc-member-search-actions{display:flex;justify-content:flex-start}
            .emcc-member-search-placeholder,.emcc-member-results p{padding:18px 20px;border:1px dashed var(--emcc-color-border-field);border-radius:var(--emcc-radius-large);background:var(--emcc-color-surface-muted);color:var(--emcc-color-text-soft)}
            .emcc-member-table{display:flex;flex-direction:column;gap:10px}
            .emcc-member-table-head,.emcc-member-row{display:grid;grid-template-columns:92px minmax(180px,1.5fr) minmax(180px,1.4fr) minmax(120px,1fr) 70px 70px;gap:12px;align-items:center}
            .emcc-member-table-head{padding:0 14px;color:var(--emcc-color-text-muted);font-size:var(--emcc-font-size-sm);font-weight:var(--emcc-font-weight-bold);text-transform:uppercase;letter-spacing:.04em}
            .emcc-member-row{padding:14px;border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-radius-xl);background:var(--emcc-card-background);box-shadow:var(--emcc-shadow-card-strong)}
            .emcc-member-cell{min-width:0}
            .emcc-member-photo img{width:72px;height:72px;object-fit:cover;border-radius:var(--emcc-radius-large);display:block}
            .emcc-member-photo-placeholder{width:72px;height:72px;border-radius:14px;background:linear-gradient(135deg,#dcefee,#f5f1e8);display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:700;color:#466267}
            .emcc-member-name a{font-weight:var(--emcc-font-weight-bold);color:var(--emcc-color-heading);text-decoration:none}
            .emcc-member-accreditations,.emcc-member-languages{display:flex;flex-wrap:wrap;gap:8px}
            .emcc-member-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:var(--emcc-radius-pill);background:var(--emcc-color-surface-subtle);color:var(--emcc-color-primary);font-size:.86rem;font-weight:var(--emcc-font-weight-bold)}
            .emcc-member-badge-accreditation{padding:8px 12px}
            .emcc-member-badge-accreditation.is-active{background:#28a745;color:#fff}
            .emcc-member-badge-accreditation.is-expired{background:#A0B2A6;color:#F2F2F2}
            .emcc-member-badge-accreditation.is-compact{min-width:34px;justify-content:center;padding:6px 8px;font-size:.78rem;letter-spacing:.02em;background:#eef5f2;color:#375750;border:1px solid #d7e4e4}
            .emcc-member-badge-accreditation.is-compact.is-active{background:#28a745;color:#fff;border-color:#28a745}
            .emcc-member-badge-accreditation.is-compact.is-expired{background:#A0B2A6;color:#F2F2F2;border-color:#A0B2A6}
            .emcc-language-badge{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--emcc-radius-pill);background:var(--emcc-color-page);font-size:var(--emcc-font-size-body-large);border:1px solid var(--emcc-card-border-color)}
            .emcc-member-actions{display:flex;justify-content:center}
            .emcc-member-icon-link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--emcc-radius-pill);background:var(--emcc-color-secondary);color:var(--emcc-color-on-primary);text-decoration:none}
            .emcc-member-icon-link svg{width:18px;height:18px}
            .emcc-member-muted{color:var(--emcc-color-text-subtle)}
            .emcc-member-profile-full{display:flex;flex-direction:column;gap:20px}
            .emcc-member-profile-full-photo img,.emcc-member-shortcode-photo img{max-width:240px;height:auto;border-radius:16px;display:block}
            .emcc-member-divi-hero-photo img{width:min(100%,280px);max-width:280px;aspect-ratio:1/1;object-fit:cover;border-radius:22px;display:block}
            .emcc-member-divi-hero-title{margin:0;color:var(--emcc-color-heading)}
            .emcc-member-divi-hero-subtitle{margin:8px 0 0;color:var(--emcc-color-text-muted);font-size:var(--emcc-font-size-subtitle)}
            .emcc-member-divi-hero-languages{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
            .emcc-member-profile-section{display:flex;flex-direction:column;gap:8px}
            .emcc-member-profile-section h3{margin:0 0 4px;color:var(--emcc-color-heading)}
            .emcc-member-profile-page{display:flex;flex-direction:column;gap:24px}
            .emcc-member-profile-page-hero{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:24px;align-items:start}
            .emcc-member-profile-page-photo img{width:100%;height:auto;border-radius:20px;display:block}
            .emcc-member-profile-page-hero-content{display:flex;flex-direction:column;gap:14px}
            .emcc-member-profile-page-title{margin:0;color:var(--emcc-color-heading)}
            .emcc-member-profile-page-subtitle{margin:0;font-size:var(--emcc-font-size-subtitle);color:var(--emcc-color-text-muted)}
            .emcc-member-profile-page-inline-block,.emcc-member-profile-page-section,.emcc-member-profile-page-subsection{display:flex;flex-direction:column;gap:10px}
            .emcc-member-profile-page-inline-block h2,.emcc-member-profile-page-section h2,.emcc-member-profile-page-subsection h3{margin:0;color:var(--emcc-color-heading)}
            .emcc-member-profile-page-section{padding:var(--emcc-card-padding);border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-card-radius);background:var(--emcc-card-background);box-shadow:var(--emcc-card-shadow)}
            .emcc-member-profile-page-contact div,.emcc-member-profile-page-address,.emcc-member-profile-page-coaching-locations{color:var(--emcc-color-text-muted)}
            .emcc-member-profile-page-tags{display:flex;flex-wrap:wrap;gap:8px}
            .emcc-member-profile-page-accreditations{display:flex;flex-wrap:wrap;gap:10px}
            .emcc-member-profile-page-accreditation-item{padding:var(--emcc-space-sm) var(--emcc-space-md);border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-radius-medium);background:var(--emcc-color-surface-soft);color:var(--emcc-color-text)}
            .emcc-member-profile-page-text{color:var(--emcc-color-text-muted);line-height:var(--emcc-line-height-relaxed)}
            .emcc-my-profile{display:flex;flex-direction:column;gap:24px}
            .emcc-my-profile-header h2{margin:0 0 6px;color:var(--emcc-color-heading)}
            .emcc-my-profile-header p{margin:0;color:var(--emcc-color-text-muted)}
            .emcc-my-profile-membership{display:flex;flex-direction:column;gap:14px;padding:var(--emcc-card-padding);border:1px solid var(--emcc-card-border-color);border-left-width:6px;border-radius:var(--emcc-card-radius);box-shadow:var(--emcc-card-shadow)}
            .emcc-my-profile-membership h3{margin:0;color:var(--emcc-color-heading)}
            .emcc-my-profile-membership-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;color:var(--emcc-color-text)}
            .emcc-my-profile-membership-message{margin:0;font-weight:var(--emcc-font-weight-bold)}
            .emcc-my-profile-membership-history{display:flex;flex-direction:column;gap:8px}
            .emcc-my-profile-membership-history-list{margin:0;padding-left:18px}
            .emcc-my-profile-membership-history-list li{margin:0 0 4px}
            .emcc-my-profile-membership-history-stripe{margin-top:4px;color:var(--emcc-color-text-muted);font-size:var(--emcc-font-size-body-small)}
            .emcc-my-profile-membership-actions{display:flex;justify-content:flex-start}
            .emcc-my-profile-membership-active{background:var(--emcc-color-state-active-bg);border-color:var(--emcc-color-state-active-border);color:var(--emcc-color-state-active-text)}
            .emcc-my-profile-membership-warning{background:var(--emcc-color-state-warning-bg);border-color:var(--emcc-color-state-warning-border);color:var(--emcc-color-state-warning-text)}
            .emcc-my-profile-membership-expired{background:var(--emcc-color-state-expired-bg);border-color:var(--emcc-color-state-expired-border);color:var(--emcc-color-state-expired-text)}
            .emcc-my-profile-membership-neutral{background:var(--emcc-color-state-neutral-bg);border-color:var(--emcc-color-state-neutral-border);color:var(--emcc-color-state-neutral-text)}
            .emcc-my-profile-message{padding:var(--emcc-message-padding);border-radius:var(--emcc-message-radius)}
            .emcc-my-profile-message-success{background:var(--emcc-color-status-success-bg);color:var(--emcc-color-status-success-text);border:1px solid var(--emcc-color-status-success-border)}
            .emcc-my-profile-message-warning{background:var(--emcc-color-status-warning-bg);color:var(--emcc-color-status-warning-text);border:1px solid var(--emcc-color-status-warning-border)}
            .emcc-my-profile-message-error{background:var(--emcc-color-status-error-bg);color:var(--emcc-color-status-error-text);border:1px solid var(--emcc-color-status-error-border)}
            .emcc-my-profile-form{display:flex;flex-direction:column;gap:24px}
            .emcc-my-profile-section{display:flex;flex-direction:column;gap:14px;padding:var(--emcc-card-padding);border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-card-radius);background:var(--emcc-card-background);box-shadow:var(--emcc-card-shadow)}
            .emcc-my-profile-section h3{margin:0;color:var(--emcc-color-heading)}
            .emcc-my-profile-section-intro{margin:0;color:var(--emcc-color-text-subtle)}
            .emcc-my-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
            .emcc-my-profile-grid-address{grid-template-columns:repeat(3,minmax(0,1fr))}
            .emcc-my-profile-field{display:flex;flex-direction:column;gap:6px}
            .emcc-my-profile-field-wide{grid-column:1/-1}
            .emcc-my-profile-field-third{grid-column:auto}
            .emcc-my-profile-field label{font-weight:var(--emcc-font-weight-bold);color:var(--emcc-color-heading)}
            .emcc-my-profile-choice{display:flex;align-items:center;gap:8px;font-weight:var(--emcc-font-weight-medium) !important}
            .emcc-my-profile-field input,.emcc-my-profile-field textarea,.emcc-my-profile-field select{width:100%;min-height:var(--emcc-form-control-min-height);padding:var(--emcc-form-control-padding);border:1px solid var(--emcc-form-control-border-color);border-radius:var(--emcc-form-control-radius);font:inherit;background:var(--emcc-form-control-background)}
            .emcc-my-profile-field textarea{min-height:120px;resize:vertical}
            .emcc-my-profile-field small{color:var(--emcc-color-text-subtle)}
            .emcc-inline-note{font-weight:400}
            .emcc-inline-choice{display:flex;align-items:center;gap:8px;font-weight:var(--emcc-font-weight-medium) !important;margin-top:6px}
            .emcc-inline-choice input[type="checkbox"]{width:auto;min-height:auto}
            .emcc-photo-manager{display:flex;flex-direction:column;gap:12px}
            .emcc-photo-manager-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
            .emcc-photo-manager-item{display:flex;flex-direction:column;gap:8px;padding:var(--emcc-space-md);border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-radius-large);background:var(--emcc-color-surface-soft)}
            .emcc-photo-manager-preview{display:flex;justify-content:center;align-items:center;min-height:120px}
            .emcc-photo-manager-preview .emcc-photo-manager-thumb{width:auto !important;max-width:100% !important;height:120px !important;object-fit:contain !important;object-position:center center !important;aspect-ratio:auto !important;border-radius:var(--emcc-radius-xl);display:block}
            .emcc-photo-manager-choice,.emcc-photo-manager-remove{display:flex;align-items:flex-start;gap:8px;font-weight:var(--emcc-font-weight-medium) !important}
            .emcc-photo-manager-empty{margin:0;color:var(--emcc-color-text-subtle)}
            .emcc-my-profile-accreditations{display:flex;flex-direction:column;gap:12px}
            .emcc-my-profile-accreditation-table{width:100%;border-collapse:collapse}
            .emcc-my-profile-accreditation-table th,.emcc-my-profile-accreditation-table td{padding:var(--emcc-space-sm) var(--emcc-space-md);border:1px solid var(--emcc-card-border-color);text-align:left}
            .emcc-my-profile-accreditation-table th{background:var(--emcc-color-page);color:var(--emcc-color-heading)}
            .emcc-my-profile-accreditation-note{margin:0;color:var(--emcc-color-text-subtle)}
            .emcc-token-field,.emcc-repeater-field{display:flex;flex-direction:column;gap:8px}
            .emcc-token-list,.emcc-repeater-items{display:flex;flex-direction:column;gap:8px}
            .emcc-token-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--emcc-space-xs) var(--emcc-space-sm);border-radius:var(--emcc-radius-medium);background:var(--emcc-color-surface-subtle);border:1px solid var(--emcc-card-border-color)}
            .emcc-token-chip button,.emcc-repeater-add,.emcc-repeater-remove{border:0;border-radius:var(--emcc-radius-small);background:var(--emcc-color-secondary);color:var(--emcc-color-on-primary);padding:var(--emcc-space-xs) var(--emcc-space-md);cursor:pointer}
            .emcc-repeater-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end;padding:var(--emcc-space-md);border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-radius-large);background:var(--emcc-color-surface-soft)}
            .emcc-repeater-row .emcc-repeater-city{grid-column:span 2}
            .emcc-repeater-row .emcc-repeater-details{grid-column:span 3}
            .emcc-repeater-row .emcc-repeater-details{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
            .emcc-my-profile-footer-note{margin:0;color:var(--emcc-color-text-subtle);font-size:var(--emcc-font-size-body-small)}
            .emcc-my-profile-actions{display:flex;justify-content:flex-start}
            .emcc-my-profile-actions button{min-height:var(--emcc-button-min-height);padding:var(--emcc-button-padding);border:1px solid var(--emcc-color-primary);border-radius:var(--emcc-button-radius);background-color:var(--emcc-color-primary);color:var(--emcc-color-on-primary);font:inherit;font-weight:var(--emcc-button-font-weight);cursor:pointer}
            .emcc-my-profile-actions button:hover,.emcc-my-profile-actions button:focus{background-color:var(--emcc-color-primary-hover);border-color:var(--emcc-color-primary-hover)}
            .emcc-login-card{display:flex;flex-direction:column;gap:16px;max-width:var(--emcc-max-width-card);padding:var(--emcc-space-5xl);border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-radius-3xl);background:var(--emcc-card-background);box-shadow:var(--emcc-shadow-panel)}
            .emcc-login-card h2{margin:0;color:var(--emcc-color-heading)}
            .emcc-login-intro{margin:0;color:var(--emcc-color-text-muted)}
            .emcc-login-card form{display:flex;flex-direction:column;gap:14px}
            .emcc-login-card label{display:block;margin:0 0 6px;font-weight:var(--emcc-font-weight-bold);color:var(--emcc-color-heading)}
            .emcc-login-card input[type="text"],.emcc-login-card input[type="password"],.emcc-login-card input[type="email"]{width:100%;min-height:var(--emcc-button-min-height);padding:var(--emcc-form-control-padding);border:1px solid var(--emcc-form-control-border-color);border-radius:var(--emcc-form-control-radius);font:inherit;background:var(--emcc-form-control-background)}
            .emcc-login-card .login-remember{display:flex;align-items:center;gap:8px}
            .emcc-login-card .login-remember label{margin:0;font-weight:var(--emcc-font-weight-semibold)}
            .emcc-login-card .login-submit{margin:6px 0 0}
            .emcc-login-card .button,.emcc-login-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--emcc-button-min-height);padding:var(--emcc-button-padding);border:1px solid var(--emcc-color-primary);border-radius:var(--emcc-button-radius);background-color:var(--emcc-color-primary);color:var(--emcc-color-on-primary) !important;font:inherit;font-weight:var(--emcc-button-font-weight);text-decoration:none;cursor:pointer}
            .emcc-login-card .button:hover,.emcc-login-card .button:focus,.emcc-login-button:hover,.emcc-login-button:focus{background-color:var(--emcc-color-primary-hover);border-color:var(--emcc-color-primary-hover)}
            .emcc-login-meta{margin:0}
            .emcc-login-meta a,.emcc-login-link{color:var(--emcc-color-link);text-decoration:none;font-weight:var(--emcc-font-weight-bold)}
            .emcc-login-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
            .emcc-login-language-switcher{display:flex;flex-wrap:wrap;gap:8px}
            .emcc-login-language-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:36px;padding:0 12px;border:1px solid var(--emcc-color-border-field);border-radius:var(--emcc-radius-pill);color:var(--emcc-color-link);text-decoration:none;font-weight:var(--emcc-font-weight-bold);background:var(--emcc-color-surface)}
            .emcc-login-language-link.is-current{background:var(--emcc-color-primary);color:var(--emcc-color-on-primary);border-color:var(--emcc-color-primary)}
            .emcc-account-login-link{color:var(--emcc-color-link);text-decoration:none;font-weight:var(--emcc-font-weight-bold)}
            .emcc-account-menu{position:relative;display:inline-block}
            .emcc-account-menu summary{list-style:none}
            .emcc-account-menu summary::-webkit-details-marker{display:none}
            .emcc-account-menu-trigger{display:flex;align-items:center;gap:10px;cursor:pointer}
            .emcc-account-menu-photo{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:var(--emcc-radius-pill);overflow:hidden;background:var(--emcc-color-surface-soft);border:2px solid var(--emcc-card-border-color)}
            .emcc-account-menu-photo-image{width:100%;height:100%;object-fit:contain;object-position:center center;display:block}
            .emcc-account-menu-name{font-weight:var(--emcc-font-weight-bold);color:var(--emcc-color-heading)}
            .emcc-account-menu-panel{position:absolute;right:0;top:calc(100% + 10px);min-width:180px;padding:var(--emcc-space-xs);border:1px solid var(--emcc-card-border-color);border-radius:var(--emcc-radius-large);background:var(--emcc-card-background);box-shadow:var(--emcc-shadow-floating);z-index:20;display:flex;flex-direction:column;gap:4px}
            .emcc-account-menu-link{display:block;padding:var(--emcc-space-sm) var(--emcc-space-md);border-radius:var(--emcc-radius-small);color:var(--emcc-color-heading);text-decoration:none}
            .emcc-account-menu-link:hover{background:var(--emcc-color-surface-subtle)}
            @media (max-width: 980px){
                .emcc-member-table-head{display:none}
                .emcc-member-row{grid-template-columns:92px 1fr 1fr;grid-template-areas:"photo name name" "photo accreditations accreditations" "photo languages languages" "photo mail web"}
                .emcc-member-photo{grid-area:photo}
                .emcc-member-name{grid-area:name}
                .emcc-member-accreditations{grid-area:accreditations}
                .emcc-member-languages{grid-area:languages}
                .emcc-member-row .emcc-member-actions:nth-of-type(5){grid-area:mail;justify-content:flex-start}
                .emcc-member-row .emcc-member-actions:nth-of-type(6){grid-area:web;justify-content:flex-start}
            }
            @media (max-width: 640px){
                .emcc-member-profile-page-hero{grid-template-columns:1fr}
                .emcc-member-search-row-pair{grid-template-columns:1fr}
                .emcc-member-row{grid-template-columns:1fr 1fr;grid-template-areas:"photo name" "accreditations accreditations" "languages languages" "mail web"}
                .emcc-member-photo{margin-bottom:8px}
                .emcc-my-profile-membership-grid{grid-template-columns:1fr}
                .emcc-my-profile-grid{grid-template-columns:1fr}
                .emcc-my-profile-grid-address{grid-template-columns:1fr}
                .emcc-my-profile-field-wide{grid-column:auto}
                .emcc-repeater-row{grid-template-columns:1fr}
            }
        </style><script>
        document.addEventListener("DOMContentLoaded", function () {
            document.querySelectorAll(".emcc-token-field").forEach(function (field) {
                const options = JSON.parse(field.dataset.options || "{}");
                const selected = new Set(JSON.parse(field.dataset.selected || "[]"));
                const list = field.querySelector(".emcc-token-list");
                const input = field.querySelector(".emcc-token-input");
                const name = field.dataset.name;
                const render = function () {
                    list.innerHTML = "";
                    selected.forEach(function (value) {
                        const chip = document.createElement("div");
                        chip.className = "emcc-token-chip";
                        const label = document.createElement("span");
                        label.textContent = options[value] || value;
                        const hidden = document.createElement("input");
                        hidden.type = "hidden";
                        hidden.name = name + "[]";
                        hidden.value = value;
                        const remove = document.createElement("button");
                        remove.type = "button";
                        remove.textContent = "Retirer";
                        remove.addEventListener("click", function () { selected.delete(value); render(); });
                        chip.append(label, hidden, remove);
                        list.appendChild(chip);
                    });
                };
                const addValue = function (value) {
                    if (options[value]) {
                        selected.add(value);
                        render();
                        input.value = "";
                    }
                };
                input.addEventListener("change", function () { addValue(input.value.trim()); });
                input.addEventListener("keydown", function (event) {
                    if (event.key === "Enter" || event.key === ",") {
                        event.preventDefault();
                        addValue(input.value.trim().replace(/,$/, ""));
                    }
                });
                render();
            });
            document.querySelectorAll(".emcc-repeater-field").forEach(function (field) {
                const items = JSON.parse(field.dataset.items || "[]");
                const name = field.dataset.name;
                const labels = JSON.parse(field.dataset.labels || "{}");
                const list = field.querySelector(".emcc-repeater-items");
                const addButton = field.querySelector(".emcc-repeater-add");
                const createInputBlock = function (labelText, inputName, inputValue, extraClass) {
                    const block = document.createElement("div");
                    if (extraClass) {
                        block.className = extraClass;
                    }
                    const label = document.createElement("label");
                    label.textContent = labelText;
                    const input = document.createElement("input");
                    input.type = "text";
                    input.name = inputName;
                    input.value = String(inputValue || "");
                    block.append(label, input);
                    return block;
                };
                const render = function () {
                    list.innerHTML = "";
                    items.forEach(function (item, index) {
                        const row = document.createElement("div");
                        row.className = "emcc-repeater-row";
                        row.appendChild(createInputBlock(labels.street || "Rue", name + "[" + index + "][street]", item.street || item.address || ""));
                        row.appendChild(createInputBlock(labels.street_no || "N°", name + "[" + index + "][street_no]", item.street_no || ""));
                        row.appendChild(createInputBlock(labels.po_box || "Boîte", name + "[" + index + "][po_box]", item.po_box || ""));
                        row.appendChild(createInputBlock(labels.zip_code || "Code postal", name + "[" + index + "][zip_code]", item.zip_code || ""));
                        row.appendChild(createInputBlock(labels.city || "Ville", name + "[" + index + "][city]", item.city || "", "emcc-repeater-city"));
                        const detailsWrap = document.createElement("div");
                        detailsWrap.className = "emcc-repeater-details";
                        const detailsField = document.createElement("div");
                        detailsField.appendChild(
                            createInputBlock(
                                labels.details || "Info complémentaire",
                                name + "[" + index + "][details]",
                                item.details || ""
                            )
                        );
                        const remove = document.createElement("button");
                        remove.type = "button";
                        remove.className = "emcc-repeater-remove";
                        remove.textContent = "Supprimer";
                        remove.addEventListener("click", function () { items.splice(index, 1); render(); });
                        detailsWrap.appendChild(detailsField);
                        detailsWrap.appendChild(remove);
                        row.appendChild(detailsWrap);
                        list.appendChild(row);
                    });
                };
                addButton.addEventListener("click", function () {
                    items.push({ street: "", street_no: "", po_box: "", zip_code: "", city: "", details: "" });
                    render();
                });
                if (!items.length) {
                    items.push({ street: "", street_no: "", po_box: "", zip_code: "", city: "", details: "" });
                }
                render();
            });
            const bootstrapMembershipPolling = function (panel) {
                if (!panel || panel.dataset.emccMembershipShouldPoll !== "1") {
                    return;
                }

                const ajaxUrl = panel.dataset.emccMembershipAjaxUrl || "";
                const ajaxAction = panel.dataset.emccMembershipAjaxAction || "";
                const nonce = panel.dataset.emccMembershipNonce || "";
                const profileId = panel.dataset.emccMembershipProfileId || "";
                const renewalId = panel.dataset.emccMembershipRenewalId || "";
                const pollInterval = parseInt(panel.dataset.emccMembershipPollInterval || "7000", 10);

                if (!ajaxUrl || !ajaxAction || !nonce || !profileId) {
                    return;
                }

                let isBusy = false;
                const timer = window.setInterval(function () {
                    if (isBusy) {
                        return;
                    }

                    isBusy = true;
                    const body = new URLSearchParams();
                    body.set("action", ajaxAction);
                    body.set("nonce", nonce);
                    body.set("profile_id", profileId);
                    if (renewalId) {
                        body.set("renewal_id", renewalId);
                    }

                    window.fetch(ajaxUrl, {
                        method: "POST",
                        credentials: "same-origin",
                        headers: {
                            "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
                        },
                        body: body.toString()
                    }).then(function (response) {
                        return response.json();
                    }).then(function (payload) {
                        if (!payload || !payload.success || !payload.data || !payload.data.html) {
                            return;
                        }

                        const wrapper = document.createElement("div");
                        wrapper.innerHTML = payload.data.html;
                        const replacement = wrapper.firstElementChild;
                        if (!replacement) {
                            return;
                        }

                        panel.replaceWith(replacement);
                        window.clearInterval(timer);

                        if (payload.data.should_poll) {
                            bootstrapMembershipPolling(replacement);
                        }
                    }).catch(function () {
                        // Keep polling quietly; payment confirmation can arrive a few seconds later.
                    }).finally(function () {
                        isBusy = false;
                    });
                }, Number.isFinite(pollInterval) && pollInterval > 0 ? pollInterval : 7000);
            };

            document.querySelectorAll(".emcc-my-profile-membership").forEach(function (panel) {
                bootstrapMembershipPolling(panel);
            });
        });
        </script>{"id":8012,"date":"2026-04-27T08:24:53","date_gmt":"2026-04-27T06:24:53","guid":{"rendered":"https:\/\/emccbelgium.org\/my-profile\/"},"modified":"2026-06-09T09:41:05","modified_gmt":"2026-06-09T07:41:05","slug":"my-profile","status":"publish","type":"page","link":"https:\/\/emccbelgium.org\/en\/my-profile\/","title":{"rendered":"My profile"},"content":{"rendered":"<div class=\"et_pb_section_0 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_0 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_0 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_24_24 et_flex_column_24_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_text_0 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><div class=\"emcc-my-profile-message emcc-my-profile-message-warning\">Log in to edit your profile.<\/div>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","footnotes":""},"class_list":["post-8012","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/pages\/8012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/comments?post=8012"}],"version-history":[{"count":1,"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/pages\/8012\/revisions"}],"predecessor-version":[{"id":8013,"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/pages\/8012\/revisions\/8013"}],"wp:attachment":[{"href":"https:\/\/emccbelgium.org\/en\/wp-json\/wp\/v2\/media?parent=8012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}