/* NJP Tarifs : formulaire de demande en bandeau [njp_bandeau] */
.njp-bd {
	--njp-accent: #4cb85c;
	--bd-fond: #fff;
	--bd-texte: #1f2933;
	--bd-doux: #5f6b76;
	--bd-trait: #d5dbe0;
	--bd-champ: #fff;
	--bd-err: #c62828;
	--bd-bouton: var(--njp-accent);
	--bd-bouton-texte: #fff;
	container: njpbd / inline-size;
	background: var(--bd-fond);
	color: var(--bd-texte);
	border: 1px solid var(--bd-trait);
	border-radius: 12px;
	padding: 20px 24px;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
}
.njp-bd--vert {
	--bd-fond: var(--njp-accent);
	--bd-texte: #fff;
	--bd-doux: rgba(255, 255, 255, .88);
	--bd-trait: rgba(255, 255, 255, .35);
	--bd-err: #fff3c4;
	--bd-bouton: #1f2933;
	border-color: transparent;
}
.njp-bd--transparent {
	--bd-fond: transparent;
	border: 0;
	padding: 0;
}
.njp-bd *,
.njp-bd *::before,
.njp-bd *::after {
	box-sizing: border-box;
}
.njp-bd [hidden] {
	display: none !important;
}

/* En-tête : choix du profil + promesse */
.njp-bd .njp-bd__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-bottom: 14px;
}
.njp-bd .njp-bd__titre {
	flex-basis: 100%;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1.15em;
	font-weight: 800;
	color: inherit;
}
.njp-bd .njp-bd__switch {
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .06);
}
.njp-bd--vert .njp-bd__switch {
	background: rgba(0, 0, 0, .15);
}
.njp-bd .njp-bd__switch label {
	position: relative;
	margin: 0 !important;
	cursor: pointer;
}
.njp-bd .njp-bd__switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.njp-bd .njp-bd__switch span {
	display: block;
	padding: 7px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .93em;
	color: var(--bd-doux);
	transition: background .15s, color .15s;
}
.njp-bd .njp-bd__switch input:checked + span {
	background: #fff;
	color: #1f2933;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.njp-bd .njp-bd__switch input:focus-visible + span {
	outline: 2px solid var(--bd-texte);
	outline-offset: 1px;
}
.njp-bd .njp-bd__promesse {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 600;
	font-size: .93em;
	color: inherit;
}
.njp-bd .njp-bd__promesse svg {
	color: var(--njp-accent);
	flex: 0 0 auto;
}
.njp-bd--vert .njp-bd__promesse svg {
	color: #fff;
}

/* Blocs et grilles */
.njp-bd fieldset.njp-bd__bloc {
	border: 0;
	margin: 0 0 10px;
	padding: 0;
	min-width: 0;
}
.njp-bd .njp-bd__bloc legend {
	padding: 0;
	margin: 0 0 6px;
	font-size: .75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--bd-doux);
}
.njp-bd .njp-bd__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 12px;
}
.njp-bd .njp-bd__f {
	min-width: 0;
}
.njp-bd .njp-bd__f--large {
	grid-column: 1 / -1;
}
.njp-bd .njp-bd__f label {
	display: block;
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-size: .85em;
	font-weight: 600;
	color: inherit;
}
.njp-bd .njp-bd__opt {
	font-weight: 400;
	color: var(--bd-doux);
}
.njp-bd input[type="text"],
.njp-bd input[type="tel"],
.njp-bd input[type="email"],
.njp-bd input[type="date"],
.njp-bd select,
.njp-bd textarea {
	display: block;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 12px !important;
	border: 1px solid var(--bd-trait) !important;
	border-radius: 8px !important;
	background-color: var(--bd-champ) !important;
	color: #1f2933 !important;
	font: inherit !important;
	font-size: 16px !important; /* pas de zoom sur iPhone */
	line-height: 1.3 !important;
	box-shadow: none !important;
}
.njp-bd--vert input,
.njp-bd--vert select,
.njp-bd--vert textarea {
	border-color: transparent !important;
}
.njp-bd select {
	padding-right: 30px !important;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6b76' stroke-width='1.6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 11px center !important;
	text-overflow: ellipsis;
}
.njp-bd input:focus,
.njp-bd select:focus,
.njp-bd textarea:focus {
	outline: 3px solid color-mix(in srgb, var(--njp-accent) 35%, transparent);
	outline-offset: 0;
	border-color: var(--njp-accent) !important;
}
.njp-bd .njp-bd__f.is-off select {
	opacity: .55;
}
.njp-bd .njp-bd__date {
	margin-top: 6px !important;
}
.njp-bd [aria-invalid="true"] {
	border-color: var(--bd-err) !important;
	box-shadow: 0 0 0 1px var(--bd-err) !important;
}
.njp-bd .njp-bd__err {
	margin: 4px 0 0 !important;
	padding: 0 !important;
	font-size: .82em;
	font-weight: 600;
	color: var(--bd-err);
}

