/**
 * AZ Musique - Grid Styles (Cours & Professeurs)
 */

/* ========== GRILLE COURS - 5 COLONNES ========== */

.az-cours-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    padding: 20px 60px;
    max-width: 1400px;
}

.az-cours-card {
    width: calc(20% - 16px);
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 420px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.az-cours-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Flou sur le fond via pseudo-element */
.az-cours-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(2px);
    transform: scale(1.05);
    z-index: 0;
}

/* Filtre noir semi-transparent */
.az-cours-card__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Contenu par dessus l'overlay */
.az-cours-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px 28px 24px;
    height: 100%;
    box-sizing: border-box;
    gap: 8px;
}

/* ========== ICÔNE ========== */

.az-card-icon {
    font-size: 42px;
    color: #C65D3B;
    margin-bottom: 14px;
}

.az-card-icon--empty {
    height: 50px;
    margin-bottom: 14px;
}

/* ========== TITRE ========== */

.az-cours-content .az-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    padding: 0 0 12px 0;
    position: relative;
    width: 100%;
    letter-spacing: 0.3px;
}

.az-cours-content .az-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #C65D3B;
}

/* ========== DESCRIPTION ========== */

.az-cours-content .az-card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========== HORAIRES ========== */

.az-cours-content .az-card-horaires {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
    padding: 0 0 10px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.az-cours-content .az-card-horaires i {
    color: #C65D3B;
    margin-right: 5px;
}

/* ========== TARIF ========== */

.az-card-tarif {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
    padding: 0;
}

.az-card-tarif i {
    color: #C65D3B;
    margin-right: 5px;
}

/* ========== GRILLE PROFESSEURS (inchangée) ========== */


/* ========== GRILLE PROFESSEURS ========== */

.az-professeurs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    padding: 20px 60px;
    max-width: 1400px;
}

.az-professeur-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: calc(20% - 16px);
    min-height: 420px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.az-professeur-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.az-professeur-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(2px) grayscale(100%);
    transform: scale(1.05);
    z-index: 0;
}

.az-professeur-card__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.60);
    z-index: 1;
}

.az-professeur-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px 28px 24px;
    height: 100%;
    box-sizing: border-box;
    gap: 8px;
}

.az-prof-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #C65D3B;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
    margin-bottom: 6px;
}

.az-prof-avatar--photo {
    background-color: transparent;
    padding: 0;
}

.az-prof-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    display: block;
}

.az-professeur-content .az-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    padding: 0 0 10px 0;
    position: relative;
    width: 100%;
    letter-spacing: 0.3px;
}

.az-professeur-content .az-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #C65D3B;
}

.az-professeur-content .az-card-specialites {
    font-size: 14px;
    font-weight: 600;
    color: #C65D3B;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0 0 10px 0;
    border: none;
    position: relative;
    width: 100%;
}

.az-professeur-content .az-card-specialites::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #C65D3B;
}
    margin: 0;
    padding: 0;
    border: none;
}

.az-prof-sep {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 2px 0;
}

.az-professeur-content .az-card-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.az-professeur-content .az-card-horaires {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

.az-professeur-content .az-card-horaires i { color: #C65D3B; margin-right: 5px; }

.az-card-experience {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
}

.az-card-experience i { color: #C65D3B; margin-right: 5px; }

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
    .az-cours-grid { padding: 20px 40px; }
    .az-cours-card { width: calc(33.333% - 14px); }
    .az-professeur-card { width: calc(33.333% - 14px); }
}

@media (max-width: 768px) {
    .az-cours-grid { padding: 20px; }
    .az-cours-card { width: calc(50% - 10px); }
    .az-professeurs-grid { padding: 20px; }
    .az-professeur-card { width: calc(50% - 10px); }
}

@media (max-width: 480px) {
    .az-cours-card { width: 100%; }
    .az-professeur-card { width: 100%; }
}
