/* JENILE Configurateur de Devis — Frontend Premium */
/* Palette : principal #9fc22a, secondaire noir & blanc */
:root {
	--jenile-main: #9fc22a;
	--jenile-main-dark: #7a9919;
	--jenile-main-darker: #5c7312;
	--jenile-main-light: #eef4d4;
	--jenile-main-mid: #c5d97a;
	--jenile-black: #0a0a0a;
	--jenile-gray: #404040;
	--jenile-gray-soft: #666666;
	--jenile-border: #e0e0e0;
	--jenile-border-strong: #cccccc;
	--jenile-white: #ffffff;
	--jenile-off-white: #f5f5f5;
	--jenile-main-rgb: 159, 194, 42;
}

.jenile-configurator {
	max-width: 720px;
	margin: 1.5rem auto;
	padding: 1.5rem;
	font-family: inherit;
	box-sizing: border-box;
}

.jenile-configurator *,
.jenile-configurator *::before,
.jenile-configurator *::after {
	box-sizing: border-box;
}

.jenile-title {
	margin-top: 0;
	margin-bottom: 1.25rem;
	font-size: 1.5rem;
}

/* ══════════════════════════════════════
   START SCREEN
   ══════════════════════════════════════ */
.jenile-start .jenile-mode-choices {
	display: grid;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 520px) {
	.jenile-start .jenile-mode-choices {
		grid-template-columns: 1fr 1fr;
	}
}

.jenile-mode-card {
	padding: 2rem 1.5rem;
	border: 2px solid var(--jenile-border);
	border-radius: 20px;
	background: var(--jenile-white);
	text-align: center;
	transition: all 0.25s ease;
}

.jenile-mode-card:hover {
	border-color: var(--jenile-main);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(var(--jenile-main-rgb), 0.2);
}

.jenile-mode-icon {
	display: block;
	font-size: 3rem;
	line-height: 1;
	margin-bottom: 0.75rem;
}

.jenile-mode-card .jenile-mode-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
}

.jenile-mode-desc {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	color: var(--jenile-gray-soft);
	line-height: 1.5;
}

.jenile-disclaimer {
	margin: 1.25rem 0 0;
	font-size: 0.9rem;
	color: var(--jenile-gray-soft);
	text-align: center;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.jenile-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.65rem 1.25rem;
	border: 2px solid transparent;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.jenile-btn-primary {
	background: var(--jenile-main);
	color: var(--jenile-black);
	border-color: var(--jenile-main);
	box-shadow: 0 2px 8px rgba(var(--jenile-main-rgb), 0.35);
}

.jenile-btn-primary:hover {
	background: var(--jenile-main-dark);
	border-color: var(--jenile-main-dark);
	color: var(--jenile-black);
	box-shadow: 0 4px 16px rgba(var(--jenile-main-rgb), 0.45);
	transform: translateY(-1px);
}

.jenile-btn-accent {
	background: var(--jenile-main);
	color: var(--jenile-black);
	border-color: var(--jenile-main);
	box-shadow: 0 2px 8px rgba(var(--jenile-main-rgb), 0.35);
}

.jenile-btn-accent:hover {
	background: var(--jenile-main-dark);
	border-color: var(--jenile-main-dark);
	color: var(--jenile-black);
	box-shadow: 0 4px 16px rgba(var(--jenile-main-rgb), 0.45);
	transform: translateY(-1px);
}

.jenile-btn-ghost {
	background: transparent;
	color: var(--jenile-gray);
	border-color: var(--jenile-border);
}

.jenile-btn-ghost:hover {
	background: var(--jenile-off-white);
	color: var(--jenile-black);
	border-color: var(--jenile-border-strong);
}

.jenile-btn-secondary {
	background: var(--jenile-off-white);
	color: var(--jenile-black);
	border-color: var(--jenile-border-strong);
}

.jenile-btn-secondary:hover {
	background: var(--jenile-border);
	border-color: var(--jenile-gray-soft);
}

.jenile-btn-arrow {
	font-size: 1.1em;
	line-height: 1;
}

/* ══════════════════════════════════════
   GUIDED MODE — Premium Design
   ══════════════════════════════════════ */
.jenile-guided {
	--g-primary: var(--jenile-main);
	--g-primary-light: var(--jenile-main-light);
	--g-primary-dark: var(--jenile-main-dark);
	--g-accent: var(--jenile-main);
	--g-accent-light: var(--jenile-main-light);
	--g-surface: var(--jenile-white);
	--g-bg: var(--jenile-off-white);
	--g-text: var(--jenile-black);
	--g-text-soft: var(--jenile-gray-soft);
	--g-border: var(--jenile-border);
	--g-radius: 20px;
	max-width: 780px;
}

/* ── Progress Bar ── */
.jenile-progress {
	margin-bottom: 2rem;
}

.jenile-progress-track {
	height: 6px;
	background: var(--g-border);
	border-radius: 3px;
	overflow: hidden;
}

.jenile-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--g-primary), var(--jenile-main-dark));
	border-radius: 3px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.jenile-progress-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.6rem;
	font-size: 0.875rem;
}

