/**
 * Poils & Compagnie – booking forms in popups.
 * Charte : maquette « Demande de réservation » (Nunito / Kalam,
 * vert citron #b5ed00, bleu nuit #16324b).
 */

.ptr-popup,
.ptr-popup-btn {
	--pc-lime: #b5ed00;
	--pc-lime-hover: #a4df00;
	--pc-navy: #16324b;
	--pc-ink: #1a3043;
	--pc-muted: #627182;
	--pc-line: #d9e3e6;
	--pc-pale: #f7faf1;
}

/* ---------- Button (defaults; every value can be changed in the Elementor widget) ----------
 * The selectors are "button.ptr-popup-btn" on purpose. Themes style every
 * button with rules like "[type=button]" and "[type=button]:focus" (Royal
 * Elementor Kit: purple outline, transparent background, purple fill on
 * hover/focus). Those weigh as much as a single class and are loaded after
 * this file, so they used to win on the live site (not in the editor, where
 * the load order differs). "element + class" outranks them, while the
 * Elementor widget controls ("{{WRAPPER}} .ptr-popup-btn", several classes)
 * still override these defaults. No !important: it would lock those controls.
 * ":focus" repeats the normal look, otherwise the theme's purple focus style
 * shows up right after a mouse click.
 */
button.ptr-popup-btn,
button.ptr-popup-btn:focus {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: var(--pc-lime);
	color: var(--pc-navy);
	padding: 15px 28px;
	font-family: 'Nunito', 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 7px 14px rgba(149, 201, 9, 0.13);
	transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

button.ptr-popup-btn:hover,
button.ptr-popup-btn:focus-visible {
	background: var(--pc-lime-hover);
	color: var(--pc-navy);
	transform: translateY(-2px);
	box-shadow: 0 10px 23px rgba(149, 201, 9, 0.25);
}

.ptr-popup-btn__icon {
	display: inline-flex;
	line-height: 1;
}

.ptr-popup-btn__icon svg {
	width: 1.15em;
	height: 1.15em;
	fill: currentColor;
}

/* Elementor widget: "Pleine largeur" alignment. */
.ptr-align-justify .ptr-popup-btn {
	width: 100%;
}

@media (max-width: 1024px) {
	.ptr-align-tablet-justify .ptr-popup-btn {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.ptr-align-mobile-justify .ptr-popup-btn {
		width: 100%;
	}
}

/* ---------- Modal ---------- */
html.ptr-popup-open,
html.ptr-popup-open body {
	overflow: hidden;
}

.ptr-popup {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	font-family: 'Nunito', 'Segoe UI', sans-serif;
	color: var(--pc-ink);
}

.ptr-popup[hidden] {
	display: none !important;
}

.ptr-popup__overlay {
	position: fixed;
	inset: 0;
	background: rgba(22, 50, 75, 0.45);
	backdrop-filter: blur(2px);
}

.ptr-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: auto 0;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 30px 80px rgba(16, 40, 45, 0.28);
	padding: 30px 26px 24px;
}

.ptr-popup__close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pc-navy);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s;
}

.ptr-popup__close:hover,
.ptr-popup__close:focus {
	transform: rotate(90deg);
	background: transparent;
	color: var(--pc-navy);
}

.ptr-popup__title {
	margin: 0 40px 8px 0;
	font-family: 'Kalam', 'Comic Neue', 'Comic Sans MS', cursive;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--pc-navy);
}

.ptr-popup__intro {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pc-muted);
}

/* ---------- Fluent Forms inside the popup, aligned on the charter ---------- */
.ptr-popup .fluentform,
.ptr-popup .fluentform input,
.ptr-popup .fluentform select,
.ptr-popup .fluentform textarea,
.ptr-popup .fluentform button,
.ptr-popup .fluentform label {
	font-family: 'Nunito', 'Segoe UI', sans-serif;
}

.ptr-popup .fluentform .ff-el-group {
	margin-bottom: 14px;
}

.ptr-popup .fluentform .ff-el-input--label label {
	font-size: 13px;
	font-weight: 800;
	color: var(--pc-navy);
}

.ptr-popup .fluentform .ff-el-form-control {
	border: 1px solid var(--pc-line);
	border-radius: 14px;
	padding: 10px 14px;
	font-size: 15px;
	color: var(--pc-ink);
	background: #fff;
	box-shadow: none;
}

.ptr-popup .fluentform .ff-el-form-control::placeholder {
	color: #8a979c;
	font-weight: 700;
}

.ptr-popup .fluentform .ff-el-form-control:focus {
	border-color: var(--pc-lime-hover);
	box-shadow: 0 0 0 3px rgba(181, 237, 0, 0.25);
	outline: none;
}

.ptr-popup .fluentform .ff-btn-submit {
	width: 100%;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--pc-lime) !important;
	color: var(--pc-navy) !important;
	padding: 14px 20px !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	box-shadow: 0 7px 14px rgba(149, 201, 9, 0.2) !important;
	transition: background 0.2s, transform 0.2s;
}

.ptr-popup .fluentform .ff-btn-submit:hover {
	background: var(--pc-lime-hover) !important;
	transform: translateY(-1px);
}

/* ---------- Transport form (wide, keeps its own panels) ---------- */
.ptr-popup--transport .ptr-popup__dialog {
	max-width: 1180px;
	background: var(--pc-pale);
	padding: 56px 18px 18px;
}

.ptr-popup--transport .ptr-popup__title {
	margin-top: -26px;
}

/* ---------- Phones: full-screen sheet ---------- */
@media (max-width: 600px) {
	.ptr-popup {
		padding: 0;
	}

	.ptr-popup__dialog,
	.ptr-popup--transport .ptr-popup__dialog {
		min-height: 100%;
		border-radius: 0;
		padding: 58px 16px 22px;
	}

	.ptr-popup__title {
		font-size: 28px;
	}
}
