/**
 * Styles publics — tous préfixés .steaweb-ap- pour ne rien casser du thème.
 * Univers artisanal : noyer (#33291d) + paille (#c2984f).
 */
.steaweb-ap-ateliers,
.steaweb-ap-single,
.steaweb-ap-form,
.steaweb-ap-calendar {
	--sap-ink: #33291d;
	--sap-straw: #b98a3e;
	--sap-straw-soft: #f3e9d6;
	--sap-line: #e6ddce;
	--sap-bg: #fbf8f2;
	--sap-radius: 12px;
	color: var(--sap-ink);
	box-sizing: border-box;
	text-align: left;
}
.steaweb-ap-ateliers *,
.steaweb-ap-single *,
.steaweb-ap-form * { box-sizing: border-box; }

/* --- Fond de page & méta du thème, UNIQUEMENT sur la fiche d'un atelier --- */
body.single-steaweb_atelier {
	background-color: #f6efe4 !important;
}
.single-steaweb_atelier .entry-meta,
.single-steaweb_atelier .post-meta,
.single-steaweb_atelier .ast-single-post .entry-meta {
	display: none !important;
}
.steaweb-ap-single {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}
.steaweb-ap-single-desc { font-size: 1.05rem; line-height: 1.6; }

/* --- Liste des ateliers --- */
.steaweb-ap-grid { display: grid; gap: 24px; }
.steaweb-ap-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.steaweb-ap-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.steaweb-ap-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steaweb-ap-grid[class*="cols-"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steaweb-ap-grid[class*="cols-"] { grid-template-columns: 1fr; } }