.jenile-progress-count {
	font-weight: 700;
	color: var(--g-primary);
}

.jenile-progress-label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--g-text-soft);
	font-weight: 500;
}

.jenile-progress-label-icon {
	font-size: 1.1rem;
	line-height: 1;
}

/* ── Steps Container ── */
.jenile-steps-container {
	position: relative;
	min-height: 320px;
}

.jenile-step-panel {
	display: none;
	padding: 0;
}

.jenile-step-panel.is-active {
	display: block;
	animation: jenile-slide-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.jenile-step-panel.is-active[data-direction="backward"] {
	animation: jenile-slide-back 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes jenile-slide-in {
	from { opacity: 0; transform: translateX(30px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes jenile-slide-back {
	from { opacity: 0; transform: translateX(-30px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* ── Step Card ── */
.jenile-question-block {
	margin-bottom: 0;
}

.jenile-step-card {
	background: var(--g-surface);
	border-radius: var(--g-radius);
	padding: 2.5rem 2rem 2rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
	border: 1px solid var(--g-border);
}

.jenile-step-header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.jenile-step-icon {
	font-size: 3.5rem;
	line-height: 1;
	margin-bottom: 0.75rem;
	display: block;
	animation: jenile-icon-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes jenile-icon-pop {
	from { opacity: 0; transform: scale(0.5); }
	to   { opacity: 1; transform: scale(1); }
}

.jenile-question-title {
	margin: 0 0 0.4rem;
	font-size: 1.4rem;
	color: var(--g-text);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.jenile-question-text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--g-text-soft);
}

/* ── LSF Block ── */
.jenile-lsf-block {
	margin: 1.25rem 0 1.75rem;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--g-border);
	background: var(--g-bg);
}

.jenile-lsf-video-wrap {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	border-radius: 10px;
	overflow: hidden;
}

.jenile-lsf-iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
}

.jenile-lsf-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.5rem 0;
	margin-bottom: 0.5rem;
}

.jenile-lsf-hint-icon {
	font-size: 1.15rem;
	line-height: 1;
}

.jenile-lsf-hint-text {
	font-size: 0.8rem;
	color: var(--g-text-soft);
	font-weight: 500;
}

/* ── Choice Tiles ── */
.jenile-choices-area {
	margin-top: 0.25rem;
}

.jenile-tiles {
	display: grid;
	gap: 0.85rem;
	max-width: 520px;
	margin: 0 auto;
}

.jenile-tiles--2 {
	grid-template-columns: 1fr 1fr;
}

.jenile-tiles--3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 480px) {
	.jenile-tiles--3 {
		grid-template-columns: 1fr 1fr;
	}
}

.jenile-tile {
	position: relative;
	cursor: pointer;
	display: block;
}

.jenile-tile-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.jenile-tile-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.25rem 0.75rem;
	border: 2px solid var(--g-border);
	border-radius: 16px;
	background: var(--g-surface);
	transition: all 0.2s ease;
	text-align: center;
	min-height: 110px;
	position: relative;
}

.jenile-tile:hover .jenile-tile-content {
	border-color: var(--jenile-main-mid);
	background: var(--g-primary-light);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(var(--jenile-main-rgb), 0.15);
}

.jenile-tile-input:checked + .jenile-tile-content {
	border-color: var(--g-primary);
	background: var(--g-primary-light);
	box-shadow: 0 0 0 3px rgba(var(--jenile-main-rgb), 0.25), 0 4px 16px rgba(var(--jenile-main-rgb), 0.12);
}

.jenile-tile-input:checked + .jenile-tile-content::after {
	content: '✓';
	position: absolute;
	top: 8px;
	right: 10px;
	width: 22px;
	height: 22px;
	background: var(--g-primary);
	color: var(--jenile-black);
	border-radius: 50%;
	font-size: 0.7rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: jenile-check-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes jenile-check-pop {
	from { transform: scale(0); }
	to   { transform: scale(1); }
}

.jenile-tile-input:focus-visible + .jenile-tile-content {
	outline: 3px solid var(--g-primary);
	outline-offset: 2px;
}

.jenile-tile-icon {
	font-size: 2.25rem;
	line-height: 1;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.jenile-tile-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--g-text);
	line-height: 1.3;
}

.jenile-tile-input:checked + .jenile-tile-content .jenile-tile-label {
	color: var(--g-primary-dark);
}

/* ── Field Groups (multi-question steps) ── */
.jenile-field-groups {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.jenile-field-group {
	padding: 1.25rem;
	background: var(--g-bg);
	border-radius: 16px;
	border: 1px solid var(--g-border);
}

.jenile-field-group-title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--g-text);
	text-align: center;
}

/* ── Extra Room Number ── */
.jenile-extra-number {
	margin-top: 1.25rem;
	text-align: center;
}

.jenile-extra-number label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--g-text);
}

