/* Container général */
@import url("./tool.css");

.profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Carte du membre */
.profile-card {
    background: rgba(var(--dark-rgb), 0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
    position: relative;
}

/* Glow animé autour de la carte */
.profile-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        rgba(var(--primary-rgb), 0.4),
        rgba(var(--glow-rgb), 0.4),
        rgba(var(--secondary-rgb), 0.3)
    );
    z-index: -1;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px;
}

/* Hover : élévation + glow */
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.profile-card:hover::before {
    opacity: 1;
}

/* Image */
.profile-img {
    overflow: hidden;
    border-radius: 5px;
    /* Force uniform square for all profile images */
    width: 900px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0.6rem auto;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

/* Zoom de l'image */
.profile-card:hover img {
    transform: scale(1.07);
}

/* Textes */
.member-name {
    font-family: var(--font-heading);
    color: var(--primary);
    margin: 0.6rem 0 0.2rem;
    font-size: 1.35rem;
}

.instrument {
    font-family: var(--font-body);
    color: rgba(var(--light-rgb), 0.85);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.description {
    font-family: var(--font-body);
    color: rgba(var(--light-rgb), 0.75);
    font-size: 0.9rem;
    line-height: 1.4rem;
}

/* Back / Retour floating button */
.back-button {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: var(--dark);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.18);
	border: none;
	cursor: pointer;
	z-index: 1200;
	transform: translateY(20px);
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
}
.back-button.visible { opacity: 1; transform: translateY(0); }
.back-button:focus { outline: 2px solid rgba(var(--light-rgb), 0.12); }
.back-button i { font-size: 1.1rem; }

@media (max-width: 480px) {
	.back-button { right: 14px; bottom: 14px; width: 48px; height: 48px; }

    /* Reduce profile image size on small screens */
    .profile-img { width: 250px; }
}

