/* ==========================================================================
   AFR Partners — partners.css
   Grille de logos partenaires, compatible thème AF Rotterdam
   ========================================================================== */

/* ── Grille ── */
.afr-partners-grid {
    --afr-partners-cols: 4;
    width: 100%;
}

.afr-partners-title {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B7280;
    text-align: center;
    margin: 0 0 1.75rem;
}

.afr-partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--afr-partners-cols), 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
    justify-items: center;
}

/* ── Chaque item ── */
.afr-partner-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afr-partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    width: 100%;
    text-decoration: none;
    transition: all 0.22s ease;
}

/* ── Logo image ── */
.afr-partner-link img {
    max-height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.afr-partner-link:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

/* ── Partenaire sans logo (nom en texte) ── */
.afr-partner-name {
    font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #002868;
    text-align: center;
    line-height: 1.3;
}

.afr-partner-link--no-url { cursor: default; }
.afr-partner-link--no-url:hover img {
    transform: none;
}

/* ── Variante dans le footer (fond sombre) ── */
.footer-main .afr-partners-list .afr-partner-link img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.5 !important;
}
.footer-main .afr-partners-list .afr-partner-link:hover img {
    opacity: 0.9 !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .afr-partners-list {
        grid-template-columns: repeat(min(var(--afr-partners-cols), 3), 1fr);
    }
}
@media (max-width: 600px) {
    .afr-partners-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .afr-partner-link img { max-height: 44px; }
}
