/* ===========================
         PAGE COURSES PARTENAIRES
   (styles partagés : .content-section
   dans css/index.css)
=========================== */

.friends-intro {
    text-align: center;
}

.friends-intro p {
    text-wrap: balance;
}

.friends-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.25rem);
    width: 100%;
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 0 1.25rem clamp(2.5rem, 6vw, 5rem);
}

/* ===== CARTE D'UNE COURSE : visuel en haut, texte en dessous ===== */
.friend {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border-radius: 1.375rem;
    box-shadow: 0 0.625rem 1.625rem rgba(0, 0, 0, 0.13);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.friend:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0 1.125rem 2.25rem rgba(0, 0, 0, 0.2);
}

/* ===== VISUEL : cadre aux proportions exactes des images (900 × 754),
   l'image le remplit entièrement, sans bande vide ni partie coupée ===== */
.friend-poster {
    display: block;
    aspect-ratio: 900 / 754;
    overflow: hidden;
}

.friend-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.friend-poster:hover img {
    transform: scale(1.04);
}

/* ===== TEXTE ===== */
.friend-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1.5rem, 3vw, 2.125rem);
}

.friend-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: var(--police-titre);
    font-size: 0.75rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    color: #ff7800;
}

.friend-body h3 {
    margin-bottom: 0.375rem;
    font-family: var(--police-titre);
    font-size: clamp(1.6rem, calc(3vw * var(--taille-texte)), 2.1rem);
    line-height: 1.15;
    color: #1a4aa0;
}

.friend-lead {
    margin-bottom: 0.875rem;
    font-family: var(--police-texte);
    font-size: 1.1rem;
    font-style: italic;
    /* même couleur que le texte des cartes (#2b2b2b, via .friend-body p),
       identique pour toutes les courses */
}

.friend-body p {
    font-family: var(--police-texte);
    font-size: clamp(1rem, calc(1.4vw * var(--taille-texte)), 1.08rem);
    line-height: 1.65;
    color: #2b2b2b;
}

.friend-body sup {
    line-height: 0;
}

/* chiffres clés en pastilles */
.friend-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 1.125rem 0;
    padding: 0;
}

.friend-chips li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.875rem;
    background: rgb(251, 245, 234);
    text-align: center;
}

.friend-chips strong {
    font-family: var(--police-titre);
    font-size: 1.25rem;
    color: #1a4aa0;
}

.friend-chips span {
    font-family: var(--police-texte);
    font-size: 0.85rem;
    color: #555;
}

.friend-body .friend-note {
    font-size: 0.92rem;
    color: #666;
}

/* ===== BOUTONS ===== */
.friend-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.125rem;
}

.friend-btn {
    display: inline-block;
    margin-top: 1.125rem;
    padding: 0.6875rem 1.625rem;
    border-radius: 62.4375rem;
    font-family: var(--police-texte);
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #1a4aa0, #06276b);
    transition: all 0.25s ease;
}

.friend-btn:hover {
    transform: scale(1.06);
    background: linear-gradient(135deg, #ff7800, #ffb700);
}

/* logos Facebook / Instagram, comme dans le pied de page */
.friend-socials {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.125rem;
}

.friend-social {
    display: block;
    transition: transform 0.3s ease;
}

.friend-social img {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.2));
}

.friend-social:hover {
    transform: translateY(-0.3125rem) scale(1.1);
}

.friend-social:hover img {
    filter: drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.4));
}

/* ===========================
           RESPONSIVE
=========================== */

@media (max-width: 820px) {
    .friends-wrap {
        grid-template-columns: 1fr;
        max-width: 38.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .friend,
    .friend-poster img,
    .friend-btn {
        transition: none;
    }

    .friend:hover,
    .friend-poster:hover img,
    .friend-btn:hover {
        transform: none;
    }
}
