.pm-presta-form, .pm-presta-dashboard {
	max-width: 640px;
	margin: 0 auto 2em;
	padding: 1.5em;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
}
.pm-presta-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}
.pm-presta-form input[type="text"],
.pm-presta-form input[type="email"],
.pm-presta-form input[type="tel"],
.pm-presta-form input[type="password"],
.pm-presta-form input[type="number"],
.pm-presta-form select,
.pm-presta-form textarea {
	width: 100%;
	padding: 0.5em;
	box-sizing: border-box;
	margin-bottom: 0.8em;
}
.pm-service-row {
	display: flex;
	align-items: center;
	gap: 1em;
}
.pm-service-row input[type="number"] {
	width: 100px;
	margin-bottom: 0;
}
.pm-tabs {
	max-width: 640px;
	margin: 0 auto 2em;
}
.pm-tab-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pm-tabs-nav {
	display: flex;
	gap: 0.5em;
	margin-bottom: 1em;
}
.pm-tab-btn {
	flex: 1;
	padding: 0.8em 1em;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f0f0f0;
	cursor: pointer;
	font-weight: 600;
	text-align: center;
	display: block;
}
.pm-tab-panel {
	display: none;
}
.pm-link-label {
	cursor: pointer;
	color: #1a1a1a;
	text-decoration: underline;
}
/* Affichage du panneau correspondant au bouton radio coché, en CSS pur
   (fonctionne même si le JavaScript est retardé/bloqué par un plugin de cache). */
#pm-tab-connexion:checked ~ .pm-tab-panel[data-panel="connexion"],
#pm-tab-inscription:checked ~ .pm-tab-panel[data-panel="inscription"],
#pm-tab-oubli:checked ~ .pm-tab-panel[data-panel="oubli"] {
	display: block;
}
/* Mise en avant visuelle de l'onglet actif */
#pm-tab-connexion:checked ~ .pm-tabs-nav label[for="pm-tab-connexion"],
#pm-tab-inscription:checked ~ .pm-tabs-nav label[for="pm-tab-inscription"] {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}
.pm-multi-photo-picker {
	position: relative;
}
.pm-photo-picker-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}
.pm-multi-photo-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8em;
	margin-top: 0.6em;
}
.pm-multi-photo-item {
	position: relative;
	text-align: center;
}
.pm-multi-photo-item img {
	display: block;
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ddd;
}
.pm-multi-photo-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	line-height: 20px;
	text-align: center;
	background: #b32d2e;
	color: #fff;
	border-radius: 50%;
	font-weight: bold;
	font-size: 16px;
	cursor: pointer;
}
.pm-multi-photo-caption {
	display: block;
	font-size: 0.75em;
	color: #555;
	margin-top: 0.2em;
}
.pm-photo-preview {
	margin-top: 0.5em;
}
.pm-photo-preview img {
	display: block;
	max-width: 150px;
	max-height: 150px;
	border-radius: 4px;
	margin-bottom: 0.3em;
}
.pm-photo-preview span {
	font-size: 0.8em;
	color: #555;
}
.pm-gallery-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}
.pm-gallery-item {
	position: relative;
	text-align: center;
	font-size: 0.85em;
	cursor: pointer;
	display: inline-block;
}
.pm-gallery-item img {
	display: block;
	border-radius: 4px;
}
.pm-gallery-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pm-gallery-delete {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	line-height: 20px;
	text-align: center;
	background: #b32d2e;
	color: #fff;
	border-radius: 50%;
	font-weight: bold;
	font-size: 16px;
	z-index: 2;
}
.pm-gallery-checkbox:checked ~ img {
	opacity: 0.35;
	filter: grayscale(1);
}
.pm-gallery-checkbox:checked ~ .pm-gallery-delete {
	background: #1a7f37;
}
.pm-gallery-checkbox:checked ~ .pm-gallery-delete::after {
	content: ' ✓';
}
.pm-city-autocomplete-wrap {
	position: relative;
	display: block;
}
.pm-city-suggestions {
	display: none;
	position: absolute;
	z-index: 100;
	top: 100%;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.pm-city-suggestions li {
	padding: 0.5em 0.7em;
	cursor: pointer;
	font-size: 0.9em;
}
.pm-city-suggestions li:hover {
	background: #f0f0f0;
}
.pm-phone-row {
	display: flex;
	gap: 0.5em;
}
.pm-phone-row select {
	width: 170px;
	flex-shrink: 0;
}
.pm-phone-row input[type="tel"] {
	flex: 1;
}
.pm-show-password-label {
	display: block;
	font-weight: normal;
	font-size: 0.85em;
	margin: 0.3em 0;
}
.pm-show-password-label input[type="checkbox"] {
	width: auto;
	margin-right: 0.4em;
}
.pm-save-button {
	background: #1a7f37;
	color: #fff;
	border: none;
	padding: 0.7em 1.5em;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	font-size: 1em;
}
.pm-save-button:hover {
	background: #156a2e;
}
.pm-danger-zone {
	margin-top: 2em;
	padding: 1em;
	border: 1px solid #e0b4b4;
	border-radius: 6px;
	background: #fff5f5;
}
.pm-danger-zone h3 {
	margin-top: 0;
	color: #b32d2e;
}
.pm-danger-button {
	background: #b32d2e;
	color: #fff;
	border: none;
	padding: 0.6em 1.2em;
	border-radius: 4px;
	cursor: pointer;
}
.pm-danger-button:hover {
	background: #8f2423;
}
.pm-error {
	color: #b32d2e;
	font-weight: 600;
}
.pm-success {
	color: #1a7f37;
	font-weight: 600;
}
.pm-presta-dashboard .pm-dashboard-nav {
	margin-bottom: 1.5em;
}

/* Moteur de devis - étape 1 (formulaire de recherche client). */
.pm-devis-wrap {
	max-width: 800px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
	box-sizing: border-box;
	padding: 0 1em;
}
.pm-devis-form .pm-devis-field {
	margin-bottom: 1.2em;
}
.pm-devis-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}
.pm-devis-form select,
.pm-devis-form input[type="text"],
.pm-devis-form input[type="date"],
.pm-devis-form input[type="time"] {
	width: 100%;
	padding: 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}
