/* =============================================================
 * F_Event_Sociale_form.css
 *
 * Formulaire de création Sociale — wizard 4 étapes.
 * Namespace : .aird-form-sociale (BEM .aird-fso__*)
 *
 * Spécificités vs festival/stage :
 *   - 4 étapes (vs 4 festival / 5 stage)
 *   - Dates repeater (récurrence sociale, multi-rangs)
 *   - Pas de tarif progressif (juste ticket_price + ticket_url si paid)
 *   - Type-sociales radio + type-social-attributes checkboxes
 * ============================================================= */

.aird-form-sociale-wrap {
    --aird-fso-gold:       #e5a93d;
    --aird-fso-gold-light: #f4c05e;
    --aird-fso-gold-deep:  #d49942;
    --aird-fso-gold-cream: #fff5dc;
    --aird-fso-gradient:   linear-gradient(135deg, #F5C76E 0%, #E5A93D 50%, #D49942 100%);
    --aird-fso-dark-1:     #1c1530;
    --aird-fso-dark-2:     #110b1c;
    --aird-fso-text:       #1a1a2e;
    --aird-fso-text-light: #4a4458;
    --aird-fso-bg-input:   #ffffff;
    --aird-fso-border:     rgba(229, 169, 61, 0.30);
    --aird-fso-border-strong: rgba(229, 169, 61, 0.55);
    --aird-fso-radius:     10px;
    --aird-fso-radius-sm:  6px;
    --aird-fso-shadow:     0 4px 18px rgba(17, 11, 28, 0.10);

    width: 100%;
    padding: 12px 8px 24px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--aird-fso-text);
    box-sizing: border-box;
    font-size: 12.5px;
}
.aird-form-sociale-wrap *,
.aird-form-sociale-wrap *::before,
.aird-form-sociale-wrap *::after { box-sizing: border-box; }

/* ─── Card ────────────────────────────────────────────────────── */

.aird-form-sociale {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(252, 247, 235, 0.96));
    border: 1px solid var(--aird-fso-border);
    border-radius: var(--aird-fso-radius);
    box-shadow: var(--aird-fso-shadow);
    overflow: hidden;
    position: relative;
}
.aird-form-sociale::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--aird-fso-gradient);
    opacity: 0.6;
}
.aird-form-sociale--gated {
    text-align: center;
    padding: 32px 20px;
}
.aird-fso__gated-msg {
    color: var(--aird-fso-text-light);
    margin-bottom: 14px;
    font-size: 12.5px;
}

/* ─── Header + steps ─────────────────────────────────────────── */

.aird-fso__head {
    background: linear-gradient(180deg, var(--aird-fso-dark-1) 0%, var(--aird-fso-dark-2) 100%);
    color: #fff;
    padding: 12px 14px 9px;
    position: relative;
}
.aird-fso__head::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--aird-fso-gradient);
    opacity: 0.5;
}
.aird-fso__title {
    font-weight: 800;
    font-size: 17px;
    margin: 0 0 3px;
    background: var(--aird-fso-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.aird-fso__intro {
    color: rgba(255, 245, 220, 0.70);
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 9px;
    max-width: 540px;
}
.aird-fso__steps {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}
.aird-fso__step {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 245, 220, 0.10);
    color: rgba(255, 245, 220, 0.5);
    font-size: 10.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.1;
}
.aird-fso__step.is-active {
    background: rgba(229, 169, 61, 0.12);
    border-color: var(--aird-fso-border-strong);
    color: var(--aird-fso-gold-cream);
}
.aird-fso__step.is-done {
    color: var(--aird-fso-gold-light);
    border-color: rgba(229, 169, 61, 0.28);
}
.aird-fso__step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    font-size: 9.5px;
    color: rgba(255, 245, 220, 0.7);
    flex-shrink: 0;
}
.aird-fso__step.is-active .aird-fso__step-n {
    background: var(--aird-fso-gradient);
    color: #1a1a2e;
}
.aird-fso__step.is-done .aird-fso__step-n {
    background: rgba(229, 169, 61, 0.20);
    color: var(--aird-fso-gold-light);
}

