/**
 * Ateliers Notion — charte Être et Devenir.
 *
 * Une seule feuille de style pour tous les blocs « ee- » : le planning généré par
 * le shortcode ET les blocs HTML fixes (infos, tarifs, créneaux…).
 * Les blocs HTML n'ont donc plus besoin de leur propre <style> ni de @import.
 *
 * Les polices Google sont chargées par le plugin (case à cocher dans les réglages).
 */

/* ——— Jetons de charte, partagés par tous les blocs ——— */

.ee-planning,
.ee-infos {
	--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: 760px;
	margin: 0 auto;
}

/* ——— Blocs d'informations fixes (tarifs, créneaux…) ——— */

.ee-infos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.ee-infos .ee-info-card {
	background: #fff;
	border: 1px solid var(--sable);
	border-radius: 15px;
	padding: 22px 24px;
	box-shadow: 0 3px 12px rgba(62, 53, 70, 0.05);
}

.ee-infos .ee-info-card h3 {
	font-family: "Fraunces", serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
	color: var(--eucalyptus-fonce);
	margin: 0 0 16px;
}

.ee-infos ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ee-infos li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--sable);
}

.ee-infos li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ee-infos li strong {
	font-weight: 700;
}

.ee-infos li span {
	color: var(--eucalyptus-fonce);
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.ee-infos .ee-note {
	margin: 16px 0 0;
	font-size: 13px;
	font-style: italic;
	color: var(--violet-fonce);
}

/* Sur mobile, libellé et valeur s'empilent : le nowrap ne déborde plus. */
@media (max-width: 400px) {
	.ee-infos li {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.ee-infos li span {
		text-align: left;
		white-space: normal;
	}
}

/* ——— Planning des ateliers (shortcode [ateliers]) ——— */

.ee-planning {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ee-planning .ee-atelier-row {
	display: flex;
	gap: 18px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--sable);
	border-radius: 15px;
	padding: 14px 18px;
	box-shadow: 0 3px 12px rgba(62, 53, 70, 0.05);
}

/* Pastille date — <time> stylisé en bloc flex. */
.ee-planning .ee-date {
	flex: 0 0 auto;
	width: 74px;
	background: var(--eucalyptus-fonce);
	color: #fff;
	border-radius: 12px;
	text-align: center;
	padding: 10px 6px;
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.ee-planning .ee-jour-sem {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
}

.ee-planning .ee-jour {
	font-family: "Fraunces", serif;
	font-size: 26px;
	font-weight: 600;
	margin: 3px 0;
}

.ee-planning .ee-mois {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
}

.ee-planning .ee-atelier-info {
	flex: 1 1 auto;
	min-width: 0;
}

.ee-planning .ee-atelier-titre {
	font-family: "Fraunces", serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	color: var(--eucalyptus-fonce);
	margin: 0 0 5px;
}

.ee-planning .ee-badge {
	display: inline-block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--violet-fonce);
	background: #efe7f2;
	border-radius: 999px;
	padding: 2px 9px;
	margin-left: 8px;
	vertical-align: middle;
}

.ee-planning .ee-atelier-meta {
	font-size: 14px;
	color: var(--prune);
	margin: 0;
}

/* ——— Bouton d'inscription ——— */

.ee-planning .ee-atelier-action {
	flex: 0 0 auto;
}

.ee-planning .ee-btn,
.an-ateliers-table .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, #2f6a61);
	border: 1px solid var(--eucalyptus-fonce, #2f6a61);
	border-radius: 12px;
	padding: 10px 18px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ee-planning .ee-btn:hover,
.ee-planning .ee-btn:focus,
.an-ateliers-table .ee-btn:hover,
.an-ateliers-table .ee-btn:focus {
	background: var(--eucalyptus-hover, #24544d);
	border-color: var(--eucalyptus-hover, #24544d);
	color: #fff;
	transform: translateY(-1px);
}

.ee-planning .ee-btn:focus-visible,
.an-ateliers-table .ee-btn:focus-visible {
	outline: 2px solid var(--violet-fonce, #6b4e7a);
	outline-offset: 2px;
}

/* Mobile : la carte s'empile, le bouton prend toute la largeur. */
@media (max-width: 520px) {
	.ee-planning .ee-atelier-row {
		gap: 14px;
		padding: 12px 14px;
		flex-wrap: wrap;
	}

	.ee-planning .ee-atelier-info {
		flex: 1 1 60%;
	}

	.ee-planning .ee-atelier-action {
		flex: 1 1 100%;
	}

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

/* ——— Variante tableau ——— */

.an-ateliers-table {
	width: 100%;
	border-collapse: collapse;
	font-family: "Nunito Sans", sans-serif;
	color: #3e3546;
}

.an-ateliers-table th,
.an-ateliers-table td {
	padding: 0.7rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid #dfcfaf;
	vertical-align: middle;
}

.an-ateliers-table th {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #2f6a61;
}

.an-ateliers-table .an-col-titre {
	font-family: "Fraunces", serif;
	font-weight: 600;
	color: #2f6a61;
}

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

.an-error {
	color: #b32d2e;
}

@media (max-width: 600px) {
	.an-ateliers-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.an-ateliers-table tr {
		display: block;
		margin-bottom: 0.75rem;
		border: 1px solid #dfcfaf;
		border-radius: 15px;
		padding: 0.5rem 0.9rem;
		background: #fff;
	}

	.an-ateliers-table td {
		display: block;
		border: 0;
		padding: 0.25rem 0;
	}

	.an-ateliers-table td::before {
		content: attr(data-label) " : ";
		font-weight: 700;
		color: #2f6a61;
	}

	.an-ateliers-table td:empty {
		display: none;
	}
}
