/* Page Nos Offres d'Emploi */

.nos-offres-container {
    background-color: #e9ecef;
}

.nos-offres-container h1 {
    font-size: 2.5rem;
    color: #1c3d63;
    text-align: center;
    margin-bottom: 30px;
}

.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Message quand aucune offre */
.no-offers {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 600px;
}

.no-offers p {
    font-size: 1.1rem;
    color: #666;
    margin: 10px 0;
}

/* Grille des offres */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
    justify-items: center;
}

/* Carte d'offre */
.offer-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    width: 100%;
}

/* Image de l'offre */
.offer-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e9ecef;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

/* Contenu de l'offre */
.offer-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-size: 1.5rem;
    color: #1c3d63;
    margin: 0 0 20px 0;
    font-weight: 600;
}

/* Détails de l'offre */
.offer-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
}

.detail-item svg {
    color: #1c3d63;
    flex-shrink: 0;
}

.detail-item span {
    line-height: 1.4;
}

/* Résumé de l'offre */
.offer-resume {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Bouton Voir l'offre */
.btn-view-offer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #1c3d63;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-view-offer:hover {
    background-color: white;
    color: #1c3d63;
    border: #1c3d63 2px solid;
}

.btn-view-offer svg {
    transition: transform 0.3s ease;
}

.btn-view-offer:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1200px) {
    .offers-grid {
        display: flex;
        gap: 25px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .offers-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nos-offres-container {
        padding: 30px 15px;
    }

    .nos-offres-container h1 {
        font-size: 2rem;
    }

    .intro-section {
        padding: 15px;
        margin-bottom: 30px;
    }

    .intro-section p {
        font-size: 1rem;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .offer-image {
        height: 200px;
    }

    .offer-content {
        padding: 20px;
    }

    .offer-title {
        font-size: 1.3rem;
    }

    .offer-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nos-offres-container h1 {
        font-size: 1.8rem;
    }

    .offers-grid {
        padding: 0;
    }

    .offer-content {
        padding: 15px;
    }

    .offer-title {
        font-size: 1.2rem;
    }

    .btn-view-offer {
        width: 100%;
    }
}
