/**
 * La fiche produit — refonte du 01/10/2026 (demande de David : « fiche moderne, design, épate-moi — toujours
 * optimisée pour le SEO et le GEO »).
 *
 * ─ Une COUCHE ─────────────────────────────────────────────────────────────────
 * Chargée sur les seules fiches (`functions.php`), après `lupeo-ds-pages.css`, qui reste la base. Tout sélecteur
 * commence par `body.single-product` : il passe devant `body .x` (0,1,1) sans `!important`. Les règles de FAQ et
 * de résumé sont en plus limitées à `.lupeo-sections` — les mêmes classes servent au blog.
 *
 * ─ SEO / GEO : ce que cette feuille ne fait JAMAIS ─────────────────────────────
 * Elle ne masque aucun texte, ne change aucun niveau de titre, ne retire aucune image ni légende, et n'anime pas la
 * photo principale (c'est l'élément le plus lourd de la page : la retarder retarderait l'affichage mesuré). Les
 * numéros de section sont du contenu généré — invisible pour un moteur, et masqué aux lecteurs d'écran (`/ ""`).
 * Le sommaire, lui, est un vrai `<nav>` de liens d'ancre (`Lupeo_Contenu::affiche_sommaire()`).
 *
 * ─ Ce qui change ──────────────────────────────────────────────────────────────
 *  1. Le haut de fiche sur fond « plan technique » (l'essai AU, repris ici et retiré de `lupeo-ds-pages.css`).
 *  2. La galerie : photo sur une scène claire, vignettes arrondies ; COLLANTE sur ordinateur pendant que la colonne
 *     d'achat défile.
 *  3. La colonne d'achat : titre à taille raisonnable, prix en vedette, carte d'achat avec le bouton vert lumineux.
 *  4. Les sections : sommaire collant à gauche (ligne de pastilles sur tablette et téléphone), sections numérotées,
 *     photos sur scène, fiche technique façon plan, FAQ en cartes, « En résumé » en carte de nuit.
 *  5. La barre d'achat de repli, en bas d'écran : passée de nuit.
 *
 * `--lupeo-collant` (hauteur de l'en-tête collant) est posée par `lupeo-sommaire.js` ; 76 px à défaut.
 * Le jaune ne décore jamais ; tout ce qui bouge est sous `prefers-reduced-motion: no-preference`.
 */

