
/* Section principale */
.teachers-section {
    margin-bottom: 20px;
}

.team-category-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #166534;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid responsive - 4 colonnes */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Forcer 4 colonnes sur grand écran */
@media (min-width: 1200px) {
    .teachers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2 colonnes sur tablette */
@media (min-width: 640px) and (max-width: 1199px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Carte enseignant */
.teacher-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #dcfce7;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 420px;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.2);
    border-color: #059669;
}

/* Photo professeur - Taille fixe */
.teacher-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #059669;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
    flex-shrink: 0;
}

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

.teacher-card:hover .teacher-photo img {
    transform: scale(1.1);
}

/* Placeholder si pas de photo */
.teacher-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-photo-placeholder span {
    font-size: 4rem;
    font-weight: bold;
    color: #059669;
    opacity: 0.7;
}

/* Textes */
.teacher-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #166534;
    margin: 15px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.teacher-subject {
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
    margin: 10px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

.teacher-experience {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: auto;
    padding-top: 10px;
    font-weight: 500;
}

/* Badge optionnel */
.teacher-card::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #059669;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.teacher-card {
    position: relative;
}

/* Responsive mobile */
@media (max-width: 639px) {
    .team-category-title {
        font-size: 1.8rem;
    }

    .teacher-card {
        min-height: 380px;
        padding: 25px 15px;
    }

    .teacher-photo {
        width: 140px;
        height: 140px;
    }

    .teacher-name {
        font-size: 1.2rem;
        min-height: 55px;
    }

    .teacher-subject {
        font-size: 1rem;
        min-height: 45px;
    }
}
