/*
  artist-card-responsive.css
  Styles responsive pour cartes artistes.
  Factorisation, optimisation, documentation complète.
*/

@media (max-width: 900px) {
  /* Arrondir le bas du séparateur gradient pour qu'il épouse le bas de la fiche artist */
  .artists-gallery .header-separation-green {
    border-radius: 0 0 25px 25px !important;
  }
}
@media (max-width: 900px) {
  /* Empêche le fond de dépasser sous les coins arrondis de l'image dans la galerie accueil */
  .artists-gallery .fiche-artist-img {
    border-radius: 25px 25px 0 0 !important;
    overflow: hidden !important;
    background-clip: padding-box !important;
  }
}
@media (max-width: 900px) {
  /* Correction finale : arrondis parfaits sur le contour vert galerie accueil responsive */
  .artists-gallery {
    border-radius: 25px !important;
    border: 2px solid var(--color-green) !important;
    box-sizing: border-box;
    overflow: visible !important;
  }
  .artists-gallery .fiche-artist,
  .artists-gallery .fiche-artist-content,
  .artists-gallery .fiche-artist-content-inner {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
}
@media (max-width: 900px) {
  /* Arrondir aussi le bas du contour vert de la galerie accueil en responsive */
  .artists-gallery {
    border-radius: 25px;
    border: 2px solid var(--color-green);
    box-sizing: border-box;
  }
  .artists-gallery .fiche-artist {
    border-radius: 25px;
  }
  .artists-gallery .fiche-artist-content,
  .artists-gallery .fiche-artist-content-inner {
    border-radius: 0 0 25px 25px;
  }
}
@media (max-width: 900px) {
  /* Ajoute un espace sous les réseaux sociaux dans la galerie accueil responsive */
  .artists-gallery .fiche-artist-socials {
    margin-bottom: 18px !important;
  }
}
@media (max-width: 900px) {
  /* Forcer le contenu à s'étendre et lever tout cropping pour la galerie accueil */
  .artists-gallery .fiche-artist,
  .artists-gallery .fiche-artist-content,
  .artists-gallery .fiche-artist-content-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
  }
  .artists-gallery .fiche-artist-content-inner > * {
    flex-shrink: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
@media (max-width: 900px) {
  /* Annule toutes les contraintes desktop pour la galerie accueil en responsive */
  .artists-gallery .fiche-artist,
  .artists-gallery .fiche-artist-content,
  .artists-gallery .fiche-artist-content-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}
@media (max-width: 900px) {
  /* Annule toute contrainte de hauteur/overflow sur la fiche artist ACCUEIL en responsive */
  .artists-gallery .fiche-artist-content,
  .artists-gallery .fiche-artist-content-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
@media (max-width: 900px) {
  /* Responsive général pour fiches artist accueil & artistes */
  .artists-gallery,
  .artist-grid-item .fiche-artist {
    border-radius: 25px !important;
    box-shadow: 0 2px 8px 0 #0002;
    background: rgba(255,255,255,0.25);
    padding: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 2px solid var(--color-green);
    box-sizing: border-box;
    overflow: visible;
  }

  .artists-gallery .fiche-artist,
  .artist-grid-item .fiche-artist {
    border-radius: 25px !important;
    background: transparent;
    box-shadow: none;
    border: none;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .artists-gallery .fiche-artist-img,
  .artist-grid-item .fiche-artist-img {
    width: 100%;
    height: 220px;
    border-radius: 25px 25px 0 0 !important;
    overflow: hidden !important;
    background-size: cover;
    background-position: center;
    margin: 0;
    box-shadow: 0 2px 8px 0 #0001;
  }

  .artists-gallery .fiche-artist-content,
  .artist-grid-item .fiche-artist-content {
    width: 100%;
    background: transparent;
    border-radius: 0 0 25px 25px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
  }

  .artists-gallery .fiche-artist-content-inner,
  .artist-grid-item .fiche-artist-content-inner {
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.18);
    border-radius: 0 0 25px 25px !important;
    box-shadow: 0 8px 32px rgba(31,38,135,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .artists-gallery .fiche-artist-socials {
    margin-bottom: 18px !important;
  }

  /* Arrondir le bas du séparateur gradient pour qu'il épouse le bas de la fiche artist */
  .artists-gallery .header-separation-green {
    border-radius: 0 0 25px 25px !important;
  }

  /* Supprimer tout espace parasite entre image et contenu */
  .artists-gallery .fiche-artist-img,
  .artist-grid-item .fiche-artist-img {
    margin-bottom: 0 !important;
  }
  .artists-gallery .fiche-artist-content,
  .artist-grid-item .fiche-artist-content {
    margin-top: 0 !important;
  }

  /* Forcer tous les parents à height: auto et overflow: visible pour la grille artistes */
  .artists-gallery,
  .artists-gallery > *,
  .artists-gallery > * > *,
  .artists-gallery > * > * > *,
  .artists-grid,
  .artists-grid > *,
  .artists-grid > * > *,
  .artists-grid > * > * > * {
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

  .artist-card-presentation {
    font-size: 0.55rem;
    color: #000;
    padding: 0 20px;
    margin: 8px 0 4px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .artist-card-separation {
    font-family: var(--font-heading-h1) !important;
    font-size: 0.55rem;
  }

  .artist-card-prefait {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    color: var(--color-text-secondary);
    text-align: center;
    font-family: var(--font-paragraph) !important;
    width: 100%;
    box-sizing: border-box;
  }

  .artist-card-socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
  }

    .bloc2-accueil-artists-gallery{
 height: auto; /* suit le contenu */
  }

  .artists-gallery-track {
 height: 100%; /* suit le contenu */
  }
  .artists-gallery-track img {
 height: 100%; /* suit le contenu */
  }

  .artist-slide active {
 height: 100%; /* suit le contenu */
  }

  /* Galerie en colonne */
  .artists-gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
@media (max-width: 900px) {
  .artists-gallery {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .artists-gallery .artist-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .artists-gallery .fiche-artist {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

  /* Bloc accueil artiste */
  .bloc2-accueil-artists-gallery {
    display: block;
    width: 100%;
    height: auto; /* suit le contenu */
    min-height: auto;
    max-height: none;
    overflow: visible; /* important pour ne pas couper en bas */
    background-color: var(--gradient-secondary-grey);
    box-sizing: border-box;
  }

  /* Slide artiste */
  .artist-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    height: 100%;
    min-height: auto;
  }

@media (max-width: 900px) {
  /* Fiche artiste en responsive: colonne */
  .fiche-artist {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-radius: 25px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 8px 0 #0002;
    padding: 0;
    height: auto;
  }
}

