/**
 * Annuaire prestataires — HelpMeTo
 * Layout : tout centré — avatar haut / identité centrée / corps centré
 */

/* ════════════════════════════════
   GRILLE 2 COLONNES
════════════════════════════════ */
.hmt-members-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2.5vw, 1.5rem);
	padding: clamp(1rem, 3vw, 2rem) 0;
	width: 100%;
}

@media (max-width: 640px) {
	.hmt-members-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ════════════════════════════════
   CARTE
════════════════════════════════ */
.hmt-pro-card {
	--hmt-navy:   #071526;
	--hmt-teal:   #0d7c8a;
	--hmt-cyan:   #2ec4e0;
	--hmt-border: rgba(13, 124, 138, 0.16);
	--hmt-shadow: 0 4px 18px rgba(7, 21, 38, 0.08);
	--hmt-star:   #f59e0b;

	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--hmt-border);
	border-top: 3px solid var(--hmt-teal);
	border-radius: 18px;
	box-shadow: var(--hmt-shadow);
	overflow: hidden;
	font-family: "DM Sans", system-ui, sans-serif;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-top-color 0.22s ease;
}

.hmt-pro-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 52px rgba(13, 124, 138, 0.17);
	border-top-color: var(--hmt-cyan);
}

/* ════════════════════════════════
   EN-TÊTE — avatar + identité centrés
════════════════════════════════ */
.hmt-pro-card__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
	padding: 1.5rem 1.1rem 1rem;
	border-bottom: 1px solid var(--hmt-border);
	background: linear-gradient(155deg, rgba(46, 196, 224, 0.1) 0%, rgba(13, 124, 138, 0.04) 55%, #ffffff 100%);
}

/* Avatar */
.hmt-pro-card__avatar-wrap {
	flex-shrink: 0;
}

.hmt-pro-card__avatar-wrap img,
.hmt-pro-card__avatar-wrap .um-avatar,
.hmt-pro-card__avatar-img {
	width: 74px !important;
	height: 74px !important;
	border-radius: 50% !important;
	object-fit: cover;
	border: 2.5px solid var(--hmt-teal);
	box-shadow: 0 0 0 4px rgba(46, 196, 224, 0.2), 0 4px 14px rgba(13, 124, 138, 0.2);
	display: block;
}

/* Identité */
.hmt-pro-card__identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
}

.hmt-pro-card__name {
	margin: 0 0 0.2rem;
	font-family: "Outfit", "DM Sans", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--hmt-navy);
	line-height: 1.2;
}

.hmt-pro-card__name a {
	color: inherit;
	text-decoration: none;
}

.hmt-pro-card__name a:hover {
	color: var(--hmt-teal);
}

/* Ligne : métier + statut centrés */
.hmt-pro-card__meta-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hmt-pro-card__metier {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(7, 21, 38, 0.65);
	letter-spacing: 0.01em;
}

/* Statut */
.hmt-pro-card__status {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	padding: 0.18rem 0.6rem;
	border-radius: 20px;
}

.hmt-pro-card__status::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	flex-shrink: 0;
}

.hmt-status--online {
	color: #16a34a;
	background: rgba(22, 163, 74, 0.1);
	border: 1px solid rgba(22, 163, 74, 0.22);
}

.hmt-status--online::before {
	background: #16a34a;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.hmt-status--offline {
	color: rgba(7, 21, 38, 0.45);
	background: rgba(7, 21, 38, 0.05);
	border: 1px solid rgba(7, 21, 38, 0.1);
}

.hmt-status--offline::before {
	background: rgba(7, 21, 38, 0.28);
}

/* ════════════════════════════════
   CORPS — services, ville, rayon
════════════════════════════════ */
.hmt-pro-card__body {
	padding: 0.9rem 1.1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.45rem;
	flex: 1;
}

.hmt-pro-card__services {
	margin: 0;
	font-size: 0.82rem;
	color: var(--hmt-teal);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.hmt-pro-card__je-suis {
	margin: 0;
	font-size: 0.82rem;
	color: rgba(7, 21, 38, 0.55);
	line-height: 1.5;
	font-style: italic;
}

.hmt-pro-card__location {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--hmt-navy);
	letter-spacing: 0.01em;
}