.jenile-input-number {
	width: 90px;
	padding: 0.5rem 0.75rem;
	font-size: 1.1rem;
	text-align: center;
	border: 2px solid var(--g-border);
	border-radius: 12px;
	transition: border-color 0.2s;
}

.jenile-input-number:focus {
	border-color: var(--g-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--jenile-main-rgb), 0.25);
}

/* ── Advice ── */
.jenile-advice {
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 14px;
	text-align: left;
}

.jenile-advice-icon {
	font-size: 1.35rem;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.jenile-advice-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #92400e;
}

/* ── Step Nav ── */
.jenile-step-nav {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.75rem;
	justify-content: space-between;
	align-items: center;
}

.jenile-step-nav .jenile-btn {
	min-width: 150px;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
}

.jenile-step-nav .jenile-prev {
	min-width: auto;
}

.jenile-step-nav .jenile-next,
.jenile-step-nav .jenile-submit-final {
	margin-left: auto;
}

@media (max-width: 480px) {
	.jenile-step-card {
		padding: 1.75rem 1.25rem 1.5rem;
	}
	.jenile-step-nav .jenile-btn {
		min-width: 0;
		flex: 1;
	}
}

/* ── Step Validation Toast ── */
.jenile-validation-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	z-index: 10000;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: #fff;
	padding: 0.85rem 1.5rem;
	border-radius: 14px;
	font-size: 0.92rem;
	font-weight: 600;
	box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 0.55rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	max-width: 90vw;
	text-align: center;
	line-height: 1.35;
}

.jenile-validation-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.jenile-validation-toast__icon {
	flex-shrink: 0;
	font-size: 1.15rem;
}

.jenile-field-group--missing .jenile-tiles,
.jenile-question-block--missing .jenile-tiles {
	animation: jenile-shake 0.5s ease;
	border-radius: 12px;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

@keyframes jenile-shake {
	0%, 100% { transform: translateX(0); }
	15%      { transform: translateX(-6px); }
	30%      { transform: translateX(6px); }
	45%      { transform: translateX(-4px); }
	60%      { transform: translateX(4px); }
	75%      { transform: translateX(-2px); }
	90%      { transform: translateX(2px); }
}

/* ══════════════════════════════════════
   MANUAL MODE — Boutique
   ══════════════════════════════════════ */
.jenile-manual {
	max-width: 900px;
	position: relative;
}

/* Toast notification */
.jenile-manual-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: var(--jenile-black);
	color: var(--jenile-white);
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
	z-index: 100000;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	max-width: calc(100vw - 2rem);
}

