:root{
    /* les couleurs du site */
    --ecru: #fff8dc;
    --jaune: #e4a600;
    --bleu: #1550c6;
    --bRoi: #4169E1;
    font-size: 12px;
    /* font-family: 'Philosopher', 'Lora', Tahoma, sans-serif; */
    font-family: 'Roboto','Philosopher';
}

header, main{
    margin: 10px;
}

h1 {
    text-align: center;
    text-decoration: underline;
    margin-bottom: 20px;
    font-size: 3rem;
}

.photoSponsor {
    text-align: center;
}

header p {
    font-size: 1.6rem;
}

main img {
    height: 100%;
    width: 100%;
}

.sponsors-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sponsor-item{
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-wrapper {
    width: 300px; /* Taille fixe */
    height: 300px; /* Taille fixe */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.sponsor-wrapper img {
    max-width: 100%;
    max-height: 100%;
    /* object-fit: contain; Garantit que l'image ne se déforme pas */
    /*object-fit: cover;  Recadre l’image pour qu’elle remplisse l’espace */
}

.institutionels .sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 20px; /* Ajuste l'espace entre les images */
}

.institutionels .sponsor-item {
    flex: 0 1 300px; /* Garde une taille fixe pour chaque image */
}

section p {
    margin: 10px;
    font-size: 1.3rem;
}

section p a {
    color: white;
}
/* Fin de la vue portable */
/* Ecran d'au moins 1024px de largeur */
@media screen and (min-width:1024px) {
    :root {
        font-size: 16px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .photoSponsor p{
        font-size: 2.5rem;
    }    
}
/* fin de la vue ordinateur */