/* === SECTION OFFRES D’EMPLOI === */
.offres-emploi {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    font-family: "Signika", sans-serif;
}

.offres-emploi h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

/* === CONTAINER === */
.offres-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.offres-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    justify-content: center;
    align-items: stretch;
    padding: 1rem 0;
}

/* === CARTE === */
.offre-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 240px; /* au lieu de height fixe */
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}


.offre-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.98);
}

.offre-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === HEADER === */
.offre-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.structure-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.offre-lieu {
    color: #666;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* === CONTENU === */
.offre-content {
    margin: 1rem;
    flex: 1 0 auto;
    min-height: 130px;
}

.offre-content h3 {
    text-align: center;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.offre-content h3 a {
    text-transform: uppercase;
    color: #1c396f;
}

.offre-description {
    color: #666;
    line-height: 1.4;
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    margin-bottom: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limite à 3 lignes */
    -webkit-box-orient: vertical;
}

/* === BOUTON === */
.offre-btn {
    display: block;
    text-align: center;
    padding: 0.8rem;
    margin-top: auto;
    background-color: #1c396f;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease; /* font-size: clamp(0.85rem, 1.6vw, 1rem); */
}

.offre-btn:hover {
    background-color: #0a6fad;
    color: #fff
}

/* === RESPONSIVE === */
@media (min-width: 1200px) {
    .offres-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .offres-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .offres-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .offre-card {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .offres-container {
        grid-template-columns: 1fr;
    }
}

/* === BOUTONS DE NAVIGATION === */
/* .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background-color: #0a6fad;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: #085a8e;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
} */

/* === ANIMATION APPARITION === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offre-card {
    animation: fadeUp 0.5s ease both;
}

/* === CARTE FILTRE === */
.filter-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

/* Champs avec bordure fine grise par défaut */
.filter-select,
.filter-input {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    font-family: "Signika", sans-serif;
    outline: none;
    transition: all 0.3s ease;
    min-width: unset;
}

/* Bordure animée au focus */
.filter-select:focus,
.filter-input:focus {
    border-color: #0a6fad;
    box-shadow: 0 0 0 2px rgba(10, 111, 173, 0.2);
}

/* Champs Filiale et Domaine plus petits */
.filter-select[name="filiale"],
.filter-select[name="domaine"] {
    width: 200px;
}

/* Groupe offre (input + dropdown) */
.filter-offre-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input[name="offre"] {
    flex: 1;
}

.filter-offre-group select.offre-dropdown {
    width: 150px;
}

/* Bouton filtrer */
.filter-btn {
    background-color: #0a6fad;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #085a8e;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-offre-group {
        flex-direction: column;
        align-items: stretch;
    }
}
