.escrime-form-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-family: inherit;
}

/* Barre de progression */
.escrime-progress {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
}
.escrime-progress .step {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    background: #e9ecef;
    color: #666;
    font-size: .85rem;
    font-weight: 600;
    transition: background .2s;
}
.escrime-progress .step.active {
    background: #1a5276;
    color: #fff;
}
.escrime-progress .step.done {
    background: #2ecc71;
    color: #fff;
}

/* Barre de progression responsive */
@media (max-width: 480px) {
    .escrime-progress .step { font-size: 0; padding: 10px 4px; }
    .escrime-progress .step::before { font-size: .8rem; content: attr(data-num); }
}

/* Étapes */
.escrime-step { display: none; }
.escrime-step.active { display: block; }

/* Grille champs */
.escrime-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.escrime-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.escrime-field label {
    font-weight: 600;
    font-size: .9rem;
}
.escrime-field input,
.escrime-field select,
.escrime-field textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}
.escrime-field input:focus,
.escrime-field select:focus {
    border-color: #1a5276;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,82,118,.2);
}

/* Cours list */
.escrime-cours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* Checkboxes */
.escrime-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}
.escrime-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Récapitulatif prix */
.escrime-prix-recap {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}
.escrime-prix-recap table {
    width: 100%;
    border-collapse: collapse;
}
.escrime-prix-recap td {
    padding: 6px 8px;
    border-bottom: 1px solid #e9ecef;
}
.escrime-prix-recap .recap-total td {
    border-bottom: none;
    font-size: 1.1rem;
    padding-top: 10px;
}

