/* ====================================================================================================================
   Grille artistes - 5 colonnes max par breakpoint
====================================================================================================================== */

.astrachild-flp-artiste-grid {
    display: grid;
    gap: 20px;
    padding: 0 40px;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 599px) {
    .astrachild-flp-artiste-grid {
        grid-template-columns: repeat(1, minmax(220px, 1fr));
    }
}

/* Petites tablettes */
@media (min-width: 600px) and (max-width: 899px) {
    .astrachild-flp-artiste-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

/* Tablettes / petits laptops */
@media (min-width: 900px) and (max-width: 1149px) {
    .astrachild-flp-artiste-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

/* Laptops */
@media (min-width: 1150px) and (max-width: 1399px) {
    .astrachild-flp-artiste-grid {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
}

/* Desktop large - cap à 5 colonnes */
@media (min-width: 1400px) {
    .astrachild-flp-artiste-grid {
        grid-template-columns: repeat(5, minmax(220px, 1fr));
    }
}

/* Cartes artistes */
.astrachild-flp-artiste-container {
    text-align: center;
}

.astrachild-flp-artiste-container p {
    margin-top: 10px;
}

/* Images */
.astrachild-flp-artiste-img-container {
    display: flex;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    margin: 0 auto 10px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.astrachild-flp-artiste-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.astrachild-flp-artiste-img-container img:hover {
    transform: scale(1.05);
}

/* Biographie (si utilisée ailleurs) */
.astrachild-flp-artiste-biographie {
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px,
        rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    border-radius: 10px;
    width: 100%;
    padding: 20px;
    margin: 10px auto;
}

.astrachild-flp-artiste-nom {
    margin: 0 !important;
    padding-bottom: 15px;
    text-align: left;
}

.astrachild-flp-artiste-pronons {
    text-align: left;
    margin: 0 !important;
    color: rgba(47, 46, 46, 0.8) !important;
}

.artiste-biographie-courte {
    max-height: 400px;
    overflow: hidden;
    transition: 0.3s ease-out;
    margin: 0 !important;
}

.artiste-biographie-courte p {
    margin: 0 !important;
}

.astrachild-flp-artiste-biographie-texte.expanded .artiste-biographie-courte {
    max-height: none;
}

.artiste-bio-toggle {
    margin-top: 15px;
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
    padding: 0;
}

.astrachild-flp-artiste-biographie-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Formulaire recherche */
#astrachild-page-artistes-search-form-id {
    margin: 0 auto 30px auto;
    width: fit-content;
}

.search-field {
    width: 300px;
    height: 56px !important;
}

/* Pagination */
.astrachild-pager {
    justify-content: center;
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

/* Ajustements généraux */
@media (max-width: 782px) {
    .search-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-links {
        gap: 10px;
        align-items: center;
        display: flex !important;
        flex-direction: column !important;
    }

    .astrachild-flp-artiste-grid {
        padding: 0 20px;
    }
}

@media (max-width: 420px) {
    .search-field {
        width: 100%;
    }

    .astrachild-flp-artiste-img-container {
        max-width: 100%;
    }
}