/* Gravipack Core storefront components: world switch and price labels, favourites, consent, WhatsApp, avatar,
 * language, product badges. Render-blocking on every page (the world switch is in the header of every first screen);
 * the former b2b.css is merged in first, in its old cascade position (it printed right before this sheet), so the
 * page makes one request instead of two (QA-int I7). */

/* Screen-reader-only text of the plugin components (also in commerce.css for the cart and checkout). */
.gp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- World switch « Particuliers / Professionnels » and price labels (formerly b2b.css) ----------
 * A solid dark pill (every copy, every scheme) with a sliding thumb under the current option: lime with dark
 * ink in Particuliers, cream (#fefee2, owner review of 10 Nov 2026) with dark ink in Professionnels. The current option is
 * also marked by aria-current, never by colour alone. The tax line keeps full opacity in every state (#0a0b0d on cream 19.21:1);
 * it differs from the label by size and weight only.
 * Motion: transform and opacity only, 100 to 200 ms, none under prefers-reduced-motion.
 * The thumb follows data-gp-mode on the form, which b2b.js flips on click before the page reloads.
 */

.gp-mode-switch {
	--gp-switch-track: #121418;
	--gp-switch-line: rgba(244, 244, 240, 0.24);
	--gp-switch-ink: #f4f4f0;
	--gp-switch-hover: rgba(255, 255, 255, 0.08);
	--gp-switch-pad: 3px;
	display: inline-flex;
	margin: 0;
	color: var(--gp-switch-ink);
}

.gp-mode-switch__group {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	padding: var(--gp-switch-pad);
	background: var(--gp-switch-track);
	border: 1px solid var(--gp-switch-line);
	border-radius: 999px;
	isolation: isolate;
}

/* Thumb: lime (::before) and cream (::after) layers, crossfaded by opacity, slid by transform. Cream on the track 17.99:1. */
.gp-mode-switch__thumb {
	position: absolute;
	top: var(--gp-switch-pad);
	bottom: var(--gp-switch-pad);
	left: var(--gp-switch-pad);
	z-index: 0;
	width: calc(50% - var(--gp-switch-pad));
	border-radius: 999px;
	pointer-events: none;
	transform: translateX(0);
}

.gp-mode-switch__thumb::before,
.gp-mode-switch__thumb::after {
	position: absolute;
	inset: 0;
	content: "";
	border-radius: inherit;
}

.gp-mode-switch__thumb::before {
	background: var(--gp-lime, #d4ff3a);
	opacity: 1;
}

.gp-mode-switch__thumb::after {
	background: var(--gp-pro, #fefee2);
	opacity: 0;
}

.gp-mode-switch[data-gp-mode="b2b"] .gp-mode-switch__thumb {
	transform: translateX(100%);
}

.gp-mode-switch[data-gp-mode="b2b"] .gp-mode-switch__thumb::before {
	opacity: 0;
}

.gp-mode-switch[data-gp-mode="b2b"] .gp-mode-switch__thumb::after {
	opacity: 1;
}

.gp-mode-switch__opt {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 4px 12px;
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.1;
	color: var(--gp-switch-ink);
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
	/* Leaving the current state: the ink changes at once. */
	transition: color 0s linear 0s;
}

.gp-mode-switch__opt[aria-current="true"] {
	cursor: default;
}

/* Hover layer on the option that is not current (pointer devices only): opacity only. */
.gp-mode-switch__opt::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: var(--gp-switch-hover);
	border-radius: inherit;
	opacity: 0;
}

@media (hover: hover) {
	.gp-mode-switch__opt:not([aria-current="true"]):hover::before {
		opacity: 1;
	}
}

.gp-mode-switch__label {
	font-weight: 700;
}

.gp-mode-switch__tax {
	font-size: 0.6875rem;
	font-weight: 400;
}

/* Ink of the option under the thumb: dark on lime (17.03:1) and on cream (19.21:1). Arriving on either, the
   dark ink waits 60 ms so it never sits on the empty track while the thumb travels. */
.gp-mode-switch[data-gp-mode="b2c"] .gp-mode-switch__opt[data-gp-value="b2c"] {
	color: var(--gp-lime-on, #0a0b0d);
	transition: color 0s linear 60ms;
}

.gp-mode-switch[data-gp-mode="b2b"] .gp-mode-switch__opt[data-gp-value="b2b"] {
	color: var(--gp-pro-on, #0a0b0d);
	transition: color 0s linear 60ms;
}

/* Focus ring inside the option, in its own ink: at least 16.72:1 in every state. */
.gp-mode-switch__opt:focus {
	outline: none;
}

.gp-mode-switch__opt:focus-visible,
.gp-mode-switch__opt.is-kbd-focus {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}

/* Switching: the request is on its way, further clicks are ignored by b2b.js. */
html.gp-switching .gp-mode-switch,
html.gp-switching .gp-mode-switch__opt {
	cursor: progress;
}

.gp-mode-switch .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.gp-mode-switch__thumb {
		transition: transform 200ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
	}

	.gp-mode-switch__thumb::before,
	.gp-mode-switch__thumb::after {
		transition: opacity 200ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
	}

	html.gp-switching .gp-mode-switch__thumb {
		will-change: transform;
	}

	.gp-mode-switch__opt::before {
		transition: opacity 150ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
	}

	.gp-mode-switch__opt:not([aria-current="true"]):active {
		transform: scale(0.97);
		transition: transform 100ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), color 0s;
	}
}

/* Windows high contrast: the thumb fill disappears, so the current option gets a system-coloured frame. */
@media (forced-colors: active) {
	.gp-mode-switch__thumb {
		display: none;
	}

	.gp-mode-switch__opt[aria-current="true"] {
		outline: 2px solid CanvasText;
		outline-offset: -3px;
		color: CanvasText;
	}

	.gp-mode-switch__opt:focus-visible,
	.gp-mode-switch__opt.is-kbd-focus {
		outline-color: Highlight;
	}
}

/* ---------- Copies: header bar (768 px and wider), phone row, menu dialog ---------- */

.gp-mode-switch--bar .gp-mode-switch__opt {
	min-width: 104px;
}

.gp-mode-switch--row,
.gp-mode-switch--menu {
	display: flex;
	width: 100%;
}

.gp-mode-switch--row {
	max-width: 420px;
	margin-inline: auto;
}

@media (max-width: 767px) {
	.gp-mode-switch--bar {
		display: none;
	}
}

@media (min-width: 768px) {
	.gp-mode-switch--row {
		display: none;
	}
}

/* ---------- Price labels ---------- */

.gp-price-suffix,
.gp-tax-label {
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* ---------- Storefront components ---------- */

/* Favourite toggle */
.gp-fav { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 11, 13, .55); color: #f4f4f0; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .2s var(--ease-out, ease), background-color .2s; }
.gp-fav:hover { transform: scale(1.06); }
.gp-fav[aria-pressed="true"] { color: var(--accent-ink, #d4ff3a); }
.gp-fav[aria-pressed="true"] path { fill: currentColor; }
.gp-fav:focus-visible { outline: 2px solid var(--accent-ink, #d4ff3a); outline-offset: 2px; }
.gp-fav--card { position: absolute; top: 10px; right: 10px; z-index: 3; }
/* On light tiles and photos alike: dark ring with a white band inside it. */
.gp-fav--card:focus-visible { outline-color: #121316; box-shadow: 0 0 0 2px #fff; }
/* Room the heart takes at a card's top right (10 px inset + 44 px + 6 px gap): the theme keeps the badges out of it. */
.gp-card:has(.gp-fav--card) { --fav-room: 60px; }
.gp-fav--card[aria-pressed="true"] { color: var(--accent-on-dark, var(--accent, #d4ff3a)); } /* on its dark circle in both schemes and both worlds */
.gp-fav--pdp { background: transparent; border: 1px solid var(--field-line, rgba(255,255,255,.4)); color: inherit; border-radius: 30px; width: 52px; height: 52px; flex: none; }
.gp-fav-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.gp-tool--fav { position: relative; }

/* Cookie consent: not modal, bottom of the screen, equal-weight choices */
.gp-consent { position: fixed; inset: auto 12px 12px 12px; z-index: 950; display: flex; justify-content: center; pointer-events: none; }
.gp-consent[hidden] { display: none; }
.gp-consent__box { pointer-events: auto; color-scheme: light; --accent-ink: var(--light-accent-ink, #4a6600); width: min(760px, 100%); max-height: calc(100vh - 24px); overflow: auto; padding: 20px 22px; border-radius: var(--radius-s, 12px); background: #fff; color: #121316; box-shadow: 0 18px 60px rgba(0, 0, 0, .35); }
.gp-consent:focus { outline: none; }
.gp-consent__title { margin: 0 0 6px; font: 700 1.05rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.gp-consent__text { margin: 0 0 14px; font-size: .92rem; color: #3b3e44; }
.gp-consent__text a { color: inherit; }
.gp-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-consent__actions .gp-btn { --btn-rim: transparent; flex: 1 1 160px; justify-content: center; min-height: 44px; background: #121316; color: #fff; border-color: #121316; }
.gp-consent__prefs fieldset { margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 4px; }
.gp-consent__opt { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: .9rem; cursor: pointer; } /* the whole row toggles its box: a 44 px target */
.gp-consent__opt:has(input:disabled) { cursor: default; }
.gp-consent__opt input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: #121316; } /* light native boxes on the white card, never squeezed by long text */
.gp-consent__prefs { margin-bottom: 12px; }

/* WhatsApp and avatar: bottom-right stack, clear of the mobile buy bar */
.gp-assist { position: fixed; right: 16px; bottom: 16px; z-index: 840; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.gp-assist > * { pointer-events: auto; }
.gp-assist > .is-aside { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; } /* stepped aside (site.js), measured in place */
/* Room the WhatsApp button takes at the bottom right (16 px offset + 54 px + 8 px gap): the theme keeps controls out of it,
   and its root scroll padding uses it too, so focus is never scrolled under the button (set on the root for that reason). */
:root:has(.gp-wa) { --assist-room: 78px; }
/* A form sent back with errors puts focus in its summary (forms.js), which on one-column pages can run under the button:
   the button steps aside while focus stays in the summary and comes back once it moves on (950 px: the theme's contact grid). */
@media (max-width: 949.98px) { :root:has(.gp-form__summary:focus-within) .gp-assist > .gp-wa { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; } }
/* Product pages: while the theme's sticky buy bar shows (body.gp-has-buybar; its height in --gp-buybar-h on <html>,
   main.js), the stack rises to 12 px above it, never over it. A transform, not « bottom »: no layout shift. */
.gp-has-buybar .gp-assist { transform: translate3d(0, min(0px, calc(4px - var(--gp-buybar-h, 0px))), 0); }
@media (prefers-reduced-motion: no-preference) { .gp-assist { transition: transform .25s var(--ease-out, ease); } }
.gp-wa { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #0a0b0d; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .2s var(--ease-out, ease), opacity .2s ease; }
.gp-wa:hover { transform: translateY(-2px); }
/* It floats over dark and light sections alike: dark ring with a white band inside it, whatever the page scheme. */
.gp-wa:focus-visible { outline: 2px solid #121316; outline-offset: 3px; box-shadow: 0 0 0 3px #fff, 0 8px 24px rgba(0, 0, 0, .3); }
.gp-avatar { position: relative; display: flex; align-items: flex-end; gap: 10px; max-width: min(340px, calc(100vw - 32px)); }
.gp-avatar[hidden] { display: none; }
.gp-avatar__face { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent-ink); background: var(--bg-3, #1b1e24); display: grid; place-items: center; }
.gp-avatar__face video, .gp-avatar__face img { width: 100%; height: 100%; object-fit: cover; }
.gp-avatar__mono { font: 800 1.6rem/1 var(--font-display); color: var(--accent-ink); }
.gp-avatar__bubble { --accent-ink: var(--light-accent-ink, #4a6600); padding: 12px 40px 12px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #121316; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
.gp-avatar__name { margin: 0 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #575a61; }
.gp-avatar__text { margin: 0; font-size: .92rem; line-height: 1.45; }
.gp-avatar__close { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #121316; cursor: pointer; }
.gp-avatar__close:focus-visible { outline: 2px solid #121316; outline-offset: -3px; } /* inside the button, so on the white bubble */
@media (prefers-reduced-motion: no-preference) {
	.gp-avatar:not([hidden], .is-aside) { animation: gp-pop .45s var(--ease-out, ease) both; } /* again when it comes back from aside */
	@keyframes gp-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
}

.gp-avatar__close:hover { background: rgba(18, 19, 22, .08); }
@media (max-width: 699px) {
	.gp-avatar__face { width: 48px; height: 48px; }
	.gp-avatar__mono { font-size: 1.2rem; }
	.gp-avatar__bubble { padding: 10px 40px 10px 12px; }
	.gp-avatar__text { font-size: .86rem; line-height: 1.35; } /* not clamped: the setting caps it at 90 characters (3–4 lines) */
}

/* Language selector */
.gp-lang { position: relative; }
.gp-lang__toggle { display: inline-flex; align-items: center; gap: 4px; width: auto; padding: 0 8px; }
.gp-lang__code { font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.gp-lang__panel { --accent-ink: var(--light-accent-ink, #4a6600); position: absolute; top: calc(100% + 8px); right: 0; z-index: 900; min-width: 200px; max-height: 60vh; overflow: auto; padding: 8px; border-radius: var(--radius-s, 12px); background: #fff; color: #121316; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.gp-lang__panel ul { margin: 0; padding: 0; list-style: none; }
.gp-lang__panel button { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gp-lang__panel button:hover { background: #eceae4; }
.gp-lang__panel button:focus-visible { background: #eceae4; outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.gp-lang__panel button[aria-pressed="true"] { font-weight: 700; }
.gp-lang__note { margin: 2px 10px 6px; font-size: .72rem; color: #575a61; }
.gp-lang--menu .gp-lang__panel { position: static; box-shadow: none; margin-top: 8px; }
.gp-lang--footer { display: inline-block; }
.gp-lang--footer .gp-lang__panel { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; } /* opens upwards: the footer is at the end of the page */
@media (max-width: 699px) { .gp-lang--footer .gp-lang__panel { position: static; max-height: none; margin-top: 8px; box-shadow: none; } } /* phones: in the page flow, like the menu one */
/* Google's injected bar would push the header down */
body { top: 0 !important; }
.skiptranslate iframe, #goog-gt-tt, .goog-te-banner-frame { display: none !important; }

/* Product badges */
.gp-proof { display: grid; gap: 6px; margin: 4px 0 14px; }
.gp-proof__item { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; color: var(--muted, #a9acb3); }
.gp-proof__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #d4ff3a); box-shadow: 0 0 0 4px rgba(212, 255, 58, .18); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #d4ff3a) 18%, transparent); } /* static: no endless pulse; the halo follows the world accent */

/* Stars */
.gp-stars { position: relative; display: inline-block; width: 92px; height: 16px; background: linear-gradient(90deg, rgba(127,127,127,.35) 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8zM27 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8zM46 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8zM65 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8zM84 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8zM27 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8zM46 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8zM65 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8zM84 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; vertical-align: middle; }
.gp-stars__fill { position: absolute; inset: 0 auto 0 0; background: var(--accent-ink, #d4ff3a); }
.gp-paper-view .gp-stars__fill { background: #121316; }

/* Personalisation fields (bags) */
.gp-pers { margin: 0 0 16px; padding: 14px 16px 12px; border: 1px solid var(--line, rgba(255,255,255,.13)); border-radius: var(--radius-s, 12px); min-width: 0; }
.gp-pers__title { padding: 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.gp-pers__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gp-pers .gp-field { margin: 0; display: grid; gap: 6px; }
.gp-pers .gp-field label { font-size: .85rem; font-weight: 600; }
.gp-pers .gp-field__unit, .gp-pers .gp-field__opt { font-weight: 400; color: var(--muted, #a9acb3); }
.gp-pers .gp-field input { width: 100%; min-height: var(--field-h, 48px); padding: 10px 12px; border: 1px solid var(--field-line, rgba(255,255,255,.4)); border-radius: var(--field-radius, 10px); background: transparent; color: inherit; font: inherit; }
.gp-pers .gp-field input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: transparent; }
.gp-pers .gp-field input:user-invalid { border-color: var(--danger, #ff8a7a); }
.gp-pers__note { margin: 10px 0 0; font-size: .82rem; color: var(--muted, #a9acb3); }
/* Fit limit stated by the product (gp_product_fit_limits()): a help line, then a polite note when the values exceed it. */
.gp-pers__fit { margin: 10px 0 0; font-size: .82rem; font-weight: 600; }
.gp-pers__fitwarn-text { margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--field-line, rgba(127,127,127,.35)); border-radius: 8px; background: var(--surface-2, rgba(127,127,127,.08)); font-size: .82rem; }
.gp-pers__fitwarn-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gp-pers__fitwarn-text[hidden] { display: none; }

/* Video stories */
.gp-stories { margin: 14px 0 4px; }
.gp-stories__list { display: flex; gap: 14px; margin: 0; padding: 4px 2px 8px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.gp-stories__item { display: grid; justify-items: center; gap: 6px; width: 84px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.gp-stories__ring { display: grid; place-items: center; width: 76px; height: 76px; padding: 3px; border-radius: 50%; background: conic-gradient(var(--accent, #d4ff3a), var(--w-ring-2, #7cf0c8), var(--accent, #d4ff3a)); transition: transform .25s var(--ease-out, ease); }
.gp-stories__ring > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg, #0a0b0d); object-fit: cover; background: var(--bg-3, #1b1e24); }
.gp-stories__play { position: relative; display: block; }
.gp-stories__play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--accent-ink); transform: translateX(2px); }
.gp-stories__item:hover .gp-stories__ring { transform: scale(1.05); }
.gp-stories__item:focus-visible { outline: none; }
.gp-stories__item:focus-visible .gp-stories__ring { outline: 2px solid var(--ink, #f4f4f0); outline-offset: 3px; }
.gp-stories__label { max-width: 84px; font-size: .74rem; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.gp-storyplayer:not([open]) { display: none; }
.gp-storyplayer { width: min(420px, 100vw); max-height: 100vh; padding: 0; border: 0; border-radius: 18px; background: #000; color: #fff; overflow: visible; }
.gp-storyplayer::backdrop { background: rgba(0, 0, 0, .82); }
.gp-storyplayer__frame { position: relative; }
.gp-storyplayer__stage video { display: block; width: 100%; max-height: 82vh; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; object-fit: contain; }
.gp-storyplayer__close, .gp-storyplayer__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gp-storyplayer__close { top: 8px; right: 8px; }
.gp-storyplayer__nav { top: 50%; transform: translateY(-50%); }
.gp-storyplayer__nav--prev { left: 8px; }
.gp-storyplayer__nav--next { right: 8px; }
.gp-storyplayer__close:focus-visible, .gp-storyplayer__nav:focus-visible { outline: 2px solid var(--accent-on-dark, var(--accent, #d4ff3a)); } /* on the black player in both schemes */
.gp-storyplayer__transcript { margin: 0; padding: 10px 14px 14px; font-size: .88rem; }
.gp-storyplayer__transcript summary { cursor: pointer; font-weight: 600; min-height: 32px; }

/* Before / after: title and caption beside the photo on wide screens (level with its top edge, like every heading of the
   page, then held in view while the photo scrolls by), above it on phones. Section spacing: shop.css (product page
   rhythm); the columns match « En vidéo » mirrored (1 : 2.4, same gap). */
.gp-ba-section { display: grid; gap: clamp(18px, 2vw, 26px) clamp(32px, 4vw, 56px); align-items: start; padding-block: clamp(28px, 3.6vw, 52px); }
@media (min-width: 1000px) {
	.gp-ba-section { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr); }
	.gp-ba-section__intro { position: sticky; top: calc(var(--header-total, 80px) + 16px); }
}
.gp-ba-section__intro > * { margin: 0; }
.gp-ba-section__intro .gp-h3 { margin-bottom: 14px; }
.gp-ba__caption { max-width: 40ch; font-size: .88rem; line-height: 1.5; color: var(--ink-2, #cfd1d6); text-wrap: pretty; }
.gp-ba { position: relative; margin: 0; }
.gp-ba__stage { position: relative; overflow: hidden; border-radius: var(--radius, 18px); box-shadow: 0 0 0 1px var(--line, rgba(255, 255, 255, .13)); touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.gp-ba__img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; } /* the stage gets the pointer: no native image drag */
@property --pos { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 50; }
.gp-ba.is-gliding { transition: --pos .3s var(--ease-out, ease-out), --p .3s var(--ease-out, ease-out); } /* a click on the photo glides to the spot; a drag follows the pointer */
.gp-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.gp-ba__before .gp-ba__img { width: 100%; height: 100%; object-fit: cover; }
.gp-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.gp-ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0b0d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: scale .2s var(--ease-out, ease-out); }
.gp-ba.is-dragging .gp-ba__handle::after, .gp-ba__stage:hover .gp-ba__handle::after { scale: 1.08; }
.gp-ba:has(.gp-ba__range:focus-visible) .gp-ba__handle::after { outline: 3px solid var(--paper-ink, #121316); outline-offset: 3px; box-shadow: 0 0 0 9px var(--accent); }
.gp-ba__tag { position: absolute; top: 14px; padding: 6px 12px 5px; border-radius: 20px; background: rgba(10, 11, 13, .74); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; transition: opacity .2s ease; }
.gp-ba__tag--before { left: 14px; }
.gp-ba__tag--after { right: 14px; }
.gp-ba.is-before-covered .gp-ba__tag--before, .gp-ba.is-after-covered .gp-ba__tag--after { opacity: 0; } /* a label whose photo is hidden by the split disappears */
/* Keyboard and screen-reader control: invisible, its focus shows on the handle. */
.gp-ba__range { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }
.gp-ba:has(.gp-ba__msgs) .gp-ba__tag { display: none; } /* the messages name each side */
/* « Les problèmes » / « La solution »: one per side, each stronger as its photo takes more of the frame (--p, 0–100). */
.gp-ba__msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.gp-ba__msg { --w: clamp(0, (var(--p) - 15) / 70, 1); display: grid; gap: 2px; margin: 0; padding: 14px 16px; border-radius: var(--radius-s, 12px); transform: scale(calc(.96 + .04 * var(--w))); transform-origin: bottom center; }
/* The side in view gets a ring in the accent colour; the text keeps full contrast. */
.gp-ba__msg { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) calc(var(--w) * 100%), transparent); transition: box-shadow .2s; }
.gp-ba__msg--before { transform-origin: bottom left; background: #ecebe7; color: #121316; }
.gp-ba__msg--after { --w: clamp(0, (85 - var(--p)) / 70, 1); transform-origin: bottom right; background: #121316; color: #fff; text-align: right; justify-items: end; }
.gp-ba__kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gp-ba__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gp-ba__msg--before .gp-ba__kicker { color: #b3261e; }
.gp-ba__msg--after .gp-ba__kicker { color: var(--w-ink-dark, #d4ff3a); }
.gp-ba__title { font: 800 clamp(1.02rem, 1.6vw, 1.25rem)/1.15 var(--font-display); }
.gp-ba__text { font-size: .84rem; line-height: 1.35; opacity: .72; }
.gp-ba__lines { display: grid; gap: 2px; margin: 0; }
/* The points of each side: a cross before, a tick after (the mark's shape says it, not its colour alone). */
.gp-ba__points { display: grid; gap: 5px; margin: 8px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-size: .84rem; font-weight: 600; line-height: 1.3; text-align: left; justify-self: stretch; }
.gp-ba__points li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; }
.gp-ba__points li::before { content: ""; width: 14px; height: 14px; margin-top: .08em; background: currentColor; -webkit-mask: var(--gp-ba-mark) center / contain no-repeat; mask: var(--gp-ba-mark) center / contain no-repeat; }
.gp-ba__msg--before .gp-ba__points { --gp-ba-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 3l8 8M11 3l-8 8'/%3E%3C/svg%3E"); }
.gp-ba__msg--before .gp-ba__points li::before { color: #b3261e; }
.gp-ba__msg--after .gp-ba__points { --gp-ba-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.500 7.500l3 3 6-7'/%3E%3C/svg%3E"); }
.gp-ba__msg--after .gp-ba__points li::before { color: var(--w-ink-dark, #d4ff3a); }
@media (min-width: 900px) {
	/* On the photo, in its bottom corners (the person stands in the middle). */
	.gp-ba__msgs { position: absolute; inset: auto 16px 16px; margin: 0; pointer-events: none; }
	.gp-ba__msg { max-width: 290px; padding: 14px 18px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) calc(var(--w) * 100%), transparent), 0 12px 32px rgba(0, 0, 0, .14); }
	.gp-ba__msg--after { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { .gp-ba.is-gliding, .gp-ba__handle::after, .gp-ba__tag { transition: none; } .gp-ba__msg { transform: none; } }

/* Product FAQ */
.gp-pfaq { padding-block: clamp(40px, 6vw, 80px); }
.gp-pfaq .gp-acc { margin-top: 18px; } /* the accordion itself: theme main.css (.gp-acc) */
.gp-pfaq__all { margin-top: 20px; }

/* Phones: keep the cookie banner short (refuse and accept stay the same size). */
@media (max-width: 600px) {
	.gp-consent__box { padding: 14px 16px; }
	.gp-consent__title { font-size: .95rem; }
	.gp-consent__text { margin-bottom: 10px; font-size: .84rem; line-height: 1.4; }
	.gp-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.gp-consent__actions .gp-btn { min-height: 44px; padding: .6em .8em; font-size: .82rem; }
	.gp-consent__actions [data-gp-consent="custom"] { grid-column: 1 / -1; order: 3; }
}

/* Before / after (product page p5): each message fades out as its side of the slider shrinks, so text and photo
   change together while dragging; on phones too the two messages sit inside the photo (compact: kicker and title). */
.gp-ba__msg--before { opacity: clamp(0, calc((var(--p) - 10) / 20), 1); }
.gp-ba__msg--after { opacity: clamp(0, calc((90 - var(--p)) / 20), 1); }
.gp-ba__msg { transition: box-shadow .2s, opacity .25s; }
@media (max-width: 899.98px) {
	.gp-ba { position: relative; }
	.gp-ba__msgs { position: absolute; inset: auto 8px 8px; margin: 0; gap: 8px; pointer-events: none; }
	.gp-ba__msg { gap: 1px; padding: 8px 10px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) calc(var(--w) * 100%), transparent), 0 6px 18px rgba(0, 0, 0, .16); }
	.gp-ba__msg--after { justify-self: end; }
	.gp-ba__kicker { font-size: .6rem; gap: 5px; }
	.gp-ba__kicker::before { width: 6px; height: 6px; }
	.gp-ba__title { font-size: .9rem; }
	/* Compact means kicker and title only: the text and the points are still read, but take no room over the photo. */
	.gp-ba__text, .gp-ba__points { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* « En vidéo » (templates/product-videos.php): the card shows the product's own picture; the player comes on press.
   One video (.gp-vid--n1): from 1000 px a feature, the player on the left, the heading, the video's title and the note
   in a column beside it (the card shares the section's grid through subgrid); stacked below. Several videos: balanced
   rows on six columns from 1000 px (2, 3, 2 + 2, 3 + 2, 3 + 3, 3 + 2 + 2), two across on tablets with an odd last card
   across the row, one per row on phones: no row is ever half empty. Section spacing: shop.css (product page rhythm). */
.gp-vid { padding-block: clamp(28px, 3.6vw, 52px); }
.gp-vid__head { display: grid; gap: 10px; margin-bottom: clamp(18px, 2vw, 26px); }
.gp-vid__head > * { margin: 0; }
.gp-vid__note { max-width: 62ch; font-size: .88rem; line-height: 1.5; color: var(--ink-2, #cfd1d6); text-wrap: pretty; }
.gp-vid__list { display: grid; gap: clamp(22px, 2.4vw, 32px) clamp(14px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.gp-vid__list > li { min-width: 0; }
.gp-vid__card { display: grid; align-content: start; gap: 4px; color: var(--ink, #f4f4f0); text-decoration: none; }
.gp-vid__frame { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: 10px; overflow: hidden; border-radius: var(--radius, 18px); background: var(--tile, #e9e7e2); box-shadow: 0 0 0 1px var(--line, rgba(255, 255, 255, .13)); }
.gp-vid__frame.gp-tone--dark { background: var(--tone-dark, #17191e); }
.gp-vid__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out, ease-out); }
.gp-vid__img.is-photo { object-position: 50% 0; transform-origin: 50% 0; } /* a photo is framed from its top: the wearer's head stays in the 16:9 frame at every width (product 352) */
.gp-vid__img.is-cut { object-fit: contain; padding: 5% 6%; } /* a cut-out stands whole on the tile, as in the gallery */
.gp-vid__frame.gp-tone--light .gp-vid__img.is-cut { mix-blend-mode: multiply; } /* its white melts into the tile: no box */
.gp-vid__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: #0a0b0d; color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); transition: scale .35s var(--ease-out, ease-out); }
.gp-vid__play svg { width: 26px; height: 26px; margin-left: 3px; }
.gp-vid__card:hover .gp-vid__img { scale: 1.035; }
.gp-vid__card:hover .gp-vid__play { scale: 1.08; }
.gp-vid__card:focus-visible { outline: none; }
.gp-vid__card:focus-visible .gp-vid__frame { outline: 3px solid var(--accent-ink, #d4ff3a); outline-offset: 3px; }
.gp-vid__title { font: 800 1.05rem/1.2 var(--font-display); text-transform: uppercase; text-wrap: balance; }
a.gp-vid__card:hover .gp-vid__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gp-vid__meta { font-size: .86rem; color: var(--ink-2, #cfd1d6); }
.gp-vid__card.is-playing .gp-vid__frame { background: #0a0b0d; }
.gp-vid__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gp-vid__card.is-playing .gp-vid__frame:focus-within { outline: 3px solid var(--accent-ink, #d4ff3a); outline-offset: 3px; } /* focus moves into the player on press: the card's ring stays on it */
@media (min-width: 760px) {
	.gp-vid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gp-vid--n1 .gp-vid__list { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 760px) and (max-width: 999.98px) {
	.gp-vid__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd last card takes the whole row */
}
@media (min-width: 1000px) {
	.gp-vid:not(.gp-vid--n1) .gp-vid__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.gp-vid:not(.gp-vid--n1) .gp-vid__list > li { grid-column: span 3; } /* halves, also past seven videos */
	.gp-vid:is(.gp-vid--n3, .gp-vid--n6) .gp-vid__list > li, .gp-vid:is(.gp-vid--n5, .gp-vid--n7) .gp-vid__list > li:nth-child(-n + 3) { grid-column: span 2; } /* thirds: as specific as the halves, or more */
}
@supports (grid-template-rows: subgrid) {
	@media (min-width: 1000px) {
		/* Rows: heading, video title, « Lire la vidéo », note, then the rest of the player's height. */
		.gp-vid--n1 { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: clamp(32px, 4vw, 56px); }
		.gp-vid--n1 .gp-vid__head { display: contents; }
		.gp-vid--n1 .gp-vid__head > * { grid-column: 2; }
		.gp-vid--n1 .gp-vid__head > h2 { grid-row: 1; margin-bottom: clamp(16px, 1.8vw, 24px); }
		.gp-vid--n1 .gp-vid__note { grid-row: 4; align-self: start; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line, rgba(255, 255, 255, .13)); }
		.gp-vid--n1 :is(.gp-vid__list, .gp-vid__list > li, .gp-vid__card) { display: grid; grid-column: 1 / -1; grid-row: 1 / -1; grid-template-columns: subgrid; grid-template-rows: subgrid; gap: normal; }
		.gp-vid--n1 :is(.gp-vid__list, .gp-vid__list > li, .gp-vid__card) { pointer-events: none; } /* they span the grid, over the heading and the note: only the card's picture and lines take the pointer, so that text stays selectable */
		.gp-vid--n1 .gp-vid__card > * { pointer-events: auto; }
		.gp-vid--n1 .gp-vid__frame { grid-column: 1; grid-row: 1 / -1; align-self: start; margin: 0; }
		.gp-vid--n1 .gp-vid__title { grid-column: 2; grid-row: 2; align-self: start; font-size: clamp(1.2rem, .85rem + .9vw, 1.6rem); line-height: 1.08; }
		.gp-vid--n1 .gp-vid__meta { grid-column: 2; grid-row: 3; align-self: start; margin-top: 10px; }
	}
}
@media (prefers-reduced-motion: reduce) { .gp-vid__img, .gp-vid__play { transition: none; } .gp-vid__card:hover :is(.gp-vid__img, .gp-vid__play) { scale: none; } }