#pm_devis_evenement_autre_wrap {
	display: none;
}
.pm-devis-submit {
	margin-top: 1.5em;
}
.pm-devis-button {
	display: inline-block;
	background: var(--pm-brand-accent, #c20974);
	color: #fff;
	border: none;
	padding: 0.75em 1.5em;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
.pm-devis-button:hover {
	background: #9c075d;
	color: #fff;
}
.pm-devis-button-secondary {
	background: transparent;
	color: var(--pm-brand-dark, #1c1b21);
	border: 1px solid var(--pm-brand-dark, #1c1b21);
}
.pm-devis-button-secondary:hover {
	background: #f0f0f0;
	color: var(--pm-brand-dark, #1c1b21);
}
.pm-devis-errors {
	background: #fff5f5;
	border: 1px solid #e0b4b4;
	border-radius: 6px;
	padding: 1em 1.2em;
	margin-bottom: 1.5em;
}
.pm-devis-errors ul {
	margin: 0;
	padding-left: 1.2em;
	color: #b32d2e;
}
.pm-devis-recap {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1.2em 1.5em;
}
.pm-devis-recap ul {
	list-style: none;
	margin: 0.5em 0 1em;
	padding: 0;
}
.pm-devis-recap li {
	margin-bottom: 0.5em;
}

/* Liste des prestataires disponibles (résultats de recherche AJAX). */
.pm-devis-results-loading,
.pm-devis-results-empty,
.pm-devis-results-error {
	color: #666;
	font-style: italic;
}
.pm-devis-results-error {
	color: #b32d2e;
}
.pm-devis-results-title {
	margin: 1.2em 0 0.6em;
	color: var(--pm-brand-dark, #1c1b21);
}
.pm-devis-results-list {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}
.pm-devis-result-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 0.7em 1em;
	flex-wrap: wrap;
}
.pm-devis-result-name {
	font-weight: 700;
	color: var(--pm-brand-dark, #1c1b21);
}
.pm-devis-result-distance {
	color: #777;
	font-size: 0.9em;
}
.pm-devis-result-price {
	font-weight: 700;
	color: var(--pm-brand-accent, #c20974);
	font-size: 1.1em;
}

/* Page de résultats : instructions de sélection + récapitulatif live. */
.pm-devis-choice-instructions {
	text-align: center;
	font-weight: 600;
	color: var(--pm-brand-dark, #1c1b21);
	margin: 1em 0;
}
.pm-devis-selection-recap {
	background: #f7f7f7;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 1em 1.4em;
	margin-bottom: 1.2em;
}
.pm-devis-selection-recap ol {
	margin: 0.4em 0 0;
	padding-left: 1.4em;
}

/* Cartes de résultats (photo + case à cocher superposée + infos). */
.pm-devis-result-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.2em;
	margin-bottom: 1.5em;
}
.pm-devis-result-card {
	width: 240px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.pm-devis-result-photo {
	position: relative;
	width: 100%;
	height: 260px;
	background: linear-gradient(135deg, var(--pm-brand-dark, #1c1b21), var(--pm-brand-accent, #c20974));
}
.pm-devis-result-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pm-devis-result-photo-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pm-devis-result-photo-placeholder svg {
	width: 48px;
	height: 48px;
}
.pm-devis-result-checkbox {
	position: absolute;
	top: 10px;
	right: 10px;
}
.pm-devis-result-checkbox input {
	position: absolute;
	opacity: 0;
	width: 32px;
	height: 32px;
	margin: 0;
	cursor: pointer;
}
.pm-devis-result-checkbox span {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.pm-devis-result-checkbox input:checked + span {
	background: var(--pm-brand-accent, #c20974);
	border-color: var(--pm-brand-accent, #c20974);
	position: relative;
}
.pm-devis-result-checkbox input:checked + span::after {
	content: '';
	position: absolute;
	left: 8px;
	top: 3px;
	width: 8px;
	height: 14px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.pm-devis-result-checkbox input:disabled + span {
	opacity: 0.4;
	cursor: not-allowed;
}
.pm-devis-result-info {
	padding: 0.8em 1em 1em;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.2em;
}
.pm-devis-result-info .pm-devis-result-name {
	font-weight: 700;
	color: var(--pm-brand-dark, #1c1b21);
}
.pm-devis-result-info .pm-devis-result-price {
	font-size: 1.2em;
}
.pm-devis-result-info .pm-devis-result-distance {
	color: #777;
	font-size: 0.85em;
}
.pm-devis-result-view {
	margin-top: 0.6em;
	padding: 0.4em 1.2em;
	color: #ffffff !important;
}

/* Bouton "Suivant" de la page de résultats : plus visible et plus grand. */
#pm_devis_choice_next {
	font-size: 1.15em;
	padding: 0.9em 2.2em;
	box-shadow: 0 3px 10px rgba(194, 9, 116, 0.35);
}
.pm-devis-result-debug {
	width: 100%;
	background: #fff7e6;
	border-top: 1px dashed #e0b878;
	padding: 0.5em 0.8em;
	font-size: 0.72em;
	color: #7a5b1e;
	line-height: 1.5;
	text-align: left;
	box-sizing: border-box;
}

/* Moteur de devis - couleurs du site. */
.pm-devis-wrap {
	--pm-brand-accent: #c20974;
	--pm-brand-dark: #1c1b21;
	--pm-brand-white: #ffffff;
}

/* Cartes de choix de prestation (étape 1). */
.pm-devis-step-title {
	color: var(--pm-brand-dark);
	margin-bottom: 0.3em;
}
#pm_devis_step1 {
	padding-bottom: 90px;
}
.pm-devis-step-subtitle {
	text-transform: none !important;
	color: #8a8a8a !important;
	text-align: center;
	font-size: 1.15em;
	margin-top: 0;
	margin-bottom: 1.2em;
}
.pm-service-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center !important;
	gap: 1.2em;
	margin-bottom: 1em;
}
.pm-service-card-wrap {
	flex: 0 1 300px;
	width: 300px;
	max-width: 300px;
	display: flex;
	flex-direction: column;
}
.pm-service-card {
	cursor: pointer;
}
.pm-service-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.pm-service-card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 2px solid #e2e2e2;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
	background: var(--pm-brand-white);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pm-service-card input:checked + .pm-service-card-body {
	border-color: var(--pm-brand-accent);
	box-shadow: 0 0 0 1px var(--pm-brand-accent);
}
.pm-service-card-visual {
	width: 300px;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--pm-brand-dark), var(--pm-brand-accent));
	overflow: hidden;
}
.pm-service-card-visual svg {
	width: 32px;
	height: 32px;
}
.pm-service-card-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pm-service-card-details {
	border: 1px solid #e2e2e2;
	border-top: none;
	border-radius: 0 0 10px 10px;
	background: #f7f7f7;
}
.pm-service-card-details summary {
	list-style: none;
	cursor: pointer;
	padding: 0.6em 1em;
	font-size: 0.9em;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.pm-service-card-details summary::-webkit-details-marker {
	display: none;
}
.pm-service-card-details summary::after {
	content: '+';
	font-size: 1.2em;
	color: #999;
}
.pm-service-card-details[open] summary::after {
	content: '−';
}
.pm-service-card-details ul {
	margin: 0;
	padding: 0 1.2em 0.8em 1.2em;
	text-align: left;
	font-size: 0.9em;
	color: #444;
	list-style: none;
}
.pm-service-card-details li {
	position: relative;
	padding-left: 1.3em;
	margin-bottom: 0.3em;
}
.pm-service-card-details li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--pm-brand-accent);
	font-weight: 700;
}
.pm-service-card-name {
	font-weight: 700;
	color: var(--pm-brand-dark);
	margin-top: 0.7em;
}
.pm-service-card-price {
	margin: 0.4em 0 0.8em;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.pm-service-card-price-label {
	font-size: 0.8em;
	color: #777;
}
.pm-service-card-price-value {
	font-size: 1.3em;
	font-weight: 700;
	color: var(--pm-brand-accent);
}
.pm-service-card-price-devis {
	font-size: 1em;
	color: #777;
	font-style: italic;
	font-weight: 600;
}
.pm-service-card-select {
	display: block;
	width: calc(100% - 1.6em);
	margin: 0 0.8em 1em;
	padding: 0.6em;
	border-radius: 6px;
	background: #e2e2e2;
	color: var(--pm-brand-dark);
	font-weight: 600;
}
.pm-service-card input:checked + .pm-service-card-body .pm-service-card-select {
	background: var(--pm-brand-accent);
	color: var(--pm-brand-white);
}
.pm-devis-step1-error {
	color: var(--pm-brand-accent);
	font-weight: 600;
}
.pm-devis-back {
	margin-bottom: 1.2em;
}

/* Barre flottante "Suivant", visible dès qu'une prestation est sélectionnée. */
.pm-devis-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: var(--pm-brand-white, #fff);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(100%);
	transition: transform 0.25s ease;
	pointer-events: none;
}
.pm-devis-sticky-bar.is-visible {
	transform: translateY(0);
	pointer-events: auto;
}
.pm-devis-sticky-bar-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 0.8em 1.2em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
}
.pm-devis-sticky-label {
	color: var(--pm-brand-dark, #1c1b21);
	font-size: 0.95em;
}
.pm-devis-sticky-bar .pm-devis-button {
	margin: 0;
	white-space: nowrap;
}
@media (max-width: 480px) {
	.pm-devis-sticky-bar-inner {
		justify-content: center;
		text-align: center;
	}
}
.pm-devis-ville-bar {
	background: #ececec;
	border-radius: 6px;
	padding: 1em 1.2em;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.8em;
	margin-bottom: 1.5em;
}
.pm-devis-ville-bar label {
	color: var(--pm-brand-accent, #c20974);
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5em;
	white-space: nowrap;
}
.pm-devis-flags {
	display: inline-flex;
	gap: 2px;
}
.pm-flag {
	display: inline-block;
	width: 14px;
	height: 18px;
	border: 1px solid rgba(0, 0, 0, 0.15);
}
.pm-flag-fr { background: linear-gradient(to right, #002395 33%, #fff 33% 66%, #ed2939 66%); }
.pm-flag-be { background: linear-gradient(to right, #000 33%, #fae042 33% 66%, #ed2939 66%); }
.pm-flag-lu { background: linear-gradient(to bottom, #ed2939 33%, #fff 33% 66%, #00a1de 66%); }
.pm-flag-ch { background: #d52b1e; position: relative; }
.pm-devis-ville-bar input[type="text"] {
	flex: 1 1 260px;
	min-width: 200px;
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}
.pm-devis-row {
	display: flex;
	gap: 1.5em;
	flex-wrap: wrap;
	margin-bottom: 1.5em;
}
.pm-devis-row .pm-devis-col {
	flex: 1 1 220px;
}
.pm-devis-row label {
	display: flex;
	align-items: center;
	gap: 0.4em;
	color: var(--pm-brand-accent, #c20974);
	font-weight: 600;
	margin-bottom: 0.5em;
}
.pm-devis-icon {
	width: 20px;
	height: 20px;
	color: var(--pm-brand-accent, #c20974);
	flex-shrink: 0;
}
.pm-devis-row input[type="date"],
.pm-devis-row select {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	background: #fff;
}

/* Version mobile : centrer les cartes de prestation (au lieu de rester
   collées à gauche), ainsi que le titre et les messages associés. */
@media (max-width: 600px) {
	.pm-devis-step-title,
	.pm-devis-step-subtitle,
	.pm-devis-step1-error {
		text-align: center;
	}
	.pm-service-cards {
		justify-content: center;
	}
	.pm-service-card-wrap {
		flex: 1 1 100%;
		max-width: 300px;
		width: 100%;
		margin: 0 auto;
	}
	.pm-service-card {
		width: 100%;
	}
}
