/**
 * SheLinks – Annuaire des membres (Portfolios) & page profil (Portfolio).
 * Chargé uniquement sur ces deux pages via functions.php.
 */

/* ============================================================
 * Éléments partagés
 * ========================================================== */
.shelinks-badge {
	display: inline-block;
	padding: 0.32em 0.7em;
	font-size: 0.96rem;
	font-weight: 400;
	line-height: 1.25;
	color: #fff;
	background: var(--bs-primary, #0d6efd);
	border-radius: 50rem;
	white-space: nowrap;
}

/* Couleur de fond par secteur (couleur du texte choisie pour le contraste). */
.shelinks-badge--secteur-1 { background: #728ca9; color: #fff; }
.shelinks-badge--secteur-2 { background: #bd9459; color: #222; }
.shelinks-badge--secteur-3 { background: #877ba5; color: #fff; }
.shelinks-badge--secteur-4 { background: #44b4be; color: #fff; }
.shelinks-badge--secteur-5 { background: #5fc878; color: #222; }
.shelinks-badge--secteur-6 { background: #bf7591; color: #fff; }
.shelinks-badge--secteur-7 { background: #9fc5d8; color: #222; }
.shelinks-badge--secteur-8 { background: #98c4c3; color: #222; }
.shelinks-badge--secteur-9 { background: #bd9459; color: #222; }
.shelinks-badge--secteur-10 { background: #b08280; color: #fff; }
.shelinks-badge--secteur-11 { background: #dca38f; color: #222; }
.shelinks-badge--secteur-12 { background: #dd708c; color: #fff; }
.shelinks-badge--secteur-13 { background: #a79994; color: #222; }
.shelinks-badge--secteur-14 { background: #888887; color: #fff; }
.shelinks-badge--secteur-15 { background: #e1c17c; color: #222; }
.shelinks-badge--secteur-16 { background: #8ec0a2; color: #222; }
.shelinks-badge--secteur-17 { background: #7ba0ac; color: #222; }
.shelinks-badge--secteur-18 { background: #e3a8c4; color: #222; }

.shelinks-secteurs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: inherit;
}

.shelinks-photo {
	display: block;
	width: 200px;
	height: 200px;
	max-width: 100%;
	object-fit: cover;
	border-radius: 0.5rem;
	background: #f2f2f2;
}

/* ============================================================
 * Annuaire (page Portfolios)
 * ========================================================== */
.shelinks-directory-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.shelinks-directory-search__text,
.shelinks-directory-search__select {
	height: 44px;
	padding: 0 0.9rem;
	font-size: 1rem;
	color: #222;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 50rem;
}

.shelinks-directory-search__text {
	flex: 1 1 220px;
}

.shelinks-directory-search__select {
	flex: 0 1 280px;
}

.shelinks-directory-search__submit {
	height: 44px;
	padding: 0 1.5rem;
	font-size: 1rem;
	font-weight: 400;
	color: #fff;
	background: var(--bs-primary, #0d6efd);
	border: 1px solid var(--bs-primary, #0d6efd);
	border-radius: 50rem;
	cursor: pointer;
}

.shelinks-directory-search__submit:hover {
	filter: brightness(0.92);
}

.shelinks-directory-search__reset {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 1.25rem;
	font-size: 1rem;
	font-weight: 400;
	color: #86888c;
	text-decoration: none;
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 50rem;
}

.shelinks-directory-search__reset:hover {
	color: #222;
	border-color: #86888c;
}

/* Desktop : formulaire plus étroit, aligné à droite. */
@media (min-width: 768px) {
	.shelinks-directory-search {
		max-width: 60%;
		margin-left: auto;
	}
}

@media (max-width: 576px) {
	.shelinks-directory-search__text,
	.shelinks-directory-search__select,
	.shelinks-directory-search__submit {
		flex: 1 1 100%;
	}
}
.pmpro_member_directory-4col {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 1.75rem;
	align-items: stretch;
}

.pmpro_member_directory-4col .pmpro_member_directory-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.5rem 1rem;
	background: #E7E7E8;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pmpro_member_directory-4col .pmpro_member_directory-item:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.pmpro_member_directory-4col .pmpro_card_content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
}

.pmpro_member_directory-4col .pmpro_member_profile_field {
	width: 100%;
}

.pmpro_member_directory-4col .pmpro_member_profile_field_label {
	display: none;
}

.pmpro_member_directory-4col .pmpro_member_profile_field-photo .shelinks-photo {
	margin: 0 auto 0.5rem;
}

.pmpro_member_directory-4col .pmpro_member_profile_field-display_name h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.25;
	color: #222;
}

.pmpro_member_directory-4col .pmpro_member_profile_field-display_name a {
	color: inherit;
	text-decoration: none;
}

.pmpro_member_directory-4col .pmpro_member_profile_field-display_name a:hover {
	color: var(--bs-primary, #0d6efd);
}

.pmpro_member_directory-4col .pmpro_member_profile_field-societe {
	color: #666;
	font-size: 0.95rem;
}

.pmpro_member_directory-4col .shelinks-secteurs {
	justify-content: center;
}

.pmpro_member_directory-4col .pmpro_card_actions {
	margin-top: auto;
	padding-top: 1rem;
}

.pmpro_member_directory-4col .pmpro_card_actions a {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	font-size: 1.1rem;
	font-weight: 400;
	color: #86888c;
	background: transparent;
	border: 1px solid var(--bs-primary, #0d6efd);
	border-radius: 50rem;
	text-decoration: none;
}

.pmpro_member_directory-4col .pmpro_card_actions a:hover {
	background: var(--bs-primary, #0d6efd);
	color: #fff;
}

/* ============================================================
 * Profil (page Portfolio)
 * ========================================================== */
.shelinks-profile {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 2.5rem;
	align-items: stretch;
}

.shelinks-profile__left {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.shelinks-profile__identity {
	line-height: 1.15;
}

.shelinks-profile__firstname,
.shelinks-profile__lastname {
	display: block;
	font-size: 1.35rem;
}

.shelinks-profile__lastname {
	font-weight: 700;
	text-transform: uppercase;
}

.shelinks-profile__contact {
	font-size: 0.95rem;
	line-height: 1.55;
}

.shelinks-profile__societe {
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.shelinks-profile__email {
	margin-top: 0.75rem;
}

.shelinks-profile__email a,
.shelinks-profile__tel a,
.shelinks-profile__website a {
	color: var(--bs-primary, #0d6efd);
	text-decoration: none;
	word-break: break-word;
}

.shelinks-profile__email a:hover,
.shelinks-profile__tel a:hover,
.shelinks-profile__website a:hover {
	text-decoration: underline;
}

.shelinks-socials {
	margin-top: 0.75rem;
}

.shelinks-social {
	line-height: 1.5;
}

.shelinks-social__label {
	font-weight: 600;
}

.shelinks-social__value a {
	color: var(--bs-primary, #0d6efd);
	text-decoration: none;
}

.shelinks-social__value a:hover {
	text-decoration: underline;
}

.shelinks-profile__right {
	display: flex;
	flex-direction: column;
}

.shelinks-profile__title {
	margin: 0 0 1rem;
	font-size: 1.6rem;
	line-height: 1.25;
}

.shelinks-profile__description {
	margin-bottom: 1.25rem;
	line-height: 1.6;
}

.shelinks-profile__description p:last-child {
	margin-bottom: 0;
}

.shelinks-profile__right .shelinks-secteurs {
	margin-bottom: 1.5rem;
}

.shelinks-profile__logo {
	margin-top: auto;
	padding-top: 1rem;
	text-align: right;
}

.shelinks-profile__logo img {
	width: auto;
	height: auto;
	max-width: 220px;
	max-height: 120px;
	object-fit: contain;
}

.shelinks-profile__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 4rem;
}

.shelinks-profile__actions a {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	font-weight: 600;
	color: var(--bs-primary, #0d6efd);
	text-decoration: none;
	border: 1px solid var(--bs-primary, #0d6efd);
	border-radius: 50rem;
}

.shelinks-profile__actions a:hover {
	color: #fff;
	background: var(--bs-primary, #0d6efd);
}

/* ============================================================
 * Responsive
 * ========================================================== */
@media (max-width: 768px) {
	.shelinks-profile {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.shelinks-profile__left {
		align-items: center;
		text-align: center;
	}

	.shelinks-profile__contact {
		text-align: center;
	}

	.shelinks-secteurs {
		justify-content: center;
	}

	.shelinks-profile__logo {
		margin-top: 1.5rem;
	}
}