.jenile-manual-toast[hidden] {
	display: none !important;
}

.jenile-manual-toast.jenile-toast-show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.jenile-manual-toast.jenile-toast-hide {
	opacity: 0;
	transform: translateX(-50%) translateY(-10px);
}

.jenile-manual-toast-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	background: var(--jenile-main);
	color: var(--jenile-black);
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: bold;
	flex-shrink: 0;
}

.jenile-manual-toast-message {
	font-size: 0.95rem;
	font-weight: 500;
}

.jenile-manual-intro {
	margin-bottom: 1.5rem;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--jenile-gray-soft);
}

.jenile-products-title,
.jenile-cart-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.jenile-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1.25rem;
	margin-bottom: 2rem;
}

/* Cartes produit du mode manuel uniquement (évite overflow:hidden sur le récap devis guidé/manuel) */
.jenile-manual .jenile-products-grid .jenile-product-card {
	border: 2px solid var(--jenile-border);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	transition: all 0.2s ease;
}

.jenile-manual .jenile-products-grid .jenile-product-card:hover {
	border-color: var(--jenile-main);
	box-shadow: 0 4px 16px rgba(var(--jenile-main-rgb), 0.18);
}

.jenile-product-card-image {
	aspect-ratio: 1;
	background: var(--jenile-off-white);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.jenile-product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jenile-product-card-placeholder {
	width: 64px;
	height: 64px;
	background: var(--jenile-border-strong);
	border-radius: 50%;
	opacity: 0.5;
}

.jenile-product-card-body {
	padding: 1rem;
}

.jenile-product-card-title {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.3;
	min-height: 2.6em;
	font-weight: 600;
}

.jenile-product-card-price {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--jenile-main);
}

.jenile-product-card-qty-label {
	display: block;
	margin-bottom: 0.75rem;
}

.jenile-product-card-qty {
	width: 100%;
	max-width: 80px;
	padding: 0.4rem 0.5rem;
	font-size: 1rem;
	text-align: center;
	border: 2px solid var(--jenile-border);
	border-radius: 8px;
	transition: border-color 0.2s;
}

.jenile-product-card-qty:focus {
	border-color: var(--jenile-main);
	outline: none;
	box-shadow: 0 0 0 3px rgba(159, 194, 42, 0.15);
}

.jenile-manual .jenile-products-grid .jenile-product-card .jenile-add-to-quote {
	width: 100%;
}

.jenile-quote-cart {
	border: 2px solid var(--jenile-main);
	border-radius: 16px;
	padding: 1.25rem;
	background: var(--jenile-main-light);
	margin-top: 2rem;
}

.jenile-cart-empty {
	padding: 1rem 0;
	color: var(--jenile-gray-soft);
}

.jenile-cart-lines {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.jenile-cart-line {
	display: grid;
	grid-template-columns: 1fr 80px 40px;
	gap: 0.75rem;
	align-items: center;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--jenile-border-strong);
}

.jenile-cart-line:last-child {
	border-bottom: none;
}

.jenile-cart-line-label {
	font-weight: 600;
}

.jenile-cart-line-qty input {
	width: 60px;
	padding: 0.35rem;
	border: 2px solid var(--jenile-border);
	border-radius: 6px;
}

.jenile-cart-remove {
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: var(--jenile-border);
	color: var(--jenile-gray-soft);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: all 0.15s;
}

.jenile-cart-remove:hover {
	background: #ef4444;
	color: #fff;
}

.jenile-submit-wrap {
	margin-top: 1.5rem;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

/* ══════════════════════════════════════
   CONTACT MODAL — Premium
   ══════════════════════════════════════ */
body.jenile-contact-modal-open {
	overflow: hidden;
}

.jenile-contact-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	animation: jenile-modal-fade-in 0.25s ease both;
}