/* ─── Step panels ────────────────────────────────────────────── */

.aird-fso__form { padding: 12px 14px 14px; }
.aird-fso__step-panel { animation: aird-fso-fade-in 0.2s ease-out; }
.aird-fso__step-panel[hidden] { display: none !important; }
@keyframes aird-fso-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.aird-fso__step-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 2px;
    color: var(--aird-fso-text);
    line-height: 1.25;
}
.aird-fso__intro-step {
    font-size: 11.5px;
    color: var(--aird-fso-text-light);
    margin: 0 0 10px;
    line-height: 1.4;
}
.aird-fso__sub-title {
    font-weight: 700;
    font-size: 12px;
    color: var(--aird-fso-text);
    margin: 12px 0 8px;
    padding-top: 9px;
    border-top: 1px solid var(--aird-fso-border);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── Champs ─────────────────────────────────────────────────── */

.aird-fso__field { display: block; margin: 0 0 8px; }
.aird-fso__field--half { max-width: 50%; }
/* NEW 2026-05-28 — Lock visuel select (sans `disabled` pour préserver la
   sérialisation FormData) : utilisé sur place_type quand l'auteur a sélectionné
   un CPT venue existant via l'autocomplete. Pour modifier le type, éditer la
   fiche venue elle-même. Pattern Stage form. */
html body .aird-fso__input.is-locked {
    pointer-events: none;
    background: #f0f0f0 !important;
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
    cursor: not-allowed;
    opacity: 0.85;
}
.aird-fso__label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--aird-fso-text);
    margin-bottom: 3px;
    letter-spacing: 0.01em;
    line-height: 1.25;
}
.aird-fso__req {
    color: #c8302e;
    font-style: normal;
    font-weight: 800;
    margin-left: 2px;
}
.aird-fso__opt {
    color: var(--aird-fso-text-light);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 0;
    text-transform: none;
}
.aird-fso__hint {
    display: block;
    font-size: 11px;
    color: var(--aird-fso-text-light);
    margin-top: 3px;
    line-height: 1.35;
}

html body .aird-fso__input {
    width: 100%;
    background: var(--aird-fso-bg-input) !important;
    border: 1px solid var(--aird-fso-border) !important;
    border-radius: var(--aird-fso-radius-sm);
    padding: 6px 10px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--aird-fso-text) !important;
    -webkit-text-fill-color: var(--aird-fso-text) !important;
    line-height: 1.3;
    min-height: 32px;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
html body .aird-fso__input::placeholder {
    color: rgba(74, 68, 88, 0.55);
    -webkit-text-fill-color: rgba(74, 68, 88, 0.55);
}
html body .aird-fso__input:focus {
    outline: none;
    border-color: var(--aird-fso-gold) !important;
    box-shadow: 0 0 0 2px rgba(229, 169, 61, 0.14);
}
html body select.aird-fso__input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 14 8'%3E%3Cpath fill='%23e5a93d' d='M7 8L0 0h14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    background-size: 9px;
    padding-right: 26px;
    cursor: pointer;
}
html body input[type="date"].aird-fso__input,
html body input[type="time"].aird-fso__input {
    padding-right: 8px;
    cursor: pointer;
}
.aird-fso__textarea {
    min-height: 80px !important;
    resize: vertical;
    line-height: 1.5;
}
.aird-fso__input:-webkit-autofill,
.aird-fso__input:-webkit-autofill:hover,
.aird-fso__input:-webkit-autofill:focus,
.aird-fso__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--aird-fso-text) !important;
    caret-color: var(--aird-fso-text);
    transition: background-color 5000s ease-in-out 0s;
}
.aird-fso__field.is-error .aird-fso__input,
.aird-fso__fieldset.is-error {
    border-color: #c8302e !important;
    box-shadow: 0 0 0 2px rgba(200, 48, 46, 0.08) !important;
}
.aird-fso__field-error-msg {
    color: #c8302e;
    font-size: 11px;
    margin-top: 3px;
    font-weight: 600;
}

/* ─── Rows ───────────────────────────────────────────────────── */