/* Pied : infos + bouton */
.njp-bd .njp-bd__foot {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 6px;
}
.njp-bd .njp-bd__infos {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: .85em;
	color: var(--bd-doux);
}
.njp-bd .njp-bd__infos p {
	margin: 0 !important;
	padding: 0 !important;
	color: inherit;
}
.njp-bd .njp-bd__ajout {
	align-self: flex-start;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.njp-bd .njp-bd__urgence a {
	color: var(--bd-texte);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}
.njp-bd--clair .njp-bd__urgence a,
.njp-bd--transparent .njp-bd__urgence a {
	color: var(--njp-accent);
}
.njp-bd .njp-bd__envoyer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 22px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--bd-bouton) !important;
	color: var(--bd-bouton-texte) !important;
	font: inherit;
	font-size: 1em !important;
	font-weight: 800 !important;
	letter-spacing: .02em;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .15s, transform .1s;
}
.njp-bd .njp-bd__envoyer:hover {
	filter: brightness(.92);
}
.njp-bd .njp-bd__envoyer:active {
	transform: translateY(1px);
}
.njp-bd .njp-bd__envoyer.is-envoi {
	opacity: .7;
	cursor: wait;
}
.njp-bd .njp-bd__envoyer.is-envoi svg {
	animation: njp-bd-glisse .8s ease-in-out infinite alternate;
}
@keyframes njp-bd-glisse {
	to { transform: translateX(4px); }
}
.njp-bd .njp-bd__erreur {
	margin: 4px 0 8px !important;
	padding: 9px 12px !important;
	border-radius: 8px;
	background: #fdecea;
	color: #c62828;
	font-weight: 600;
	font-size: .9em;
}
.njp-bd .njp-bd__test {
	margin: 0 0 10px !important;
	padding: 6px 10px !important;
	border-radius: 6px;
	background: #fff4e5;
	color: #8a4b00;
	font-size: .82em;
}
.njp-bd .njp-bd__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Confirmation */
.njp-bd .njp-bd__succes {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 0;
	outline: none;
}
.njp-bd .njp-bd__check {
	flex: 0 0 auto;
	color: var(--njp-accent);
}
.njp-bd--vert .njp-bd__check {
	color: #fff;
}
.njp-bd .njp-bd__succes p {
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: inherit;
}
.njp-bd .njp-bd__succes-titre {
	font-size: 1.15em;
	font-weight: 800;
}
.njp-bd .njp-bd__succes a {
	color: inherit;
	font-weight: 800;
	white-space: nowrap;
}

