/**
 * Gabarits Team : archive (grille de membres) + fiche profil (single).
 * S'appuie sur les primitives .mq-* de main.css.
 */

/* ── Bandeau titre ───────────────────────────────────────────────────── */
.mq-team__hero {
	background: var(--mq-color-bg-soft);
	border-bottom: 1px solid var(--mq-color-line);
	padding-block: var(--mq-space-8);
	text-align: center;
}

.mq-team__hero-inner { max-width: 720px; margin-inline: auto; }

.mq-team__title {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	line-height: 1.12;
	color: var(--mq-color-ink);
	margin: 0 0 var(--mq-space-2);
}

.mq-team__lead { font-size: 1.15rem; line-height: 1.6; color: var(--mq-color-muted); margin: 0; }

/* ── Grille de membres ───────────────────────────────────────────────── */
.mq-team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--mq-space-4);
}

.mq-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
	padding: var(--mq-space-4);
	background: #fff;
	border: 1px solid var(--mq-color-line);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mq-team-card:hover { transform: translateY(-6px); box-shadow: var(--mq-shadow); border-color: transparent; }

.mq-team-card__photo {
	display: block;
	width: 128px;
	height: 128px;
	margin-bottom: var(--mq-space-2);
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	background: linear-gradient(135deg, rgba(243, 90, 2, 0.12), rgba(0, 25, 76, 0.1));
}

.mq-team-card__img { width: 100%; height: 100%; object-fit: cover; }

/* Initiales quand aucune photo n'est définie. */
.mq-team-card__initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mq-font-head);
	font-weight: 800;
	font-size: 2.4rem;
	color: var(--mq-color-primary);
}

.mq-team-card__name { font-size: 1.1rem; margin: 0; color: var(--mq-color-ink); }
.mq-team-card__name a { color: inherit; text-decoration: none; }
.mq-team-card__name a:hover { color: var(--mq-color-primary); }

.mq-team-card__role { margin: 0; color: var(--mq-color-muted); font-size: 0.92rem; }

.mq-team-card__social { display: flex; gap: 0.4rem; margin-top: var(--mq-space-2); }

.mq-team-card__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--mq-color-bg-soft);
	color: var(--mq-color-secondary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mq-team-card__social a:hover { background: var(--mq-color-primary); color: #fff; }
.mq-team-card__social svg { width: 17px; height: 17px; }

/* ── Fiche profil (single) ───────────────────────────────────────────── */
.mq-team-profile {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: var(--mq-space-6);
	align-items: start;
}

.mq-team-profile__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, rgba(243, 90, 2, 0.1), rgba(0, 25, 76, 0.08));
	overflow: hidden;
}

.mq-team-profile__img { width: 100%; height: 100%; object-fit: cover; }

.mq-team-profile__ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mq-color-primary);
}

.mq-team-profile__ph svg { width: 72px; height: 72px; opacity: 0.7; }

.mq-team-profile__name {
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	line-height: 1.15;
	color: var(--mq-color-ink);
	margin: 0 0 var(--mq-space-1);
}

.mq-team-profile__role { color: var(--mq-color-primary); font-weight: 600; margin: 0 0 var(--mq-space-3); }

.mq-team-profile__bio {
	color: var(--mq-color-body);
	line-height: 1.7;
	margin: var(--mq-space-3) 0 var(--mq-space-4);
}

.mq-team-profile__bio > * + * { margin-top: var(--mq-space-2); }

/* Réutilise .mq-team-card__social pour les icônes du profil. */
.mq-team-profile__body .mq-team-card__social { justify-content: flex-start; margin: 0 0 var(--mq-space-3); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
	.mq-team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
	.mq-team-grid { grid-template-columns: repeat(2, 1fr); }
	.mq-team-profile { grid-template-columns: 1fr; }
	.mq-team-profile__media { max-width: 260px; }
}

@media (max-width: 460px) {
	.mq-team-grid { grid-template-columns: 1fr; }
}