.aird-fso__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.aird-fso__row .aird-fso__field { margin-bottom: 8px; }
.aird-fso__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.aird-fso__row--datetime { grid-template-columns: 1fr 1fr; }

/* ─── Radios + checkboxes (pattern partagé festival/stage) ───── */

.aird-fso__fieldset {
    border: 1px solid var(--aird-fso-border);
    border-radius: var(--aird-fso-radius-sm);
    padding: 8px 10px;
    background: rgba(255, 253, 247, 0.6);
    margin: 0 0 10px;
}
.aird-fso__legend {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--aird-fso-text);
    padding: 0 5px;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(252, 247, 235, 0.96));
}
.aird-fso__radio-row {
    display: flex;
    gap: 6px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.aird-fso__radio { cursor: pointer; }
.aird-fso__radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.aird-fso__radio-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border: 1.5px solid var(--aird-fso-border-strong);
    border-radius: 16px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--aird-fso-text);
    transition: all 0.15s;
    line-height: 1.2;
}
.aird-fso__radio:hover .aird-fso__radio-pill {
    border-color: var(--aird-fso-gold);
    background: rgba(229, 169, 61, 0.04);
}
.aird-fso__radio input[type="radio"]:checked + .aird-fso__radio-pill {
    background: var(--aird-fso-gradient);
    border-color: var(--aird-fso-gold-deep);
    color: #1a1a2e;
    box-shadow: 0 2px 6px rgba(229, 169, 61, 0.22);
}

.aird-fso__check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 4px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--aird-fso-border);
    border-radius: var(--aird-fso-radius-sm);
}
.aird-fso__check {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11.5px;
    color: var(--aird-fso-text);
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.12s;
    line-height: 1.25;
}
.aird-fso__check:hover { background: rgba(229, 169, 61, 0.06); }
.aird-fso__check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.aird-fso__check-box {
    width: 13px; height: 13px;
    border: 1.5px solid var(--aird-fso-border-strong);
    border-radius: 3px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
.aird-fso__check-box::after {
    content: '';
    width: 7px; height: 7px;
    background: var(--aird-fso-gradient);
    border-radius: 1px;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.15s;
}
.aird-fso__check input[type="checkbox"]:checked + .aird-fso__check-box {
    border-color: var(--aird-fso-gold);
    background: rgba(229, 169, 61, 0.08);
}
.aird-fso__check input[type="checkbox"]:checked + .aird-fso__check-box::after {
    opacity: 1;
    transform: scale(1);
}

/* ─── Familles danses (accordéon grille, pattern festival) ───── */

.aird-fso__families {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 18px;
}
.aird-fso__family {
    background: #fff;
    border: 1px solid var(--aird-fso-border);
    border-radius: var(--aird-fso-radius-sm);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.aird-fso__family[open] {
    border-color: var(--aird-fso-border-strong);
    box-shadow: 0 2px 6px rgba(229, 169, 61, 0.08);
}
.aird-fso__family-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 12px;
    color: var(--aird-fso-text);
    user-select: none;
    line-height: 1.2;
}
.aird-fso__family-head::-webkit-details-marker { display: none; }
.aird-fso__family-label { flex: 1; }
.aird-fso__family-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--aird-fso-gradient);
    color: #1a1a2e;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.18s ease;
}
.aird-fso__family-count.has-value { opacity: 1; transform: scale(1); }
.aird-fso__family-chev {
    color: var(--aird-fso-gold);
    transition: transform 0.18s ease;
    font-size: 10px;
}
.aird-fso__family[open] .aird-fso__family-chev { transform: rotate(180deg); }
.aird-fso__family-body {
    padding: 3px 9px 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    border-top: 1px solid var(--aird-fso-border);
}

/* ─── Dates repeater (récurrence sociale) ──────────────────────── */

