/* CSE Factures – formulaire (reprend le rendu Formidable du site : Montserrat, bleu #00a0dc, champs carrés) */
.cse-form-wrap {
	--cse-blue: #00a0dc;
	--cse-blue-dark: #008dba;
	--cse-text: #3f4b5b;
	--cse-border: #bfc3c8;
	--cse-error: #b94a48;
	font-family: inherit;
	color: var(--cse-text);
	max-width: 100%;
	box-sizing: border-box;
}
.cse-form-wrap *,
.cse-form-wrap *::before,
.cse-form-wrap *::after { box-sizing: border-box; }
.cse-form { display: block; }
.cse-field { margin: 0 0 20px; }
.cse-field label,
.cse-field .cse-label,
.cse-checklist legend {
	display: block;
	font-size: 15px;
	font-weight: 400;
	color: var(--cse-text);
	margin: 0 0 6px;
}
.cse-req { color: var(--cse-error); }
.cse-field input[type="text"],
.cse-field input[type="email"],
.cse-field textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: #555;
	background: #fff;
	border: 1px solid var(--cse-border);
	border-radius: 0;
	padding: 14px 16px;
	line-height: 1.4;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cse-field input:focus,
.cse-field textarea:focus {
	border-color: var(--cse-blue);
	box-shadow: 0 0 0 2px rgba(0, 160, 220, .2);
}
.cse-field textarea { min-height: 120px; resize: vertical; }
.cse-field .cse-readonly { background: #f7f7f7; color: #8a8a8a; cursor: default; }
.cse-field input[aria-invalid="true"],
.cse-field textarea[aria-invalid="true"] { border-color: var(--cse-error); }
.cse-error {
	display: block;
	margin-top: 6px;
	color: var(--cse-error);
	font-size: 14px;
}
.cse-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Zone de dépôt */
.cse-dropzone {
	position: relative;
	border: 1px dashed var(--cse-border);
	border-radius: 4px;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
	max-width: 420px;
}
.cse-dropzone.is-dragover { border-color: var(--cse-blue); background: #f2fbff; }
.cse-dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.cse-dropzone__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 16px;
	text-align: center;
	color: var(--cse-text);
	pointer-events: none;
	margin: 0;
}
.cse-dropzone__label svg { color: var(--cse-text); }
.cse-dropzone__text { font-size: 14px; }
.cse-dropzone__help { font-size: 12px; color: #8a8a8a; }
.cse-dropzone:focus-within { outline: 2px solid var(--cse-blue); outline-offset: 2px; }

.cse-filelist { list-style: none; margin: 10px 0 0; padding: 0; max-width: 420px; }
.cse-filelist:empty { display: none; }
.cse-filelist li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	margin: 0 0 6px;
	background: #f5f8fa;
	border: 1px solid #e3e8ec;
	font-size: 14px;
}
.cse-filelist li.is-invalid { background: #fff5f5; border-color: #f0c2c2; }
.cse-filelist .cse-file__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cse-filelist .cse-file__size { color: #8a8a8a; font-size: 12px; }
.cse-filelist .cse-file__err { color: var(--cse-error); font-size: 12px; }
.cse-filelist .cse-file__remove {
	background: none;
	border: none;
	color: #8a8a8a;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 2px 4px;
}
.cse-filelist .cse-file__remove:hover { color: var(--cse-error); }

/* Cases à cocher */
.cse-checklist { border: none; padding: 0; margin: 0 0 20px; }
.cse-checklist legend { padding: 0; margin-bottom: 10px; }
.cse-check {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 12px !important;
	cursor: pointer;
	font-size: 14px !important;
	line-height: 1.45;
}
.cse-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--cse-blue);
	cursor: pointer;
}

/* Bouton */
.cse-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cse-btn,
.cse-form button.cse-btn {
	display: inline-block;
	background: var(--cse-blue);
	color: #fff;
	border: none;
	border-radius: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	padding: 12px 24px;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease;
}
.cse-btn:hover,
.cse-btn:focus,
.cse-form button.cse-btn:hover { background: var(--cse-blue-dark); color: #fff; }
.cse-form button.cse-btn[disabled] { opacity: .6; cursor: progress; }
/* Le thème (kit Elementor) colore tous les liens : on force le texte blanc du bouton lien. */
.cse-form-wrap .cse-success a.cse-btn,
.cse-form-wrap .cse-success a.cse-btn:visited,
.cse-form-wrap .cse-success a.cse-btn:hover,
.cse-form-wrap .cse-success a.cse-btn:focus {
	color: #fff;
	text-decoration: none;
}
.cse-form-wrap .cse-success a.cse-btn:hover,
.cse-form-wrap .cse-success a.cse-btn:focus { background: var(--cse-blue-dark); }
.cse-progress { font-size: 14px; color: var(--cse-text); }
.cse-progress::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid var(--cse-blue);
	border-right-color: transparent;
	border-radius: 50%;
	animation: cse-spin .8s linear infinite;
}
@keyframes cse-spin { to { transform: rotate(360deg); } }

/* Messages */
.cse-notice {
	padding: 14px 16px;
	margin: 0 0 20px;
	border-left: 4px solid var(--cse-blue);
	background: #f2fbff;
	font-size: 14px;
}
.cse-notice--error { border-left-color: var(--cse-error); background: #fff5f5; color: var(--cse-error); }
.cse-intro { margin: 0 0 20px; }
.cse-success { font-size: 15px; line-height: 1.6; }
.cse-success h2 { margin-top: 0; }

@media (max-width: 600px) {
	.cse-field input[type="text"],
	.cse-field input[type="email"],
	.cse-field textarea { padding: 12px 14px; font-size: 16px; }
	.cse-dropzone, .cse-filelist { max-width: 100%; }
	.cse-form button.cse-btn { width: 100%; }
}
