main {
    background-color: #f9f9f9;
    padding-bottom: 50px;
}

/* Section Titre parteanires */
#partenaire-titre{
    background-image: url("../images/partenaire-bg.jpg");
    background-size: cover;
    background-position: center 55%;
    height: 550px;
    background-repeat: no-repeat;
}

#partenaire-titre h1 {
    padding-top: 150px;
    font-size: 3rem;
    color: white;
    margin: 30px auto;
    max-width: 900px;
}

/* Section Infos parteanires */
#partenaires-infos{
    height: auto; /* Hauteur définie */
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 70%;
    padding: 50px;
    margin-left: 15%;
    margin-top: -230px;
}

#partenaires-infos p {
    font-size: 1.1rem;
    line-height: 1.8;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 3%;
}


/* Section des logos */
#logos-partenaires {
    padding-top: 70px;
    padding-bottom: 30px;
    border-radius: 8px;
}

#logos-partenaires h2 {
    font-size: 2rem;
    color: #1748d0;
    margin-bottom: 50px;
    text-align: center;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    grid-template-rows: auto auto; /* 2 lignes */
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.logo-item:nth-child(5) {
    grid-column: 2; /* Place Sharp sous Microsoft */
}

.logo-item:nth-child(6) {
    grid-column: 3; /* Place Polycom sous Hikvision */
}

.logo-item {
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.logo-item img {
    max-width: 150px;
    max-height: 100px;
    display: block;
    margin: 0 auto 10px;
}


.logo-item:hover {
    transform: scale(1.05);
    cursor: pointer;
}


/* Responsive design */
@media screen and (max-width: 990px) {
    #logos-partenaires {
        padding: 30px 10px;
    }

    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .logo-item img {
        max-width: 100px;
        max-height: 70px;
    }

    .logo-item p {
        font-size: 0.9rem;
    }
}


