/* ==========================================================================
   AquaLowtech — Panier Vivant (/comparateur-compatibilite/)
   Mobile-first. Trois blocs à plat (bac, ajout, panier), sans boîtes
   imbriquées ; en desktop, réglages à gauche et panier collant à droite.
   Couleurs : variables --cmp-* de comparateur.css.
   ========================================================================== */

.pv-app { min-width: 0; }

@media (min-width: 1000px) {
	/* Deux colonnes : un peu plus large que les sections éditoriales (900 px). */
	#panier-vivant { width: min(1080px, calc(100vw - 48px)); align-self: center; }
}

.pv-app__entete { margin-bottom: 1.25rem; }

.pv-app__titre {
	font-size: clamp(1.35rem, 3.5vw, 1.7rem);
	color: var(--cmp-green);
	margin: 0 0 0.25rem;
}

.pv-app__intro { margin: 0; color: var(--cmp-muted); font-size: 0.95rem; line-height: 1.5; }

.pv-noscript {
	background: var(--cmp-orange-light);
	border-radius: 10px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
}

.pv-grille { display: grid; gap: 1rem; }
.pv-config { display: grid; gap: 1rem; align-content: start; min-width: 0; }

@media (min-width: 900px) {
	.pv-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
	.pv-panier { position: sticky; top: 90px; }
}

/* ── Blocs ──────────────────────────────────────────────────────────────── */

.pv-bloc {
	background: #fff;
	border: 1px solid var(--cmp-border);
	border-radius: 16px;
	padding: 1.1rem;
	margin: 0;
	min-width: 0;
}

.pv-bloc__titre {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-main);
	font-size: 1rem;
	font-weight: 700;
	color: var(--cmp-text);
	margin: 0 0 0.9rem;
	padding: 0;
}

/* legend de fieldset : se comporte comme un titre de bloc ordinaire. */
legend.pv-bloc__titre { float: left; width: 100%; }
legend.pv-bloc__titre + * { clear: both; }

.pv-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--cmp-green-light);
	color: var(--cmp-green);
	font-size: 0.8rem;
	font-weight: 800;
}

/* ── 1 · Ton bac ────────────────────────────────────────────────────────── */

.pv-bac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; }

.pv-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--cmp-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.35rem;
}

.pv-stepper {
	display: flex;
	align-items: center;
	height: 48px;
	border: 1px solid var(--cmp-border);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	/* Sans cela, iOS attend un second appui pour décider s'il doit zoomer : le
	   deuxième appui d'une série rapide est avalé par le geste de zoom, et un
	   appui sur deux semble ne rien faire. Même remède que base.css et legacy.css. */
	touch-action: manipulation;
}

.pv-stepper:focus-within { border-color: var(--cmp-green); box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.15); }

.pv-stepper__btn {
	flex: 0 0 44px;
	height: 100%;
	border: none;
	background: none;
	color: var(--cmp-green);
	font-size: 1.3rem;
	font-weight: 700;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

/* Au doigt, :hover reste collé après l'appui et peut coûter un premier appui
   « pour rien » : on le réserve aux pointeurs qui survolent vraiment. */
@media (hover: hover) and (pointer: fine) {
	.pv-stepper__btn:hover { background: var(--cmp-green-light); }
}

/* Retour tactile immédiat, à la place du survol. */
.pv-stepper__btn:active { background: var(--cmp-green-light); }

.pv-stepper__input {
	/* Base nulle des deux côtés (champ et unité) : le milieu se partage à égalité,
	   sinon la largeur 100 % du champ absorbe tout l'espace. */
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	border: none;
	outline: none;
	background: none;
	/* La valeur et son unité se partagent le milieu à parts égales : le nombre
	   finit sur l'axe du réglage, « L » commence juste après. La paire « 80 L »
	   est donc centrée, et les boutons gardent leurs 44 px. */
	text-align: right;
	touch-action: manipulation;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--cmp-text);
	-moz-appearance: textfield;
}

