/* UNSA Adhésion en ligne - charte UNSA */

.uca-wrap {
    --uca-blue: #009ee0;
    --uca-blue-dark: #0077b3;
    --uca-navy: #004289;
    --uca-ink: #0f172a;
    --uca-ink2: #1e293b;
    --uca-muted: #64748b;
    --uca-border: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--uca-ink);
    max-width: 760px;
    margin: 0 auto;
}

.uca-wrap *,
.uca-wrap *::before,
.uca-wrap *::after {
    box-sizing: border-box;
    min-width: 0;
}

/* Étapes */

.uca-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.uca-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--uca-border);
    border-radius: 999px;
    padding: 8px 16px 8px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--uca-muted);
    background: #fff;
}

.uca-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--uca-muted);
    font-weight: 700;
    font-size: 0.8rem;
}

.uca-step-active {
    color: var(--uca-navy);
}

.uca-step-active .uca-step-num,
.uca-step-done .uca-step-num {
    background: var(--uca-blue);
    color: #fff;
}

/* Panneaux */

.uca-panel {
    display: none;
    border: 1px solid var(--uca-border);
    border-radius: 14px;
    background: #fff;
    padding: 24px;
    margin: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.uca-panel-active {
    display: block;
}

.uca-legend {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.2rem;
    color: var(--uca-ink);
    padding: 0;
    margin-bottom: 6px;
}

.uca-sublegend {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 22px 0 10px;
}

/* Champs */

.uca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 14px;
    margin-top: 12px;
}

.uca-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uca-field-full {
    grid-column: 1 / -1;
}

.uca-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--uca-ink2);
}

.uca-wrap input[type="text"],
.uca-wrap input[type="email"],
.uca-wrap input[type="tel"],
.uca-wrap select {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--uca-ink);
    background: #fff;
    border: 1px solid var(--uca-border);
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 48px;
    width: 100%;
}

.uca-wrap input:focus,
.uca-wrap select:focus {
    outline: none;
    border-color: var(--uca-blue);
    box-shadow: 0 0 0 3px #e0f2fe;
}

.uca-invalid {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

.uca-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Choix (catégorie, règlement) */

.uca-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 10px;
    margin-top: 6px;
}

.uca-choices-invalid .uca-choice-in {
    background: #fef2f2;
}

.uca-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.uca-choice-in {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--uca-border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    min-height: 64px;
    transition: box-shadow 0.15s ease, background 0.15s ease;
}

.uca-choice-in:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.uca-choice input:checked + .uca-choice-in {
    background: #e0f2fe;
    box-shadow: inset 0 0 0 2px var(--uca-blue);
}

.uca-choice-in strong {
    font-size: 0.95rem;
    color: var(--uca-ink);
}

.uca-choice-in em {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--uca-muted);
}

/* Cotisation et échéancier */

.uca-recap-cotis {
    margin-top: 16px;
    background: #e0f2fe;
    border-radius: 12px;
    padding: 14px 18px;
}

.uca-cotis-line {
    margin: 0 0 4px;
    font-size: 1rem;
}

.uca-cotis-line strong {
    font-family: 'Sora', sans-serif;
    color: var(--uca-navy);
}

.uca-cotis-credit {
    margin: 0;
    font-size: 0.86rem;
    color: var(--uca-ink2);
}

.uca-echeancier ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uca-echeancier li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--uca-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

/* Récapitulatif */

.uca-recap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 18px;
}

.uca-recap-row {
    display: flex;
    gap: 14px;
    border: 1px solid var(--uca-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.uca-recap-k {
    flex: 0 0 110px;
    font-weight: 600;
    color: var(--uca-muted);
}

.uca-recap-v {
    color: var(--uca-ink);
    font-weight: 500;
}

.uca-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--uca-ink2);
    cursor: pointer;
}

.uca-check input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: var(--uca-blue);
}

/* Boutons et navigation */

.uca-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.uca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.uca-btn-next,
.uca-btn-submit {
    background: var(--uca-blue);
    color: #fff;
}

