/* UNSA Ressources - charte UNSA */

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

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

.ure-note {
    font-size: 0.85rem;
    color: var(--ure-muted);
    margin: 12px 0 0;
    line-height: 1.5;
}

.ure-status {
    margin: 14px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ure-muted);
}

.ure-pill {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

.ure-pill-blue {
    background: var(--ure-blue);
}

.ure-badge {
    display: inline-flex;
    align-items: center;
    background: var(--ure-navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

.ure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 24px;
    border-radius: 999px;
    background: var(--ure-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.ure-btn:hover {
    background: var(--ure-blue-dark);
    color: #fff;
}

/* ---- Grilles ---- */

.ure-selects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px;
}

.ure-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

.ure-wrap select:focus,
.ure-wrap input[type="search"]:focus {
    outline: none;
    border-color: var(--ure-blue);
    box-shadow: 0 0 0 3px #e0f2fe;
}

.ure-result {
    margin-top: 22px;
    background: #fff;
    border: 1px solid var(--ure-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ure-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.ure-result-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
    margin: 0;
    color: var(--ure-ink);
}

.ure-table-scroll {
    overflow-x: auto;
}

.ure-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ure-table th,
.ure-table td {
    padding: 10px 12px;
    border: 1px solid var(--ure-border);
    text-align: left;
    white-space: nowrap;
}

.ure-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--ure-ink2);
}

.ure-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ure-td-euro {
    font-weight: 700;
    color: var(--ure-navy);
}

/* ---- Textes ---- */

.ure-searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ure-border);
    border-radius: 12px;
    padding: 4px 10px 4px 14px;
    background: #fff;
}

.ure-searchbar:focus-within {
    box-shadow: 0 0 0 3px #e0f2fe;
}

.ure-searchbar input {
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
}

.ure-ic {
    width: 18px;
    height: 18px;
    color: var(--ure-blue);
    flex: 0 0 auto;
}

.ure-t-results {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ure-t-item {
    appearance: none;
    text-align: left;
    background: #fff;
    border: 1px solid var(--ure-border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    transition: box-shadow 0.15s ease;
}

.ure-t-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ure-t-item-path {
    font-size: 0.78rem;
    color: var(--ure-muted);
    line-height: 1.4;
}

.ure-t-item-extrait {
    font-size: 0.88rem;
    color: var(--ure-ink2);
    line-height: 1.45;
}

.ure-t-article {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--ure-border);
    border-radius: 14px;
    padding: 22px;
}

.ure-btn-back {
    appearance: none;
    background: #f8fafc;
    border: 1px solid var(--ure-border);
    border-radius: 999px;
    padding: 8px 18px;
    min-height: 44px;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ure-ink2);
    cursor: pointer;
    margin-bottom: 14px;
}

.ure-path {
    font-size: 0.8rem;
    color: var(--ure-muted);
    margin: 4px 0 14px;
    line-height: 1.5;
}

.ure-t-texte {
    font-size: 0.97rem;
    color: var(--ure-ink2);
    line-height: 1.65;
    margin-bottom: 18px;
}

.ure-t-texte p {
    margin: 0 0 0.9em;
}

/* ---- Actualités ---- */

.ure-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ure-chip {
    appearance: none;
    border: 1px solid var(--ure-border);
    background: #fff;
    color: var(--ure-ink2);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 44px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ure-chip:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ure-chip-active {
    background: var(--ure-chip, var(--ure-blue));
    border-color: transparent;
    color: #fff;
}

.ure-actus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}

.ure-actu {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ure-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ure-actu:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.ure-actu-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    overflow: hidden;
}

.ure-actu-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ure-actu-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
}

.ure-actu-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    flex: 1 1 auto;
}

.ure-actu-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ure-actu-date {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ure-muted);
}

.ure-actu-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ure-ink);
}

.ure-actu-excerpt {
    font-size: 0.86rem;
    color: var(--ure-muted);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .ure-result,
    .ure-t-article {
        padding: 14px;
    }
}
