/* =========================================================================
   WFX — Fiche expert (profil praticien)
   Isolé de la charte principale. Tokens --wfx-* avec fallback hex : rend
   correctement même si wfx-charte.css n’est pas chargé.
   Chargé par wfx-experts.php uniquement sur is_singular('expert').
   ========================================================================= */

/* Rebranché sur les tokens réels de la charte (.wfx{--cta…}), avec fallback hex
   identique pour l'aperçu local. La fiche est enveloppée dans class="wfx wfx-expert"
   → elle hérite des variables, du reset box-sizing et des polices de la charte. */
.wfx-expert {
	--_cta:       var(--cta, #2E96C4);
	--_blue-soft: var(--blue-soft, #E8F4FB);
	--_green:     var(--green-deep, #3FB050);
	--_ink:       var(--ink, #54595F);
	--_read:      var(--read, #3F4448);
	--_muted:     var(--text, #7A7A7A);
	--_panel:     var(--panel, #F4F6F7);
	--_line:      var(--line, #E0E3E6);

	/* Pas de largeur propre : le conteneur boxed d'Elementor (largeur de contenu
	   du site, aligné sur le header) contrôle la largeur, comme les comparatifs. */
	width: 100%;
	font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--_read);
	line-height: 1.65;
}

.wfx-expert a { color: var(--_cta); }

/* ---------- Hero : photo + identité ---------- */
.wfx-exp-hero {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 28px;
	align-items: start;
	padding: 4px 0 26px;
	border-bottom: 1px solid var(--_line);
	margin-bottom: 28px;
}
.wfx-exp-photo {
	width: 200px;
	height: 200px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--_panel);
	border: 1px solid var(--_line);
}
.wfx-exp-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wfx-exp-name {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 2rem;
	line-height: 1.15;
	color: var(--_ink);
	margin: 2px 0 4px;
}
.wfx-exp-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--_cta);
	margin: 0 0 6px;
}
.wfx-exp-meta {
	font-size: .95rem;
	color: var(--_muted);
	margin: 0 0 14px;
}

/* ---------- Preuves (chips) ---------- */
.wfx-exp-proofs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.wfx-exp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--_blue-soft);
	color: var(--_ink);
	border: 1px solid var(--_line);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: .85rem;
	font-weight: 600;
}
.wfx-exp-chip b { color: var(--_cta); font-weight: 700; }

/* ---------- CTA principal ---------- */
.wfx-exp-cta {
	display: inline-block;
	background: var(--_cta);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	padding: 11px 22px;
	border-radius: 10px;
	transition: filter .15s ease;
}
.wfx-exp-cta:hover { filter: brightness(.94); }

/* ---------- Sections texte ---------- */
.wfx-exp-section { margin: 0 0 30px; }
.wfx-exp-section > h2 {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.35rem;
	color: var(--_ink);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--_blue-soft);
}
.wfx-exp-section p { margin: 0 0 12px; }
.wfx-exp-list { margin: 0; padding: 0; list-style: none; }
.wfx-exp-list li {
	position: relative;
	padding: 6px 0 6px 26px;
	border-bottom: 1px solid var(--_line);
}
.wfx-exp-list li:last-child { border-bottom: 0; }
.wfx-exp-list li::before {
	content: "";
	position: absolute;
	left: 4px; top: 14px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--_cta);
}
.wfx-exp-list li b { color: var(--_ink); }

/* ---------- Liens pro (sameAs, dofollow) ---------- */
.wfx-exp-links {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wfx-exp-links a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--_panel);
	border: 1px solid var(--_line);
	border-radius: 10px;
	padding: 13px 16px;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease;
}
.wfx-exp-links a:hover { border-color: var(--_cta); background: var(--_blue-soft); }
.wfx-exp-links .lbl { font-weight: 700; color: var(--_ink); }
.wfx-exp-links .sub { font-size: .82rem; color: var(--_muted); word-break: break-word; }

/* ---------- Contenus validés (maillage interne) ---------- */
.wfx-exp-validated { margin: 0; padding: 0; list-style: none; }
.wfx-exp-validated li {
	padding: 10px 0;
	border-bottom: 1px solid var(--_line);
}
.wfx-exp-validated li:last-child { border-bottom: 0; }
.wfx-exp-validated a { font-weight: 600; text-decoration: none; }
.wfx-exp-validated a:hover { text-decoration: underline; }
.wfx-exp-validated .vtag {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--_green);
	margin-right: 8px;
}

/* ---------- Microcopie vérification RPPS ---------- */
.wfx-exp-verify {
	font-size: .82rem;
	color: var(--_muted);
	background: var(--_panel);
	border: 1px solid var(--_line);
	border-radius: 8px;
	padding: 10px 14px;
	margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.wfx-exp-hero {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
	.wfx-exp-photo { width: 160px; height: 160px; }
	.wfx-exp-name { font-size: 1.6rem; }
	.wfx-exp-proofs { justify-content: center; }
	.wfx-exp-links { grid-template-columns: 1fr; }
}

/* Date de validation dans la liste automatique [wfx_expert_validated] (v1.6.0) */
.wfx-exp-validated .vdate { font-size: .82rem; color: var(--_muted); margin-left: 4px; white-space: nowrap; }
