/**
 * Œuvres d'un artiste (Devinci du 18/11, section « LES MODÈLES »).
 *
 * Filet en haut, 80 px au-dessus et au-dessous ; grille : colonne de 260 px (titre, texte 14 px
 * #555), cartes en deux colonnes (40 px / 32 px d'écart). Carte : visuel 3 / 2, fond blanc, filet
 * #ececec, image contenue avec 6 % de marge ; titre 18 px, 300, souligné (décalé de 5 px). Sous
 * 1024 px : une colonne (titre au-dessus des cartes, toujours deux par ligne) ; sous 640 px : une
 * carte par ligne.
 */

.iav-bloc.iav-oeuvres-artiste {
	border-top: 1px solid var(--iav-filet);
}

.iav-bloc .iav-oeuvres-artiste__grille {
	display: grid;
	grid-template-columns: var(--iav-colonne-titre) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-top: 80px;
	padding-bottom: 80px;
}

/* Le thème coupe les titres au milieu des mots (word-break: break-word) : « EXPOSITIONS »
   dépasse un peu de la colonne de 260 px, comme dans la maquette, sans être coupé. */
.iav-bloc.iav-oeuvres-artiste .iav-titre {
	word-break: normal;
}

.iav-bloc .iav-oeuvres-artiste__colonne {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* main.css impose sa taille à tout <p> : elle passe par --primaryFontSize / --lineHeight. */
.iav-bloc .iav-oeuvres-artiste__texte {
	--primaryFontSize: 14px;
	--lineHeight: 1.6;
	margin: 0;
	padding: 0;
	font-size: var(--primaryFontSize);
	line-height: var(--lineHeight);
	color: var(--iav-texte-discret);
}

.iav-bloc .iav-oeuvres-artiste__cartes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 32px;
}

.iav-bloc .iav-oeuvres-artiste__carte {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.iav-bloc .iav-oeuvres-artiste__visuel {
	display: block;
	aspect-ratio: 3 / 2;
	background: #ffffff;
	border: 1px solid #ececec;
	overflow: hidden;
}

.iav-bloc .iav-oeuvres-artiste__image {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: contain;
	padding: 6%;
	box-sizing: border-box;
}

.iav-bloc .iav-oeuvres-artiste__nom {
	align-self: flex-start;
	font-size: 18px;
	line-height: 1.6;
	font-weight: 300;
	color: var(--iav-texte);
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

.iav-bloc .iav-oeuvres-artiste__nom:hover,
.iav-bloc .iav-oeuvres-artiste__nom:focus-visible {
	color: var(--iav-survol, var(--iav-accent));
}

/* Hors univers (Devinci) : liens #555 au survol (l'accent y est #111). */
.iav-bloc.iav-u--neutre .iav-oeuvres-artiste__nom:hover,
.iav-bloc.iav-u--neutre .iav-oeuvres-artiste__nom:focus-visible {
	color: var(--iav-texte-discret);
}

@media (max-width: 1024px) {
	.iav-bloc .iav-oeuvres-artiste__grille {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.iav-bloc .iav-oeuvres-artiste__cartes {
		grid-template-columns: minmax(0, 1fr);
	}
}