.aird-fso__dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.aird-fso__date-row {
    position: relative;
    padding: 10px 36px 10px 12px;
    background: #fff;
    border: 1px solid var(--aird-fso-border-strong);
    border-radius: var(--aird-fso-radius-sm);
    box-shadow: 0 1px 3px rgba(229, 169, 61, 0.06);
}
.aird-fso__date-row .aird-fso__field { margin-bottom: 0; }
html body .aird-fso__date-remove,
html body .aird-fso__date-remove:hover,
html body .aird-fso__date-remove:focus {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(200, 48, 46, 0.08);
    border: 1px solid rgba(200, 48, 46, 0.30);
    border-radius: 50%;
    width: 22px; height: 22px;
    padding: 0;
    color: #c8302e !important;
    -webkit-text-fill-color: #c8302e !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
html body .aird-fso__date-remove:hover {
    background: rgba(200, 48, 46, 0.16) !important;
    border-color: #c8302e !important;
}
.aird-fso__date-row:first-child .aird-fso__date-remove {
    visibility: hidden; /* Min 1 date */
}
/* NEW 2026-05-28 — Boutons d'action saillants (pattern Stage form §22).
   Cibles : "+ Ajouter une date" + "+ Ajouter une formule".
   `[data-aird-fso-add-tarif]` est un .aird-fso-btn--secondary par défaut ;
   le sélecteur attribut a priorité légèrement supérieure → override saillant. */
/* Wrapper 3 boutons dates step 1 — porté du form Stage 2026-05-28 */
.aird-fso__dates-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}
@media (max-width: 599px) {
    .aird-fso__dates-actions { flex-direction: column; }
    html body .aird-fso__dates-actions .aird-fso__dates-btn { width: 100%; }
}

html body .aird-fso__add-date,
html body .aird-fso__add-date:hover,
html body .aird-fso__add-date:focus,
html body .aird-fso__add-date:active,
html body [data-aird-fso-add-tarif],
html body [data-aird-fso-add-tarif]:hover,
html body [data-aird-fso-add-tarif]:focus,
html body [data-aird-fso-add-tarif]:active,
html body .aird-fso__recur-toggle,
html body .aird-fso__recur-toggle:hover,
html body .aird-fso__recur-toggle:focus,
html body .aird-fso__recur-toggle:active,
html body .aird-fso__dates-btn,
html body .aird-fso__dates-btn:hover,
html body .aird-fso__dates-btn:focus,
html body .aird-fso__dates-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 10px 18px !important;
    min-height: 42px;
    border-radius: 12px !important;
    background: rgba(229, 169, 61, 0.20) !important;
    border: 2px solid var(--aird-fso-gold) !important;
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(229, 169, 61, 0.22);
    cursor: pointer;
    transition: all 0.15s;
}
html body .aird-fso__add-date:hover,
html body [data-aird-fso-add-tarif]:hover,
html body .aird-fso__recur-toggle:hover,
html body .aird-fso__dates-btn:hover {
    background: rgba(229, 169, 61, 0.32) !important;
    border-color: var(--aird-fso-gold-deep) !important;
    box-shadow: 0 4px 14px rgba(229, 169, 61, 0.36);
    transform: translateY(-1px);
}
/* État actif "Unique" — fond plus saturé pour signifier que le mode est appliqué */
html body .aird-fso__dates-btn--unique[aria-pressed="true"] {
    background: rgba(229, 169, 61, 0.32) !important;
    border-color: var(--aird-fso-gold-deep) !important;
    box-shadow: 0 4px 14px rgba(229, 169, 61, 0.36);
}
/* NEW 2026-05-28 — HTML attribute [hidden] override : sans ça, display:inline-flex
   écrase le display:none implicite de [hidden] (cf. CLAUDE.md §29, pattern Stage). */
html body .aird-fso__add-date[hidden],
html body [data-aird-fso-add-tarif][hidden],
html body .aird-fso__recur-toggle[hidden],
html body .aird-fso__dates-btn[hidden] {
    display: none !important;
}

/* ─── Panneau récurrence (porté du popup-edit-dates-sociale) ────── */

.aird-fso__recur {
    margin: 0 0 14px;
}
html body .aird-fso__recur-toggle,
html body .aird-fso__recur-toggle:hover,
html body .aird-fso__recur-toggle:focus,
html body .aird-fso__recur-toggle:active {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 150, 42, 0.45) !important;
    background: rgba(255, 245, 220, 0.4) !important;
    color: #8a6620 !important;
    -webkit-text-fill-color: #8a6620 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
