/*
 * L'annuaire des créateurs, « Les Créatifs d’Afrique et d’ailleurs » : un portrait par créateur (composition choisie le 25/11/2026
 * parmi quatre), et la page de chacun. L'ambre est la couleur des créateurs.
 */

.annuaire {
	container: annuaire / inline-size;
	padding-bottom: 90px;
}


/* Les filtres : le lieu, puis le métier, chacun sur sa ligne, même sur grand écran (deux sortes de choix). Dessous, la barre
   commune des listes : le nombre de créatifs dans une phrase qui suit les filtres (« 3 artisans à découvrir au Maroc »), et la
   recherche à droite, sur le fond de la page comme le champ de la newsletter du menu. Sur un téléphone, la recherche passe sous
   la phrase (demandes du propriétaire, 26/11/2026). */
.annuaire__outils {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.annuaire__outils[hidden] {
	display: none;
}

.annuaire__choix {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.annuaire .filtre {
	border: 0;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
}

.annuaire .filtre[aria-pressed="true"] {
	background: var(--dm-ambre);
	color: var(--dm-encre);
}

/* La barre du nombre et de la recherche : `.barre-liste`, dans designmaroc.css. */
.annuaire__resultats {
	margin: 18px 0 16px;
}

.annuaire [data-createur][hidden] {
	display: none;
}

.annuaire__rejoindre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin: 54px 0 0;
	font-family: var(--dm-police-titres);
	font-size: clamp(1.5rem, 3.4cqi, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.annuaire__rejoindre .bouton {
	font-family: var(--dm-police-texte);
	font-size: 1.05rem;
	letter-spacing: 0;
}

/* Les portraits : la tuile du site */
.portraits {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: var(--dm-ecart);
	margin: 0;
	padding: 0;
	list-style: none;
}

.portrait {
	position: relative;
	padding: 8px 8px 16px;
	border-radius: var(--dm-rayon);
	background: var(--dm-blanc);
	transition: transform 0.55s var(--dm-souple), box-shadow 0.55s var(--dm-souple);
}

.portrait__image {
	position: relative;
	overflow: hidden;
	border-radius: var(--dm-rayon-image);
	background: var(--dm-ambre);
	aspect-ratio: 4 / 5;
}

.portrait__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 24%; /* Un visage est dans le haut d'un portrait. */
}

.portrait--oeuvre .portrait__image img {
	object-position: center;
}

.portrait__initiales {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--dm-police-titres);
	font-size: 3.4rem;
	font-weight: 800;
}

.portrait__regard {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 26px;
	background: var(--dm-ambre);
	font-family: var(--dm-police-titres);
	font-size: 1.16rem;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.01em;
	text-align: center;
	clip-path: circle(0 at 50% 110%);
	transition: clip-path 0.55s var(--dm-courbe);
}

.portrait__nom {
	margin: 12px 8px 0;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.portrait__nom a {
	text-decoration: none;
}

.portrait__nom a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.portrait__info {
	display: grid;
	margin: 4px 8px 0;
	font-size: 0.96rem;
	line-height: 1.4;
}

.portrait__metier {
	font-weight: 600;
}

.portrait__ou {
	color: var(--dm-gris);
}

@media (hover: hover) {
	.portrait:hover {
		box-shadow: var(--dm-ombre);
		transform: translateY(-4px);
	}

	.portrait:hover .portrait__regard {
		clip-path: circle(150% at 50% 110%);
	}
}

/* La page d'un créateur */
.profil__retour {
	margin: 6px 0 18px;
	font-weight: 700;
}

.profil__retour a {
	text-decoration: none;
}

.profil__retour a:hover .fleche--retour {
	transform: translateX(-4px);
}

.profil__tete {
	display: grid;
	gap: 24px 48px;
	align-items: center;
	margin-bottom: 44px;
}

.profil__photo {
	margin: 0;
}

.profil__image {
	display: block;
	width: min(100%, 380px);
	padding: 12px;
	border-radius: 50%;
	background: var(--dm-ambre);
	aspect-ratio: 1;
}

.profil__image img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 24%;
}

.profil__image--oeuvre img {
	object-position: center;
}

.profil__credit {
	margin: 10px 0 0;
	font-size: 0.85rem;
}

.profil__qui,
.profil__auteur {
	display: block;
}

.profil__qui {
	margin-bottom: 2px;
	font-size: 0.98rem;
	font-weight: 600;
}

.profil__nom {
	margin: 0 0 12px;
	font-size: clamp(2.6rem, 8cqi, 5.4rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.045em;
}

.profil__metier {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	margin: 0 0 18px;
	font-family: var(--dm-police-titres);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.profil__ou {
	color: var(--dm-gris);
	font-weight: 500;
}

.profil__mots {
	max-width: 36rem;
	margin: 0 0 24px;
	font-size: 1.12rem;
	line-height: 1.55;
}

.profil__liens {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profil__lien {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 700;
	text-decoration: none;
}

.profil__bulle {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--dm-ambre);
	transition: transform 0.25s var(--dm-courbe);
}

.profil__lien:hover .profil__bulle,
.profil__lien:focus-visible .profil__bulle {
	transform: scale(1.16);
}

.profil__titre {
	margin: 0 0 16px;
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.profil .mosaique + .profil__titre {
	margin-top: 52px;
}

@container annuaire (min-width: 48rem) {
	.profil__tete {
		grid-template-columns: clamp(240px, 32cqi, 380px) minmax(0, 1fr);
	}
}

/* Autres créateurs du même métier : de petits visages */
.visages {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 22px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.visage {
	width: 138px;
	text-align: center;
}

.visage__lien {
	display: grid;
	justify-items: center;
	color: inherit;
	text-decoration: none;
}

.visage__image {
	position: relative;
	isolation: isolate;
	display: block;
	width: 122px;
	height: 122px;
	margin-bottom: 12px;
	border-radius: 50%;
	transition: transform 0.45s var(--dm-souple);
}

.visage__image::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: 50%;
	background: var(--dm-ambre);
	transition: transform 0.45s var(--dm-souple);
}

.visage__image img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 24%;
}

.visage__nom {
	font-family: var(--dm-police-titres);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.visage__info {
	margin-top: 3px;
	color: var(--dm-gris);
	font-size: 0.9rem;
}

@media (hover: hover) {
	.visage__lien:hover .visage__image {
		transform: translateY(-4px);
	}

	.visage__lien:hover .visage__image::before {
		transform: scale(1.11);
	}
}

.visage__lien:focus-visible {
	outline: 0;
}

.visage__lien:focus-visible .visage__image {
	outline: 3px solid var(--dm-encre);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.visage__image,
	.visage__image::before,
	.portrait,
	.portrait__regard {
		transition: none;
	}
}
