.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #64748b;
}

.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    position: sticky;
    top: 1rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.filters.minimized {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}
.iconFermeture{
    display: none;
}
.iconRecherche{
    display: none;
}

.minimize-btn .iconFermeture{
    max-width: 35px;
}
.minimize-btn .iconRecherche {
    max-width: 110px;
}
.filters.minimized .filter-content {
    display: none;
}

.filters.minimized .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    color: #374151;
}

.minimize-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}



.filter-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.filters.minimized .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: flex-end;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
#tableHead th{
    font-size: 16px !important;
 
    color: #0c1c2b !important;
    font-family: "open-sans-condensed", sans-serif;
font-weight: 700;
    letter-spacing: .4px !important;
    margin-bottom: 7px !important;
}
.filter-group label {
    font-size: 16px;

    color: #0c1c2b;
    font-family: "open-sans-condensed", sans-serif;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 7px;
}

.filter-group input, .filter-group select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 12px;
    min-width: 150px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-filters {
    background-color: #ed0947;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
    min-width: 130px;
}

.clear-filters:hover {
    background-color: #ed0947;
}

.results-info {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.table-container {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f8fafc;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

tbody tr:hover {
    background-color: #f9fafb;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-style: italic;
}

.link-button {
color: #ed0947;
border: none;
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
text-decoration: none;
transition: background-color 0.2s, transform 0.1s;
display: inline-block;
width: 100%;
font-weight: 700;
background: rgb(241, 241, 241);
}


.link-button:hover {
    background-color: #ed0947;
    transform: translateY(-1px);
    color:white;
}

.link-button:active {
    transform: translateY(0);
}

.load-more-container {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.load-more-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;

    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.load-more-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

@media only screen and (max-width: 1024px) {
.iconRecherche{
    display: block;
}
    .filters.minimized {
        padding: 0px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important;
    }

    .filters {  
    padding: 10px;
}

    /* Par défaut (quand minimized est présent) */
#filters.minimized .iconRecherche {
  display: inline;
}
#filters.minimized .iconFermeture {
  display: none;
}

/* Quand minimized disparaît */
#filters:not(.minimized) .iconRecherche {
  display: none;
}
#filters:not(.minimized) .iconFermeture {
  display: inline;
}

}

@media (max-width: 1023px) {
    .container {
        padding: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        position: sticky;
        top: 0.5rem;
    }

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

    .filter-group input,
    .filter-group select {
        min-width: auto;
        width: 100%;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    th, td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

.filter-group:nth-child(5) {
    display: none;
}