html body .aird-fso__recur-toggle:hover {
    background: #fff5dc !important;
    border-color: #c9962a !important;
}
.aird-fso__recur-toggle svg { flex: 0 0 auto; }
.aird-fso__recur-toggle sup { font-size: 0.7em; }

.aird-fso__recur-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px dashed rgba(201, 150, 42, 0.45);
    background: linear-gradient(180deg, rgba(255, 250, 235, 0.7), rgba(255, 245, 220, 0.55));
}
.aird-fso__recur-panel[hidden] { display: none !important; }
.aird-fso__recur-hint {
    margin: 0 0 10px;
    font-size: 11.5px;
    color: #6a5230;
    line-height: 1.45;
}
.aird-fso__recur-hint strong { color: #8a6620; }
.aird-fso__recur-hint sup { font-size: 0.7em; }

.aird-fso__recur-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.aird-fso__recur-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.aird-fso__recur-field > span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a6620;
}
html body .aird-fso__recur-input {
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid rgba(201, 150, 42, 0.4) !important;
    background: #fff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    color: #2a1f10 !important;
    -webkit-text-fill-color: #2a1f10 !important;
    line-height: 1.35;
    min-height: 34px;
}
html body .aird-fso__recur-input:focus {
    outline: none;
    border-color: #c9962a !important;
    box-shadow: 0 0 0 2px rgba(201, 150, 42, 0.18);
}

.aird-fso__recur-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
html body .aird-fso__recur-btn,
html body .aird-fso__recur-btn:hover,
html body .aird-fso__recur-btn:focus,
html body .aird-fso__recur-btn:active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid #c9962a !important;
    background: linear-gradient(135deg, #F5C76E, #E5A93D 60%, #D49942) !important;
    color: #2a1f10 !important;
    -webkit-text-fill-color: #2a1f10 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
html body .aird-fso__recur-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(201, 150, 42, 0.28);
    transform: translateY(-1px);
}
.aird-fso__recur-msg {
    font-size: 11.5px;
    color: #4a7a3a;
    font-weight: 600;
}
.aird-fso__recur-msg.is-error { color: #c8302e; }

@media (max-width: 991px) {
    .aird-fso__recur-row { grid-template-columns: 1fr; }
}

/* ─── Bloc payant (étape 4) ─────────────────────────────────── */

.aird-fso__paid-block {
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(255, 253, 247, 0.7);
    border: 1px solid var(--aird-fso-border);
    border-radius: var(--aird-fso-radius-sm);
}
.aird-fso__paid-block[hidden] { display: none !important; }
.aird-fso__paid-block .aird-fso__sub-title {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Tarifs progressifs (repeater identique stage) */
.aird-fso__tarifs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.aird-fso__tarif-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 8px;
    align-items: end;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid var(--aird-fso-border);
    border-radius: var(--aird-fso-radius-sm);
}
.aird-fso__tarif-row .aird-fso__field { margin-bottom: 0; }
html body .aird-fso__tarif-remove,
html body .aird-fso__tarif-remove:hover,
html body .aird-fso__tarif-remove:focus {
    background: rgba(200, 48, 46, 0.08);
    border: 1px solid rgba(200, 48, 46, 0.30);
    border-radius: 50%;
    width: 22px; height: 22px;
    padding: 0;
    color: #c8302e !important;
    -webkit-text-fill-color: #c8302e !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 4px;
}
html body .aird-fso__tarif-remove:hover {
    background: rgba(200, 48, 46, 0.16) !important;
}

@media (max-width: 991px) {
    .aird-fso__tarif-row { grid-template-columns: 1fr; gap: 4px; }
    .aird-fso__tarif-remove { align-self: end; justify-self: end; }
}

/* ─── Upload affiche ──────────────────────────────────────────── */

.aird-fso__upload { position: relative; }
.aird-fso__upload-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px; height: 1px;
}
.aird-fso__upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 10px;
    border: 2px dashed var(--aird-fso-border-strong);
    border-radius: var(--aird-fso-radius-sm);
    background: rgba(255, 253, 247, 0.6);
    cursor: pointer;
    text-align: center;
    transition: all 0.18s;
}
.aird-fso__upload-drop:hover,
.aird-fso__upload.is-dragover .aird-fso__upload-drop {
    border-color: var(--aird-fso-gold);
    background: rgba(229, 169, 61, 0.06);
}
.aird-fso__upload-icon { font-size: 18px; line-height: 1; }
.aird-fso__upload-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--aird-fso-text);
}
.aird-fso__upload-file {
    font-size: 11px;
    color: var(--aird-fso-gold-deep);
    font-weight: 600;
}
.aird-fso__upload-preview {
    margin-top: 6px;
    border-radius: var(--aird-fso-radius-sm);
    overflow: hidden;
    max-height: 140px;
}
.aird-fso__upload-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    background: #1a1a2e;
}

