/* KACOM Ateliers — affichage visiteur. Tout est scopé sous .kacom-widget. */

.kacom-widget {
	--kacom-primary: #6B3A1F;
	--kacom-btn: #A0704A;
	--kacom-radius: 18px;
	position: relative;
	max-width: 640px;
	margin: 40px auto;
	padding: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #3D2314;
	box-sizing: border-box;
}
.kacom-widget-wide { max-width: 940px; }
.kacom-widget *,
.kacom-widget *::before,
.kacom-widget *::after { box-sizing: border-box; }

/* Formes décoratives douces en arrière-plan */
.kacom-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	opacity: .25;
	z-index: 0;
	pointer-events: none;
}
.kacom-blob-1 {
	width: 220px; height: 220px;
	background: var(--kacom-primary);
	top: -60px; left: -50px;
}
.kacom-blob-2 {
	width: 260px; height: 260px;
	background: var(--kacom-btn);
	bottom: -80px; right: -60px;
}

.kacom-card {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: var(--kacom-radius);
	box-shadow: 0 20px 60px rgba(61, 35, 20, .14);
	overflow: hidden;
	animation: kacom-rise .5s ease;
}
@keyframes kacom-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.kacom-cover {
	height: 220px;
	background-size: cover;
	background-position: center;
}
.kacom-card-body { padding: 32px 34px 36px; }

/* Mise en page deux colonnes (photo à gauche, contenu + formulaire à droite) */
.kacom-card-split.has-media { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; }
.kacom-col-media {
	position: relative;
	min-height: 360px;
	background-size: cover;
	background-position: center;
}
.kacom-media-overlay {
	position: absolute;
	left: 16px; bottom: 16px; right: 16px;
	display: flex; flex-wrap: wrap; gap: 8px;
}
.kacom-chip-light {
	background: rgba(255, 255, 255, .92);
	color: #3D2314;
	box-shadow: 0 4px 14px rgba(61, 35, 20, .18);
}
.kacom-col-content { padding: 34px 36px 38px; }

.kacom-title {
	margin: 0 0 16px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--kacom-primary);
}

.kacom-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kacom-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: #F0E6DC;
	color: #6B3A1F;
	font-size: 14px; font-weight: 600;
	padding: 7px 13px;
	border-radius: 999px;
}
.kacom-optional { color: #b69a86; font-weight: 600; font-size: 11px; }

.kacom-desc { color: #444; line-height: 1.7; margin-bottom: 22px; }
.kacom-desc p { margin: 0 0 12px; }

.kacom-price-row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 0; margin-bottom: 8px;
	border-top: 1px solid #eef0f5; border-bottom: 1px solid #eef0f5;
}
.kacom-price { font-size: 26px; font-weight: 800; color: var(--kacom-primary); }
.kacom-places { font-size: 14px; font-weight: 700; color: #1aa179; background: #e7f7f0; padding: 6px 12px; border-radius: 999px; }
.kacom-places-full { color: #c0392b; background: #fdecea; }

.kacom-form { margin-top: 22px; }
.kacom-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kacom-field { display: block; margin-bottom: 14px; }
.kacom-field > span { display: block; font-size: 13px; font-weight: 700; color: #5a6478; margin-bottom: 6px; }
.kacom-field input,
.kacom-field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid #e6ddd3;
	border-radius: 12px;
	font-size: 15px;
	color: #3D2314;
	background: #fff;
	font-family: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.kacom-field textarea { resize: vertical; min-height: 76px; }
.kacom-field input:focus,
.kacom-field textarea:focus {
	outline: none;
	border-color: var(--kacom-primary);
	box-shadow: 0 0 0 4px rgba(160, 112, 74, .15);
}

.kacom-btn {
	position: relative;
	width: 100%;
	border: none;
	cursor: pointer;
	background: var(--kacom-btn);
	color: #fff;
	font-size: 17px; font-weight: 700;
	padding: 16px 20px;
	border-radius: 14px;
	margin-top: 8px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	transition: transform .12s ease, filter .15s ease, opacity .15s;
}
.kacom-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.kacom-btn:active { transform: translateY(0); }
.kacom-btn[disabled] { opacity: .6; cursor: progress; }
.kacom-btn-ghost {
	background: transparent;
	color: var(--kacom-primary);
	border: 1.5px solid var(--kacom-primary);
	margin-top: 18px;
	text-decoration: none;
}

.kacom-spinner {
	width: 18px; height: 18px;
	border: 2.5px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: kacom-spin .7s linear infinite;
}
@keyframes kacom-spin { to { transform: rotate(360deg); } }

.kacom-secure { text-align: center; font-size: 13px; color: #8a93a6; margin: 12px 0 0; }

.kacom-error { background: #fdecea; color: #b03a2e; padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }

.kacom-alert { padding: 14px 16px; border-radius: 12px; font-size: 15px; margin-top: 8px; }
.kacom-alert-info { background: #eef2fb; color: #33415c; }
.kacom-alert-warn { background: #fff5e6; color: #ad6800; margin-bottom: 16px; }

.kacom-msg { text-align: center; color: #5a6478; padding: 40px; }

/* Page de remerciement */
.kacom-merci { text-align: center; padding: 48px 34px; }
.kacom-merci .kacom-title { margin-top: 18px; }
.kacom-merci-text { color: #5a6478; font-size: 16px; }
.kacom-recap {
	display: inline-flex; flex-direction: column; gap: 6px;
	background: #f4f6fb; border-radius: 14px; padding: 18px 24px; margin: 18px 0;
	color: #33415c; font-size: 15px;
}
.kacom-recap strong { color: var(--kacom-primary); font-size: 17px; }
.kacom-merci-mail { color: #8a93a6; font-size: 14px; }

.kacom-check { width: 84px; height: 84px; margin: 0 auto; }
.kacom-check svg { width: 100%; height: 100%; }
.kacom-check-circle { stroke: #1aa179; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: kacom-circle .6s ease forwards; }
.kacom-check-mark { stroke: #1aa179; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: kacom-mark .4s .5s ease forwards; }
@keyframes kacom-circle { to { stroke-dashoffset: 0; } }
@keyframes kacom-mark { to { stroke-dashoffset: 0; } }

@media (max-width: 820px) {
	.kacom-card-split.has-media { grid-template-columns: 1fr; }
	.kacom-col-media { min-height: 220px; }
	.kacom-col-content { padding: 28px 26px 30px; }
}

@media (max-width: 540px) {
	.kacom-card-body,
	.kacom-col-content { padding: 24px 20px 28px; }
	.kacom-grid2 { grid-template-columns: 1fr; }
	.kacom-title { font-size: 23px; }
	.kacom-cover { height: 170px; }
	.kacom-col-media { min-height: 180px; }
}
