/*
 * Page de vente. Feuille autonome : le gabarit retire les styles du theme, donc
 * rien n'est hérité et rien n'a besoin de se battre en spécificité. Un seul
 * niveau de classe suffit partout.
 */

.nvf-page {
	--nvf-encre: #16202e;
	--nvf-gris: #5b6774;
	--nvf-texte-doux: #3d4854;
	--nvf-lien: #0f70e6;
	--nvf-action: #1a9e46;
	--nvf-action-survol: #158238;
	--nvf-etoile: #f5a623;
	--nvf-relief: #fff3b0;
	--nvf-relief-bord: #e6b800;
	--nvf-filet: #e3e8ee;
	--nvf-fond-doux: #f6f8fa;
	--nvf-alerte: #d6232a;
	--nvf-largeur: 1120px;

	margin: 0;
	background: #fff;
	color: var(--nvf-encre);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.nvf-page *,
.nvf-page *::before,
.nvf-page *::after { box-sizing: border-box; }

/*
 * Remise a zero enveloppee dans :where(), qui n'ajoute aucune specificite.
 *
 * Sans lui, `.nvf-page p` vaut une classe plus un element et bat toutes les
 * regles `.nvf-quelque-chose { margin-top }`, qui ne valent qu'une classe : les
 * marges verticales des paragraphes et des titres tombaient a zero, et les
 * `margin: auto` ne centraient plus rien. Ici la remise a zero ne pese que le
 * poids de `.nvf-page`, donc la regle ecrite plus bas l'emporte simplement par
 * ordre d'apparition.
 */
.nvf-page :where(img) { display: block; max-width: 100%; height: auto; }
.nvf-page :where(h1, h2, h3) { margin: 0; font-weight: 700; line-height: 1.25; }
.nvf-page :where(p) { margin: 0; }
.nvf-page :where(ul, ol) { margin: 0; padding: 0; list-style: none; }

.nvf-shell {
	width: 100%;
	max-width: var(--nvf-largeur);
	margin-inline: auto;
	padding-inline: 20px;
}

/* ---------------------------------------------------------------- en-tete */

.nvf-masthead {
	padding-block: 16px;
	border-bottom: 1px solid var(--nvf-filet);
	text-align: center;
}

.nvf-masthead__brand {
	color: inherit;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.4px;
	text-decoration: none;
}

/* -------------------------------------------------------------- deux colonnes */

.nvf-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding-block: 32px 48px;
}

.nvf-gallery,
.nvf-buy { min-width: 0; }

/* ------------------------------------------------------------------ galerie */

/*
 * Piste défilante plutôt que calques superposés : le geste tactile est natif,
 * le clavier fonctionne sans code, et une image non chargée n'empêche jamais
 * l'affichage des suivantes.
 */
.nvf-gallery__viewport {
	position: relative;
	border: 1px solid var(--nvf-filet);
	border-radius: 12px;
	overflow: hidden;
	background: var(--nvf-fond-doux);
}

.nvf-gallery__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.nvf-gallery__track::-webkit-scrollbar { display: none; }

.nvf-gallery__slide {
	scroll-snap-align: center;
	scroll-snap-stop: always;
	aspect-ratio: 1 / 1;
}

.nvf-gallery__image { width: 100%; height: 100%; object-fit: cover; }

.nvf-gallery__arrow {
	position: absolute;
	top: 50%;
	translate: 0 -50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--nvf-filet);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--nvf-encre);
	cursor: pointer;
}

.nvf-gallery__arrow:hover { background: #fff; }
.nvf-gallery__arrow::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.nvf-gallery__arrow--prev { left: 10px; }
.nvf-gallery__arrow--prev::before { rotate: -135deg; translate: 2px 0; }
.nvf-gallery__arrow--next { right: 10px; }
.nvf-gallery__arrow--next::before { rotate: 45deg; translate: -2px 0; }

.nvf-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.nvf-gallery__thumb {
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid var(--nvf-filet);
	border-radius: 8px;
	overflow: hidden;
	background: var(--nvf-fond-doux);
	cursor: pointer;
}

.nvf-gallery__thumb.is-current { border-color: var(--nvf-lien); }
.nvf-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ colonne d'achat */

.nvf-buy__title { font-size: 34px; letter-spacing: -0.5px; }
.nvf-buy__tagline { margin-top: 4px; color: var(--nvf-gris); font-size: 17px; }

.nvf-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	color: inherit;
	text-decoration: none;
}

.nvf-rating:hover .nvf-rating__text { text-decoration: underline; }
.nvf-rating__text { color: var(--nvf-gris); font-size: 14px; }