/* ─── Boutons ─────────────────────────────────────────────────── */

.aird-fso__step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--aird-fso-border);
}
.aird-fso__step-actions--submit {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
}
.aird-fso__submit-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    flex: 0 1 auto;
}
.aird-fso__submit-group .aird-fso-btn { justify-content: center; }

html body .aird-fso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: none;
    border-radius: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
    min-height: 30px;
}
html body .aird-fso-btn:disabled { opacity: 0.5; cursor: not-allowed; }
html body .aird-fso-btn--primary,
html body .aird-fso-btn--primary:hover,
html body .aird-fso-btn--primary:focus,
html body .aird-fso-btn--primary:active {
    background: var(--aird-fso-gradient);
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
    box-shadow: 0 2px 8px rgba(229, 169, 61, 0.24);
}
html body .aird-fso-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(229, 169, 61, 0.32);
}
html body .aird-fso-btn--secondary,
html body .aird-fso-btn--secondary:hover,
html body .aird-fso-btn--secondary:focus,
html body .aird-fso-btn--secondary:active {
    background: rgba(229, 169, 61, 0.08);
    color: var(--aird-fso-gold-deep) !important;
    -webkit-text-fill-color: var(--aird-fso-gold-deep) !important;
    border: 1.5px solid var(--aird-fso-border-strong);
}
html body .aird-fso-btn--secondary:hover {
    background: rgba(229, 169, 61, 0.14);
    border-color: var(--aird-fso-gold);
}
html body .aird-fso-btn--ghost,
html body .aird-fso-btn--ghost:hover,
html body .aird-fso-btn--ghost:focus,
html body .aird-fso-btn--ghost:active {
    background: transparent;
    color: var(--aird-fso-text-light) !important;
    -webkit-text-fill-color: var(--aird-fso-text-light) !important;
    border: 1.5px solid transparent;
}
html body .aird-fso-btn--ghost:hover {
    color: var(--aird-fso-gold-deep) !important;
    -webkit-text-fill-color: var(--aird-fso-gold-deep) !important;
    background: rgba(229, 169, 61, 0.06);
}

/* ─── Feedback + Loader ───────────────────────────────────────── */

.aird-fso__feedback {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--aird-fso-radius-sm);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.aird-fso__feedback[hidden] { display: none !important; }
.aird-fso__feedback.is-success {
    background: rgba(57, 255, 138, 0.10);
    border: 1px solid rgba(57, 255, 138, 0.32);
    color: #138c4a;
}
.aird-fso__feedback.is-error {
    background: rgba(200, 48, 46, 0.08);
    border: 1px solid rgba(200, 48, 46, 0.30);
    color: #c8302e;
}
.aird-fso__loader {
    position: fixed;
    inset: 0;
    background: rgba(17, 11, 28, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 100000;
    color: var(--aird-fso-gold-cream);
}
.aird-fso__loader[hidden] { display: none !important; }
.aird-fso__loader-spin {
    width: 32px; height: 32px;
    border: 3px solid rgba(255, 245, 220, 0.20);
    border-top-color: var(--aird-fso-gold-light);
    border-radius: 50%;
    animation: aird-fso-spin 0.8s linear infinite;
}
@keyframes aird-fso-spin { to { transform: rotate(360deg); } }
.aird-fso__loader-text {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── Photon dropdown ─────────────────────────────────────────── */

.aird-fso__photon-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100001;
    background: #fff;
    border: 1px solid var(--aird-fso-border-strong);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(17, 11, 28, 0.16);
    max-height: 260px;
    overflow-y: auto;
    margin-top: 3px;
    font-family: inherit;
}
.aird-fso__photon-dropdown[hidden] { display: none !important; }
.aird-fso__photon-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    text-align: left;
    padding: 7px 11px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(229, 169, 61, 0.10);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    transition: background 0.12s;
}
.aird-fso__photon-item:last-child { border-bottom: none; }
.aird-fso__photon-item:hover,
.aird-fso__photon-item:focus {
    background: rgba(229, 169, 61, 0.10);
    outline: none;
}
.aird-fso__photon-main {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--aird-fso-text);
}
.aird-fso__photon-sub {
    font-size: 11px;
    color: var(--aird-fso-text-light);
    margin-top: 2px;
}