.steaweb-ap-card {
	border: 1px solid var(--sap-line);
	border-radius: var(--sap-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(51, 41, 29, .04);
	transition: box-shadow .2s ease, transform .2s ease;
}
.steaweb-ap-card:hover { box-shadow: 0 8px 24px rgba(51, 41, 29, .1); transform: translateY(-2px); }
.steaweb-ap-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.steaweb-ap-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.steaweb-ap-card-title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.steaweb-ap-card-title a { color: var(--sap-ink); text-decoration: none; }
.steaweb-ap-card-title a:hover { color: var(--sap-straw); }
.steaweb-ap-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .9rem; align-items: center; }
.steaweb-ap-meta li { position: relative; }
.steaweb-ap-meta li + li::before { content: "•"; color: var(--sap-line); margin-right: 10px; }
.steaweb-ap-meta .price { font-weight: 700; color: var(--sap-straw); font-size: 1rem; }
.steaweb-ap-meta .full { color: #a12; font-weight: 700; }
.steaweb-ap-meta .seats { color: #3a7; }
.steaweb-ap-excerpt { margin: 0; font-size: .95rem; opacity: .85; line-height: 1.5; }

/* --- Bouton --- */
.steaweb-ap-btn {
	display: inline-block;
	background: var(--sap-ink);
	color: #fff !important;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: var(--sap-radius);
	border: 0;
	font-weight: 600;
	letter-spacing: .02em;
	cursor: pointer;
	text-align: center;
	transition: background .15s ease;
	margin-top: auto;
}
.steaweb-ap-btn:hover { background: var(--sap-straw); color: #fff !important; }
.steaweb-ap-submit { width: 100%; font-size: 1.05rem; padding: 15px; margin-top: 8px; }
.steaweb-ap-submit[disabled] { opacity: .6; cursor: default; }

/* --- Fiche atelier : infos pratiques --- */
.steaweb-ap-facts { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.steaweb-ap-facts li {
	background: #fff;
	border: 1px solid var(--sap-line);
	border-left: 3px solid var(--sap-straw);
	border-radius: 8px;
	padding: 12px 14px;
}
.steaweb-ap-facts span { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 3px; }
.steaweb-ap-facts strong { font-size: 1.05rem; }
.steaweb-ap-block { margin: 20px 0; }
.steaweb-ap-block h4 { margin: 0 0 6px; font-size: 1.1rem; color: var(--sap-ink); }

/* --- Formulaire --- */
.steaweb-ap-form {
	background: var(--sap-bg);
	border: 1px solid var(--sap-line);
	border-radius: var(--sap-radius);
	padding: 26px;
	margin: 28px 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-shadow: 0 2px 14px rgba(51, 41, 29, .05);
}
.steaweb-ap-form-title {
	margin: 0 0 4px;
	font-size: 1.4rem;
	color: var(--sap-ink);
	padding-bottom: 12px;
	border-bottom: 2px solid var(--sap-straw-soft);
}
.steaweb-ap-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.steaweb-ap-field label { font-weight: 600; font-size: .92rem; }
.steaweb-ap-form input, .steaweb-ap-form select, .steaweb-ap-form textarea {
	width: 100%; padding: 12px 13px; border: 1px solid var(--sap-line);
	border-radius: 8px; font: inherit; background: #fff; color: var(--sap-ink);
}
.steaweb-ap-form input:focus, .steaweb-ap-form select:focus, .steaweb-ap-form textarea:focus {
	outline: 2px solid var(--sap-straw); outline-offset: 1px; border-color: var(--sap-straw);
}
.steaweb-ap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .steaweb-ap-row { grid-template-columns: 1fr; } }
.steaweb-ap-participants { display: flex; flex-direction: column; gap: 10px; }
.steaweb-ap-participant { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px dashed var(--sap-line); border-radius: 8px; background: #fff; }
.steaweb-ap-participant .lbl { grid-column: 1 / -1; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
@media (max-width: 560px) { .steaweb-ap-participant { grid-template-columns: 1fr; } }

/* Consentements : case à gauche, texte à droite, alignés. */
.steaweb-ap-consent { font-size: .95rem; }
.steaweb-ap-consent label {
	display: flex; gap: 10px; align-items: flex-start;
	font-weight: 400; text-align: left; justify-content: flex-start;
}
.steaweb-ap-consent input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.steaweb-ap-consent a { color: var(--sap-straw); }

/* Pot de miel : hors écran. */
.steaweb-ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.steaweb-ap-recap { background: #fff; border: 1px solid var(--sap-line); border-radius: 10px; padding: 16px 18px; }
.steaweb-ap-recap .line { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; }
.steaweb-ap-recap .deposit { font-weight: 700; color: var(--sap-straw); font-size: 1.05rem; border-top: 1px solid var(--sap-line); margin-top: 6px; padding-top: 10px; }

.steaweb-ap-error { background: #fdecec; border: 1px solid #f3b7b7; color: #a12; border-radius: 8px; padding: 12px 14px; }
.steaweb-ap-notice { border-radius: 10px; padding: 16px 18px; margin: 0 0 20px; }
.steaweb-ap-notice.success { background: #eaf7ee; border: 1px solid #b8e2c4; color: #1c6b34; }
.steaweb-ap-notice.cancel { background: #fdf5e6; border: 1px solid #f0d9a8; color: #8a6d1f; }
.steaweb-ap-empty { opacity: .7; font-style: italic; }

/* --- Formation multi-dates --- */
.steaweb-ap-formation { background: #fff; border: 1px solid var(--sap-line); border-left: 4px solid var(--sap-straw); border-radius: 10px; padding: 16px 18px; margin: 0 0 18px; }
.steaweb-ap-formation-banner { font-weight: 700; color: var(--sap-straw); margin: 0 0 12px; }
.steaweb-ap-formation-list { list-style: none; margin: 0 0 12px; padding: 0; }
.steaweb-ap-formation-list li { padding: 8px 0; border-bottom: 1px dashed var(--sap-line); }
.steaweb-ap-formation-list li:last-child { border-bottom: 0; }
.steaweb-ap-formation-list .sn { display: inline-block; min-width: 96px; font-weight: 700; color: var(--sap-ink); }
.steaweb-ap-formation-list .sd { color: var(--sap-ink); }
.steaweb-ap-formation-list .sl, .steaweb-ap-formation-list .snote { opacity: .75; }
.steaweb-ap-formation-facts { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--sap-line); }
.steaweb-ap-formation-facts li { padding: 3px 0; }
.steaweb-ap-formation-facts .detail { opacity: .7; }

.steaweb-ap-seances-choice { display: block; }
.steaweb-ap-choice-legend { display: block; font-weight: 700; margin: 0 0 8px; }
.steaweb-ap-seance-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--sap-line); border-radius: 8px; cursor: pointer; }
.steaweb-ap-seance-choice:hover { border-color: var(--sap-straw); }
.steaweb-ap-seance-choice input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.steaweb-ap-seance-choice .lbl { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.steaweb-ap-seance-choice .d { font-weight: 700; color: var(--sap-ink); }
.steaweb-ap-seance-choice .p { color: var(--sap-straw); font-weight: 700; }
.steaweb-ap-seance-choice .s { opacity: .7; font-size: .9rem; }
.steaweb-ap-choice-note { font-size: .92rem; color: var(--sap-straw); margin: 4px 0 0; }
.steaweb-ap-meta .formation { display: inline-block; background: #fbf8ef; color: var(--sap-straw); border: 1px solid #ecd9a8; border-radius: 12px; padding: 1px 10px; font-size: .82rem; font-weight: 700; }

/* --- Calendrier (liste) --- */
.steaweb-ap-calendar { list-style: none; padding: 0; margin: 0; }
.steaweb-ap-calendar li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--sap-line); }
.steaweb-ap-calendar .date { font-weight: 700; color: var(--sap-straw); min-width: 150px; }
.steaweb-ap-calendar a { text-decoration: none; color: var(--sap-ink); }
.steaweb-ap-calendar a:hover { color: var(--sap-straw); }
.steaweb-ap-calendar .full { color: #a12; font-weight: 700; }
.steaweb-ap-calendar .seats { color: #3a7; }