.hmt-pro-card__rayon {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.78rem;
	color: rgba(7, 21, 38, 0.62);
	background: rgba(13, 124, 138, 0.06);
	border: 1px solid rgba(13, 124, 138, 0.14);
	border-radius: 20px;
}

.hmt-pro-card__rayon svg {
	color: var(--hmt-teal);
	flex-shrink: 0;
}

.hmt-pro-card__rayon strong {
	color: var(--hmt-teal);
	font-weight: 700;
}

/* Étoiles */
.hmt-pro-card__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	flex-wrap: wrap;
	padding: 0.2rem 0.6rem;
	background: rgba(245, 158, 11, 0.07);
	border-radius: 20px;
	border: 1px solid rgba(245, 158, 11, 0.18);
}

.hmt-pro-card__stars {
	display: inline-block;
	font-size: 0.85rem;
	font-family: Times, serif;
	line-height: 1;
	letter-spacing: 1px;
}

.hmt-pro-card__stars::before {
	content: "★★★★★";
	background: linear-gradient(
		90deg,
		var(--hmt-star) calc(var(--rating) / 5 * 100%),
		rgba(0, 0, 0, 0.15) calc(var(--rating) / 5 * 100%)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hmt-pro-card__rating-score {
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--hmt-navy);
}

.hmt-pro-card__rating-count {
	font-size: 0.7rem;
	color: rgba(15, 34, 61, 0.5);
}

/* ════════════════════════════════
   BOUTON
════════════════════════════════ */
.hmt-pro-card__footer {
	padding: 0 1.1rem 1.1rem;
}

.hmt-pro-card__cta,
.hmt-pro-card__phone-cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	background: linear-gradient(135deg, var(--hmt-teal) 0%, var(--hmt-cyan) 100%);
	color: transparent !important;
	font-size: 0 !important;
	font-family: "Outfit", "DM Sans", sans-serif;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(13, 124, 138, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hmt-pro-card__cta:hover,
.hmt-pro-card__phone-cta a:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 26px rgba(13, 124, 138, 0.42);
	opacity: 0.93;
}

.hmt-pro-card__cta::after,
.hmt-pro-card__phone-cta a::after {
	content: "Contacter le professionnel";
	font-size: 0.73rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

/* Bouton désactivé quand le professionnel est hors ligne
   :has() lit directement le badge .hmt-status--offline déjà rendu */
.hmt-pro-card:has(.hmt-status--offline) .hmt-pro-card__cta,
.hmt-card--offline .hmt-pro-card__cta {
	background: linear-gradient(135deg, #c9ced4 0%, #e2e5e9 100%) !important;
	box-shadow: none !important;
	pointer-events: none !important;
	cursor: not-allowed !important;
	transform: none !important;
}
.hmt-pro-card:has(.hmt-status--offline) .hmt-pro-card__cta::after,
.hmt-card--offline .hmt-pro-card__cta::after {
	content: "Hors ligne" !important;
	color: rgba(7, 21, 38, 0.45) !important;
}

.hmt-pro-card__phone-cta {
	display: block;
	width: 100%;
}

/* ════════════════════════════════
   LIGNE ACTIONS (Modifier + Toggle)
════════════════════════════════ */
.hmt-actions-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 0.25rem;
}

.hmt-btn-modifier {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.38rem 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	font-family: "Outfit", "DM Sans", sans-serif;
	color: var(--hmt-teal, #0d7c8a);
	background: rgba(13, 124, 138, 0.07);
	border: 1.5px solid rgba(13, 124, 138, 0.3);
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.hmt-btn-modifier:hover {
	background: rgba(13, 124, 138, 0.14);
	border-color: var(--hmt-teal, #0d7c8a);
}

/* ════════════════════════════════
   PANNEAU D'ÉDITION INLINE
════════════════════════════════ */
.hmt-edit-panel {
	padding: 1rem 1.25rem 0.5rem;
	border-top: 1px solid var(--hmt-border, rgba(13,124,138,0.16));
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.hmt-edit-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.hmt-edit-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(7, 21, 38, 0.5);
}

/* Photo */
.hmt-edit-avatar-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.hmt-edit-avatar-preview {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--hmt-cyan, #2ec4e0);
}

.hmt-edit-avatar-btn {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--hmt-teal, #0d7c8a);
	background: rgba(13, 124, 138, 0.07);
	border: 1px solid rgba(13, 124, 138, 0.25);
	border-radius: 7px;
	cursor: pointer;
	transition: background 0.2s;
}
.hmt-edit-avatar-btn:hover { background: rgba(13,124,138,0.14); }

/* Services checkboxes */
.hmt-edit-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.hmt-edit-check-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.84rem;
	color: rgba(7, 21, 38, 0.75);
	cursor: pointer;
}

.hmt-edit-check-label input[type="checkbox"] {
	accent-color: var(--hmt-teal, #0d7c8a);
	width: 15px;
	height: 15px;
	cursor: pointer;
}

/* Textarea + input number */
.hmt-edit-textarea,
.hmt-edit-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	font-size: 0.84rem;
	font-family: "DM Sans", system-ui, sans-serif;
	color: rgba(7, 21, 38, 0.85);
	background: #f7fbff;
	border: 1px solid var(--hmt-border, rgba(13,124,138,0.18));
	border-radius: 8px;
	resize: vertical;
	outline: none;
	transition: border-color 0.2s;
}

.hmt-edit-textarea:focus,
.hmt-edit-input:focus {
	border-color: var(--hmt-teal, #0d7c8a);
}

.hmt-edit-input { max-width: 120px; }

/* Boutons Enregistrer / Annuler */
.hmt-edit-actions {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
	padding-bottom: 0.5rem;
}

.hmt-edit-save {
	padding: 0.55rem 1.5rem;
	font-size: 0.82rem;
	font-weight: 700;
	font-family: "Outfit", "DM Sans", sans-serif;
	color: #fff;
	background: linear-gradient(135deg, var(--hmt-teal, #0d7c8a) 0%, var(--hmt-cyan, #2ec4e0) 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s;
}
.hmt-edit-save:disabled { opacity: 0.6; cursor: not-allowed; }

.hmt-edit-cancel {
	padding: 0.55rem 1.1rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(7, 21, 38, 0.55);
	background: none;
	border: 1px solid rgba(7, 21, 38, 0.18);
	border-radius: 8px;
	cursor: pointer;
}
.hmt-edit-cancel:hover { background: rgba(7,21,38,0.05); }

/* ════════════════════════════════
   TOGGLE EN LIGNE / HORS LIGNE
════════════════════════════════ */
.hmt-toggle-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}

.hmt-toggle-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(7, 21, 38, 0.6);
	min-width: 5rem;
	text-align: right;
}

.hmt-toggle-btn {
	position: relative;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: rgba(7, 21, 38, 0.18);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s ease;
	flex-shrink: 0;
}

.hmt-toggle-btn--on {
	background: linear-gradient(135deg, var(--hmt-teal, #0d7c8a) 0%, var(--hmt-cyan, #2ec4e0) 100%);
}

.hmt-toggle-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hmt-toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	transition: transform 0.25s ease;
}

.hmt-toggle-btn--on .hmt-toggle-knob {
	transform: translateX(20px);
}

/* ════════════════════════════════
   CARTE EN MODE PROFIL (page pro + annuaire form 2713)
════════════════════════════════ */
.hmt-profile-card {
	width: 100%;
	max-width: 100%;
	margin: 0 0 2rem;
	box-sizing: border-box;
}

/* Annuaire connectés — 1 colonne centrée */
.um-directory .hmt-members-grid:has(.hmt-profile-card) {
	grid-template-columns: minmax(280px, 520px);
	justify-content: center;
}

/* ════════════════════════════════
   FORMULAIRES ACCORDÉON
════════════════════════════════ */
.hmt-forms-section {
	width: 100%;
	max-width: 100%;
	margin: 0 0 2rem;
	box-sizing: border-box;
}

/* Onglets horizontaux */
.hmt-forms-tabs {
	display: flex;
	gap: 0.35rem;
	flex-wrap: nowrap;
	margin-bottom: 0;
	overflow-x: auto;
}

.hmt-forms-tab {
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	font-family: "Outfit", "DM Sans", sans-serif;
	color: rgba(7, 21, 38, 0.55);
	background: #f4f8fb;
	border: 1.5px solid rgba(13, 124, 138, 0.18);
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	letter-spacing: 0.02em;
	transition: background 0.2s, color 0.2s, border-color 0.2s, border-radius 0.15s;
}

.hmt-forms-tab:hover {
	background: rgba(13, 124, 138, 0.07);
	color: var(--hmt-teal, #0d7c8a);
	border-color: rgba(13, 124, 138, 0.35);
}

/* Quand l'accordéon est ouvert : les onglets passent en mode "tab" */
.hmt-forms--open .hmt-forms-tab {
	border-bottom: 1.5px solid rgba(13, 124, 138, 0.18);
	border-radius: 10px 10px 0 0;
}

.hmt-forms--open .hmt-forms-tab--active {
	color: var(--hmt-teal, #0d7c8a);
	background: #ffffff;
	border-color: rgba(13, 124, 138, 0.35);
	border-bottom-color: #ffffff;
	position: relative;
	z-index: 1;
}

/* Panneau */
.hmt-form-panel {
	display: none;
	background: #ffffff;
	border: 1.5px solid rgba(13, 124, 138, 0.25);
	border-radius: 0 0 12px 12px;
	padding: 1.25rem 1.25rem 1rem;
}

.hmt-form-panel--open {
	display: block;
}

/* Champs du formulaire */
.hmt-form-panel .hmt-edit-field {
	margin-bottom: 0.75rem;
}

.hmt-input-full {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	font-size: 0.84rem;
	font-family: "DM Sans", system-ui, sans-serif;
	color: rgba(7, 21, 38, 0.85);
	background: #f7fbff;
	border: 1px solid rgba(13, 124, 138, 0.18);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s;
}

.hmt-input-full:focus {
	border-color: var(--hmt-teal, #0d7c8a);
}

.hmt-input-full.hmt-readonly,
.hmt-edit-input.hmt-readonly {
	background: rgba(7, 21, 38, 0.04);
	color: rgba(7, 21, 38, 0.45);
	cursor: not-allowed;
	border-color: rgba(7, 21, 38, 0.10);
}

/* Champs en lecture seule */
.hmt-readonly {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hmt-readonly span {
	font-size: 0.88rem;
	color: rgba(7, 21, 38, 0.75);
}

.hmt-readonly-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.2rem 0.6rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(7, 21, 38, 0.45);
	background: rgba(7, 21, 38, 0.05);
	border: 1px solid rgba(7, 21, 38, 0.12);
	border-radius: 20px;
}

/* Fichiers */
.hmt-file-input {
	display: none;
}

.hmt-file-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.38rem 0.85rem;
	font-size: 0.78rem;
	font-weight: 600;
	font-family: "Outfit", "DM Sans", sans-serif;
	color: var(--hmt-teal, #0d7c8a);
	background: rgba(13, 124, 138, 0.07);
	border: 1px solid rgba(13, 124, 138, 0.25);
	border-radius: 7px;
	cursor: pointer;
	transition: background 0.2s;
}

.hmt-file-label:hover {
	background: rgba(13, 124, 138, 0.14);
}

.hmt-file-name {
	font-size: 0.78rem;
	color: rgba(7, 21, 38, 0.55);
	font-style: italic;
}

.hmt-file-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--hmt-teal, #0d7c8a);
	text-decoration: none;
}

.hmt-file-link:hover {
	text-decoration: underline;
}

/* Boutons Enregistrer dans les formulaires */
.hmt-form-panel .hmt-edit-actions {
	margin-top: 0.75rem;
}

/* ════════════════════════════════
   ONGLETS PROFIL UM — style carte
════════════════════════════════ */

/* Masque la barre Abonnés / Message (followers + messaging plugins) */
.um-profile-navbar {
	display: none !important;
}

/* Conteneur de navigation des onglets */
.um-profile-nav {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0.5rem !important;
	justify-content: center !important;
	padding: 1.25rem 0 0 !important;
	border: none !important;
	background: transparent !important;
	max-width: 520px;
	margin: 0 auto !important;
}

.um-profile-nav-item {
	flex: 1 !important;
	min-width: 130px !important;
	max-width: 175px !important;
	list-style: none !important;
}

/* UM rend 2 <a> par item (mobile + desktop) : on cache le premier (icône seul)
   et on affiche uniquement le deuxième (texte). */
.um-profile-nav-item a {
	display: none !important;
}

.um-profile-nav-item a:last-child {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0.72rem 1rem !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	font-family: "Outfit", "DM Sans", sans-serif !important;
	color: rgba(7, 21, 38, 0.6) !important;
	background: #f4f8fb !important;
	border: 1.5px solid rgba(13, 124, 138, 0.2) !important;
	border-radius: 12px !important;
	text-decoration: none !important;
	letter-spacing: 0.02em !important;
	transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.um-profile-nav-item a:last-child:hover {
	background: rgba(13, 124, 138, 0.08) !important;
	color: var(--hmt-teal, #0d7c8a) !important;
	border-color: rgba(13, 124, 138, 0.4) !important;
}

.um-profile-nav-item.active a:last-child {
	background: linear-gradient(135deg, var(--hmt-teal, #0d7c8a) 0%, var(--hmt-cyan, #2ec4e0) 100%) !important;
	color: #ffffff !important;
	border-color: transparent !important;
	box-shadow: 0 6px 20px rgba(13, 124, 138, 0.28) !important;
}

/* Masque les icônes UM, affiche le texte du span même en mobile */
.um-profile-nav-item a i {
	display: none !important;
}

.um-profile-nav-item a span.title,
.um-profile-nav-item a .title {
	display: inline !important;
}

/* Zone de contenu profil */
.um-profile-body {
	max-width: 520px;
	margin: 0.75rem auto 0;
	background: #ffffff;
	border: 1.5px solid rgba(13, 124, 138, 0.2);
	border-radius: 12px;
	padding: 1.25rem;
	box-shadow: 0 4px 16px rgba(7, 21, 38, 0.06);
}

/* ════════════════════════════════
   BLOC VISITEUR NON CONNECTÉ
════════════════════════════════ */
.hmt-guest-cta {
	text-align: center;
	padding: 0.5rem 0 0.25rem;
}

.hmt-guest-cta__text {
	margin: 0 0 0.75rem;
	font-size: 0.84rem;
	color: rgba(7, 21, 38, 0.6);
	line-height: 1.45;
}

.hmt-guest-cta__btns {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
}

.hmt-guest-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.4rem;
	font-size: 0.82rem;
	font-weight: 700;
	font-family: "Outfit", "DM Sans", sans-serif;
	border-radius: 10px;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hmt-guest-btn--primary {
	background: linear-gradient(135deg, var(--hmt-teal, #0d7c8a) 0%, var(--hmt-cyan, #2ec4e0) 100%);
	color: #ffffff !important;
	box-shadow: 0 6px 20px rgba(13, 124, 138, 0.28);
}

.hmt-guest-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(13, 124, 138, 0.4);
}

.hmt-guest-btn--secondary {
	background: transparent;
	color: var(--hmt-teal, #0d7c8a) !important;
	border: 1.5px solid rgba(13, 124, 138, 0.4);
}

.hmt-guest-btn--secondary:hover {
	background: rgba(13, 124, 138, 0.07);
}

/* ════════════════════════════════
   PAGE PRO — Bloc bannière supérieure
   (image pointe vers prod → collapsed en local → shadow parasite)
════════════════════════════════ */
.kadence-column1439_e00151-54 {
	box-shadow: none !important;
	min-height: 0 !important;
}

/* ═══════════════════════════════════════════════════
   PAGE PRO — Tableau de bord (bleu foncé professionnel)
   ═══════════════════════════════════════════════════ */

/* En-tête "Tableau du bord" */
.kadence-column1439_8c10a6-62 {
	background: linear-gradient(135deg, #0f2060 0%, #1e4db7 100%) !important;
	box-shadow: 0 6px 32px rgba(15, 32, 96, 0.28) !important;
}

.kt-adv-heading1439_d7773b-0b {
	color: #ffffff !important;
}

/* Boutons dashboard — repos */
.kadence-column1439_4f2ec6-32 .kb-buttons-wrap {
	width: 100% !important;
}
.kadence-column1439_4f2ec6-32 .kb-button {
	width: 100% !important;
	min-height: 56px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	border: 2px solid #1e4db7 !important;
	color: #0f2060 !important;
	background: #ffffff !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 10px rgba(30, 77, 183, 0.15) !important;
	transition: all 0.2s ease !important;
}

/* Boutons dashboard — survol */
.kadence-column1439_4f2ec6-32 .kb-button:hover {
	background: linear-gradient(135deg, #0f2060 0%, #1e4db7 100%) !important;
	color: #ffffff !important;
	border-color: transparent !important;
	box-shadow: 0 4px 20px rgba(30, 77, 183, 0.35) !important;
}

/* ════════════════════════════════
   ACTIONS SOCIALES (annuaire connectés)
════════════════════════════════ */
.hmt-pro-card__social-actions {
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid var(--hmt-border);
}

.hmt-social-btn--message {
	flex: 1 1 50%;
}

.hmt-social-btn-group {
	flex: 1 1 50%;
	display: flex;
	gap: 0.5rem;
}

.hmt-social-btn-group .hmt-social-btn {
	flex: 1;
}

.hmt-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	padding: 0.45rem 0.5rem;
	border-radius: 10px;
	font-size: 0.72rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(13, 124, 138, 0.16);
	color: rgba(7, 21, 38, 0.65);
	background: rgba(247, 251, 255, 0.8);
	transition: all 0.18s ease;
	white-space: nowrap;
}

.hmt-social-btn:hover {
	border-color: var(--hmt-teal);
	color: var(--hmt-teal);
	background: rgba(13, 124, 138, 0.05);
	transform: translateY(-1px);
}

.hmt-social-btn--like:hover svg {
	fill: #e11d48;
	stroke: #e11d48;
}

.hmt-social-btn--follow:hover svg {
	stroke: var(--hmt-teal);
}

/* Lien déconnexion — hérite du style parent */
.hmt-logout-link {
	color: inherit;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}
.hmt-logout-link:hover {
	text-decoration: underline;
}

/* ════════════════════════════════
   MASQUER ÉLÉMENTS UM NATIFS
════════════════════════════════ */
.hmt-members-grid .um-member-status,
.hmt-members-grid .um-member-cover,
.hmt-members-grid .um-member-more,
.hmt-members-grid .um-member-less {
	display: none !important;
}

/* ════════════════════════════════════════════
   ANNUAIRE — ZONE RECHERCHE & FILTRES
   Classes UM : .um-member-directory-header,
   .um-search-line, .um-do-search,
   .um-search-filter, .um-members-filter-tag,
   .um-clear-filters
════════════════════════════════════════════ */

.um-directory .um-member-directory-header {
	font-family: "DM Sans", system-ui, sans-serif;
	padding-bottom: 0.25rem;
}

/* Masquer le label "Rechercher :" natif UM */
.um-directory .um-member-directory-search-line label > span {
	display: none !important;
}

/* Ligne de recherche — flex pleine largeur */
.um-directory .um-member-directory-search-row,
.um-directory .um-member-directory-search-line {
	width: 100% !important;
	box-sizing: border-box !important;
}

.um-directory .um-member-directory-search-line {
	display: flex !important;
	gap: 0.6rem !important;
	align-items: center !important;
	width: 100% !important;
}

/* Input de recherche */
.um-directory input.um-search-line {
	flex: 1 !important;
	height: 46px !important;
	padding: 0 1rem !important;
	border: 1.5px solid rgba(13, 124, 138, 0.22) !important;
	border-radius: 12px !important;
	font-size: 0.88rem !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
	color: #071526 !important;
	background: #ffffff !important;
	box-shadow: 0 1px 6px rgba(7, 21, 38, 0.05) !important;
	outline: none !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
}

.um-directory input.um-search-line:focus {
	border-color: #0d7c8a !important;
	box-shadow: 0 0 0 3px rgba(13, 124, 138, 0.1), 0 1px 6px rgba(7, 21, 38, 0.04) !important;
}

.um-directory input.um-search-line::placeholder {
	color: rgba(7, 21, 38, 0.35) !important;
}

/* Bouton Rechercher */
.um-directory input.um-do-search {
	height: 46px !important;
	padding: 0 1.6rem !important;
	background: linear-gradient(135deg, #0d7c8a 0%, #2ec4e0 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 12px !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	font-family: "Outfit", "DM Sans", sans-serif !important;
	letter-spacing: 0.05em !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(13, 124, 138, 0.3) !important;
	transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s !important;
	white-space: nowrap !important;
}

.um-directory input.um-do-search:hover {
	opacity: 0.9 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 22px rgba(13, 124, 138, 0.4) !important;
}

/* Barre nav (tri + "Plus de filtres") */
.um-directory .um-member-directory-nav-line {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 0.75rem !important;
	padding: 0.3rem 0 !important;
}

/* Lien "Plus de filtres" */
.um-directory .um-member-directory-filters-a a {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	color: #0d7c8a !important;
	text-decoration: none !important;
	transition: color 0.15s !important;
}

.um-directory .um-member-directory-filters-a a:hover {
	color: #2ec4e0 !important;
}

.um-directory .um-member-directory-filters-a i {
	font-size: 0.7rem !important;
	color: #0d7c8a !important;
}

/* Zone des filtres */
.um-directory .um-member-directory-filters-bar {
	margin: 0.3rem 0 0.15rem !important;
}

.um-directory .um-search {
	display: grid !important;
	gap: 0.5rem !important;
	grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
	.um-directory .um-search {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 480px) {
	.um-directory .um-search {
		grid-template-columns: 1fr !important;
	}
}

/* Inputs texte et selects des filtres */
.um-directory .um-search-filter input[type="text"],
.um-directory .um-search-filter input[type="search"],
.um-directory .um-search-filter select {
	width: 100% !important;
	height: 42px !important;
	padding: 0 0.9rem !important;
	border: 1.5px solid rgba(13, 124, 138, 0.18) !important;
	border-radius: 10px !important;
	font-size: 0.84rem !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
	color: #071526 !important;
	background: #ffffff !important;
	outline: none !important;
	box-sizing: border-box !important;
	box-shadow: 0 1px 4px rgba(7, 21, 38, 0.04) !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.um-directory .um-search-filter select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%230d7c8a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.8rem center !important;
	padding-right: 2.2rem !important;
	cursor: pointer !important;
}

.um-directory .um-search-filter input:focus,
.um-directory .um-search-filter select:focus {
	border-color: #0d7c8a !important;
	box-shadow: 0 0 0 3px rgba(13, 124, 138, 0.1) !important;
}

.um-directory .um-search-filter input::placeholder {
	color: rgba(7, 21, 38, 0.35) !important;
}

/* Tags filtres actifs */
.um-directory .um-filtered-line {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.4rem !important;
	padding: 0.2rem 0 !important;
	min-height: 0 !important;
}

.um-directory .um-members-filter-tag {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.4rem !important;
	padding: 0.22rem 0.45rem 0.22rem 0.65rem !important;
	background: rgba(13, 124, 138, 0.07) !important;
	border: 1px solid rgba(13, 124, 138, 0.22) !important;
	border-radius: 20px !important;
	font-size: 0.76rem !important;
	font-weight: 500 !important;
	color: #071526 !important;
}

.um-directory .um-members-filter-tag strong {
	font-weight: 700 !important;
	color: #0d7c8a !important;
}

.um-directory .um-members-filter-remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	background: rgba(13, 124, 138, 0.13) !important;
	border-radius: 50% !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	color: #0d7c8a !important;
	cursor: pointer !important;
	line-height: 1 !important;
	border: none !important;
	transition: background 0.15s !important;
	padding: 0 !important;
}

.um-directory .um-members-filter-remove:hover {
	background: rgba(13, 124, 138, 0.25) !important;
}

/* Lien "Tout effacer" */
.um-directory .um-clear-filters a.um-clear-filters-a {
	font-size: 0.76rem !important;
	font-weight: 600 !important;
	color: rgba(7, 21, 38, 0.4) !important;
	text-decoration: none !important;
	border-bottom: 1px dashed rgba(7, 21, 38, 0.25) !important;
	padding-bottom: 1px !important;
	transition: color 0.15s, border-color 0.15s !important;
}

.um-directory .um-clear-filters a.um-clear-filters-a:hover {
	color: #0d7c8a !important;
	border-bottom-color: #0d7c8a !important;
}