.pv-stepper__input::-webkit-outer-spin-button,
.pv-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pv-stepper__input[aria-invalid="true"] { color: var(--cmp-red); }

/* Contrepoids du champ : même flex, donc le nombre s'arrête pile au centre. */
.pv-stepper__unite { flex: 1 1 0; text-align: left; padding: 0 0.2rem 0 0.25rem; font-weight: 700; color: var(--cmp-muted); }

/* Même traitement pour toutes les commandes du bac : au doigt, un appui doit
   valoir une action, sans attente de double-appui ni zoom. Le reste du thème le
   fait déjà (base.css, legacy.css, single.css) ; panier.css était l'exception. */
.pv-preset,
.pv-chip,
.pv-vider,
.pv-cta,
.pv-sticky__cta,
.pv-item__suppr,
.pv-ajout__annuler,
.pv-qty .cmp-qty-btn {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.pv-select {
	width: 100%;
	height: 48px;
	border: 1px solid var(--cmp-border);
	border-radius: 12px;
	background: #fff;
	padding: 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--cmp-text);
	cursor: pointer;
}

.pv-select:focus-visible { outline: none; border-color: var(--cmp-green); box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.15); }

.pv-presets { display: flex; gap: 0.4rem; margin: 0.75rem 0 0; }

.pv-preset {
	flex: 1 1 0;
	border: 1px solid var(--cmp-border);
	background: #fff;
	border-radius: 50px;
	padding: 0.45rem 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--cmp-muted);
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.pv-preset:hover { border-color: var(--cmp-green-mid); color: var(--cmp-green); }
.pv-preset.is-actif { background: var(--cmp-green-light); border-color: var(--cmp-green); color: var(--cmp-green); }

/* Interrupteur Low-tech */
.pv-switch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--cmp-border);
	cursor: pointer;
	font-weight: 600;
	font-size: 0.92rem;
}

.pv-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.pv-switch__piste {
	position: relative;
	flex: 0 0 44px;
	height: 26px;
	border-radius: 50px;
	background: #cfd8d3;
	transition: background 0.2s;
}

.pv-switch__piste::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}

.pv-switch input:checked + .pv-switch__piste { background: var(--cmp-green); }
.pv-switch input:checked + .pv-switch__piste::after { transform: translateX(18px); }
.pv-switch input:focus-visible + .pv-switch__piste { outline: 2px solid var(--cmp-green); outline-offset: 2px; }
.pv-switch__texte small { display: block; font-weight: 500; color: var(--cmp-muted); font-size: 0.78rem; }

/* ── 2 · Ajout ──────────────────────────────────────────────────────────── */

.pv-recherche {
	width: 100%;
	height: 52px;
	border: 2px solid var(--cmp-border);
	border-radius: 14px;
	padding: 0 1rem 0 2.75rem;
	font-size: 1rem;
	color: var(--cmp-text);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2356675b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m17 17-3.5-3.5'/%3E%3C/svg%3E") no-repeat 0.9rem center;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pv-recherche:focus { outline: none; border-color: var(--cmp-green); box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.15); }

.pv-search .cmp-dropdown { max-height: 320px; border-radius: 12px; }
.pv-search .cmp-dropdown-item { min-height: 44px; }
.pv-search .cmp-dropdown-item.is-active,
.pv-search .cmp-dropdown-item:hover:not([disabled]) { background: var(--cmp-green-light); }
.pv-search .cmp-dropdown-item[disabled] { cursor: default; opacity: 0.55; }

.pv-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.85rem; }

.pv-suggestions__label {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--cmp-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-right: 0.15rem;
}

