/* UNSA Accès adhérents - charte UNSA */

.uaa-gate {
    position: relative;
}

.uaa-teaser {
    position: relative;
    max-height: 260px;
    overflow: hidden;
}

.uaa-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 92%);
    pointer-events: none;
}

.uaa-card {
    --uaa-blue: #009ee0;
    --uaa-blue-dark: #0077b3;
    --uaa-navy: #004289;
    --uaa-ink: #0f172a;
    --uaa-muted: #64748b;
    --uaa-border: #e2e8f0;
    box-sizing: border-box;
    container-type: inline-size;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border: 1px solid var(--uaa-border);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 30, 70, 0.1);
    padding: 30px 28px;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    margin: 6px auto 24px;
    text-align: center;
}

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

.uaa-lock {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--uaa-blue), var(--uaa-navy));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uaa-lock svg {
    width: 26px;
    height: 26px;
}

.uaa-lock-ok {
    background: #047857;
}

.uaa-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.3rem;
    margin: 0 0 8px;
    color: var(--uaa-ink);
}

.uaa-text {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: var(--uaa-muted);
    line-height: 1.55;
}

.uaa-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

.uaa-input {
    width: 100%;
    max-width: 100%;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    color: var(--uaa-ink);
    background: #fff;
    border: 1px solid var(--uaa-border);
    border-radius: 999px;
    padding: 12px 18px;
    min-height: 48px;
}

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

.uaa-input-code {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 18px;
}

/* L'ecartement est fait pour les six chiffres saisis. Applique au texte
   d'invite, il le rend deux fois plus large que le champ. */
.uaa-input-code::placeholder {
    letter-spacing: normal;
    font-weight: 600;
}

.uaa-btn {
    appearance: none;
    border: 0;
    background: var(--uaa-blue);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 26px;
    min-height: 48px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.uaa-btn:hover {
    background: var(--uaa-blue-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

.uaa-hint {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: var(--uaa-muted);
}

.uaa-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--uaa-blue-dark);
    cursor: pointer;
    text-decoration: underline;
}

.uaa-status {
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 11px 16px;
    background: #e0f2fe;
    color: var(--uaa-navy);
}

.uaa-status-error {
    background: #fef2f2;
    color: #991b1b;
}

.uaa-code-test {
    margin-top: 12px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    color: var(--uaa-navy);
    background: #fffbeb;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.uaa-foot {
    margin: 18px 0 0;
    font-size: 0.88rem;
    color: var(--uaa-muted);
}

.uaa-foot a {
    color: var(--uaa-blue-dark);
    font-weight: 600;
}

/* Bandeau discret en tête d'article pour l'adhérent connecté. */
.uaa-badge-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.uaa-badge {
    display: inline-flex;
    align-items: center;
    background: #004289;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 13px;
}

.uaa-badge-connected {
    font-size: 0.82rem;
    color: #64748b;
}

@media (max-width: 480px) {
    .uaa-card {
        padding: 22px 16px;
    }

    .uaa-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .uaa-btn {
        width: 100%;
        white-space: normal;
    }
}

@container (max-width: 430px) {
    .uaa-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .uaa-btn {
        width: 100%;
        white-space: normal;
    }
}

/* ---- Réunions syndicales ---- */

.uaa-reunions {
    --uaa-blue: #009ee0;
    --uaa-blue-dark: #0077b3;
    --uaa-navy: #004289;
    --uaa-ink: #0f172a;
    --uaa-muted: #64748b;
    --uaa-border: #e2e8f0;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
}

.uaa-ev-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.uaa-ev {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.uaa-ev-date {
    flex: 0 0 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 4px;
    align-self: flex-start;
}

.uaa-ev-day {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1;
    color: #0f172a;
}

.uaa-ev-month {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 3px;
    text-align: center;
}

.uaa-ev-body {
    flex: 1 1 auto;
    min-width: 0;
}

.uaa-ev-title {
    margin: 0 0 4px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1rem;
    line-height: 1.35;
}

.uaa-ev-meta {
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
}

.uaa-ev-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.uaa-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
}

.uaa-tag-ok {
    background: #047857;
    color: #fff;
}

.uaa-tag-wait {
    background: #e0f2fe;
    color: #004289;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.uaa-tag-no {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.uaa-tag-muted {
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.uaa-btn-ghost {
    appearance: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 9px 18px;
    min-height: 44px;
    font-family: 'Sora', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

@media (max-width: 480px) {
    .uaa-ev {
        padding: 12px;
        gap: 10px;
    }
}

/* ---- Attestations fiscales ---- */

.uaa-attestations {
    --uaa-blue: #009ee0;
    --uaa-blue-dark: #0077b3;
    --uaa-navy: #004289;
    --uaa-ink: #0f172a;
    --uaa-muted: #64748b;
    --uaa-border: #e2e8f0;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--uaa-ink);
}

.uaa-att-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.uaa-att {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--uaa-border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.uaa-att-annee {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--uaa-border);
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--uaa-navy);
    font-variant-numeric: tabular-nums;
}

.uaa-att-corps {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.uaa-att-titre {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
}

.uaa-att-detail {
    font-size: 0.86rem;
    color: var(--uaa-muted);
    line-height: 1.5;
}

.uaa-att .uaa-btn {
    flex: 0 0 auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 420px) {
    .uaa-att .uaa-btn { width: 100%; justify-content: center; }
}

/*
 * Un bouton reste blanc sur bleu, même à l'intérieur du contenu d'un article :
 * la règle de lien du thème (.ucp-prose a) est plus précise qu'une classe seule.
 * La classe doublée reprend la main sans recourir à !important.
 */
.uaa-btn.uaa-btn,
.uaa-btn.uaa-btn:hover,
.uaa-btn.uaa-btn:focus,
.uaa-btn.uaa-btn:visited {
    color: #fff;
    text-decoration: none;
}

.uaa-btn.uaa-btn:hover,
.uaa-btn.uaa-btn:focus-visible {
    background: var(--uaa-blue-dark);
}

.uaa-btn-ghost.uaa-btn-ghost,
.uaa-btn-ghost.uaa-btn-ghost:hover,
.uaa-btn-ghost.uaa-btn-ghost:visited {
    color: #1e293b;
    text-decoration: none;
}