/* Récap final */
.escrime-recap-final {
    background: #f8f9fa;
    border-left: 4px solid #1a5276;
    padding: 16px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
}
.escrime-recap-final dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 6px 12px;
    margin: 0;
}
.escrime-recap-final dt { font-weight: 600; color: #555; }
.escrime-recap-final dd { margin: 0; }

/* Navigation */
.escrime-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}
.escrime-btn {
    padding: 10px 22px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background .15s;
}
.escrime-btn-next,
.escrime-btn-submit {
    background: #1a5276;
    color: #fff;
}
.escrime-btn-next:hover,
.escrime-btn-submit:hover { background: #154360; }
.escrime-btn-prev {
    background: #e9ecef;
    color: #333;
}
.escrime-btn-prev:hover { background: #dee2e6; }
.escrime-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Hints */
.escrime-hint {
    font-size: .8rem;
    color: #2ecc71;
}
.escrime-hint.error { color: #e74c3c; }

/* Messages */
.escrime-errors {
    background: #fdecea;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 12px;
    color: #c0392b;
}
.escrime-errors ul { margin: 0; padding-left: 18px; }

.escrime-success {
    background: #eafaf1;
    border: 1px solid #2ecc71;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    color: #1e8449;
    font-size: 1.1rem;
}

/* Bloc caché */
.escrime-block-hidden { display: none; }

/* ------------------------------------------------------------------ */
/* Support : signaler un bug / contacter le support                    */
/* ------------------------------------------------------------------ */
.escrime-support-toggle-wrap {
    margin-top: 24px;
    text-align: center;
}
.escrime-support-link {
    background: none;
    border: none;
    padding: 4px;
    color: #1a5276;
    font-size: .9rem;
    text-decoration: underline;
    cursor: pointer;
}
.escrime-support-link:hover { color: #154360; }
.escrime-support-panel {
    margin-top: 16px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: left;
}
.escrime-support-intro {
    margin-top: 0;
    color: #555;
    font-size: .92rem;
}
.escrime-support-standalone {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* Cards type d'inscription                                             */
/* ------------------------------------------------------------------ */
.escrime-type-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
}
.escrime-type-card {
    flex: 1;
    min-width: 180px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px 16px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    text-align: center;
}
.escrime-type-card:hover { border-color: #1a5276; }
.escrime-type-card input[type="radio"] { display: none; }
.escrime-type-card.selected {
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26,82,118,.15);
    background: #f0f6fb;
}
.escrime-type-card-icon { font-size: 2rem; margin-bottom: 8px; }
.escrime-type-card-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.escrime-type-card-desc { font-size: .82rem; color: #666; line-height: 1.4; }

/* ------------------------------------------------------------------ */
/* Récap panier famille                                                 */
/* ------------------------------------------------------------------ */
.escrime-cart-summary {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
.escrime-cart-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: .92rem;
}
.escrime-cart-member:last-of-type { border-bottom: none; }
.escrime-cart-member-name { font-weight: 600; }
.escrime-cart-member-details { color: #666; font-size: .82rem; }
.escrime-cart-member-prix { font-weight: 700; white-space: nowrap; }
.escrime-cart-member-remove { background: none; border: none; cursor: pointer; color: #e74c3c; font-size: 1.1rem; padding: 0 4px; }
.escrime-cart-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f0f6fb;
    font-weight: 700;
    font-size: 1.05rem;
}
.escrime-add-member-btn {
    margin-bottom: 16px;
    background: #fff;
    border: 2px dashed #1a5276;
    color: #1a5276;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
}
.escrime-add-member-btn:hover { background: #f0f6fb; }

/* ------------------------------------------------------------------ */
/* Bannière draft localStorage                                          */
/* ------------------------------------------------------------------ */
.escrime-draft-banner {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
}
.escrime-draft-banner button {
    padding: 4px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
}
.escrime-draft-restore { background: #1a5276; color: #fff; }
.escrime-draft-discard { background: #e9ecef; color: #333; }

/* Radios */
.escrime-radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.escrime-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
}
.escrime-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Fieldsets produits */
.escrime-produits-block {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.escrime-produits-block legend {
    padding: 0 6px;
    font-size: .95rem;
}
.escrime-prix-hint {
    font-size: .82rem;
    color: #888;
    margin-left: 4px;
}

/* Bouton secondaire (Appliquer code) */
.escrime-btn-secondary {
    padding: 8px 16px;
    border: 1px solid #1a5276;
    background: #fff;
    color: #1a5276;
    border-radius: 4px;
    cursor: pointer;
    font-size: .9rem;
    transition: background .15s;
}
.escrime-btn-secondary:hover { background: #eaf0fb; }

/* Récapitulatif */
.escrime-recap-final {
    margin: 20px 0;
}
.recap-section {
    margin-bottom: 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}
.recap-section h4 {
    margin: 0;
    padding: 8px 12px;
    background: #1a5276;
    color: #fff;
    font-size: .9rem;
}
.recap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.recap-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.recap-table td:first-child {
    width: 45%;
    color: #555;
    font-weight: 600;
}
.recap-table tr:last-child td { border-bottom: none; }
.recap-total-row td {
    background: #f0f6fb;
    font-size: 1.05rem;
    padding: 10px 12px;
}

.escrime-recap-loading {
    color: #888;
    font-style: italic;
    padding: 12px 0;
}

/* Info */
.escrime-info {
    color: #555;
    font-style: italic;
    margin-bottom: 12px;
}

/* Champ label seul */
.escrime-field-label {
    display: block;
    margin-bottom: 8px;
}

/* Erreur champ */
.escrime-input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231,76,60,.2) !important;
}

/* Responsive */
@media (max-width: 600px) {
    .escrime-row { flex-direction: column; }
    .escrime-field { min-width: 100%; }
    .recap-table td:first-child { width: auto; }
    .escrime-radio-group { flex-direction: column; gap: 10px; }
}

/* ------------------------------------------------------------------ */
/* Échéancier HelloAsso dans le récapitulatif                          */
/* ------------------------------------------------------------------ */
.recap-echeances-header td {
    background: #f0fdf4;
    color: #166534;
    padding-top: 12px !important;
    border-top: 2px solid #86efac !important;
    font-size: .9rem;
}
.recap-echeances-header + tr td,
.recap-echeances-header ~ tr:not(.recap-total-row) td {
    background: #f9fef9;
    color: #374151;
    font-size: .88rem;
}

/* ------------------------------------------------------------------ */
/* Autocomplétion adresse                                              */
/* ------------------------------------------------------------------ */
.escrime-autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #1a5276;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    max-height: 260px;
    overflow-y: auto;
}
.escrime-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: .92rem;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
    transition: background .1s;
}
.escrime-autocomplete-item:last-child { border-bottom: none; }
.escrime-autocomplete-item:hover,
.escrime-autocomplete-active {
    background: #eaf0fb;
    color: #1a5276;
}

/* ------------------------------------------------------------------ */
/* Bouton HelloAsso officiel                                            */
/* ------------------------------------------------------------------ */
.HaPay {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.HaPay * {
    font-family: "Open Sans","Trebuchet MS","Lucida Sans Unicode","Lucida Grande","Lucida Sans",Arial,sans-serif;
    transition: all .3s ease-out;
}
.HaPayButton {
    align-items: stretch;
    background: none;
    border: none;
    display: flex;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
}
.HaPayButton:not(:disabled):focus {
    box-shadow: 0 0 0 .25rem rgba(73,211,138,.25);
}
.HaPayButton:not(:disabled):hover .HaPayButtonLabel,
.HaPayButton:not(:disabled):focus .HaPayButtonLabel { background-color: #483dbe; }
.HaPayButton:not(:disabled):hover .HaPayButtonLogo,
.HaPayButton:not(:disabled):focus .HaPayButtonLogo,
.HaPayButton:not(:disabled):hover .HaPayButtonLabel,
.HaPayButton:not(:disabled):focus .HaPayButtonLabel { border: 1px solid #483dbe; }
.HaPayButton:disabled { cursor: not-allowed; }
.HaPayButton:disabled .HaPayButtonLogo,
.HaPayButton:disabled .HaPayButtonLabel { border: 1px solid #d1d6de; }
.HaPayButtonLogo {
    background-color: #fff;
    border: 1px solid #4c40cf;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 10px 16px;
    width: 30px;
}
.HaPayButtonLabel {
    align-items: center;
    justify-content: space-between;
    column-gap: 5px;
    background-color: #4c40cf;
    border: 1px solid #4c40cf;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    padding: 0 16px;
    fill: #fff;
}
.HaPayButton:disabled .HaPayButtonLabel { background-color: #d1d6de; color: #505870; }
.HaPaySecured {
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #2e2f5e;
}
.HaPaySecured img { height: 16px; }
.HaPay svg { fill: currentColor; }
.HaPayButtonLabel svg { fill: #fff; }


/* --- v4.4.0 : notes produit, consentements, référence aide --- */
.escrime-produit-note {
    display: block;
    font-size: .82rem;
    color: #6b7280;
    font-style: italic;
    margin-left: 26px;
    margin-top: 2px;
}
.escrime-required { color: #b91c1c; font-weight: 700; }
.escrime-consentement-texte { font-size: .92rem; }
.escrime-aide-reference .escrime-aide-ref-input { max-width: 260px; }
