/* =====================================================
   Page Versements — l'argent sortant
   ===================================================== */

.payouts-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: transparent;
}

.payouts-page__head {
    margin-bottom: 28px;
    padding: 15px;
    background: var(--paper);
}

.payouts-page__count {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 14px 0 0;
}

.payouts-page__count strong { color: var(--red); }

/* ---------- Recherche ---------- */
.payouts-search { margin: 0 0 28px; }

.payouts-search input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 18px;
}

.payouts-search input[type="search"]:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px var(--red-wash);
}

/* ---------- Grille de cartes ---------- */
.payouts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.payout {
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 6px 6px 0 var(--ink);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.payout:has(.payout__name-link:hover),
.payout:has(.payout__name-link:focus-visible) {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--ink);
}

.payout__media {
    margin: -20px -20px 0;
    /* Cheque graphics ratio (~1000x487) so the cheque shows uncropped. */
    aspect-ratio: 2.05;
    overflow: hidden;
    background: var(--paper);
}

.payout__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bordure transparente intégrée à l'image → affichage plein cadre. */
.payout__photo-default {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payout__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.payout__amount {
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
    color: var(--red);
}

.payout__date {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.payout__name {
    font-family: var(--body);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
}

.payout__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.payout__tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border: 1.5px solid var(--ink);
    background: var(--surface);
}

.payout__tag--fight { background: var(--yellow); }

/* Stretched link: the title anchor covers the whole card, so the entire
   card is clickable (same pattern as the news cards). */
.payout__name-link { color: inherit; font: inherit; text-decoration: none; }
.payout__name-link::after { content: ""; position: absolute; inset: 0; }
.payout__name-link:focus-visible { outline: none; }

.payout__link {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Page détail d'un versement ---------- */
.payout-show__facts {
    margin: 8px 0 24px;
    padding: 16px 18px;
    border: 2px solid var(--ink);
    background: var(--surface);
}

.payout-show__amount {
    font-family: var(--display);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
    color: var(--red);
    margin: 0;
}

.payout-show__stats {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.payout-show__stats li { white-space: nowrap; }
.payout-show__figure--default {
    padding: 3rem;
}
.payout-show__figure--default .news-show__figure-image {
    height: auto;
    object-fit: contain;
}

/* A payment photo is a cheque graphic: match its ratio instead of the shared clamp height. */
.payout-show__figure:not(.payout-show__figure--default) .news-show__figure-image {
    height: auto;
    aspect-ratio: 2.05;
}

.payouts__empty {
    border: 2px dashed var(--ink);
    padding: 28px;
    text-align: center;
    color: var(--ink-soft);
    font-weight: 600;
}

/* ---------- Charger plus ---------- */
.payouts__more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.payouts__more .btn[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- Messages de soutien ---------- */
/* Pleine largeur. Transparent au-dessus du titre (laisse voir l'image de fond
   de page), fondu au niveau du titre, puis blanc plein derrière les
   témoignages et jusqu'au bloc Newsletter. */
.support-messages {
    padding: 48px 0;
    background: linear-gradient(to bottom, transparent 0, var(--paper) 100px);
}

.support-messages__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.support-messages__title { margin: 0 0 20px; }

.support-messages__title mark {
    background: var(--yellow);
    color: inherit;
    padding: 0 0.12em;
}

/* Réutilise le carrousel d'articles : on neutralise le filet et le padding
   propres à la galerie d'article. */
.support-messages__gallery {
    border-top: 0;
    padding: 0;
}

/* Deux colonnes par page (une seule en mobile). */
.support-messages__slide { flex: 0 0 calc((100% - 12px) / 2); }

.testimonial {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    background: var(--paper);
}

.testimonial__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.5;
}

.testimonial__author {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .payouts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .payouts { grid-template-columns: 1fr; }
    .support-messages__slide { flex-basis: 100%; }
}