.pv-chip {
	border: 1px solid var(--cmp-border);
	background: #fff;
	color: var(--cmp-text);
	border-radius: 50px;
	padding: 0.4rem 0.8rem;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.pv-chip:hover { background: var(--cmp-green); border-color: var(--cmp-green); color: #fff; }

/* ── 3 · Panier ─────────────────────────────────────────────────────────── */

.pv-panier {
	background: #fff;
	border: 1px solid var(--cmp-border);
	border-radius: 16px;
	padding: 1.1rem;
	box-shadow: var(--cmp-shadow);
	min-width: 0;
}

.pv-panier__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pv-panier__head .pv-bloc__titre { margin-bottom: 0.75rem; }

.pv-count { font-weight: 500; color: var(--cmp-muted); font-size: 0.9rem; }
.pv-app--analyse .pv-count::after { content: " · analyse…"; font-style: italic; }

.pv-vider {
	border: none;
	background: none;
	color: var(--cmp-muted);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	padding: 0.25rem;
	margin-bottom: 0.75rem;
}

.pv-vider.is-arme { color: var(--cmp-red); }

/* Équilibre naturel : verdict qualitatif du bac entier (pastille, titre, phrase), sans chiffre. */
.pv-equilibre {
	margin-bottom: 0.9rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--cmp-border);
	border-radius: 10px;
	background: #fff;
	transition: opacity 0.2s;
}
.pv-equilibre[hidden] { display: none; }
/* Nouvelle analyse en route : l'ancien verdict reste lisible, estompé. */
.pv-equilibre--maj { opacity: 0.6; }

.pv-equilibre__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.4rem 0.75rem;
}

.pv-equilibre__label { color: var(--cmp-muted); text-transform: uppercase; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; }
.pv-equilibre__titre { margin: 0.45rem 0 0; font-size: 0.95rem; font-weight: 700; color: var(--cmp-text); line-height: 1.35; }
.pv-equilibre__titre:empty { display: none; }
.pv-equilibre__message { margin: 0.25rem 0 0; font-size: 0.84rem; color: var(--cmp-text); line-height: 1.5; }
.pv-equilibre__message:empty { display: none; }
/* Plusieurs causes : une par ligne plutôt qu'un paragraphe empilé. */
.pv-equilibre__causes { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }

/* Ce que change la bascule « Bac sans filtre », sous l'interrupteur. */
.pv-switch__aide { margin: 0.4rem 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--cmp-muted); }