@keyframes jenile-modal-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.jenile-contact-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.jenile-contact-modal__dialog {
	position: relative;
	width: min(560px, 100%);
	background: #fff;
	border-radius: 24px;
	padding: 0;
	box-shadow:
		0 0 0 1px rgba(159, 194, 42, 0.08),
		0 24px 80px rgba(0, 0, 0, 0.18),
		0 4px 16px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	animation: jenile-modal-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes jenile-modal-slide-up {
	from { opacity: 0; transform: translateY(30px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.jenile-contact-modal__header {
	background: linear-gradient(135deg, var(--jenile-main) 0%, var(--jenile-black) 100%);
	padding: 1.75rem 2rem 1.5rem;
	position: relative;
}

.jenile-contact-modal__header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

.jenile-contact-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.jenile-contact-modal__close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.jenile-contact-modal__title {
	margin: 0 0 0.3rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.01em;
}

.jenile-contact-modal__intro {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.95rem;
	line-height: 1.4;
}

.jenile-contact-modal__lsf {
	background: var(--jenile-off-white);
	border-bottom: 1px solid var(--jenile-border);
	padding: 1rem 1.5rem 0.6rem;
}

.jenile-contact-modal__lsf-wrap {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.jenile-contact-modal__lsf-iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
}

.jenile-contact-modal__lsf-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0.5rem 0 0;
	font-size: 0.78rem;
	color: var(--jenile-gray-soft);
	font-weight: 500;
}

.jenile-contact-modal__body {
	padding: 1.75rem 2rem 2rem;
}

.jenile-contact-modal__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr;
}

.jenile-contact-modal__grid label,
.jenile-contact-modal__company label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--jenile-gray);
	letter-spacing: 0.01em;
}

.jenile-contact-modal__grid input,
.jenile-contact-modal__company input {
	width: 100%;
	border: 2px solid var(--jenile-border);
	border-radius: 12px;
	padding: 0.7rem 0.85rem;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	background: var(--jenile-off-white);
	color: var(--jenile-black);
}

.jenile-contact-modal__grid input:focus,
.jenile-contact-modal__company input:focus {
	border-color: var(--jenile-main);
	outline: none;
	box-shadow: 0 0 0 3px rgba(159, 194, 42, 0.12);
	background: #fff;
}

.jenile-contact-modal__grid input::placeholder,
.jenile-contact-modal__company input::placeholder {
	color: var(--jenile-gray-soft);
}

.jenile-contact-modal__checkbox {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	margin-top: 1.25rem;
	padding: 0.85rem 1rem;
	background: var(--jenile-off-white);
	border: 2px solid var(--jenile-border);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.jenile-contact-modal__checkbox:hover {
	border-color: var(--jenile-main-mid);
	background: var(--jenile-main-light);
}

.jenile-contact-modal__checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--jenile-main);
	flex-shrink: 0;
}

.jenile-contact-modal__checkbox span {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--jenile-gray);
	line-height: 1.3;
}

.jenile-contact-modal__company {
	margin-top: 0.85rem;
	animation: jenile-slide-in 0.25s ease both;
}

.jenile-contact-modal__error {
	margin: 1rem 0 0;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 12px;
	padding: 0.65rem 0.85rem;
	font-size: 0.88rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.jenile-contact-modal__actions {
	margin-top: 1.5rem;
	display: flex;
	justify-content: flex-end;
	gap: 0.65rem;
}

.jenile-contact-modal__actions .jenile-btn-primary {
	padding: 0.7rem 1.75rem;
}

@media (max-width: 600px) {
	.jenile-contact-modal__grid {
		grid-template-columns: 1fr;
	}
	.jenile-contact-modal__header {
		padding: 1.5rem 1.25rem 1.25rem;
	}
	.jenile-contact-modal__body {
		padding: 1.25rem;
	}
}

/* ══════════════════════════════════════
   RESULT PAGE — Two-Column Premium
   ══════════════════════════════════════ */
.jenile-result {
	max-width: 1100px;
}

/* ── Hero banner ── */
.jenile-result-hero {
	background: linear-gradient(135deg, var(--jenile-main) 0%, var(--jenile-main-dark) 45%, var(--jenile-black) 100%);
	border-radius: 24px;
	padding: 2.25rem 2.5rem;
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
}

.jenile-result-hero::before,
.jenile-result-hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.jenile-result-hero::before {
	width: 280px;
	height: 280px;
	top: -60%;
	right: -5%;
	background: rgba(255, 255, 255, 0.06);
}

.jenile-result-hero::after {
	width: 180px;
	height: 180px;
	bottom: -40%;
	left: 5%;
	background: rgba(255, 255, 255, 0.04);
}

.jenile-result-hero__content {
	position: relative;
	z-index: 1;
}

.jenile-result-hero__badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(6px);
	padding: 0.3rem 0.85rem;
	border-radius: 50px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 0.65rem;
}