/* ---------- Largeurs ---------- */
@container njpbd (min-width: 520px) {
	/* Grille sur 6 colonnes : 2 champs larges puis 3 par ligne, sans case vide */
	.njp-bd .njp-bd__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	.njp-bd .njp-bd__grid--besoin .njp-bd__f:nth-child(-n+2) {
		grid-column: span 3;
	}
	.njp-bd .njp-bd__grid--besoin .njp-bd__f:nth-child(n+3) {
		grid-column: span 2;
	}
	.njp-bd .njp-bd__grid--contact .njp-bd__f {
		grid-column: span 2;
	}
	.njp-bd .njp-bd__grid--contact:has([data-pro]:not([hidden])) .njp-bd__f {
		grid-column: span 3;
	}
	.njp-bd .njp-bd__grid .njp-bd__f--large {
		grid-column: 1 / -1;
	}
}
@container njpbd (min-width: 760px) {
	.njp-bd .njp-bd__foot {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 20px;
	}
	.njp-bd .njp-bd__envoyer {
		width: auto;
		min-width: 240px;
	}
}
@container njpbd (min-width: 980px) {
	/* Bandeau : le besoin sur une ligne, les coordonnées sur une ligne */
	.njp-bd .njp-bd__grid--besoin {
		grid-template-columns: 1.4fr 1.3fr 1fr 1fr 1.1fr;
	}
	.njp-bd .njp-bd__grid--besoin .njp-bd__f:nth-child(n) {
		grid-column: auto;
	}
	.njp-bd .njp-bd__grid--contact,
	.njp-bd .njp-bd__grid--contact:has([data-pro]:not([hidden])) {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}
	.njp-bd .njp-bd__grid--contact .njp-bd__f,
	.njp-bd .njp-bd__grid--contact:has([data-pro]:not([hidden])) .njp-bd__f {
		grid-column: auto;
	}
	.njp-bd .njp-bd__grid .njp-bd__f--large {
		grid-column: 1 / -1;
	}
}

@media (hover: none) {
	.njp-bd .njp-bd__envoyer:hover {
		filter: none;
	}
}

/* ---------- Mode deux étapes (etapes="oui") ---------- */
.njp-bd .njp-bd__etapes {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-size: .88em;
	font-weight: 600;
}
.njp-bd .njp-bd__etapes li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--bd-doux);
	list-style: none !important;
}
.njp-bd .njp-bd__etapes li + li::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 2px;
	margin-right: 4px;
	background: var(--bd-trait);
	border-radius: 2px;
}
.njp-bd .njp-bd__etapes li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--bd-trait);
	font-size: .85em;
	font-weight: 800;
}
.njp-bd .njp-bd__etapes li.is-active {
	color: var(--bd-texte);
}
.njp-bd .njp-bd__etapes li.is-active span {
	background: var(--njp-accent);
	border-color: var(--njp-accent);
	color: #fff;
}
.njp-bd--vert .njp-bd__etapes li.is-active span {
	background: #fff;
	border-color: #fff;
	color: var(--njp-accent);
}
.njp-bd .njp-bd__etapes li.is-fait span {
	border-color: currentColor;
}

.njp-bd .njp-bd__recap {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0 0 10px !important;
	padding: 8px 12px !important;
	border-radius: 8px;
	background: rgba(0, 0, 0, .05);
	font-size: .9em;
	font-weight: 600;
	color: inherit;
}
.njp-bd--vert .njp-bd__recap {
	background: rgba(0, 0, 0, .14);
}
.njp-bd .njp-bd__modifier,
.njp-bd .njp-bd__retour {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.njp-bd .njp-bd__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}
.njp-bd .njp-bd__actions .njp-bd__envoyer,
.njp-bd .njp-bd__suivant {
	flex: 1 1 auto;
}
.njp-bd .njp-bd__suivant {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--bd-bouton) !important;
	color: var(--bd-bouton-texte) !important;
	font: inherit;
	font-size: 1em !important;
	font-weight: 800 !important;
	cursor: pointer;
	white-space: nowrap;
}
.njp-bd .njp-bd__suivant:hover {
	filter: brightness(.92);
}
/* Étape 1 : Continuer seul ; étape 2 : Retour + Envoyer + message */
.njp-bd.is-etape-1 .njp-bd__envoyer,
.njp-bd.is-etape-1 .njp-bd__retour,
.njp-bd.is-etape-2 .njp-bd__suivant {
	display: none !important;
}
@container njpbd (min-width: 760px) {
	.njp-bd .njp-bd__actions .njp-bd__envoyer,
	.njp-bd .njp-bd__suivant {
		flex: 0 0 auto;
		min-width: 240px;
	}
}

/* Petits écrans : étapes sans coupure, boutons qui passent à la ligne,
   nombre de bennes et code postal côte à côte */
