/* Devis au métrage — styles volontairement sobres, pour hériter du thème. */

.dm-bloc {
	max-width: 42rem;
	margin: 1.5rem 0;
}

/* Garder les contrôles utilisables même si le thème ne les habille pas. */
.dm-formulaire input:not([type="checkbox"]),
.dm-formulaire textarea,
.dm-formulaire button {
	box-sizing: border-box;
	font: inherit;
	font-size: max(1em, 16px);
	line-height: 1.4;
	min-height: 44px;
	padding: 0.6em 0.75em;
	border: 1px solid currentColor;
	border-radius: 4px;
}

.dm-formulaire textarea {
	min-height: 7rem;
}

.dm-formulaire button[type="submit"] {
	max-width: 100%;
	white-space: normal;
	font-weight: 600;
	cursor: pointer;
}

.dm-formulaire input:focus-visible,
.dm-formulaire textarea:focus-visible,
.dm-formulaire button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.dm-section {
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin: 0 0 1.25rem;
}

.dm-section legend {
	font-weight: 600;
	padding: 0 0.4rem;
}

.dm-prestation {
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dm-prestation:last-child {
	border-bottom: 0;
}

.dm-prestation__choix {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	cursor: pointer;
	min-height: 44px;
}

.dm-prestation__libelle {
	flex: 1 1 12rem;
}

.dm-prestation__tarif {
	opacity: 0.75;
	font-size: 0.92em;
	white-space: nowrap;
}

.dm-prestation__mesure {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0 0 1.6rem;
}

.dm-prestation__mesure[hidden] {
	display: none;
}

/* Prestations Pro : un champ ou une option par ligne. */
.dm-prestation--pro .dm-champ-pro,
.dm-prestation--pro .dm-option {
	flex: 1 1 100%;
	margin: 0;
}

.dm-prestation--pro .dm-option[hidden] {
	display: none;
}

.dm-prestation--pro .dm-option label,
.dm-prestation--pro .dm-champ-pro label {
	display: inline;
	font-size: 0.92em;
}

.dm-prestation--pro .dm-option input[type="checkbox"] {
	width: auto;
}

.dm-prestation__note,
.dm-option__fixe {
	margin: 0.25rem 0 0 1.6rem;
	font-size: 0.85em;
	opacity: 0.8;
}

.dm-prestation__mesure label {
	flex: 1 1 100%;
	font-size: 0.92em;
}

.dm-prestation__mesure input {
	width: 8rem;
	max-width: 100%;
}

.dm-prestation__ligne {
	font-weight: 600;
}

.dm-total {
	margin: 0 0 1rem;
	padding: 0.9rem 1.1rem;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.04);
}

.dm-total p {
	margin: 0;
}

.dm-total__montant {
	font-size: 1.25em;
	font-weight: 700;
}

.dm-total__tva,
.dm-total__ttc {
	margin-top: 0.25rem !important;
	opacity: 0.8;
}

.dm-total__attente {
	opacity: 0.75;
}

.dm-mention {
	font-size: 0.88em;
	opacity: 0.8;
	margin: 0 0 1.25rem;
}

.dm-champ {
	margin: 0 0 0.9rem;
}

.dm-champ label {
	display: block;
	margin-bottom: 0.25rem;
}

.dm-champ input,
.dm-champ textarea {
	width: 100%;
	box-sizing: border-box;
}

.dm-avis {
	padding: 0.8rem 1rem;
	border-radius: 6px;
	margin: 0 0 1.25rem;
}

.dm-avis ul {
	margin: 0.4rem 0 0 1.2rem;
}

.dm-avis p {
	margin: 0;
}

.dm-avis--succes {
	background: #e7f5ea;
	color: #14532d;
}

.dm-avis--alerte {
	background: #fdecec;
	color: #7f1d1d;
}

/* Piège à robots : hors écran, mais pas « display:none » que certains robots ignorent. */
.dm-piege {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
