/* ---------------------------------------------------------------------------
 * Novatis — parcours « demande de devis »
 * ------------------------------------------------------------------------- */

:root {
	--nv-devis-primary: #E20613;
	--nv-devis-ink: #1c2024;
	--nv-devis-muted: #6b7178;
	--nv-devis-border: #e6e7e9;
}

/* ---- Pastille du panier dans l'en-tête ---- */
.nv-panier-pastille {
	position: absolute;
	top: 2px;
	right: 2px;
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--nv-devis-primary);
	color: #fff;
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

[data-nv-ajouter] { cursor: pointer; }
[data-nv-ajouter].nv-occupe { opacity: .5; pointer-events: none; }

/* ---- Confirmation d'ajout ---- */
.nv-panier-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	padding: 14px 22px;
	border-radius: 999px;
	background: var(--nv-devis-ink);
	color: #fff;
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .5);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
}
.nv-panier-toast.nv-visible { opacity: 1; transform: translateY(0); }

/* ---- Liste de la demande ---- */
.nv-devis .nv-devis-liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.nv-devis-ligne {
	display: grid;
	grid-template-columns: 84px 1fr auto auto;
	align-items: center;
	gap: 18px;
	padding: 14px 18px;
	border: 1px solid var(--nv-devis-border);
	border-radius: 16px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.nv-devis-ligne:hover {
	border-color: rgba(226, 6, 19, .3);
	box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .25);
}

.nv-devis-visuel {
	width: 84px;
	height: 84px;
	border-radius: 12px;
	background: #f5f6f7;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nv-devis-visuel img { width: 100%; height: 100%; object-fit: contain; }

.nv-devis-nom {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 800;
	color: var(--nv-devis-ink);
	text-decoration: none;
	line-height: 1.3;
}
.nv-devis-nom:hover { color: var(--nv-devis-primary); }
.nv-devis-court {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--nv-devis-muted);
	line-height: 1.5;
}

/* ---- Sélecteur de quantité ---- */
.nv-devis-qte {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--nv-devis-border);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.nv-devis-qte button {
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	color: var(--nv-devis-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.nv-devis-qte button:hover { background: rgba(226, 6, 19, .08); color: var(--nv-devis-primary); }
.nv-devis-qte input {
	width: 46px;
	height: 36px;
	border: 0;
	border-left: 1px solid var(--nv-devis-border);
	border-right: 1px solid var(--nv-devis-border);
	text-align: center;
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--nv-devis-ink);
	background: #fff;
	appearance: textfield;
	-moz-appearance: textfield;
}
.nv-devis-qte input::-webkit-outer-spin-button,
.nv-devis-qte input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.nv-devis-qte input:focus { outline: none; }

.nv-devis-retirer {
	width: 34px;
	height: 34px;
	border: 1px solid var(--nv-devis-border);
	border-radius: 999px;
	background: #fff;
	color: var(--nv-devis-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all .2s ease;
}
.nv-devis-retirer:hover {
	border-color: var(--nv-devis-primary);
	color: var(--nv-devis-primary);
	background: rgba(226, 6, 19, .05);
}

@media (max-width: 640px) {
	.nv-devis-ligne {
		grid-template-columns: 64px 1fr auto;
		grid-template-areas:
			"visuel infos retirer"
			"qte    qte   qte";
		gap: 12px;
	}
	.nv-devis-visuel { grid-area: visuel; width: 64px; height: 64px; }
	.nv-devis-infos { grid-area: infos; }
	.nv-devis-retirer { grid-area: retirer; }
	.nv-devis-qte { grid-area: qte; justify-self: start; }
}

.nv-panier-toast.nv-erreur {
	background: var(--nv-devis-primary);
}