body.single-product {
	--lf-collant: var(--lupeo-collant, 76px);
	--lf-eclat: var(--lp-green-400, #00D36B);
	--lf-encre-eclat: var(--lp-green-400-ink, #06231A);
	--lf-scene: radial-gradient(75% 70% at 50% 42%, #fff 0%, #F3FBF7 58%, #E4F3EB 100%);
	--lf-nuit: linear-gradient(150deg, #0B1F1A 0%, #08231D 100%);
}

/* Téléphone et tablette : l'en-tête s'efface quand on descend (`lp-entete-cache` sur <html>, posée par
   lupeo-entete.js). Ce qui se calait dessous remonte avec lui — sommaire, galerie, arrivée sur une section — jusqu'à
   ce qui reste collé en haut (`--lp-entete-cale` : le bandeau de la préproduction ; rien en production). */
html.lp-entete-cache body.single-product {
	--lf-collant: var(--lp-entete-cale, 0px);
}

@media (max-width: 1240px) and (prefers-reduced-motion: no-preference) {
	body.single-product .lupeo-sommaire,
	html.lupeo-galerie-tient body.single-product #main .product-entry-wrapper > .woocommerce-product-gallery {
		transition: top .32s cubic-bezier(.2, .8, .2, 1);
	}
}

/* =========================================================
   1. Le haut de fiche sur fond « plan technique »
   ========================================================= */
body.single-product div.product > .product-entry-wrapper {
	position: relative;
	isolation: isolate;
}

/* Le fond remonte sous le fil d'Ariane : celui-ci repasse au-dessus. */
body.single-product .entry-header {
	position: relative;
	z-index: 1;
}

body.single-product div.product > .product-entry-wrapper::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -140px;
	bottom: -40px;
	left: calc(50% - 50vw);
	width: 100vw;
	background-image:
		linear-gradient(rgba(0, 124, 117, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 124, 117, .07) 1px, transparent 1px),
		linear-gradient(180deg, #fff 0%, #F4FAF7 45%, #F4FAF7 70%, #fff 100%);
	background-size: 36px 36px, 36px 36px, 100% 100%;
	background-position: -1px -1px, -1px -1px, 0 0;
	-webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
	pointer-events: none;
}

/* La grille ne garde sa netteté qu'en haut à droite, comme sur l'accueil. */
body.single-product div.product > .product-entry-wrapper::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: -140px;
	bottom: -40px;
	left: calc(50% - 50vw);
	width: 100vw;
	background: linear-gradient(180deg, #fff 0%, #F4FAF7 45%, #F4FAF7 70%, #fff 100%);
	-webkit-mask-image: radial-gradient(70% 60% at 85% 0%, transparent 0%, #000 75%);
	mask-image: radial-gradient(70% 60% at 85% 0%, transparent 0%, #000 75%);
	opacity: .94;
	pointer-events: none;
}

/* =========================================================
   2. La galerie
   ========================================================= */
body.single-product .woocommerce-product-gallery .flexy {
	border: 1px solid #DCEEE4;
	border-radius: 28px;
	background: var(--lf-scene);
	box-shadow: 0 30px 60px -40px rgba(1, 60, 56, .35);
}

body.single-product .woocommerce-product-gallery .flexy-pills li {
	border: 2px solid transparent;
	border-radius: 14px;
	background: var(--lf-scene);
	box-shadow: inset 0 0 0 1px #DCEEE4;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.single-product .woocommerce-product-gallery .flexy-pills li:hover {
	border-color: var(--lp-ink, #0A0F0D);
	transform: translateY(-2px);
}

body.single-product .woocommerce-product-gallery .flexy-pills li.active {
	border-color: var(--lp-green-600, #007C75);
	box-shadow: 0 0 0 4px rgba(0, 211, 107, .16);
}

body.single-product .woocommerce-product-gallery .flexy-arrow-prev,
body.single-product .woocommerce-product-gallery .flexy-arrow-next {
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 20px -10px rgba(1, 60, 56, .45);
}

/* Téléphone (≤ 780 px) : la base passe la galerie d'un bord à l'autre de l'écran (prototype « Mobile », écran 03) —
   la scène y garde ses bords droits, sans coins que l'écran rognerait. */
@media (max-width: 780px) {
	body.single-product .woocommerce-product-gallery .flexy {
		border-inline: 0;
		border-radius: 0;
		box-shadow: none;
	}

	body.single-product .woocommerce-product-gallery .flexy-pills li {
		border-radius: 10px;
	}

	body.single-product.woocommerce div.product p.price,
	body.single-product .woocommerce div.product p.price {
		font-size: 34px;
	}
}

/* Collante sur ordinateur : elle reste en vue pendant que la colonne d'achat défile — à condition d'y tenir en
   entier, ce que mesure `lupeo-sommaire.js` (classe `lupeo-galerie-tient` sur <html>). Plus haute que l'écran, elle
   garderait ses vignettes hors de vue. Sans script, elle reste à sa place. */
@media (min-width: 1000px) {
	html.lupeo-galerie-tient body.single-product #main .product-entry-wrapper > .woocommerce-product-gallery {
		position: sticky;
		top: calc(var(--lf-collant) + 24px);
		align-self: start;
	}
}

/* =========================================================
   3. La colonne d'achat
   ========================================================= */
body.single-product .summary .product_title {
	margin: 0 0 12px;
	font-size: clamp(28px, 2.5vw, 40px);
	line-height: 1.07;
	letter-spacing: -.03em;
	text-wrap: balance;
}

body.single-product .lupeo-ref {
	display: inline-flex;
	align-items: center;
	margin: 0 0 18px;
	padding: 5px 10px;
	border: 1px solid var(--lp-line, #E4E8E6);
	border-radius: 8px;
	background: rgba(255, 255, 255, .7);
}

body.single-product .lupeo-compat-tete {
	border-radius: 18px;
	box-shadow: 0 16px 34px -28px rgba(1, 60, 56, .45);
}

body.single-product.woocommerce div.product p.price,
body.single-product .woocommerce div.product p.price {
	font-size: clamp(36px, 3vw, 46px);
	letter-spacing: -.035em;
}

/* Les puces : une coche verte pleine, plus franche. */
body.single-product .woocommerce-product-details__short-description li {
	position: relative;
}

/* La carte d'achat : quantité et bouton sur une carte surélevée, au-dessus du paiement sécurisé. */
body.single-product .summary .ct-product-add-to-cart {
	margin-top: 18px;
	padding: 16px;
	border: 1px solid var(--lp-line, #E4E8E6);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 50px -34px rgba(1, 60, 56, .45), 0 1px 2px rgba(10, 15, 13, .04);
}

body.single-product.woocommerce div.product form.cart .quantity,
body.single-product .woocommerce div.product form.cart .quantity {
	border-radius: 14px;
}

/* Le bouton vert lumineux — le même que « Trouver mon modèle » et « Voir les pièces ». L'état « option à choisir »
   (désactivé) garde le rendu clair de la base. */
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:not(.disabled):not(:disabled),
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:not(.disabled):not(:disabled) {
	border: 0;
	border-radius: 14px;
	background: linear-gradient(145deg, #3BF09A 0%, #00B85D 100%);
	box-shadow: 0 0 0 4px rgba(0, 211, 107, .14), 0 14px 30px -12px rgba(0, 211, 107, .6);
	color: var(--lf-encre-eclat);
	transition: transform .2s ease, box-shadow .2s ease;
}

body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:not(.disabled):not(:disabled):hover,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:not(.disabled):not(:disabled):hover {
	background: linear-gradient(145deg, #3BF09A 0%, #00B85D 100%);
	color: var(--lf-encre-eclat);
	transform: translateY(-2px);
	box-shadow: 0 0 0 6px rgba(0, 211, 107, .2), 0 18px 36px -12px rgba(0, 211, 107, .7);
}

body.single-product.woocommerce div.product form.cart .single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
	border-radius: 14px;
}

body.single-product .lupeo-ship {
	border-radius: 18px;
}

body.single-product .lupeo-trust__item {
	border-radius: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

body.single-product .lupeo-trust__item:hover {
	border-color: rgba(0, 124, 117, .35);
	box-shadow: 0 14px 30px -24px rgba(1, 60, 56, .5);
}

body.single-product .lupeo-trust__ico {
	border-radius: 12px;
}

body.single-product .lupeo-vc {
	border-radius: 20px;
}

body.single-product .lupeo-check {
	border-radius: 18px;
}

/* =========================================================
   4. Les sections
   ========================================================= */
body.single-product .lupeo-sections {
	counter-reset: lupeo-fiche;
	margin-top: clamp(24px, 3vw, 48px);
}

/* Les sections, numérotées : le numéro est un repère de lecture, pas du texte. */
body.single-product .lupeo-sections__corps > .lupeo-section {
	counter-increment: lupeo-fiche;
	scroll-margin-top: calc(var(--lf-collant) + 24px);
	border-top: 0;
	padding-block: clamp(36px, 4.4vw, 64px);
}

body.single-product .lupeo-sections__corps > .lupeo-section + .lupeo-section {
	border-top: 1px solid var(--lp-line-2, #EEF1F0);
}

body.single-product .lupeo-sections .lupeo-section__t {
	font-size: clamp(26px, 2.4vw, 36px);
	letter-spacing: -.03em;
}

body.single-product .lupeo-sections .lupeo-section__t::before,
body.single-product .lupeo-sections .lupeo-geo__t::before {
	content: counter(lupeo-fiche, decimal-leading-zero);
	content: counter(lupeo-fiche, decimal-leading-zero) / "";
	display: block;
	width: fit-content;
	margin-bottom: 12px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--lp-green-100, #E6F5EF);
	font-family: var(--lp-mono, ui-monospace, monospace);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	line-height: 1.2;
	color: var(--lp-green-800, #005F59);
}

/* ---- Le sommaire ---- */
body.single-product .lupeo-sommaire {
	--progression: 0;
	font-family: var(--lp-sans);
}

body.single-product .lupeo-sommaire__t {
	margin: 0 0 14px;
	font-family: var(--lp-mono, ui-monospace, monospace);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--lp-green-600, #007C75);
}

body.single-product .lupeo-sommaire__liste {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: lupeo-sommaire;
}

body.single-product .lupeo-sommaire__liste li {
	margin: 0;
	padding: 0;
}

body.single-product .lupeo-sommaire__liste a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--lp-ink-3, #64706B);
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

body.single-product .lupeo-sommaire__liste a::before {
	counter-increment: lupeo-sommaire;
	content: counter(lupeo-sommaire, decimal-leading-zero);
	content: counter(lupeo-sommaire, decimal-leading-zero) / "";
	flex: none;
	font-family: var(--lp-mono, ui-monospace, monospace);
	font-size: 10.5px;
	letter-spacing: .06em;
	color: var(--lp-ink-3, #64706B);
	opacity: .7;
}

body.single-product .lupeo-sommaire__liste a:hover {
	color: var(--lp-ink, #0A0F0D);
}

body.single-product .lupeo-sommaire__liste a[aria-current="true"] {
	color: var(--lp-ink, #0A0F0D);
	font-weight: 600;
}

body.single-product .lupeo-sommaire__liste a[aria-current="true"]::before {
	color: var(--lp-green-600, #007C75);
	opacity: 1;
}

body.single-product .lupeo-sommaire__liste a:focus-visible {
	outline: 2px solid var(--lp-green-600, #007C75);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Ordinateur : sommaire collant à gauche, trait de progression le long de la liste. */
@media (min-width: 1200px) {
	body.single-product .lupeo-sections--sommaire {
		display: grid;
		grid-template-columns: 228px minmax(0, 1fr);
		column-gap: clamp(36px, 4vw, 72px);
		align-items: start;
	}

	body.single-product .lupeo-sommaire {
		position: sticky;
		top: calc(var(--lf-collant) + 28px);
		max-height: calc(100vh - var(--lf-collant) - 56px);
		overflow-y: auto;
		padding-block: clamp(36px, 4.4vw, 64px) 12px;
		scrollbar-width: thin;
	}

	body.single-product .lupeo-sommaire__liste {
		border-left: 2px solid var(--lp-line, #E4E8E6);
	}

	body.single-product .lupeo-sommaire__liste::before {
		content: "";
		position: absolute;
		top: 0;
		left: -2px;
		width: 2px;
		height: calc(var(--progression) * 100%);
		border-radius: 2px;
		background: linear-gradient(180deg, var(--lp-green-500, #00A896) 0%, var(--lf-eclat) 100%);
		transition: height .15s linear;
	}

	body.single-product .lupeo-sommaire__liste a {
		margin-left: -2px;
		padding: 7px 0 7px 16px;
		border-left: 2px solid transparent;
		font-size: 14px;
		line-height: 1.35;
	}

	body.single-product .lupeo-sommaire__liste a[aria-current="true"] {
		border-left-color: var(--lf-eclat);
	}
}

/* Tablette et téléphone : une ligne de pastilles collée sous l'en-tête. */
@media (max-width: 1199px) {
	body.single-product .lupeo-sommaire {
		position: sticky;
		top: var(--lf-collant);
		z-index: 20;
		display: flex;
		align-items: center;
		gap: 12px;
		margin-inline: calc(-1 * var(--lp-gouttiere, 20px));
		padding: 10px var(--lp-gouttiere, 20px);
		border-bottom: 1px solid var(--lp-line, #E4E8E6);
		background: rgba(255, 255, 255, .92);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	body.single-product .lupeo-sommaire__t {
		flex: none;
		margin: 0;
	}

	body.single-product .lupeo-sommaire__liste {
		display: flex;
		gap: 6px;
		min-width: 0;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	body.single-product .lupeo-sommaire__liste::-webkit-scrollbar {
		display: none;
	}

	body.single-product .lupeo-sommaire__liste li {
		flex: none;
	}

	body.single-product .lupeo-sommaire__liste a {
		padding: 7px 13px 7px 11px;
		border: 1px solid var(--lp-line, #E4E8E6);
		border-radius: 999px;
		background: #fff;
		font-size: 13.5px;
		white-space: nowrap;
	}

	body.single-product .lupeo-sommaire__liste a[aria-current="true"] {
		border-color: var(--lp-ink, #0A0F0D);
		background: var(--lp-ink, #0A0F0D);
		color: #fff;
	}

	body.single-product .lupeo-sommaire__liste a[aria-current="true"]::before {
		color: var(--lf-eclat);
	}

	body.single-product .lupeo-sections__corps > .lupeo-section {
		scroll-margin-top: calc(var(--lf-collant) + 72px);
	}
}

@media (max-width: 640px) {
	body.single-product .lupeo-sommaire__t {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* ---- Les photos des sections, posées sur une scène ----
   La base cale la figure sur la largeur de la photo (`fit-content`) pour aligner la légende sur elle. Avant son
   chargement différé, une photo n'a pas de largeur : la figure tombait à 38 px et sa légende s'empilait sur
   2 000 px — la page sautait au chargement et un lien du sommaire arrivait à côté. Ici la scène fait le cadre :
   la figure prend la colonne, la photo réserve sa place dès le départ (rapport largeur/hauteur de ses attributs)
   et s'y loge entière ; la légende s'aligne sur la scène. */
body.single-product .lupeo-sections .lupeo-duo__photo figure {
	width: auto;
	margin-inline: 0;
	padding: 14px 14px 12px;
	border: 1px solid #DCEEE4;
	border-radius: 24px;
	background: var(--lf-scene);
}

body.single-product .lupeo-sections .lupeo-duo__photo img,
body.single-product .lupeo-sections .lupeo-duo__photo figure img {
	width: 100%;
	height: auto;
	max-height: 625px;
	margin-inline: 0;
	object-fit: contain;
	border: 0;
	border-radius: 14px;
	background: transparent;
	mix-blend-mode: multiply;
}

body.single-product .lupeo-sections .lupeo-duo__photo figcaption {
	width: auto;
	min-width: 0;
	padding: 10px 4px 0;
}

/* ---- La fiche technique, façon plan ---- */
body.single-product .lupeo-sections .lupeo-caracs__scroll {
	border: 1px solid var(--lp-line, #E4E8E6);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 44px -36px rgba(1, 60, 56, .45);
}

body.single-product .lupeo-sections .lupeo-caracs tr:nth-child(even),
body.single-product .lupeo-sections .woocommerce-product-attributes tr:nth-child(even) {
	background: var(--lp-surface-2, #F6F8F7);
}

body.single-product .lupeo-sections .lupeo-caracs th,
body.single-product .lupeo-sections .woocommerce-product-attributes th {
	width: 34%;
	font-family: var(--lp-mono, ui-monospace, monospace);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lp-ink-3, #64706B);
	vertical-align: top;
}

body.single-product .lupeo-sections .lupeo-caracs td,
body.single-product .lupeo-sections .woocommerce-product-attributes td {
	font-family: var(--lp-sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var(--lp-ink, #0A0F0D);
}

body.single-product .lupeo-sections .lupeo-caracs tr:last-child th,
body.single-product .lupeo-sections .lupeo-caracs tr:last-child td {
	border-bottom: 0;
}

/* ---- La FAQ, en cartes ---- */
body.single-product .lupeo-sections .lupeo-faq {
	display: grid;
	gap: 10px;
	border: 0;
	overflow: visible;
}

body.single-product .lupeo-sections .lupeo-faq__item {
	border: 1px solid var(--lp-line, #E4E8E6);
	border-radius: 16px;
	background: #fff;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.single-product .lupeo-sections .lupeo-faq__item:last-child {
	border-bottom: 1px solid var(--lp-line, #E4E8E6);
}

body.single-product .lupeo-sections .lupeo-faq__item:hover {
	border-color: rgba(0, 124, 117, .35);
}

body.single-product .lupeo-sections .lupeo-faq__item[open] {
	border-color: rgba(0, 124, 117, .35);
	background: linear-gradient(180deg, var(--lp-green-50, #F1FAF5) 0%, #fff 100%);
	box-shadow: 0 18px 40px -32px rgba(1, 60, 56, .5);
}

body.single-product .lupeo-sections .lupeo-faq__q {
	padding: 18px 20px;
	font-size: 15.5px;
}

body.single-product .lupeo-sections .lupeo-faq__q::after {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--lp-surface-2, #F6F8F7);
	font-size: 18px;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease, transform .25s ease;
}

body.single-product .lupeo-sections .lupeo-faq__item[open] > .lupeo-faq__q::after {
	background: var(--lp-ink, #0A0F0D);
	color: #fff;
}

body.single-product .lupeo-sections .lupeo-faq__a {
	padding: 0 20px 20px;
}

/* ---- « En résumé » : la carte de nuit (le texte que les moteurs citent, mis en vedette) ---- */
body.single-product .lupeo-sections .lupeo-section--resume {
	border-top: 0;
}

body.single-product .lupeo-sections .lupeo-geo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(26px, 3vw, 40px) clamp(24px, 3.4vw, 48px);
	border: 0;
	border-radius: 24px;
	background:
		radial-gradient(60% 120% at 0% 0%, rgba(0, 211, 107, .22) 0%, rgba(0, 211, 107, 0) 60%),
		var(--lf-nuit);
	box-shadow: 0 30px 60px -40px rgba(1, 60, 56, .8);
}

body.single-product .lupeo-sections .lupeo-geo::after {
	content: "\201C";
	position: absolute;
	z-index: -1;
	top: -.18em;
	right: .12em;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 220px;
	line-height: 1;
	color: rgba(255, 255, 255, .06);
	pointer-events: none;
}

body.single-product .lupeo-sections .lupeo-geo__t {
	color: #7CF0B5;
}

body.single-product .lupeo-sections .lupeo-geo__t::before {
	background: rgba(0, 211, 107, .16);
	color: #7CF0B5;
}

body.single-product .lupeo-sections .lupeo-geo p {
	max-width: 80ch;
	font-size: clamp(15.5px, 1.1vw, 17px);
	line-height: 1.65;
	color: rgba(255, 255, 255, .82);
}

body.single-product .lupeo-sections .lupeo-geo strong {
	color: #fff;
}

body.single-product .lupeo-sections .lupeo-geo a {
	color: #9FE8C4;
}

/* ---- « Pour la même trottinette » ---- */
body.single-product .lupeo-compat-bloc .lupeo-card {
	border-radius: 18px;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease;
}

body.single-product .lupeo-compat-bloc .lupeo-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 124, 117, .4);
	box-shadow: 0 24px 44px -26px rgba(1, 60, 56, .45);
}

body.single-product .lupeo-compat-bloc__plus {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

body.single-product .lupeo-compat-bloc__plus a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 7px 14px;
	border: 1px solid var(--lp-line, #E4E8E6);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

body.single-product .lupeo-compat-bloc__plus a:hover {
	border-color: var(--lp-ink, #0A0F0D);
	background: var(--lp-ink, #0A0F0D);
	color: #fff;
}

body.single-product .lupeo-compat-bloc__plus a .lupeo-i {
	width: 15px;
	height: 15px;
}

/* =========================================================
   5. La barre d'achat de repli (bas d'écran), de nuit
   ========================================================= */
body.single-product .lupeo-achat {
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: rgba(9, 30, 25, .94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .5);
}

body.single-product .lupeo-achat .lupeo-achat__nom {
	color: #fff;
}

/* Le prix et ses morceaux (montant, symbole) : chacun porte sa couleur d'encre héritée de la base. */
body.single-product .lupeo-achat .lupeo-achat__prix,
body.single-product .lupeo-achat .lupeo-achat__prix * {
	color: #9FE8C4;
}

body.single-product .lupeo-achat .lupeo-achat__choix {
	color: #7CF0B5;
}

body.single-product .lupeo-achat button.lupeo-achat__btn {
	border: 0;
	border-radius: 12px;
	background: linear-gradient(145deg, #3BF09A 0%, #00B85D 100%);
	color: var(--lf-encre-eclat);
	box-shadow: 0 10px 24px -12px rgba(0, 211, 107, .7);
}

body.single-product .lupeo-achat button.lupeo-achat__btn:hover {
	background: linear-gradient(145deg, #3BF09A 0%, #00B85D 100%);
	color: var(--lf-encre-eclat);
}

/* =========================================================
   6. La rupture de stock (02/10/2026 — « c'est pas génial, revois ça »)
   =========================================================
   Sans bouton d'achat, la carte d'achat ne contenait plus que « Rupture de stock » : un grand cadre blanc presque
   vide, puis, à part, un bouton orange. Les deux deviennent UN bloc de nuit : l'état en tête (point ambre — c'est
   un signal, pas un décor), la phrase d'invitation, le bouton vert « Être prévenu du retour » ; puis, au clic, le
   formulaire et la confirmation, dans le même bloc. Le module d'alerte (`Lupeo_Alerte_Stock`) n'est pas touché. */
body.single-product .summary .ct-product-add-to-cart:has(> .out-of-stock) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: 18px;
	padding: 24px 26px 22px;
	border: 0;
	border-radius: 24px;
	background:
		radial-gradient(70% 140% at 0% 0%, rgba(240, 168, 30, .14) 0%, rgba(240, 168, 30, 0) 55%),
		linear-gradient(150deg, #0B1F1A 0%, #08231D 100%);
	box-shadow: 0 30px 60px -38px rgba(1, 60, 56, .8);
}

/* Suivie de l'alerte : la carte s'ouvre vers le bas, l'alerte en est la suite. */
body.single-product .summary .ct-product-add-to-cart:has(> .out-of-stock):has(+ .lupeo-alerte) {
	/* Blocksy pose 35 px sous chaque élément du résumé : ici, l'alerte colle, c'est la suite du même bloc. */
	margin-bottom: 0;
	padding-bottom: 8px;
	border-radius: 24px 24px 0 0;
	box-shadow: none;
}

body.single-product .summary .ct-product-add-to-cart > p.stock.out-of-stock {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: clamp(22px, 1.9vw, 28px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.025em;
	color: #fff;
}

body.single-product .summary .ct-product-add-to-cart > p.stock.out-of-stock::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #F0A81E;
	box-shadow: 0 0 0 5px rgba(240, 168, 30, .18), 0 0 18px rgba(240, 168, 30, .7);
}

body.single-product .summary .ct-product-add-to-cart:has(> .out-of-stock) + .lupeo-alerte {
	margin: 0 0 18px;
	padding: 0 26px 26px;
	border-radius: 0 0 24px 24px;
	background: linear-gradient(150deg, #0A1F1A 0%, #08231D 100%);
	box-shadow: 0 30px 60px -38px rgba(1, 60, 56, .8);
	color: rgba(255, 255, 255, .74);
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__invite {
	margin: 0 0 18px;
	padding-left: 24px;
	font-size: 15.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .72);
}

/* Le bouton : le vert lumineux des appels du site, avec sa cloche. */
body.single-product .summary .lupeo-alerte button.lupeo-alerte__bouton,
body.single-product .summary .lupeo-alerte button.lupeo-alerte__valider {
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(145deg, #3BF09A 0%, #00B85D 100%);
	box-shadow: 0 0 0 4px rgba(0, 211, 107, .14), 0 14px 30px -12px rgba(0, 211, 107, .6);
	font-size: 15.5px;
	font-weight: 700;
	color: var(--lp-green-400-ink, #06231A);
	transition: transform .2s ease, box-shadow .2s ease;
}

body.single-product .summary .lupeo-alerte button.lupeo-alerte__bouton:hover,
body.single-product .summary .lupeo-alerte button.lupeo-alerte__bouton:focus-visible,
body.single-product .summary .lupeo-alerte button.lupeo-alerte__valider:hover,
body.single-product .summary .lupeo-alerte button.lupeo-alerte__valider:focus-visible {
	background: linear-gradient(145deg, #3BF09A 0%, #00B85D 100%);
	color: var(--lp-green-400-ink, #06231A);
	transform: translateY(-2px);
	box-shadow: 0 0 0 6px rgba(0, 211, 107, .2), 0 18px 36px -12px rgba(0, 211, 107, .7);
}

body.single-product .summary .lupeo-alerte button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

body.single-product .summary .lupeo-alerte button.lupeo-alerte__bouton[hidden] {
	display: none;
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__cloche {
	flex: none;
	transform-origin: 50% 10%;
}

/* Le formulaire, dans le même bloc. */
body.single-product .summary .lupeo-alerte .lupeo-alerte__panneau {
	margin-top: 0;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 18px;
	background: rgba(255, 255, 255, .05);
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__panneau[hidden] {
	display: none;
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__texte {
	color: rgba(255, 255, 255, .8);
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__texte strong {
	color: #fff;
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__champ span {
	font-family: var(--lp-mono, ui-monospace, monospace);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7CF0B5;
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__champ input {
	height: 52px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 14px;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	caret-color: #00D36B;
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__champ input:focus {
	border-color: #00D36B;
	box-shadow: 0 0 0 4px rgba(0, 211, 107, .18);
}

body.single-product .summary .lupeo-alerte button.lupeo-alerte__autre {
	color: rgba(255, 255, 255, .65);
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__erreur {
	color: #FFB4A8;
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__mention {
	color: rgba(255, 255, 255, .5);
}

/* La confirmation : sur la nuit, une coche verte lumineuse. */
body.single-product .summary .lupeo-alerte .lupeo-alerte__ok {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid rgba(0, 211, 107, .4);
	border-radius: 16px;
	background: rgba(0, 211, 107, .10);
	font-size: 15.5px;
	font-weight: 600;
	color: #fff;
}

body.single-product .summary .lupeo-alerte .lupeo-alerte__ok::before {
	display: grid;
	flex: none;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(145deg, #3BF09A 0%, #00B85D 100%);
	color: #06231A;
	font-size: 15px;
}

/* La pastille « Épuisé » de la photo : la nuit et le point ambre du bloc, au lieu d'un aplat jaune.
   Variables de Blocksy, pas propriétés (voir `lupeo-alerte.css`) ; sélecteur plus fort que le sien. */
body.single-product .woocommerce-product-gallery .out-of-stock-badge {
	--badge-background-color: #0A1D18;
	--badge-text-color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-inline: 12px 14px;
	border-radius: 999px;
	font-family: var(--lp-mono, ui-monospace, monospace);
	font-size: 11px;
	letter-spacing: .14em;
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}

body.single-product .woocommerce-product-gallery .out-of-stock-badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #F0A81E;
	box-shadow: 0 0 8px rgba(240, 168, 30, .8);
}

@media (prefers-reduced-motion: no-preference) {
	/* La cloche tinte une fois à l'arrivée, puis au survol du bouton. */
	body.single-product .summary .lupeo-alerte .lupeo-alerte__cloche {
		animation: lupeo-cloche 1.1s ease-in-out .8s 1;
	}

	body.single-product .summary .lupeo-alerte button.lupeo-alerte__bouton:hover .lupeo-alerte__cloche {
		animation: lupeo-cloche .9s ease-in-out 1;
	}
}

@keyframes lupeo-cloche {
	0%, 100% { transform: rotate(0); }
	15% { transform: rotate(16deg); }
	30% { transform: rotate(-14deg); }
	45% { transform: rotate(10deg); }
	60% { transform: rotate(-6deg); }
	75% { transform: rotate(3deg); }
}

@media (max-width: 480px) {
	body.single-product .summary .ct-product-add-to-cart:has(> .out-of-stock),
	body.single-product .summary .ct-product-add-to-cart:has(> .out-of-stock) + .lupeo-alerte {
		padding-inline: 20px;
	}

	body.single-product .summary .lupeo-alerte .lupeo-alerte__invite {
		padding-left: 0;
	}
}

/* =========================================================
   Mouvement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	body.single-product .lupeo-sommaire__liste::before {
		transition: none;
	}

	body.single-product .lupeo-compat-bloc .lupeo-card:hover,
	body.single-product .lupeo-trust__item:hover,
	body.single-product .woocommerce-product-gallery .flexy-pills li:hover {
		transform: none;
	}
}