.uca-btn-next:hover,
.uca-btn-submit:hover {
    background: var(--uca-blue-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #fff;
}

.uca-btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.uca-btn-ghost {
    background: #fff;
    color: var(--uca-ink2);
    border: 1px solid var(--uca-border);
}

.uca-error {
    background: #fef2f2;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
}

/* Confirmation */

.uca-done {
    text-align: center;
    border: 1px solid var(--uca-border);
    border-radius: 16px;
    background: #fff;
    padding: 42px 26px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.uca-done-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uca-done-icon svg {
    width: 30px;
    height: 30px;
}

.uca-done-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.4rem;
    margin: 0 0 8px;
}

.uca-done-text {
    color: var(--uca-ink2);
    margin: 0 0 20px;
}

.uca-done-note {
    color: var(--uca-muted);
    font-size: 0.88rem;
    margin: 18px auto 0;
    max-width: 520px;
    line-height: 1.55;
}

@media (max-width: 480px) {
    .uca-panel {
        padding: 16px;
    }

    .uca-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .uca-recap-k {
        flex-basis: 90px;
    }
}

/* ---- Passerelle vers le parcours officiel (v2.0.0) ---- */

.uca-passerelle {
    --uca-blue: #009ee0;
    --uca-blue-dark: #0077b3;
    --uca-navy: #004289;
    --uca-ink: #0f172a;
    --uca-muted: #64748b;
    --uca-border: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--uca-ink);
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.uca-passerelle *,
.uca-passerelle *::before,
.uca-passerelle *::after {
    box-sizing: border-box;
    min-width: 0;
}

.uca-pass-hero {
    background: linear-gradient(135deg, var(--uca-blue) 0%, var(--uca-navy) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 36px 30px 30px;
    text-align: center;
}

.uca-pass-kicker {
    margin: 0 0 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.uca-pass-titre {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.5rem, 4vw, 2.05rem);
    line-height: 1.15;
    margin: 0 0 12px;
    color: #fff;
}

.uca-pass-texte {
    margin: 0 auto 22px;
    max-width: 46ch;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.94);
}

.uca-pass-actions {
    margin: 0;
    text-align: center;
}

.uca-pass-actions-fin {
    margin: 4px 0 8px;
}

.uca-btn-xl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 34px;
    background: #fff;
    color: var(--uca-navy);
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 30, 70, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.uca-btn-xl:hover,
.uca-btn-xl:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 30, 70, 0.3);
    color: var(--uca-navy);
}

.uca-pass-actions-fin .uca-btn-xl {
    background: var(--uca-blue);
    color: #fff;
}

.uca-pass-actions-fin .uca-btn-xl:hover {
    background: var(--uca-blue-dark);
    color: #fff;
}

.uca-pass-sous {
    margin: 14px 0 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.86);
}

.uca-pass-bloc {
    background: #fff;
    border: 1px solid var(--uca-border);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.uca-pass-h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    font-size: 1.14rem;
    margin: 0 0 10px;
    color: var(--uca-ink);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.uca-ic-secu {
    width: 20px;
    height: 20px;
    color: #047857;
    flex: 0 0 auto;
}

.uca-pass-intro {
    margin: 0 0 16px;
    color: var(--uca-muted);
    font-size: 0.95rem;
}

.uca-tarifs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: 12px;
}

.uca-tarif {
    background: #f8fafc;
    border: 1px solid var(--uca-border);
    border-radius: 12px;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.uca-tarif-cat {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--uca-navy);
}

.uca-tarif-an {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--uca-ink);
    white-space: nowrap;
}

.uca-tarif-detail {
    font-size: 0.82rem;
    color: var(--uca-muted);
}

.uca-pass-note {
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: var(--uca-muted);
    line-height: 1.55;
}

.uca-etapes-pass {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uca-etapes-pass li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.uca-etape-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e0f2fe;
    color: var(--uca-navy);
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
}

.uca-etape-txt {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--uca-muted);
    padding-top: 3px;
}

.uca-etape-txt strong {
    display: block;
    color: var(--uca-ink);
    font-weight: 600;
    margin-bottom: 1px;
}

.uca-pass-secu {
    background: #f6fbf9;
}

.uca-secu-liste {
    margin: 0;
    padding-left: 20px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--uca-muted);
}

.uca-secu-liste li {
    margin-bottom: 6px;
}

.uca-secu-liste strong {
    color: var(--uca-ink);
    font-weight: 600;
}

.uca-pass-repli p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--uca-muted);
    line-height: 1.6;
}

@media (max-width: 480px) {
    .uca-pass-hero { padding: 28px 18px 24px; }
    .uca-pass-bloc { padding: 20px 17px; }
}