/* Sans filtre : pourquoi une espèce est déconseillée ou demande des précautions (conseil de sa fiche). */
.pv-item__conseil { margin: 0.45rem 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--cmp-text); }
.pv-item__conseil--rouge strong { color: var(--cmp-red); }
.pv-item__conseil--orange strong { color: #9a5b00; }

/* Volume non renseigné : carte sans verdict (ni couleur ni badge). */
.pv-item--neutre { border-left-color: var(--cmp-border); }

/* Alerte « info » : repère sans effet sur le verdict (ex. volume conseillé sans filtre, en bac filtré). */
.pv-alerte--info { color: var(--cmp-muted); font-weight: 500; }

/* Fenêtre du rapport, volume non renseigné : la demande de volume remplace le formulaire. */
.pv-modal-volume { padding: 0 1.5rem 1.5rem; }
.pv-modal-volume[hidden], #pv-form[hidden] { display: none; }
.pv-modal-volume p { margin: 0 0 1rem; line-height: 1.5; }

/* Menu de recherche : verdict Low-tech après le nom latin (mode sans filtre). */
.cmp-dropdown-item .pv-verdict-lt { margin-left: 0.4rem; }

/* Duo : un encadré de fin par méthode, celui du bac du visiteur seul visible. */
.cmp-cta-bloc[hidden] { display: none; }
.cmp-duo-retire .pv-lien-volume { margin-left: 0.25rem; font-style: normal; }

/* Pastille du verdict : ✅ Adapté / 🟠 Réserves / 🔴 Déconseillé (même libellé que le rapport). */
.pv-pastille {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	border-radius: 50px;
	padding: 0.2rem 0.7rem;
	white-space: nowrap;
	background: #f0f0f0;
	color: var(--cmp-muted);
}
.pv-pastille--vert { background: var(--cmp-green-light); color: #1e5631; }
.pv-pastille--orange { background: var(--cmp-orange-light); color: #7a4a00; }
.pv-pastille--rouge { background: var(--cmp-red); color: #fff; }
.pv-pastille--inconnu { background: #f0f0f0; color: var(--cmp-muted); }

/* Verdict Low-tech de la fiche, sur chaque espèce du bac : pastille à contour, comme sur le hub
   (il ne se confond pas avec le badge d'état plein). Mis en avant quand le bac est sans filtre. */
.pv-item__pastilles { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.15rem; }
.pv-item__pastilles .pv-badge { margin-top: 0; }
.pv-verdict-lt {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.1rem 0.5rem;
	border: 1px solid currentColor;
	border-radius: 10px;
	background: #fff;
	white-space: nowrap;
	opacity: 0.8;
}
.pv-verdict-lt--vert { color: #155724; }
.pv-verdict-lt--orange { color: #856404; }
.pv-verdict-lt--rouge { color: #721c24; }
.pv-verdict-lt--actif { opacity: 1; font-weight: 700; }
.pv-verdict-lt--rouge.pv-verdict-lt--actif { background: var(--cmp-red-light); }

/* Avertissement au-dessus du bouton du rapport (mode sans filtre) : le bouton reste actif. */
.pv-alerte-lowtech {
	margin: 0 0 0.75rem;
	padding: 0.6rem 0.85rem;
	border-radius: 10px;
	background: var(--cmp-red-light);
	color: #721c24;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.45;
	text-align: left;
}
.pv-alerte-lowtech[hidden] { display: none; }

/* Encadré « Conseils Low-tech » : seulement quand tous les garde-fous sont respectés. */
.pv-conseils {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: var(--cmp-green-light);
	border: 1px solid var(--cmp-green-mid);
}
.pv-conseils[hidden] { display: none; }
.pv-conseils__titre { margin: 0 0 0.5rem; font-size: 0.98rem; color: #1e5631; }
.pv-conseils__liste { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.84rem; line-height: 1.5; color: var(--cmp-text); }
.pv-conseils a { color: #1e5631; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.pv-conseils__guide { display: inline-block; margin-top: 0.6rem; font-size: 0.85rem; }

/* Invite au volume, cliquable : ramène au champ de l'étape 1 (panier.js, allerAuVolume). */
.pv-lien-volume {
	display: inline;
	padding: 0.2rem 0;
	border: none;
	background: none;
	font: inherit;
	font-weight: 700;
	color: var(--cmp-green);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	touch-action: manipulation;
}
.pv-lien-volume:focus-visible { outline: 2px solid var(--cmp-green); outline-offset: 2px; border-radius: 3px; }

/* Champ de volume atteint depuis l'invite : anneau vert bref, comme .pv-item--flash. */
.pv-stepper--signal { animation: pv-signal 1.6s ease; }

@keyframes pv-signal {
	0%, 100% { box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.15); }
	20%, 65% { box-shadow: 0 0 0 5px var(--cmp-green-mid); }
}

/* Résumé */
.pv-resume {
	border-radius: 10px;
	padding: 0.6rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.9rem;
	line-height: 1.45;
}

/* Analyse de duo : effacée dès que l'une de ses deux espèces quitte le bac.
   .cmp-result-section impose display:flex (comparateur.css) et l'emporterait sur
   l'attribut hidden — panier.css est chargé après, cette règle rétablit l'ordre. */
.cmp-result-section[hidden] { display: none; }

.cmp-duo-retire {
	font-size: 0.9rem;
	color: var(--cmp-muted);
	font-style: italic;
	margin: 0 0 1.5rem;
}

.cmp-duo-retire[hidden] { display: none; }

/* Retour après un ajout venu d'un lien (duo populaire, rapport), avec retour en arrière. */
.pv-ajout {
	border-radius: 10px;
	padding: 0.6rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.9rem;
	line-height: 1.45;
	background: var(--cmp-green-light);
	color: #1e5631;
}

.pv-ajout[hidden] { display: none; }

.pv-ajout__annuler {
	border: none;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	padding: 0.1rem 0.2rem;
}

.pv-resume--mortel { background: var(--cmp-red-light); color: #721c24; }
.pv-resume--vigilance { background: var(--cmp-orange-light); color: #7a4a00; }
.pv-resume--ok { background: var(--cmp-green-light); color: #1e5631; }

/* Espèces */
.pv-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }

.pv-item {
	border: 1px solid var(--cmp-border);
	border-left: 4px solid var(--cmp-border);
	border-radius: 12px;
	padding: 0.65rem 0.75rem;
	background: #fff;
	transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}

.pv-item--ok { border-left-color: var(--cmp-green); }
.pv-item--vigilance { border-left-color: var(--cmp-orange); background: #fffbf2; }
.pv-item--mortel { border-left-color: var(--cmp-red); background: #fdf3f2; }
.pv-item--maj { opacity: 0.7; }
.pv-item--flash { animation: pv-flash 0.8s ease; }

@keyframes pv-flash {
	0%, 100% { box-shadow: none; }
	30% { box-shadow: 0 0 0 3px var(--cmp-green-mid); }
}

.pv-item__main { display: flex; align-items: center; gap: 0.6rem; }
.pv-item__emoji { display: none; } /* le badge porte déjà l'état : un seul signal visuel */

.pv-item__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	flex: 1 1 auto;
	min-width: 0;
}

.pv-item__nom { font-weight: 700; color: var(--cmp-text); font-size: 0.95rem; line-height: 1.3; }
.pv-item__nom:hover { color: var(--cmp-green); text-decoration: underline; }

.pv-item__meta {
	max-width: 100%;
	font-size: 0.74rem;
	color: var(--cmp-muted);
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pv-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	border-radius: 50px;
	padding: 0.1rem 0.5rem;
	margin-top: 0.15rem;
	white-space: nowrap;
}

.pv-badge--mortel { background: var(--cmp-red); color: #fff; }
.pv-badge--vigilance { background: var(--cmp-orange-light); color: #7a4a00; }
.pv-badge--ok { background: var(--cmp-green-light); color: #1e5631; }
.pv-badge--attente { background: #f0f0f0; color: var(--cmp-muted); }

.pv-qty {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	background: #fff;
	border: 1px solid var(--cmp-border);
	border-radius: 10px;
}

.pv-qty .cmp-qty-btn { min-width: 36px; min-height: 36px; padding: 0; }

/* Zone sensible portée à 44 px sans rien déplacer à l'écran : un pseudo-élément
   transparent déborde du bouton, et uniquement là où la mesure montre du vide.
   Relevé à 390 px : 25 px libres au-dessus et en dessous, 83 px à gauche de « − »
   (le nom de l'espèce, qui est un lien, s'arrête bien avant), 0 px entre les
   boutons et le champ de quantité, et seulement 10 px entre « + » et la croix de
   suppression. « + » s'arrête donc à 40 px de large : l'amener à 44 ne laisserait
   que 2 px avant la croix, et un appui décalé supprimerait l'espèce. */
.pv-qty .cmp-qty-btn,
.pv-item__suppr { position: relative; }

.pv-qty .cmp-qty-btn::after,
.pv-item__suppr::after {
	content: "";
	position: absolute;
	top: -4px;
	bottom: -4px;
	left: 0;
	right: 0;
}

.pv-qty .cmp-qty-btn[data-action="moins"]::after { left: -8px; }   /* 44 px de large */
.pv-qty .cmp-qty-btn[data-action="plus"]::after  { right: -4px; }  /* 40 px, 6 px de garde avant ✕ */
.pv-item__suppr::after { right: -8px; }                            /* 44 px, vers le bord de la ligne */
.pv-qty .cmp-qty-input { width: 2.2rem; }
.pv-qty .cmp-qty-input::-webkit-outer-spin-button,
.pv-qty .cmp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pv-qty--solo { font-size: 0.75rem; font-weight: 600; color: var(--cmp-muted); padding: 0.45rem 0.6rem; }

.pv-item__suppr {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: none;
	color: var(--cmp-muted);
	font-size: 0.95rem;
	cursor: pointer;
}

.pv-item__suppr:hover { background: var(--cmp-red-light); color: var(--cmp-red); }

.pv-alertes { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.pv-alerte { font-size: 0.8rem; line-height: 1.4; font-weight: 600; }
.pv-alerte--mortel { color: var(--cmp-red); }
.pv-alerte--vigilance { color: #9a5b00; }
.pv-alerte__avec { font-weight: 500; color: var(--cmp-text); }

.pv-alertes-plus summary {
	margin-top: 0.25rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--cmp-muted);
	cursor: pointer;
}

.pv-alertes-plus .pv-alertes { margin-top: 0.25rem; }

.pv-vide {
	text-align: center;
	color: var(--cmp-muted);
	font-size: 0.9rem;
	line-height: 1.6;
	padding: 1.5rem 0.75rem;
	margin: 0;
	border: 2px dashed var(--cmp-border);
	border-radius: 12px;
}

/* Rapport */
.pv-rapport { margin-top: 1rem; text-align: center; }

.pv-cta {
	width: 100%;
	border: none;
	border-radius: 50px;
	background: var(--aq-orange-cta);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	padding: 1rem 1.25rem;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(184, 90, 14, 0.3);
	transition: background 0.15s, transform 0.15s;
}

.pv-cta:hover { background: var(--aq-orange-cta-survol); transform: translateY(-1px); }

.pv-rapport__note { font-size: 0.76rem; color: var(--cmp-muted); margin: 0.55rem 0 0; line-height: 1.45; }

/* ── Duo SSR (sous le panier) ───────────────────────────────────────────── */

.pv-transparence { font-size: 0.8em; color: #666; margin-top: 15px; font-style: italic; }
.pv-retour { display: block; width: 100%; text-align: center; margin-top: 15px; box-sizing: border-box; }

/* ── Barre mobile ───────────────────────────────────────────────────────── */

.pv-sticky { display: none; }

@media (max-width: 899px) {
	.pv-sticky:not([hidden]) {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 900;
		align-items: center;
		gap: 0.75rem;
		background: #fff;
		border-top: 1px solid var(--cmp-border);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
		padding: 0.6rem 16px calc(0.6rem + env(safe-area-inset-bottom));
	}

	.pv-sticky__jauge {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		font-size: 0.78rem;
		font-weight: 700;
		min-width: 0;
	}

	/* display:flex l'emporterait sur l'attribut hidden : jauge et bouton de volume alternent. */
	.pv-sticky__jauge[hidden], .pv-sticky__volume[hidden] { display: none; }

	/* Volume non renseigné : à la place de la jauge vide, un bouton vers le champ de l'étape 1. */
	.pv-sticky__volume {
		flex: 1 1 auto;
		min-width: 0;
		min-height: 44px;
		border: 1.5px solid var(--cmp-green);
		border-radius: 50px;
		background: #fff;
		color: var(--cmp-green);
		font: inherit;
		font-size: 0.85rem;
		font-weight: 700;
		padding: 0.55rem 0.75rem;
		/* Une ligne, à la hauteur du bouton « Mon rapport » ; sur très petit écran, points de suite. */
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		cursor: pointer;
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
	}
	.pv-sticky__volume:active { background: var(--cmp-green-light); }
	.pv-sticky__volume-court { display: none; }

	.pv-sticky__label { color: var(--cmp-muted); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.05em; }
	.pv-sticky__jauge .pv-pastille { align-self: flex-start; font-size: 0.8rem; }

	/* Boutons flottants du thème (haut / bas de page) : au-dessus de la barre, pas dessus. */
	body.pv-sticky-on .mobile-nav-buttons { bottom: calc(80px + env(safe-area-inset-bottom)); }

	.pv-sticky__cta {
		flex: 0 0 auto;
		border: none;
		border-radius: 50px;
		background: var(--aq-orange-cta);
		color: #fff;
		font-weight: 700;
		font-size: 0.88rem;
		padding: 0.7rem 1.1rem;
		cursor: pointer;
	}

	/* La barre fixe ne doit pas masquer le bas de page. */
	#aqua-comparateur { padding-bottom: 4.5rem; }
}

/* ── Modale ─────────────────────────────────────────────────────────────── */

.aqua-lead-form .pv-prenom {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d6d6d6;
	border-radius: var(--aq-rayon);
	font-size: 15px;
	margin-bottom: 12px;
}

.aqua-lead-form .pv-prenom:focus { outline: none; border-color: #2e7d4f; box-shadow: 0 0 0 3px rgba(46, 125, 79, 0.15); }
.aqua-lead-consent a { color: inherit; text-decoration: underline; }

/* Les lignes du formulaire en display:flex l'emporteraient sur l'attribut hidden. */
#pv-form [hidden] { display: none !important; }

/* Adresse retenue sur cet appareil (1.8.3) : une ligne à la place des deux champs. */
.pv-contact-retenu p {
	margin: 0 0 14px;
	padding: 12px 14px;
	background: #f4f7f5;
	border-radius: var(--aq-rayon);
	font-size: 15px;
	line-height: 1.5;
	color: #1a1a1a;
	overflow-wrap: anywhere;
}
/* Boutons en apparence de lien, zone d'appui confortable au doigt. */
.pv-lien-contact {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	margin: -12px 0;
	border: 0;
	background: none;
	color: #1f5c38;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.pv-lien-contact:focus-visible { outline: 2px solid #2e7d4f; outline-offset: 2px; }

/* La couleur des titres du thème (vert foncé) l'emporte sur le blanc hérité du bandeau. */
#pv-modal .aqua-lead-banner h3 { color: #fff; }

/* ── Petits écrans ──────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	/* L'outil remonte : en-tête plus compact (H1 et texte inchangés pour le SEO)… */
	#aqua-comparateur .cmp-hero { padding-top: 1.75rem; padding-bottom: 1.5rem; }
	#aqua-comparateur .cmp-hero__lead { font-size: 0.9rem; }
	/* … et pas de seconde introduction qui répète le chapeau. */
	.pv-app__intro { display: none; }
	.pv-app__entete { margin-bottom: 0.85rem; }
	/* Volume et eau l'un sous l'autre. En deux colonnes, le réglage de volume ne
	   disposait que de 150 px : 44 px par bouton, 16 px pour l'unité, et 44 px
	   pour la valeur. Le seuil était à 380 px — aucun téléphone récent ne
	   l'atteint (iPhone 14 : 390, 15 Pro : 393, 14 Pro Max : 430). */
	.pv-bac { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
	.pv-bloc, .pv-panier { padding: 0.95rem; }
}

/* Barre mobile sous 360 px : « Indique ton volume » serait tronqué à côté de « Mon rapport ». */
@media (max-width: 359px) {
	.pv-sticky__volume-long { display: none; }
	.pv-sticky__volume-court { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
	.pv-equilibre, .pv-item, .pv-switch__piste, .pv-switch__piste::after { transition: none; }
	.pv-item--flash { animation: none; }
	/* Pas d'animation : l'anneau reste fixe le temps du signal (retiré par panier.js). */
	.pv-stepper--signal { animation: none; box-shadow: 0 0 0 4px var(--cmp-green-mid); }
}
