/************************/
/* CSS Archive Teacher */
/************************/

.teacher-archive {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 20px;
}

.teacher-archive h1 {
    padding-bottom: 20px;
    color: var(--ast-global-color-4);
}

.teacher-archive h2 {
    font-size: 28px;
    padding: 20px 0;
}

.teacher-archive h3 {
    /*font-size: 20px;*/
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    padding: 10px 0;
}

/* Header */

.teacher-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.teacher-archive-header h1 {
    margin-bottom: 10px;
}

.teacher-archive-header p {
    opacity: 0.75;
}

/* Layout des filtres */

.teacher-archive-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
    width: 100%;
}
@media (max-width: 900px) {

    .teacher-archive-layout {
        grid-template-columns: 1fr;
    }

}
.teacher-filters-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.teacher-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

form.teacher-filters-form {
    width: 100%;
}

.teacher-filters select,
.teacher-filters input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 16px;
}

.btn-filter {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: var(--ast-global-color-1);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
}

.btn-reset {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.7;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* ========================= */
/* CHECKBOX PILLS FILTER UX */
/* ========================= */

.checkbox-pill {
    /* display: flex; */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-size: 15px;
    color: var(--ast-global-color-1);
}

.checkbox-pill:hover {
    border-color: var(--ast-global-color-1);
    transform: translateY(-1px);
}

.checkbox-pill input {
    display: none;
}

/* état sélectionné */
.checkbox-pill input:checked + span {
    color: #fff;
}

.checkbox-pill input:checked + span::before {
    content: "✓";
    margin-right: 6px;
}

.checkbox-pill input:checked + span {
    background: var(--ast-global-color-1);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

/* fond du label quand actif */
.checkbox-pill input:checked ~ span {
    color: #fff;
}

.checkbox-pill:has(input:checked) {
    background: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
}

.checkbox-pill:has(input:checked) span {
    color: #fff;
}

/* Grid des cards */

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

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

@media (max-width: 768px) {
    .teacher-grid {
        grid-template-columns: 1fr;
    }
    .teacher-filters-sidebar {
        position: static;
    }
}

.teacher-results-count {
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.8;
}

.teacher-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 15px;
    font-weight: 500;
}

.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.teacher-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.teacher-card-location {
    font-size: 17px;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 2px;
    font-weight: 400;
    font-style: italic;
}

.teacher-card-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.teacher-card-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0px;
}

.teacher-archive .teacher-badge {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ast-global-color-1);
    color: #fff;
}

.teacher-card-text {
    padding: 0 20px 20px;
    line-height: 1.5;
    opacity: 0.8;
    font-size: 14px;
}