.jenile-result-hero__title {
	margin: 0 0 0.35rem;
	color: #fff;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.jenile-result-hero__sub {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
}

.jenile-result-hero__ref {
	opacity: 0.6;
	font-size: 0.88rem;
}

/* ── Two-column grid ── */
.jenile-result-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 1.75rem;
	align-items: start;
}

/* ── Main (left) ── */
.jenile-result-main {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: relative;
	z-index: 3;
}

/* ── Sidebar (right) ── */
.jenile-result-sidebar {
	min-width: 0;
	position: relative;
	z-index: 2;
}

.jenile-sidebar-sticky {
	position: sticky;
	top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* ── Generic result card ── */
.jenile-result-card {
	background: #fff;
	border: 1px solid var(--jenile-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03), 0 4px 24px rgba(0, 0, 0, 0.04);
	animation: jenile-fade-up 0.5s ease both;
}

/* Tooltips des lignes produit : ne pas rogner au-delà de la carte */
.jenile-result-card.jenile-result-card--products {
	overflow: visible;
}

.jenile-result-card__header {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.85rem 1.25rem;
	background: var(--jenile-off-white);
	border-bottom: 1px solid var(--jenile-border);
}

.jenile-result-card__icon {
	font-size: 1.1rem;
	line-height: 1;
	flex-shrink: 0;
}

.jenile-result-card__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--jenile-black);
	flex: 1;
}

.jenile-result-card__count {
	background: var(--jenile-main);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	min-width: 22px;
	height: 22px;
	border-radius: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
}

.jenile-result-card__body {
	padding: 1rem 1.25rem;
}

/* ── Product cards ── */
.jenile-products-list {
	padding: 0.5rem;
}

.jenile-products-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	color: var(--jenile-gray-soft);
}

.jenile-products-empty span {
	display: block;
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

@keyframes jenile-fade-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.jenile-result .jenile-products-list .jenile-product-card {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--jenile-border);
	border-radius: 14px;
	padding: 0.85rem 1rem;
	margin-bottom: 0.45rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	animation: jenile-fade-up 0.4s ease both;
	overflow: visible;
}

.jenile-result .jenile-products-list .jenile-product-card:last-child {
	margin-bottom: 0;
}

.jenile-result .jenile-products-list .jenile-product-card:hover {
	border-color: var(--jenile-main-mid);
	box-shadow: 0 2px 12px rgba(159, 194, 42, 0.12);
	transform: translateY(-1px);
}

.jenile-product-card__main {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.jenile-product-card__name {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--jenile-black);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.jenile-product-card__qty {
	flex-shrink: 0;
	background: var(--jenile-main-light);
	color: var(--jenile-black);
	font-size: 0.75rem;
	font-weight: 800;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	text-align: center;
	min-width: 28px;
}

.jenile-product-card__pricing {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-shrink: 0;
	justify-self: end;
}

.jenile-product-card__unit {
	font-size: 0.78rem;
	color: var(--jenile-gray-soft);
	font-weight: 500;
}

.jenile-product-card__total {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--jenile-black);
	white-space: nowrap;
}

.jenile-product-card__remove {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	margin-left: 0.5rem;
	color: var(--jenile-border-strong);
	font-size: 1.1rem;
	font-weight: 400;
	text-decoration: none;
	line-height: 1;
	transition: background 0.2s, color 0.2s;
}

.jenile-product-card__remove:hover {
	background: #fef2f2;
	color: #ef4444;
}

/* ── Product tooltip ── */
.jenile-product-card.has-tooltip {
	position: relative;
}

/* Récap devis : la ligne survolée (surtout bulle vers le bas) doit passer au-dessus des lignes suivantes */
.jenile-result .jenile-products-list .jenile-product-card.has-tooltip {
	z-index: 0;
}

.jenile-result .jenile-products-list .jenile-product-card.has-tooltip:hover,
.jenile-result .jenile-products-list .jenile-product-card.has-tooltip:focus-within {
	z-index: 10065;
}

