/* Style général */
body {
    font-family: sans-serif;
    background-color: #f7f7f7; /* Fond clair */
    margin: 0;
    padding: 0;
    color: #333;
    position: relative;
}

/* Section Logo et Informations */
.header-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #3f376a; /* Fond violet */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Container pour les logos et les informations */
.info-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

/* Informations de chaque société dans des boîtes */
.company-info {
    text-align: center;
    margin: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 265px; /* Largeur augmentée de 15px */
    height: 315px; /* Hauteur augmentée de 15px */
    padding: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 1;
    min-width: 200px;
    box-sizing: border-box;
}

/* Effet de survol */
.company-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.5);
}

.company-info img {
    width: 100%;
    height: auto;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    margin-top: 10px;
}

p {
    font-size: 16px;
    margin-top: 5px;
}

h1 {
    text-align: center;
    margin: 40px 0 40px 0;
    font-size: 2.4em;
    font-weight: bold;
    color: #3f376a;
}

/* Container pour le tableau */
.table-container {
    overflow-x: auto;
    margin: 20px;
}

/* Tableau de base */
#tableau {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white; /* Fond blanc pour le tableau */
}

th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 18px;
    box-sizing: border-box;
    color: #333; /* Texte en gris foncé pour mieux se lire sur fond blanc */
}

th {
    background-color: #3f376a; /* Violet pour les entêtes */
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    background-color: white; /* Fond blanc pour les cellules */
}

td img.logo-small {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

tbody tr:hover {
    background-color: #e1e1e1;
    cursor: pointer;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Ajout d'un espace violet entre les lignes sur petits écrans uniquement */
@media (max-width: 768px) {
    /* Remplacer l'espace blanc entre les lignes par un violet */
    #tableau tr {
        border-bottom: 2px solid #3f376a; /* Violet identique au fond de la page */
    }

    #tableau tr:last-child td {
        border-bottom: none; /* Supprime la bordure après la dernière ligne */
    }

    #tableau th, #tableau td {
        padding: 12px;
    }

    /* Adapter les logos sur mobile */
    .company-info {
        width: 90%;
        margin-top: 20px;
        height: auto;
        border: 1px solid #ddd;
        border-radius: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .company-info img {
        max-width: 90px;
        width: 100%;
    }

    /* Affichage du tableau en une seule colonne */
    #tableau {
        display: block;
        width: 100%;
    }

    #tableau thead {
        display: none;
    }

    #tableau tbody {
        display: block;
    }

    #tableau tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
        background-color: white; /* Fond blanc pour chaque ligne */
        padding: 10px;
        border-radius: 5px;
        border: 2px solid #3f376a; /* Violet pour la bordure entre les lignes */
    }

    #tableau td {
        display: flex;
        flex-direction: column;
        padding: 10px;
        border: none;
    }

    #tableau td img.logo-small {
        width: 70px;
        margin-bottom: 10px;
    }

    /* Repositionnement des éléments dans une disposition par "lot" sur mobile */
    .info-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
