/* Formulaires Contact et L'Atelier : reprend les variables du thème Cherrystone (valeurs de repli entre parenthèses) */
.csf {
	--f-acc: var(--accent, #eb8e50); --f-bg: var(--bg, #1e2127); --f-bg2: var(--bg-2, #262a31); --f-bg3: var(--bg-3, #2c3038);
	--f-line: var(--line-2, rgba(255, 248, 237, .16)); --f-ink: var(--h2, #fff8ed); --f-dim: var(--text-dim, rgba(255, 248, 237, .62));
	--f-cond: var(--font-cond, 'Oswald', 'Arial Narrow', sans-serif); --f-body: var(--font-body, 'Manrope', system-ui, sans-serif); --f-ease: var(--ease, ease);
	font-family: var(--f-body); color: var(--f-ink);
}
.csf *, .csf *::before, .csf *::after { box-sizing: border-box; }
.csf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
.csf-field { display: flex; flex-direction: column; min-width: 0; }
.csf-field--full { grid-column: 1 / -1; }
.csf-field label { font-family: var(--f-cond); font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--f-dim); margin-bottom: 10px; }
.csf-field label b, .csf-legal b { color: var(--f-acc); font-weight: 500; margin-left: 4px; }
.csf input, .csf select, .csf textarea {
	width: 100%; margin: 0; background: var(--f-bg2); border: 1px solid var(--f-line); border-radius: 3px; color: var(--f-ink);
	padding: 14px 16px; font-family: var(--f-body); font-size: 16px; font-weight: 300; line-height: 1.4;
	transition: border-color .3s var(--f-ease), background .3s var(--f-ease); color-scheme: dark;
}
.csf input::placeholder, .csf textarea::placeholder { color: var(--f-dim); opacity: .6; }
.csf input:focus, .csf select:focus, .csf textarea:focus { outline: none; border-color: var(--f-acc); background: var(--f-bg3); box-shadow: none; }
.csf select {
	cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23eb8e50' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.csf select:invalid { color: var(--f-dim); }
.csf select option { background: var(--f-bg); color: var(--f-ink); }
.csf textarea { resize: vertical; min-height: 130px; }
.csf input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(1) saturate(4) hue-rotate(-12deg); cursor: pointer; }
.csf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.csf-turnstile { margin-top: 24px; }
.csf-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.csf-btn {
	padding: 16px 44px; background: var(--f-acc); color: var(--f-bg); border: 0; border-radius: 2px; cursor: pointer;
	font-family: var(--f-cond); font-size: 15px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
	transition: transform .3s var(--f-ease), box-shadow .3s var(--f-ease), opacity .3s var(--f-ease);
}
.csf-btn:hover, .csf-btn:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(235, 142, 80, .3); }
.csf-btn:focus-visible, .csf-brief a:focus-visible { outline: 2px solid var(--f-acc, #eb8e50); outline-offset: 3px; }
.csf-btn:disabled { opacity: .6; transform: none; box-shadow: none; cursor: wait; }
.csf-legal { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--f-dim); font-weight: 300; }
.csf-legal a { color: var(--f-acc); }
.csf-errors { margin: 0 0 24px; padding: 16px 20px; border: 1px solid #e0705e; border-radius: 3px; background: rgba(224, 112, 94, .08); color: var(--f-ink); font-size: 15px; line-height: 1.6; }
.csf-errors p { margin: 0; }
.csf-errors p + p { margin-top: 4px; }
.csf-errors a { color: var(--f-acc); }
.csf-done { padding: 34px 32px; border: 1px solid var(--f-acc); border-radius: 4px; background: var(--f-bg2); }
.csf-done__ico { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: #4f9a64; color: #fff; font-size: 20px; margin-bottom: 16px; }
.csf-done h3 { margin: 0 0 10px; font-family: var(--font-display, 'Fraunces', Georgia, serif); font-weight: 400; font-size: 28px; color: var(--f-ink); }
.csf-done p { margin: 0; color: var(--f-dim); font-weight: 300; line-height: 1.7; }
/* Encart « brief » de la page Contact */
.csf-brief { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 34px; padding: 20px 24px; border: 1px solid var(--line-2, rgba(255, 248, 237, .16)); border-left: 3px solid var(--accent, #eb8e50); border-radius: 3px; background: var(--bg-2, #262a31); }
.csf-brief p { margin: 0; flex: 1 1 260px; color: var(--text, #e8e3da); font-weight: 300; line-height: 1.6; }
.csf-brief strong { color: var(--h2, #fff8ed); font-weight: 500; }
.csf-brief a { flex: 0 0 auto; padding: 13px 26px; border: 1px solid var(--accent, #eb8e50); border-radius: 2px; color: var(--accent, #eb8e50); font-family: var(--font-cond, 'Oswald', sans-serif); font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease), background .3s var(--ease, ease), color .3s var(--ease, ease); }
.csf-brief a:hover, .csf-brief a:focus-visible { background: var(--accent, #eb8e50); color: var(--bg, #1e2127); transform: translateY(-3px); box-shadow: 0 16px 38px rgba(235, 142, 80, .3); }
@media (max-width: 640px) { .csf-grid { grid-template-columns: 1fr; } .csf-btn { width: 100%; } }

/* Rappel vers le brief sous « Type de projet » */
.csf-nudge { margin: 10px 0 0; padding: 10px 14px; border-left: 2px solid var(--f-acc); background: rgba(235, 142, 80, .07); font-size: 14px; line-height: 1.5; color: var(--f-ink); font-weight: 300; }
.csf-nudge[hidden] { display: none; }
.csf-nudge a { color: var(--f-acc); font-weight: 500; text-decoration: none; white-space: nowrap; }
.csf-nudge a:hover { text-decoration: underline; }
