.cnv58-regates {
    --cnv-regates-navy: var(--cnv-navy, #071b78);
    --cnv-regates-blue: var(--cnv-blue, #0e63b7);
    --cnv-regates-yellow: var(--cnv-yellow, #ffd800);
    --cnv-regates-red: var(--cnv-red, #d9232e);
    --cnv-regates-ink: var(--cnv-ink, #10233b);
    --cnv-regates-muted: var(--cnv-muted, #617085);
    --cnv-regates-line: var(--cnv-line, #dce7f1);
    width: 100%;
    box-sizing: border-box;
    color: var(--cnv-regates-ink);
}

.cnv58-regates *,
.cnv58-regates *::before,
.cnv58-regates *::after {
    box-sizing: border-box;
}

.cnv58-regates__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 7px;
    border: 1px solid var(--cnv-regates-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 27, 120, .06);
}

.cnv58-regates__filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--cnv-regates-navy) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none !important;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cnv58-regates__filter:hover {
    background: #f3f7fb;
    transform: translateY(-1px);
}

.cnv58-regates__filter strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--cnv-regates-navy);
    background: #edf3f8;
    font-size: 12px;
}

.cnv58-regates__filter.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #071b78, #0e63b7);
    box-shadow: 0 8px 18px rgba(7, 27, 120, .16);
}

.cnv58-regates__filter.is-active strong {
    background: #fff;
}

.cnv58-regates__filter--avis.is-active {
    color: var(--cnv-regates-navy) !important;
    background: var(--cnv-regates-yellow);
}

.cnv58-regates__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.cnv58-regates-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 25px;
    border: 1px solid var(--cnv-regates-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 27, 120, .07);
}

.cnv58-regates-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--cnv-regates-blue);
}

.cnv58-regates-card--avis::before {
    background: var(--cnv-regates-yellow);
}

.cnv58-regates-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin-bottom: 14px;
}

.cnv58-regates-card__topline time {
    color: var(--cnv-regates-muted);
    font-size: 12px;
    line-height: 1.4;
}

.cnv58-regates-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--cnv-regates-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    text-transform: uppercase;
}

.cnv58-regates-card--avis .cnv58-regates-card__badge {
    color: var(--cnv-regates-navy);
    background: var(--cnv-regates-yellow);
}

.cnv58-regates-card__title {
    margin: 0 0 13px !important;
    padding: 0 !important;
    color: var(--cnv-regates-navy) !important;
    font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.cnv58-regates-card__content {
    margin-bottom: 22px;
    color: var(--cnv-regates-ink);
    font-size: 15px;
    line-height: 1.65;
}

.cnv58-regates-card__content > :first-child {
    margin-top: 0;
}

.cnv58-regates-card__content > :last-child {
    margin-bottom: 0;
}

.cnv58-regates-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--cnv-regates-line);
}

.cnv58-regates-card__file {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cnv58-regates-card__file > span:last-child {
    display: grid;
    min-width: 0;
}

.cnv58-regates-card__file strong {
    color: var(--cnv-regates-navy);
    font-size: 13px;
    line-height: 1.25;
}

.cnv58-regates-card__file small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--cnv-regates-muted);
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cnv58-regates-card__pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    background: var(--cnv-regates-red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
}

.cnv58-regates-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 43px;
    padding: 9px 15px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--cnv-regates-navy);
    box-shadow: 0 7px 16px rgba(7, 27, 120, .14);
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cnv58-regates-card__button:hover {
    color: #fff !important;
    background: var(--cnv-regates-blue);
    box-shadow: 0 10px 20px rgba(7, 27, 120, .18);
    transform: translateY(-1px);
}

.cnv58-regates-card__no-pdf {
    color: var(--cnv-regates-muted);
    font-size: 13px;
    font-style: italic;
}

.cnv58-regates__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.cnv58-regates__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--cnv-regates-line);
    border-radius: 12px;
    color: var(--cnv-regates-navy) !important;
    background: #fff;
    font-weight: 750;
    text-decoration: none !important;
}

.cnv58-regates__page:hover,
.cnv58-regates__page.is-active {
    border-color: var(--cnv-regates-navy);
    color: #fff !important;
    background: var(--cnv-regates-navy);
}

.cnv58-regates__empty {
    padding: 48px 24px;
    border: 1px solid var(--cnv-regates-line);
    border-radius: 18px;
    text-align: center;
    background: #fff;
}

.cnv58-regates__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 50%;
    color: var(--cnv-regates-navy);
    background: #edf5fb;
    font-size: 30px;
}

.cnv58-regates__empty h3 {
    margin: 0 0 5px !important;
    color: var(--cnv-regates-navy) !important;
}

.cnv58-regates__empty p {
    margin: 0;
    color: var(--cnv-regates-muted);
}

@media (max-width: 860px) {
    .cnv58-regates__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .cnv58-regates__filters {
        display: grid;
        grid-template-columns: 1fr;
        padding: 6px;
    }

    .cnv58-regates__filter {
        justify-content: space-between;
        width: 100%;
    }

    .cnv58-regates-card {
        padding: 21px 18px;
        border-radius: 15px;
    }

    .cnv58-regates-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cnv58-regates-card__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cnv58-regates__filter,
    .cnv58-regates-card__button {
        transition: none;
    }
}
