/*
 * Feuille de style pour la page d'archive des partenaires.
 *
 * Gère la mise en page de la section supérieure (en-tête) et de la
 * grille affichant les cartes des partenaires.
 */

/* --- Section Supérieure (En-tête) --- */
.partenaires-top-section {
    height: 50vh;
    background-color: var(--himi-primary);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 10vh; /* Espace pour le header fixe */
    box-sizing: border-box;
}

.partenaires-top-section .page-header {
    padding: 0;
    background: none;
    color: white;
}

.partenaires-top-section .page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.partenaires-top-section .page-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Section Inférieure (Grille) --- */
.partenaires-bottom-section {
    background-color: #f4f4f4;
    padding: 4rem 2rem;
}

.partner-archive-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Carte Partenaire --- */
.partner-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--himi-primary);
    width: 320px;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.partner-card-logo {
    background-color: white;
    padding: 2rem;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.partner-card-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-card-title-wrapper {
    padding: 1.5rem;
    text-align: center;
    background-color: transparent;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0;
    color: var(--text-dark);
}