.jenile-product-tooltip {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	z-index: 1;
	width: 280px;
	background: #fff;
	border: 1px solid var(--jenile-border);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jenile-product-card.has-tooltip:hover .jenile-product-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.jenile-product-card.has-tooltip.tooltip-below .jenile-product-tooltip {
	bottom: auto;
	top: calc(100% + 12px);
}

.jenile-product-tooltip__arrow {
	position: absolute;
	bottom: -7px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 14px;
	height: 14px;
	background: #fff;
	border-right: 1px solid var(--jenile-border);
	border-bottom: 1px solid var(--jenile-border);
	z-index: 1;
}

.jenile-product-card.has-tooltip.tooltip-below .jenile-product-tooltip__arrow {
	bottom: auto;
	top: -7px;
	border-right: none;
	border-bottom: none;
	border-left: 1px solid var(--jenile-border);
	border-top: 1px solid var(--jenile-border);
}

.jenile-product-tooltip__img {
	width: 100%;

	overflow: hidden;
	background: linear-gradient(135deg, var(--jenile-off-white) 0%, var(--jenile-off-white) 100%);
	position: relative;
}

.jenile-product-tooltip__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.jenile-product-card.has-tooltip:hover .jenile-product-tooltip__img img {
	transform: scale(1.05);
}

.jenile-product-tooltip__body {
	padding: 0.85rem 1rem;
}

.jenile-product-tooltip__name {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--jenile-black);
	margin-bottom: 0.3rem;
	line-height: 1.3;
}

.jenile-product-tooltip__desc {
	margin: 0;
	font-size: 0.8rem;
	color: var(--jenile-gray-soft);
	line-height: 1.5;
}

@media (max-width: 480px) {
	.jenile-product-tooltip {
		display: none;
	}
}