.njp-bd .njp-bd__etapes {
	flex-wrap: wrap;
}
.njp-bd .njp-bd__etapes li {
	white-space: nowrap;
}
.njp-bd .njp-bd__actions {
	flex-wrap: wrap;
}
.njp-bd .njp-bd__actions .njp-bd__envoyer {
	flex: 1 1 200px;
	min-width: 0;
	white-space: normal;
}
@container njpbd (max-width: 519px) {
	.njp-bd .njp-bd__grid--besoin {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.njp-bd .njp-bd__grid--besoin .njp-bd__f {
		grid-column: 1 / -1;
	}
	.njp-bd .njp-bd__grid--besoin .njp-bd__f:nth-child(3),
	.njp-bd .njp-bd__grid--besoin .njp-bd__f:nth-child(4) {
		grid-column: span 1;
	}
	.njp-bd .njp-bd__etapes li + li::before {
		width: 12px;
	}
}
@container njpbd (max-width: 519px) {
	.njp-bd .njp-bd__actions {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 10px;
	}
	.njp-bd .njp-bd__actions .njp-bd__envoyer,
	.njp-bd .njp-bd__actions .njp-bd__suivant {
		flex: none;
		width: 100%;
		white-space: nowrap;
	}
	.njp-bd .njp-bd__retour {
		align-self: center;
	}
	.njp-bd .njp-bd__etapes li + li::before {
		display: none;
	}
	.njp-bd .njp-bd__etapes {
		gap: 6px 14px;
	}
}

/* ---------- Version verticale [njp_demande] ----------
   Toujours en colonne, quelle que soit la largeur disponible. */
.njp-bd.njp-bd--vertical {
	container-type: normal;
	max-width: 520px;
	padding: 20px;
}
.njp-bd--vertical .njp-bd__head {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.njp-bd--vertical .njp-bd__grid,
.njp-bd--vertical .njp-bd__grid--besoin,
.njp-bd--vertical .njp-bd__grid--contact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.njp-bd--vertical .njp-bd__grid .njp-bd__f {
	grid-column: 1 / -1;
}
/* Nombre de bennes et code postal côte à côte */
.njp-bd--vertical .njp-bd__grid--besoin .njp-bd__f:nth-child(3),
.njp-bd--vertical .njp-bd__grid--besoin .njp-bd__f:nth-child(4) {
	grid-column: span 1;
}
.njp-bd--vertical .njp-bd__foot {
	flex-direction: column;
	align-items: stretch;
}
.njp-bd--vertical .njp-bd__actions {
	flex-direction: column-reverse;
	align-items: stretch;
	gap: 10px;
}
.njp-bd--vertical .njp-bd__actions .njp-bd__envoyer,
.njp-bd--vertical .njp-bd__actions .njp-bd__suivant {
	flex: none;
	width: 100%;
	min-width: 0;
	white-space: nowrap;
}
.njp-bd--vertical .njp-bd__retour {
	align-self: center;
}

/* Type imposé (version spécialisée) */
.njp-bd .njp-bd__type-fixe {
	margin: 0 !important;
	padding: 10px 12px !important;
	border-radius: 8px;
	background: color-mix(in srgb, var(--njp-accent) 12%, transparent);
	font-size: 1em;
	color: inherit;
}
.njp-bd .njp-bd__type-fixe strong {
	color: var(--njp-accent);
	font-weight: 800;
}

/* Volume masqué (aucun type choisi, ou type sans grille de prix) */
@container njpbd (min-width: 520px) {
	.njp-bd .njp-bd__grid--besoin.sans-volume .njp-bd__f:nth-child(n) {
		grid-column: span 2;
	}
	.njp-bd .njp-bd__grid--besoin.sans-volume .njp-bd__f:first-child {
		grid-column: span 6;
	}
}
@container njpbd (min-width: 980px) {
	.njp-bd .njp-bd__grid--besoin.sans-volume {
		grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	}
	.njp-bd .njp-bd__grid--besoin.sans-volume .njp-bd__f:nth-child(n) {
		grid-column: auto;
	}
}

/* Type de benne et volume sur la même ligne : l'apparition du volume
   ne change pas la hauteur du formulaire (pas de saut de la page). */
.njp-bd--vertical .njp-bd__grid--besoin .njp-bd__f:nth-child(1),
.njp-bd--vertical .njp-bd__grid--besoin .njp-bd__f:nth-child(2) {
	grid-column: span 1;
}
.njp-bd--vertical .njp-bd__grid--besoin.sans-volume .njp-bd__f:nth-child(1) {
	grid-column: 1 / -1;
}
@container njpbd (max-width: 519px) {
	.njp-bd .njp-bd__grid--besoin .njp-bd__f:nth-child(1),
	.njp-bd .njp-bd__grid--besoin .njp-bd__f:nth-child(2) {
		grid-column: span 1;
	}
	.njp-bd .njp-bd__grid--besoin.sans-volume .njp-bd__f:nth-child(1) {
		grid-column: 1 / -1;
	}
}
.njp-bd [data-volume]:not([hidden]) {
	animation: njp-bd-apparait .25s ease-out;
}
@keyframes njp-bd-apparait {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.njp-bd [data-volume]:not([hidden]) {
		animation: none;
	}
}
/* Hauteur fixe entre les deux étapes : le cadre a la hauteur de la plus haute */
.njp-bd {
	box-sizing: border-box;
}
.njp-bd.is-envoye {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/* Vertical : nom + société et téléphone + e-mail côte à côte si la colonne le permet */
.njp-bd.njp-bd--vertical {
	container: njpv / inline-size;
}
@container njpv (min-width: 260px) {
	.njp-bd--vertical .njp-bd__grid--contact .njp-bd__f {
		grid-column: span 1;
	}
	.njp-bd--vertical .njp-bd__grid--contact:not(:has([data-pro]:not([hidden]))) .njp-bd__f:first-child,
	.njp-bd--vertical .njp-bd__grid--contact .njp-bd__f--large {
		grid-column: 1 / -1;
	}
}

/* Big bag : « Nombre de big bags » prend la place du volume, sans « Nombre de bennes » ;
   le code postal occupe alors toute la ligne, la hauteur ne change pas. */
.njp-bd--vertical .njp-bd__grid--besoin.sans-qte .njp-bd__f:nth-child(4) {
	grid-column: 1 / -1;
}
@container njpbd (max-width: 519px) {
	.njp-bd .njp-bd__grid--besoin.sans-qte .njp-bd__f:nth-child(4) {
		grid-column: 1 / -1;
	}
}
@container njpbd (min-width: 520px) {
	.njp-bd .njp-bd__grid--besoin.sans-qte .njp-bd__f:nth-child(n) {
		grid-column: span 3;
	}
}
@container njpbd (min-width: 980px) {
	.njp-bd .njp-bd__grid--besoin.sans-qte {
		grid-template-columns: 1.4fr 1.3fr 1fr 1.1fr;
	}
	.njp-bd .njp-bd__grid--besoin.sans-qte .njp-bd__f:nth-child(n) {
		grid-column: auto;
	}
}
.njp-bd [data-choix-bigbag]:not([hidden]) {
	animation: njp-bd-apparait .25s ease-out;
}

/* Lien « Quel volume choisir ? » sur la ligne du libellé (aucune hauteur en plus) */
.njp-bd .njp-bd__label-ligne {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 4px;
}
.njp-bd .njp-bd__label-ligne label {
	margin: 0 !important;
}
.njp-bd .njp-bd__guide {
	font-size: .78em;
	font-weight: 600;
	color: var(--bd-doux);
	text-decoration: underline;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .2s;
}
.njp-bd .njp-bd__guide::after {
	content: " ↗";
}
.njp-bd .njp-bd__guide.is-avant {
	color: var(--njp-accent);
	font-weight: 800;
}
.njp-bd--vert .njp-bd__guide.is-avant {
	color: #fff;
}

.njp-bd .njp-bd__guide-court {
	display: none;
}
@container njpv (max-width: 420px) {
	.njp-bd .njp-bd__guide-long { display: none; }
	.njp-bd .njp-bd__guide-court { display: inline; }
}
@container njpbd (max-width: 519px) {
	.njp-bd .njp-bd__guide-long { display: none; }
	.njp-bd .njp-bd__guide-court { display: inline; }
}

/* Très petite colonne (mobile) : lien « Aide », listes moins rembourrées */
@container njpv (max-width: 320px) {
	.njp-bd .njp-bd__guide-plus { display: none; }
	.njp-bd--vertical .njp-bd__grid--besoin .njp-bd__f:nth-child(-n+2) select {
		padding-left: 10px !important;
		padding-right: 24px !important;
		background-position: right 8px center !important;
	}
}
@container njpbd (max-width: 360px) {
	.njp-bd .njp-bd__guide-plus { display: none; }
}

/* Étape 2 aussi compacte que l'étape 1, pour ne pas laisser de vide sous « Continuer » :
   « Retour » à gauche du bouton, rappel sur une ligne à la place du titre. */
.njp-bd--vertical .njp-bd__actions {
	flex-direction: row;
	align-items: center;
	gap: 14px;
}
.njp-bd--vertical .njp-bd__actions .njp-bd__envoyer,
.njp-bd--vertical .njp-bd__actions .njp-bd__suivant {
	flex: 1 1 auto;
	width: auto;
}
.njp-bd--vertical .njp-bd__retour {
	align-self: center;
	flex: 0 0 auto;
}
.njp-bd--vertical.is-etape-2 [data-etape="2"] legend {
	display: none;
}
.njp-bd--vertical .njp-bd__recap {
	margin-bottom: 8px !important;
	padding: 6px 10px !important;
	font-size: .85em;
}
.njp-bd--vertical .njp-bd__infos {
	gap: 2px;
}
.njp-bd--vertical .njp-bd__actions {
	flex-wrap: nowrap;
}
.njp-bd--vertical .njp-bd__actions .njp-bd__envoyer {
	flex: 1 1 0;
	min-width: 0;
}

/* ---------- Deux étapes superposées (hauteur stable, sans calcul) ---------- */
.njp-bd--etapes .njp-bd__pile {
	display: grid;
}
.njp-bd--etapes .njp-bd__pile > .njp-bd__bloc {
	grid-area: 1 / 1;
}
.njp-bd .njp-bd__bloc.is-cache {
	visibility: hidden;
	pointer-events: none;
}
.njp-bd .njp-bd__bloc > .njp-bd__ajout {
	display: block;
	margin-top: 8px;
	font-size: .85em;
	color: var(--bd-doux);
}

/* ---------- Version verticale sans requêtes de conteneur ----------
   Certains optimiseurs CSS (Divi, cache) suppriment les requêtes de conteneur :
   la version verticale n'en dépend plus. Coordonnées toujours deux par ligne,
   comme « Nombre de bennes » et « Code postal », pour que l'étape 2 ne soit
   jamais plus haute que l'étape 1. */
.njp-bd--vertical .njp-bd__grid--contact .njp-bd__f {
	grid-column: span 1;
}
.njp-bd--vertical .njp-bd__grid--contact:not(:has([data-pro]:not([hidden]))) .njp-bd__f:first-child,
.njp-bd--vertical .njp-bd__grid--contact .njp-bd__f--large {
	grid-column: 1 / -1;
}
.njp-bd--vertical .njp-bd__guide-long {
	display: none;
}
.njp-bd--vertical .njp-bd__guide-court {
	display: inline;
}
.njp-bd--vertical .njp-bd__grid--besoin .njp-bd__f:nth-child(-n+2) select {
	padding-left: 10px !important;
	padding-right: 24px !important;
	background-position: right 8px center !important;
}
/* Le rappel du besoin tient lieu de titre à l'étape 2 (aussi pendant l'étape 1,
   pour que l'étape 2 cachée ne soit pas plus haute que l'étape 1). */
.njp-bd--vertical.njp-bd--etapes [data-etape="2"] legend {
	display: none;
}
.njp-bd--vertical .njp-bd__bloc > .njp-bd__ajout {
	margin-top: 6px;
}
