/* 🌟 Styles Généraux 🌟 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    text-align: center; /* Centre le texte de tout le body */
    box-sizing: border-box;
}
.emploi-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    background: #f9f9f9;
}
.like-btn {
    background-color: #ff4d4d;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}
textarea {
    width: 100%;
    height: 60px;
    margin: 10px 0;
}
.commentaires {
    margin-top: 15px;
}
.commentaire {
    background: #eee;
    border-radius: 5px;
    padding: 5px 10px;
    margin-bottom: 5px;
}
.container h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.container p {
    color: #555;
    line-height: 1.6;
}

/* 🌟 Conteneur des entreprises 🌟 */
.companies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 15px;
    justify-content: center;
    align-items: stretch;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
}

/* 🌟 Section de contenu 🌟 */
.section-content {
    background-color: #87CEEB;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 🌟 Footer et Header uniformisés 🌟 */
footer, header {
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

footer {
    background-image: url('logo/universimage.png');
    color: white;
    position: relative;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

header {
    background-image: url('logo/universimage.png');
}

/* 🌟 Navigation 🌟 */
nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrer les éléments du menu */
}

.menu {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex: 1;
    justify-content: center; /* Centrer les éléments du menu */
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 0.8em; /* Réduit la taille des caractères */
}

.menu a:hover {
    background: #555;
}

/* 🌟 Carte Entreprise 🌟 */
.company-card {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 200px;
}

.company-card:hover {
    transform: translateY(-4px);
}

.company-photo {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.company-details {
    padding: 6px;
    flex-grow: 1;
}

.company-card h3 {
    font-size: 0.9em;
    margin-bottom: 4px;
}

.company-card p {
    font-size: 0.75em;
    color: #555;
    margin-bottom: 4px;
}

.company-link {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 8px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.7em;
    transition: background 0.2s ease;
}

.company-link:hover {
    background: #0056b3;
}

/* 🌟 Bouton de Gestion 🌟 */
.manage-button {
    bottom: 20px;
    left: 20px;
    background: #007bff;
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.manage-button:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.manage-button a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
}

.manage-text {
    margin-top: 8px;
    font-size: 12px;
    color: white;
}

/* 🌟 Responsive 🌟 */
@media screen and (max-width: 768px) {
    .companies-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-photo {
        height: 75px;
    }

    .company-card h3 {
        font-size: 0.8em;
    }

    .company-card p {
        font-size: 0.7em;
    }

    .company-link {
        font-size: 0.65em;
        padding: 4px 6px;
    }

    .section-content {
        max-width: 90%;
    }

    footer {
        padding: 15px;
    }

    footer p {
        font-size: 0.8em;
    }
}