/* ── Total panel (sidebar) ── */
.jenile-total-panel {
	background: linear-gradient(135deg, var(--jenile-black) 0%, #000000 100%);
	border-radius: 20px;
	padding: 1.75rem 1.5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.jenile-total-panel::before {
	content: '';
	position: absolute;
	top: -30px;
	right: -30px;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: rgba(159, 194, 42, 0.15);
	pointer-events: none;
}

.jenile-total-panel__label {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
	position: relative;
}

.jenile-total-panel__price {
	font-size: 2.1rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin-bottom: 0.35rem;
	position: relative;
}

.jenile-total-panel__hint {
	font-size: 0.73rem;
	color: rgba(255, 255, 255, 0.35);
	font-weight: 500;
	position: relative;
}

/* ── Notes / Warnings (left column) ── */
.jenile-notif {
	display: flex;
	gap: 0.75rem;
	padding: 0;
}

.jenile-notif + .jenile-notif {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--jenile-off-white);
}

.jenile-notif__icon {
	flex-shrink: 0;
	font-size: 1.15rem;
	line-height: 1.5;
}

.jenile-notif__content strong {
	display: block;
	font-size: 0.88rem;
	margin-bottom: 0.35rem;
}

.jenile-notif--warn .jenile-notif__content strong { color: #dc2626; }
.jenile-notif--info .jenile-notif__content strong { color: var(--jenile-main); }

.jenile-notif__content ul {
	margin: 0;
	padding-left: 1.1rem;
	list-style: disc;
}

.jenile-notif__content li {
	font-size: 0.85rem;
	line-height: 1.55;
	margin-bottom: 0.2rem;
}

.jenile-notif--warn .jenile-notif__content li { color: #991b1b; }
.jenile-notif--info .jenile-notif__content li { color: var(--jenile-gray); }

/* ── Answers list (sidebar) ── */
.jenile-answers-list {
	padding: 0.35rem 0;
}

.jenile-answer-row {
	display: flex;
	flex-direction: column;
	padding: 0.55rem 1.25rem;
	border-bottom: 1px solid var(--jenile-off-white);
	transition: background 0.15s;
}

.jenile-answer-row:last-child {
	border-bottom: none;
}

.jenile-answer-row:hover {
	background: var(--jenile-off-white);
}

.jenile-answer-row--hidden {
	display: none;
}

.jenile-answers-list.is-expanded .jenile-answer-row--hidden {
	display: flex;
	animation: jenile-row-reveal 0.35s ease both;
}

.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(4)  { animation-delay: 0ms; }
.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(5)  { animation-delay: 30ms; }
.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(6)  { animation-delay: 60ms; }
.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(7)  { animation-delay: 90ms; }
.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(8)  { animation-delay: 120ms; }
.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(9)  { animation-delay: 150ms; }
.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(10) { animation-delay: 180ms; }
.jenile-answers-list.is-expanded .jenile-answer-row--hidden:nth-child(n+11) { animation-delay: 210ms; }

@keyframes jenile-row-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.jenile-answers-toggle {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	width: calc(100% - 1.5rem) !important;
	margin: 0.6rem auto 0.75rem !important;
	padding: 0.6rem 1.25rem !important;
	border: 1.5px solid var(--jenile-border) !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--jenile-white) 0%, var(--jenile-main-light) 100%) !important;
	color: var(--jenile-black) !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	outline: none !important;
	min-height: auto !important;
}

.jenile-answers-toggle:hover {
	background: linear-gradient(135deg, var(--jenile-main-light) 0%, var(--jenile-off-white) 100%) !important;
	border-color: var(--jenile-main) !important;
	box-shadow: 0 2px 8px rgba(159, 194, 42, 0.2) !important;
	transform: translateY(-1px) !important;
	color: var(--jenile-black) !important;
	text-decoration: none !important;
}

.jenile-answers-toggle:focus {
	background: linear-gradient(135deg, var(--jenile-main-light) 0%, var(--jenile-off-white) 100%) !important;
	border-color: var(--jenile-main) !important;
	box-shadow: 0 0 0 3px rgba(159, 194, 42, 0.25) !important;
	color: var(--jenile-black) !important;
	outline: none !important;
	text-decoration: none !important;
}

.jenile-answers-toggle:active {
	transform: translateY(0) !important;
	box-shadow: none !important;
}

.jenile-answers-toggle__icon {
	font-size: 0.65rem !important;
	transition: transform 0.3s ease !important;
	line-height: 1 !important;
}

.jenile-answers-toggle[aria-expanded="true"] .jenile-answers-toggle__icon {
	transform: rotate(180deg) !important;
}

.jenile-answer-row__q {
	font-size: 0.76rem;
	color: var(--jenile-gray-soft);
	font-weight: 500;
	line-height: 1.35;
}

.jenile-answer-row__a {
	font-size: 0.88rem;
	color: var(--jenile-black);
	font-weight: 600;
	line-height: 1.35;
}

/* ── Action buttons ── */
.jenile-result-actions {
	margin-top: 1.5rem;
}

.jenile-result-actions .jenile-btn {
	padding: 0.75rem 1.75rem;
	border-radius: 14px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
	.jenile-result-grid {
		grid-template-columns: 1fr;
	}

	.jenile-sidebar-sticky {
		position: static;
	}

	.jenile-result-hero {
		padding: 1.75rem 1.5rem;
		border-radius: 18px;
	}

	.jenile-result-hero__title {
		font-size: 1.4rem;
	}
}

@media (max-width: 480px) {
	.jenile-result-hero {
		padding: 1.25rem 1rem;
		border-radius: 16px;
	}

	.jenile-result-hero__title {
		font-size: 1.2rem;
	}

	.jenile-total-panel__price {
		font-size: 1.6rem;
	}

	.jenile-result .jenile-products-list .jenile-product-card {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.jenile-result .jenile-products-list .jenile-product-card__main {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.jenile-result .jenile-products-list .jenile-product-card__qty {
		justify-self: start;
	}

	.jenile-result .jenile-products-list .jenile-product-card__pricing {
		justify-self: start;
	}

	.jenile-result .jenile-products-list .jenile-product-card__remove {
		margin-left: auto;
	}
}

/* ══════════════════════════════════════
   FOCUS & ACCESSIBILITY
   ══════════════════════════════════════ */
.jenile-btn:focus-visible,
.jenile-input-number:focus-visible {
	outline: 3px solid var(--jenile-main);
	outline-offset: 2px;
}