.nvf-stars {
	position: relative;
	display: inline-block;
	color: #d4dae1;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 2px;
}

.nvf-stars__fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--nvf-etoile);
}

.nvf-stars--small { font-size: 15px; }

.nvf-arguments { display: grid; gap: 8px; margin-top: 16px; }

.nvf-arguments li { position: relative; padding-left: 26px; }
.nvf-arguments li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--nvf-action);
	font-weight: 700;
}

/* Le prix respire des deux cotes : il separe les arguments de la grille
 * d'offres, il ne doit se coller ni a l'un ni a l'autre. */
.nvf-headline {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-block: 28px 22px;
}

.nvf-headline__now { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.nvf-headline__was { color: var(--nvf-gris); font-size: 18px; text-decoration: line-through; }
.nvf-headline__off {
	padding: 3px 8px;
	border-radius: 6px;
	background: #e8f1fd;
	color: var(--nvf-lien);
	font-size: 14px;
	font-weight: 700;
}

/* ------------------------------------------------------------ choix de l'offre */

.nvf-picker__set {
	margin: 0;
	padding: 0;
	border: 1px solid var(--nvf-filet);
	border-radius: 12px;
	overflow: hidden;
}

/* Une légende de fieldset reste lue par les lecteurs d'écran sans être vue. */
.nvf-picker__legend {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.nvf-picker__head {
	display: flex;
	justify-content: space-between;
	padding: 10px 16px;
	border-bottom: 2px solid var(--nvf-encre);
	font-size: 14px;
	font-weight: 700;
}

.nvf-deal {
	position: relative;
	display: grid;
	grid-template-columns: 20px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 17px 16px;
	border-bottom: 1px solid var(--nvf-filet);
	cursor: pointer;
	transition: background 0.15s;
}

.nvf-deal:last-child { border-bottom: 0; }
.nvf-deal:hover { background: var(--nvf-fond-doux); }
.nvf-deal:has(.nvf-deal__input:checked) { outline: 2px solid var(--nvf-lien); outline-offset: -2px; }
.nvf-deal:has(.nvf-deal__input:focus-visible) { outline: 3px solid var(--nvf-lien); outline-offset: -3px; }
.nvf-deal:has(.nvf-deal__input:disabled) { opacity: 0.5; cursor: not-allowed; }

.nvf-deal__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nvf-deal__dot {
	width: 20px;
	height: 20px;
	border: 2px solid #b8c2cc;
	border-radius: 50%;
	background: #fff;
}

.nvf-deal__input:checked + .nvf-deal__dot {
	border-color: var(--nvf-lien);
	background: radial-gradient(circle at center, var(--nvf-lien) 0 5px, #fff 6px);
}

.nvf-deal__body { display: grid; gap: 2px; }
.nvf-deal__name { font-size: 15px; font-weight: 600; }
.nvf-deal__name em { color: var(--nvf-gris); font-size: 13px; font-style: normal; font-weight: 400; }
.nvf-deal__gain { color: var(--nvf-action); font-size: 12.5px; font-weight: 700; }
.nvf-deal__price { font-size: 16px; font-weight: 800; white-space: nowrap; }

.nvf-deal--flagged {
	padding-top: 20px;
	border-block: 2px solid var(--nvf-relief-bord);
	background: var(--nvf-relief);
}

.nvf-deal--flagged:hover { background: #ffefa0; }

.nvf-deal__flag {
	position: absolute;
	top: -1px;
	left: 16px;
	translate: 0 -45%;
	padding: 3px 10px;
	border-radius: 4px;
	background: var(--nvf-alerte);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.nvf-submit {
	display: grid;
	grid-auto-flow: column;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 16px;
	padding: 17px 24px;
	border: 0;
	border-radius: 10px;
	background: var(--nvf-action);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s;
}

.nvf-submit:hover { background: var(--nvf-action-survol); }
.nvf-submit[aria-busy="true"] { opacity: 0.75; cursor: wait; }
.nvf-submit__amount { font-weight: 700; text-transform: none; }

.nvf-legal { margin-top: 10px; color: var(--nvf-gris); font-size: 12.5px; }

.nvf-alert {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fdecec;
	color: var(--nvf-alerte);
	font-size: 14px;
	font-weight: 600;
}

.nvf-unavailable {
	margin-top: 18px;
	padding: 16px;
	border: 1px solid var(--nvf-filet);
	border-radius: 10px;
	color: var(--nvf-gris);
}

/* -------------------------------------------------------------- réassurance */

.nvf-assurances { padding-block: 28px; background: var(--nvf-encre); color: #fff; }

.nvf-assurances__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.nvf-assurance { display: grid; grid-template-columns: 26px 1fr; gap: 13px; font-size: 14px; }

.nvf-assurance__icon {
	width: 26px;
	height: 26px;
	margin-top: 1px;
	fill: none;
	stroke: #8ab4ff;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nvf-assurance__body { display: grid; gap: 4px; }
.nvf-assurance__body strong { font-size: 16px; }
.nvf-assurance__body span { color: #aeb9c6; }

/* ------------------------------------------------------------------ méthode */

.nvf-section-title { font-size: 28px; text-align: center; }

.nvf-how { padding-block: 52px; }
.nvf-how__intro { max-width: 720px; margin: 14px auto 0; color: var(--nvf-gris); text-align: center; }

.nvf-how__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 32px;
}

.nvf-step { padding: 24px; border: 1px solid var(--nvf-filet); border-radius: 12px; }

.nvf-step__number {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--nvf-lien);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

.nvf-step__title { font-size: 18px; }
.nvf-step__text { margin-top: 8px; color: var(--nvf-gris); font-size: 15px; }

/* -------------------------------------------------------------------- avis */

.nvf-reviews { padding-block: 52px; background: var(--nvf-fond-doux); }

.nvf-reviews__summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	color: var(--nvf-gris);
}

.nvf-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 30px;
}

.nvf-review {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 20px;
	border: 1px solid var(--nvf-filet);
	border-radius: 12px;
	background: #fff;
}

.nvf-review__meta { display: flex; align-items: center; justify-content: space-between; }
.nvf-review__meta time { color: var(--nvf-gris); font-size: 12px; }
.nvf-review__title { font-size: 15px; }
.nvf-review__text { color: var(--nvf-texte-doux); font-size: 14px; }
.nvf-review__author { color: var(--nvf-gris); font-size: 13px; font-weight: 700; }

/* --------------------------------------------------------------------- FAQ */

.nvf-faq { padding-block: 52px 56px; }
.nvf-faq__list { max-width: 760px; margin: 22px auto 0; border-top: 1px solid var(--nvf-filet); }
.nvf-faq__entry { border-bottom: 1px solid var(--nvf-filet); }

.nvf-faq__entry summary {
	position: relative;
	padding: 16px 40px 16px 4px;
	font-size: 16px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.nvf-faq__entry summary::-webkit-details-marker { display: none; }

.nvf-faq__entry summary::after {
	content: "+";
	position: absolute;
	right: 10px;
	top: 50%;
	translate: 0 -50%;
	color: var(--nvf-lien);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.nvf-faq__entry[open] summary::after { content: "–"; }
.nvf-faq__entry p { padding: 0 4px 18px; color: var(--nvf-gris); font-size: 15px; }

/* ---------------------------------------------------------------- clôture */

.nvf-closing { padding-block: 56px 60px; background: var(--nvf-encre); text-align: center; }
.nvf-closing__title { margin-bottom: 26px; color: #fff; font-size: 28px; }

.nvf-closing__cta {
	display: inline-block;
	padding: 16px 40px;
	border-radius: 10px;
	background: var(--nvf-action);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-decoration: none;
	text-transform: uppercase;
}

.nvf-closing__cta:hover { background: var(--nvf-action-survol); }

.nvf-notes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin-top: 18px;
	color: #aeb9c6;
	font-size: 13px;
}

.nvf-notes li { position: relative; padding-left: 20px; }
.nvf-notes li::before { content: "✓"; position: absolute; left: 0; color: var(--nvf-action); font-weight: 700; }

/* ------------------------------------------------------------------ colophon */

.nvf-colophon { padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); background: var(--nvf-encre); }

.nvf-colophon__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
}

.nvf-colophon__brand { color: #aeb9c6; font-size: 13px; }
.nvf-colophon__brand strong { color: #fff; }
.nvf-colophon__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nvf-colophon__links a { color: #aeb9c6; font-size: 13px; text-decoration: none; }
.nvf-colophon__links a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------- panier */

.nvf-drawer { position: fixed; inset: 0; z-index: 9990; }
.nvf-drawer[hidden] { display: none; }

.nvf-drawer__veil {
	position: absolute;
	inset: 0;
	background: rgba(13, 18, 28, 0.5);
	opacity: 0;
	transition: opacity 0.32s ease;
}

.nvf-drawer.is-open .nvf-drawer__veil { opacity: 1; }

.nvf-drawer__panel {
	position: absolute;
	inset-block: 0;
	right: 0;
	display: grid;
	grid-template-rows: auto 1fr auto;
	width: 400px;
	max-width: calc(100vw - 30px);
	background: #fff;
	box-shadow: -14px 0 44px rgba(0, 0, 0, 0.2);
	translate: 100% 0;
	transition: translate 0.34s cubic-bezier(0.32, 0.72, 0.28, 1);
}

.nvf-drawer.is-open .nvf-drawer__panel { translate: 0 0; }

.nvf-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--nvf-filet);
}

.nvf-drawer__heading { font-size: 17px; }

.nvf-drawer__close {
	width: 34px;
	height: 34px;
	border: 0;
	background: none;
	color: var(--nvf-gris);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.nvf-drawer__close:hover { color: var(--nvf-encre); }
.nvf-drawer__scroll { overflow-y: auto; padding: 6px 20px; }
.nvf-drawer__void { padding: 48px 10px; color: var(--nvf-gris); text-align: center; }

.nvf-line {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 12px;
	align-items: start;
	padding: 16px 0;
	border-bottom: 1px solid var(--nvf-filet);
	transition: opacity 0.15s;
}

.nvf-line[aria-busy="true"] { opacity: 0.45; pointer-events: none; }

.nvf-line__thumb { width: 72px; height: 72px; border: 1px solid var(--nvf-filet); border-radius: 8px; object-fit: cover; }
.nvf-line__body { display: grid; gap: 4px; font-size: 14px; }
.nvf-line__name { font-weight: 700; }
.nvf-line__variant { color: var(--nvf-gris); font-size: 13px; }
.nvf-line__variant:empty { display: none; }

.nvf-line__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}

.nvf-stepper {
	display: inline-grid;
	grid-auto-flow: column;
	align-items: center;
	border: 1px solid var(--nvf-filet);
	border-radius: 8px;
}

.nvf-stepper__button {
	width: 30px;
	height: 30px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 16px;
	cursor: pointer;
}

.nvf-stepper__button:hover { color: var(--nvf-lien); }
.nvf-stepper__value { min-width: 28px; font-weight: 600; text-align: center; }

.nvf-line__drop {
	padding: 2px;
	border: 0;
	background: none;
	color: #b8c2cc;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.nvf-line__drop:hover { color: var(--nvf-alerte); }

.nvf-drawer__bottom { padding: 16px 20px 18px; border-top: 1px solid var(--nvf-filet); }
.nvf-drawer__bottom[hidden] { display: none; }
.nvf-drawer__total { display: flex; align-items: center; justify-content: space-between; }
.nvf-drawer__total strong { font-size: 19px; }
.nvf-drawer__note { margin-top: 6px; color: var(--nvf-gris); font-size: 12.5px; }

.nvf-drawer__checkout {
	display: block;
	margin-top: 12px;
	padding: 15px 20px;
	border-radius: 10px;
	background: var(--nvf-action);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.nvf-drawer__checkout:hover { background: var(--nvf-action-survol); }

.nvf-drawer__full {
	display: block;
	margin-top: 10px;
	color: var(--nvf-gris);
	font-size: 13px;
	text-align: center;
	text-decoration: underline;
}

/* Jeton animé du bouton vers le panier. Il vit moins d'une seconde. */
.nvf-token {
	position: fixed;
	z-index: 10050;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--nvf-action);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.nvf-token svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 749px) {
	.nvf-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
	.nvf-masthead { padding-block: 13px; }

	.nvf-gallery__viewport { margin-inline: -20px; border-radius: 0; border-inline: 0; }
	.nvf-gallery__arrow { width: 34px; height: 34px; }

	.nvf-buy__title { font-size: 26px; }
	.nvf-buy__tagline { font-size: 15px; }
	.nvf-rating { margin-top: 8px; }
	.nvf-arguments { margin-top: 24px; gap: 7px; color: var(--nvf-texte-doux); font-size: 15px; }
	.nvf-arguments li { padding-left: 24px; }

	.nvf-headline { margin-block: 26px 20px; }
	.nvf-headline__now { font-size: 27px; }

	.nvf-picker__head { display: none; }
	.nvf-deal { padding: 17px 14px; }
	.nvf-deal__name { font-size: 14px; }
	.nvf-deal--flagged { padding-top: 34px; border-top: 0; }
	.nvf-deal__flag { top: 9px; left: 14px; translate: 0 0; }

	.nvf-submit { padding: 15px 12px; font-size: 15px; white-space: nowrap; }

	.nvf-assurances__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.nvf-how__steps { grid-template-columns: 1fr; }
	.nvf-reviews__grid { grid-template-columns: 1fr; }

	.nvf-colophon__inner { flex-direction: column; text-align: center; }
	.nvf-drawer__panel { width: 100%; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.nvf-page *,
	.nvf-page *::before,
	.nvf-page *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