/* ─── Responsive mobile ───────────────────────────────────────── */

@media (max-width: 991px) {
    .aird-form-sociale-wrap { padding: 10px 6px 20px; }
    .aird-fso__head { padding: 10px 12px 8px; }
    .aird-fso__title { font-size: 15px; }
    .aird-fso__intro { font-size: 10.5px; margin-bottom: 8px; }

    .aird-fso__steps { gap: 2px; }
    .aird-fso__step {
        padding: 4px 3px;
        font-size: 9.5px;
        flex-direction: column;
        text-align: center;
        gap: 2px;
    }
    .aird-fso__step-n { width: 14px; height: 14px; font-size: 9px; }
    .aird-fso__step-l { font-size: 9px; }

    .aird-fso__form { padding: 10px 10px 12px; }

    .aird-fso__row,
    .aird-fso__row--3,
    .aird-fso__row--datetime { grid-template-columns: 1fr; gap: 0; }
    .aird-fso__field--half { max-width: 100%; }

    .aird-fso__check-grid { grid-template-columns: 1fr; }
    .aird-fso__families { grid-template-columns: 1fr; }
    .aird-fso__family-body { grid-template-columns: 1fr; }

    .aird-fso__step-actions { flex-direction: column-reverse; align-items: stretch; }
    .aird-fso__submit-group { flex-direction: column; width: 100%; }
    html body .aird-fso-btn { width: 100%; justify-content: center; }
}

