/**
 * Praticiens Notion — charte Être et Devenir.
 *
 * Tout est portée sous .ee-directory : aucun sélecteur en commun avec le plugin
 * « Ateliers Notion » (.ee-planning / .ee-infos). Les deux peuvent cohabiter sur
 * la même page sans conflit de cascade.
 */

.ee-directory {
	--eucalyptus-fonce: #2f6a61;
	--eucalyptus-hover: #24544d;
	--violet-fonce: #6b4e7a;
	--sable: #dfcfaf;
	--creme: #f5f0e7;
	--prune: #3e3546;
	font-family: "Nunito Sans", sans-serif;
	color: var(--prune);
	max-width: 900px;
	margin: 0 auto;
}

.ee-directory .ee-dir-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 24px;
}

.ee-directory .ee-praticien {
	background: #fff;
	border: 1px solid var(--sable);
	border-radius: 15px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 14px rgba(62, 53, 70, 0.06);
}

.ee-directory .ee-praticien-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: var(--creme);
	height: auto;
}

/* Repli quand aucun portrait n'est renseigné : initiales sur fond crème. */
.ee-directory .ee-praticien-photo--vide {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Fraunces", serif;
	font-size: 44px;
	font-weight: 600;
	color: var(--eucalyptus-fonce);
	letter-spacing: 0.05em;
}

.ee-directory .ee-praticien-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.ee-directory .ee-praticien-nom {
	font-family: "Fraunces", serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
	color: var(--eucalyptus-fonce);
	margin: 0;
}

/* Logo (petit) + nom d'entreprise, alignés sur une même ligne. */
.ee-directory .ee-praticien-marque {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ee-directory .ee-praticien-logo {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
}

.ee-directory .ee-praticien-entreprise {
	font-size: 14px;
	font-style: italic;
	color: var(--violet-fonce);
	margin: 0;
}

.ee-directory .ee-praticien-desc {
	font-size: 15px;
	line-height: 1.6;
	margin: 6px 0 4px;
}

.ee-directory .ee-praticien-contact {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
}

.ee-directory .ee-praticien-contact li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.ee-directory .ee-praticien-contact a {
	color: var(--eucalyptus-fonce);
	font-weight: 700;
	text-decoration: none;
	word-break: break-word;
}

.ee-directory .ee-praticien-contact a:hover,
.ee-directory .ee-praticien-contact a:focus {
	text-decoration: underline;
}

/* Bouton « Voir le site », collé en bas de fiche pour aligner les cartes. */
.ee-directory .ee-praticien-action {
	margin: 14px 0 0;
	padding: 0;
}

.ee-directory .ee-btn {
	display: inline-block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	background: var(--eucalyptus-fonce);
	border: 1px solid var(--eucalyptus-fonce);
	border-radius: 12px;
	padding: 10px 18px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ee-directory .ee-btn:hover,
.ee-directory .ee-btn:focus {
	background: var(--eucalyptus-hover);
	border-color: var(--eucalyptus-hover);
	color: #fff;
	transform: translateY(-1px);
	text-decoration: none;
}

.ee-directory .ee-btn:focus-visible {
	outline: 2px solid var(--violet-fonce);
	outline-offset: 2px;
}

.pn-empty,
.pn-error {
	font-style: italic;
	opacity: 0.75;
}

.pn-error {
	color: #b32d2e;
}

@media (max-width: 420px) {
	.ee-directory .ee-dir-grid {
		gap: 18px;
	}

	.ee-directory .ee-praticien-body {
		padding: 16px;
	}

	.ee-directory .ee-btn {
		display: block;
		text-align: center;
	}
}
