/**
 * asscw-profile.css - rendu frontend d'un profil de catalogue (couche 0).
 * Palette Axyss. Portee a .asscw-profile ; aucune variable globale touchee.
 */
.asscw-profile {
	color: #384759;
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.asscw-profile__header {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.asscw-profile__title {
	color: #384759;
	margin: 0;
}

.asscw-profile__thumbnail img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.asscw-profile__editor {
	line-height: 1.6;
}

.asscw-profile__schema {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.asscw-profile__group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #BFAC95;
}

.asscw-profile__group:last-child {
	border-bottom: 0;
}

.asscw-profile__group-title {
	color: #3270A6;
	margin: 0;
	font-size: 1.2em;
}

.asscw-profile__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.asscw-profile__field-label {
	font-weight: 600;
	color: #384759;
}

.asscw-profile__field-value {
	color: #384759;
}

.asscw-profile__field-value a {
	color: #3270A6;
}

.asscw-profile__media-img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.asscw-profile__gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.asscw-profile__gallery-img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: 1px solid #BFAC95;
	border-radius: 4px;
}

/* Encart des profils rattaches, affiche sur la fiche produit. */
.asscw-profile-onproduct {
	margin: 20px 0;
	padding: 16px;
	border: 1px solid #BFAC95;
	border-radius: 8px;
	background: #F2E4D8;
}

.asscw-profile-onproduct__label {
	margin: 0 0 12px;
	color: #384759;
	font-size: 1em;
}

.asscw-profile-onproduct__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.asscw-profile-oncard {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #BFAC95;
	border-radius: 6px;
	text-decoration: none;
	color: #3270A6;
	font-weight: 600;
}

.asscw-profile-oncard:hover {
	border-color: #3270A6;
}

.asscw-profile-oncard__img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
}

.asscw-profile-oncard__title {
	color: #3270A6;
}