@media (max-width: 991px) {
    body:has(.aird-bottombar) .aird-form-sociale-wrap {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

/* ═══ Autocomplete venue dropdown (V1 simple) — 2026-05-15 ═══ */
.aird-fso__field--autocomplete { position: relative; }
.aird-fso__venue-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100002;
    background: #fff;
    border: 1px solid var(--aird-fso-border-strong);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(17, 11, 28, 0.16);
    max-height: 320px;
    overflow-y: auto;
    margin-top: 3px;
    font-family: inherit;
}
.aird-fso__venue-dropdown[hidden] { display: none !important; }
.aird-fso__venue-dropdown-banner {
    padding: 8px 11px;
    background: linear-gradient(180deg, rgba(229, 169, 61, 0.10), rgba(229, 169, 61, 0.04));
    border-bottom: 1px solid rgba(229, 169, 61, 0.18);
    font-size: 11px;
    font-weight: 600;
    color: var(--aird-fso-text-light);
    line-height: 1.3;
}
/* Variante "warning fort" — utilisée systématiquement quand un doublon
   est détecté en autocomplete (cf. F_School_form.js render). */
.aird-fso__venue-dropdown-banner--warning {
    background: linear-gradient(180deg, rgba(200, 48, 46, 0.12), rgba(200, 48, 46, 0.04));
    border-bottom-color: rgba(200, 48, 46, 0.28);
    color: #a82724;
    font-weight: 700;
    font-size: 11.5px;
}
/* Item dropdown — version V1 simple (title + sub ville). */
.aird-fso__venue-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    text-align: left;
    padding: 8px 11px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(229, 169, 61, 0.10);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    transition: background 0.12s;
    text-decoration: none;
    color: inherit;
}
.aird-fso__venue-item:last-child { border-bottom: none; }
.aird-fso__venue-item:hover,
.aird-fso__venue-item:focus {
    background: rgba(229, 169, 61, 0.10);
    outline: none;
}
.aird-fso__venue-item-main {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--aird-fso-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.aird-fso__venue-item-main::after {
    content: '→';
    margin-left: auto;
    color: var(--aird-fso-gold-deep);
    font-weight: 800;
    transition: transform 0.15s ease;
}
.aird-fso__venue-item:hover .aird-fso__venue-item-main::after {
    transform: translateX(3px);
}
.aird-fso__venue-item-sub {
    font-size: 11px;
    color: var(--aird-fso-text-light);
    margin-top: 2px;
}
.aird-fso__venue-item-sub strong {
    color: var(--aird-fso-gold-deep);
    font-weight: 700;
}
/* Flash visuel sur les inputs pré-remplis par l'autocomplete venue */
.aird-fso__input.is-prefilled {
    animation: aird-fso-prefill-flash 1.2s ease-out;
}
@keyframes aird-fso-prefill-flash {
    0%   { background-color: rgba(57, 255, 138, 0.22); }
    100% { background-color: var(--aird-fso-bg-input); }
}



/* ═══ Autocomplete event-name (post_title) dropdown — anti-doublon ═══ */
.aird-fso__field--autocomplete { position: relative; }
.aird-fso__event-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100002;
    background: #fff;
    border: 1px solid var(--aird-fso-border-strong);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(17, 11, 28, 0.16);
    max-height: 320px;
    overflow-y: auto;
    margin-top: 3px;
    font-family: inherit;
}
.aird-fso__event-dropdown[hidden] { display: none !important; }
.aird-fso__event-dropdown-banner {
    padding: 8px 11px;
    background: linear-gradient(180deg, rgba(229, 169, 61, 0.10), rgba(229, 169, 61, 0.04));
    border-bottom: 1px solid rgba(229, 169, 61, 0.18);
    font-size: 11px;
    font-weight: 600;
    color: var(--aird-fso-text-light);
    line-height: 1.3;
}
/* Variante "warning fort" — utilisée systématiquement quand un doublon
   est détecté en autocomplete (cf. F_School_form.js render). */
.aird-fso__event-dropdown-banner--warning {
    background: linear-gradient(180deg, rgba(200, 48, 46, 0.12), rgba(200, 48, 46, 0.04));
    border-bottom-color: rgba(200, 48, 46, 0.28);
    color: #a82724;
    font-weight: 700;
    font-size: 11.5px;
}
/* Item dropdown — version V1 simple (title + sub ville). */
.aird-fso__event-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    text-align: left;
    padding: 8px 11px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(229, 169, 61, 0.10);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    transition: background 0.12s;
    text-decoration: none;
    color: inherit;
}
.aird-fso__event-item:last-child { border-bottom: none; }
.aird-fso__event-item:hover,
.aird-fso__event-item:focus {
    background: rgba(229, 169, 61, 0.10);
    outline: none;
}
.aird-fso__event-item-main {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--aird-fso-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.aird-fso__event-item-main::after {
    content: '→';
    margin-left: auto;
    color: var(--aird-fso-gold-deep);
    font-weight: 800;
    transition: transform 0.15s ease;
}
.aird-fso__event-item:hover .aird-fso__event-item-main::after {
    transform: translateX(3px);
}
.aird-fso__event-item-sub {
    font-size: 11px;
    color: var(--aird-fso-text-light);
    margin-top: 2px;
}
.aird-fso__event-item-sub strong {
    color: var(--aird-fso-gold-deep);
    font-weight: 700;
}
/* Flash visuel sur les inputs pré-remplis par l'autocomplete venue */

/* =============================================================
 * §40 Admin bypass badge — mode test admin
 * ============================================================= */
.aird-fso__admin-bypass-badge {
    background: rgba(229, 169, 61, 0.10);
    border: 1px dashed var(--aird-fso-gold);
    color: var(--aird-fso-gold-deep);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}
