.job-offers-filters {
    margin-bottom: 2rem;
    padding: 1.75rem;
    border: 1px solid #d9e1e7;
    background: #f6f8fb;
    box-shadow: 0 10px 30px rgba(18, 49, 77, 0.08);
}

.job-offers-filters__intro {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #12314d;
}

.job-offers-filters__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: end;
}

.job-offers-filters__field {
    display: flex;
    flex-direction: column;
}

.job-offers-filters__label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #12314d;
}

.job-offers-filters__field select,
.job-offers-filters__field input[type="search"] {
    width: 100%;
    min-height: 54px;
    padding: 0 1rem;
    border: 1px solid #d9e1e7;


    background: #fff;
    font-size: 1rem;
    color: #12314d;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-offers-filters__field input::placeholder {
    color: #6b7f90;
}

.job-offers-filters__field select:hover,
.job-offers-filters__field input:hover {
    border-color: #b8c7d3;
}

.job-offers-filters__field select:focus,
.job-offers-filters__field input:focus {
    outline: none;
    border-color: #005ca9;
    box-shadow: 0 0 0 3px rgba(0, 92, 169, 0.12);
}

/* actions (sans toucher aux boutons existants) */
.job-offers-filters__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d9e1e7;
  gap: 27px;

}

/* Responsive */
@media (max-width: 1200px) {
    .job-offers-filters__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .job-offers-filters__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-offers-filters__actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .job-offers-filters__grid {
        grid-template-columns: 1fr;
    }
}



.job-offers-filters__field select {
    width: 100%;
    min-height: 54px;
    padding: 0 1rem;
    border: 1px solid #d9e1e7;
    background-color: #fff;
    font-size: 1rem;
    color: #12314d;
    cursor: pointer;

    /* léger style moderne sans casser le natif */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* hover léger */
.job-offers-filters__field select:hover {
    border-color: #b8c7d3;
    background-color: #ffffff;
}

/* focus propre */
.job-offers-filters__field select:focus {
    outline: none;
    border-color: #005ca9;
    box-shadow: 0 0 0 3px rgba(0, 92, 169, 0.12);
}

/* option (améliore lisibilité dans certains navigateurs) */
.job-offers-filters__field select option {
    color: #12314d;
}


.job-offers-filters__reset {
  text-decoration: none;
}
/* LISTE */


.job-offers-list {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.job-offers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.job-offers-table thead {
    background: #093f6f;
}

.job-offers-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.job-offers-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.job-offers-table tbody tr:hover {
    background: #f9fafb;
}

.job-offers-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: #374151;
}

.job-offers-table tbody tr:last-child {
    border-bottom: none;
}

.job-offers-table tbody td:first-child {
    font-weight: 600;
    color: #111827;
}

.job-offers-table a {
  color: #069ddc;
  -webkit-opacity: ;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.job-offers-table a:hover {
    color: #062e3d;
}

.job-offers-results-count {
    margin: 0 0 1rem;
    font-weight: 600;
    color: #111827;
}

.job-offers-list__empty {
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
}

.job-offers-pagination {
    margin-top: 1.5rem;
}

.job-offers-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.job-offers-pagination li a,
.job-offers-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.9rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.job-offers-pagination li a:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.job-offers-pagination .current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {


    .job-offers-table {
        min-width: 720px;
        font-size: 0.875rem;
    }

    .job-offers-table thead th,
    .job-offers-table tbody td {
        padding: 0.85rem 1rem;
    }
}



/* TABLEAU RESPONSIVE ***/


.job-offers-table.mobile {
    display: none;
}

@media (max-width: 768px) {
    .job-offers-table.desktop {
        display: none;
    }

    .job-offers-table.mobile {
        display: table;
        width: 100%;
        min-width: 100%;
    }
}


/*** BOUTON MONTRER FILTRES ***/


.show-filter {
    display: none!important;
}

.show-filter i {
    transition: transform 0.3s ease;
}

.show-filter[aria-expanded="true"] i {
    transform: rotate(90deg);
}


@media (max-width: 1024px) {
    .show-filter {
        display: flex!important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
        cursor: pointer;
    }

    .job-offers-filters {
        display: block;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .job-offers-filters.is-open {
        max-height: 1200px;
        opacity: 1;
        visibility: visible;
        margin-bottom: 2rem;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .job-offers-filters {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
