/* =========================================================
   CoachDesk — Coaching Pack product page (Concept A: a two-column magazine)
   ========================================================= */

.np-pp {
	--np-green: var(--cd-primary, #117c87);
	--np-green-d: var(--cd-primary-dark, #0e6470);
	--np-green-wash: var(--cd-primary-wash, #eef6f7);
	--np-navy: var(--cd-navy, #0f1b2d);
	--np-ink: var(--cd-ink, #1f2733);
	--np-muted: var(--cd-muted, #5f6a74);
	--np-line: var(--cd-line, #e7eaee);
	--np-line-strong: var(--cd-line-strong, #d5d9de);
	--np-bg: var(--cd-bg, #f4f6f8);

	font-size: 15px;
	line-height: 1.6;
	color: var(--np-ink);

	/* A full-width navy band behind Blocksy's transparent header (~80px):
	   it clears the product block below the nav AND keeps the (white) links legible.
	   Under the band: a light grey page background --np-bg (#F4F6F8). */
	padding-top: 130px;
	padding-bottom: 64px;
	background-color: var(--np-bg);
	background-image: linear-gradient( to bottom, var(--np-navy) 88px, transparent 88px );
}

.np-pp * { box-sizing: border-box; }

/* ── Two-column grid ── */

.np-pp-wrap {
	display: grid;
	grid-template-columns: 3fr 2fr;
	align-items: stretch;
	gap: 24px;
	/* The same width as the Blocksy header's container (.ct-container) at every
	   size (90vw through --theme-container-width). */
	max-width: min( var( --theme-container-width, 90vw ), var( --theme-normal-container-max-width, 1290px ) );
	margin: 0 auto;
}

/* ════════════════════════════════════════
   COLONNE GAUCHE
   ════════════════════════════════════════ */

.np-pp-left {
	display: flex;
	flex-direction: column;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(20,40,60,.035), 0 6px 18px rgba(20,40,60,.045);
}

/* ── Hero navy ── */

.np-pp-head {
	background-color: var(--np-navy);
	background-image: var(--np-pp-head-bg, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	padding: 36px 36px 28px;
}

.np-pp-head-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.np-pp-head-text {
	flex: 1;
	min-width: 0;
}

/* Circular icon (the same style as the cards) */
.np-pp-head-icon {
	width: 52px;
	height: 52px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 24px;
	line-height: 1;
}

.np-pp-chip {
	display: inline-block;
	background: rgba(var(--cd-primary-rgb),0.22);
	color: var(--np-green);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 0;
	margin-bottom: 12px;
}

.np-pp-title {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.2;
}

.np-pp-meta {
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
	margin: 0;
}

/* ── Barre de stats ── */

.np-pp-stats {
	display: flex;
	background: rgba(255, 255, 255, 0.07);
	border-radius: 0;
	overflow: hidden;
}

.np-pp-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 10px;
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
	gap: 4px;
}

.np-pp-stat:last-child { box-shadow: none; }

.np-pp-sval {
	font-size: 24px;
	font-weight: 700;
	color: var(--np-green);
	line-height: 1;
}

.np-pp-slbl {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
}

/* ── Contenu (description) ── */

.np-pp-content {
	padding: 32px 36px;
	background: var(--np-navy);
}

.np-pp-lead {
	font-size: 15px;
	color: var(--np-ink);
	margin: 0 0 24px;
	padding-bottom: 24px;
	box-shadow: inset 0 -1px 0 var(--np-line);
	line-height: 1.7;
}

.np-pp-lead p:last-child { margin-bottom: 0; }

.np-pp-section-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--np-muted);
	margin: 0 0 16px;
}

.np-pp-desc {
	font-size: 14px;
	color: var(--np-ink);
	line-height: 1.7;
}

.np-pp-desc p { margin: 0 0 14px; }
.np-pp-desc p:last-child { margin-bottom: 0; }
.np-pp-desc ul, .np-pp-desc ol { padding-left: 22px; margin: 0 0 14px; }
.np-pp-desc li { margin-bottom: 6px; }
.np-pp-desc h2, .np-pp-desc h3 { font-size: 16px; font-weight: 600; margin: 20px 0 10px; color: var(--np-ink); }

/* Light text on the navy background of the description area */
.np-pp-content .np-pp-lead {
	color: rgba(255, 255, 255, 0.92);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.np-pp-content .np-pp-section-title {
	color: rgba(255, 255, 255, 0.5);
}

.np-pp-content .np-pp-desc {
	color: rgba(255, 255, 255, 0.82);
}

.np-pp-content .np-pp-desc h2,
.np-pp-content .np-pp-desc h3 {
	color: #fff;
}

/* ── How it works (it fills the height, the same background as the right-hand column) ── */

.np-pp-how {
	background: var(--np-bg);
	box-shadow: inset 0 1px 0 var(--np-line);
	padding: 28px 36px;
}

/* Collapsible: native <details>/<summary> — a clickable title + a chevron that pivots. */
.np-pp-how > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.np-pp-how > summary::-webkit-details-marker { display: none; }

.np-pp-how-summary .np-pp-section-title { margin: 0; }

.np-pp-how-chevron {
	color: var(--np-muted) !important;
	font-size: 18px !important;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.np-pp-how[open] .np-pp-how-chevron { transform: rotate(180deg); }

.np-pp-how[open] .np-pp-steps { margin-top: 18px; }

.np-pp-steps {
	display: flex;
	flex-direction: column;
}

.np-pp-step {
	display: flex;
	gap: 14px;
	padding-bottom: 20px;
	position: relative;
}

.np-pp-step:last-child {
	padding-bottom: 0;
}

/* Vertical connector between the pills */
.np-pp-step:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 13px;
	top: 30px;
	bottom: 0;
	width: 2px;
	background: var(--np-line);
}

.np-pp-step-num {
	width: 28px;
	height: 28px;
	border-radius: 0;
	background: var(--np-green);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.np-pp-step-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 3px;
}

.np-pp-step-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--np-ink);
}

.np-pp-step-text {
	font-size: 13px;
	color: var(--np-muted);
	line-height: 1.5;
}

/* ════════════════════════════════════════
   COLONNE DROITE (sticky)
   ════════════════════════════════════════ */

.np-pp-right {
	background: transparent;
}

.np-pp-right-inner {
	position: sticky;
	top: 100px;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 1px 2px rgba(20,40,60,.035), 0 6px 18px rgba(20,40,60,.045);
}

/* ── Prix ── */

.np-pp-pricing {}

.np-pp-price-big {
	font-size: 28px;
	font-weight: 700;
	color: var(--np-ink);
	line-height: 1;
}

.np-pp-price-big .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

.np-pp-price-sub {
	font-size: 13px;
	color: var(--np-muted);
	margin-top: 6px;
}

/* ── Summary table ── */

/*
 * ⚠ The theme paints a 1px #f2f2f2 border on the <table> AND on each of its
 * <td>s; with `border-collapse: collapse` they merge into a complete grid,
 * which the visual identity forbids. Our sheet never reset them — measured on
 * the page: 7 bordered elements. We cancel them here; the separation of the
 * rows stays carried by the inset shadow below.
 * The same trap as the theme's form fields, which need the same scoped
 * `border: 0`.
 */
.np-pp-details,
.np-pp-details td {
	border: 0;
}

.np-pp-details {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.np-pp-details tr { box-shadow: inset 0 -1px 0 var(--np-line); }
.np-pp-details tr:last-child { box-shadow: none; }

.np-pp-details td {
	padding: 10px 14px;
	vertical-align: middle;
}

.np-pp-details td:first-child {
	color: var(--np-muted);
	white-space: nowrap;
}

.np-pp-details td:last-child {
	font-weight: 600;
	color: var(--np-ink);
	text-align: right;
}

/* ── Bouton Ajouter au panier ── */

.np-pp-atc .cart {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.np-pp-atc .quantity {
	display: none !important;
}

.np-pp-atc .single_add_to_cart_button,
.np-pp-atc button[type="submit"] {
	display: block !important;
	width: 100% !important;
	padding: 14px !important;
	background: var(--np-green) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-align: center !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer !important;
	transition: background 0.15s !important;
	line-height: 1.3 !important;
	letter-spacing: 0.02em !important;
}

.np-pp-atc .single_add_to_cart_button:hover,
.np-pp-atc button[type="submit"]:hover {
	background: var(--np-green-d) !important;
}

/* ── Pack terms — rendered inline (a row of cells) ── */

.np-pp-rules {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 36px;
}

.np-pp-rule {
	flex: 1 1 130px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20,40,60,.035), 0 6px 18px rgba(20,40,60,.045);
}

.np-pp-rule-icon {
	color: var(--np-green) !important;
	font-size: 18px !important;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.np-pp-rule-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.np-pp-rule-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--np-muted);
}

.np-pp-rule-value {
	font-size: 13px;
	font-weight: 600;
	color: var(--np-ink);
	line-height: 1.3;
}

/* ── Solo / Duo formula picker ── */

.np-pp .np-mode {
	margin-bottom: 0;
}

.np-pp .np-mode-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--np-muted);
	margin-bottom: 8px;
}

.np-pp .np-mode-opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	align-items: stretch;
}

.np-pp .np-mode-opt {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 10px 12px;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 40, 60, 0.035), 0 6px 18px rgba(20, 40, 60, 0.045);
	cursor: pointer;
	transition: box-shadow 0.15s, background 0.15s;
}

.np-pp .np-mode-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.np-pp .np-mode-opt.is-active {
	box-shadow: inset 3px 0 0 var(--np-green), 0 1px 2px rgba(20, 40, 60, 0.05), 0 6px 18px rgba(20, 40, 60, 0.07);
	background: var(--np-green-wash);
}

.np-pp .np-mode-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.np-pp .np-mode-ic {
	flex: none;
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	color: var(--np-green);
}

.np-pp .np-mode-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--np-ink);
}

.np-pp .np-mode-name small {
	font-weight: 400;
	color: var(--np-muted);
}

.np-pp .np-mode-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--np-green-d);
}

/* The “Test battery” add-on (Coaching Pack): it spaces the block from the Solo/Duo
   picker above and from the add-to-basket button below. */
.np-pp .np-bilan-addon {
	margin-top: 12px;
	margin-bottom: 12px;
}

/* ── Add-ons of the funnel (check-in sessions + an anthropometric assessment) ──
   The visual identity: flat, square corners, a teal-wash background, a discreet teal rule. */
.np-pp .np-control-addon,
.np-pp .np-anthro-addon {
	margin: 0;
	padding: 14px 16px;
	background: var(--np-green-wash);
	box-shadow: 0 1px 2px rgba(20, 40, 60, 0.035), 0 6px 18px rgba(20, 40, 60, 0.045);
	border-radius: 0;
}

.np-pp .np-control-title,
.np-pp .np-anthro-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--np-ink);
}

.np-pp .np-anthro-title .dashicons {
	color: var(--np-green);
	vertical-align: middle;
}

.np-pp .np-control-desc,
.np-pp .np-anthro-desc {
	display: block;
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--np-muted);
}

.np-pp .np-anthro-price {
	color: var(--np-green-d);
	font-weight: 600;
}

/* Anthropometric add-on: a tickable row. */
.np-pp .np-anthro-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

/* A switch (toggle) — square corners, no border, a light shadow. */
.np-pp .np-anthro-switch {
	position: relative;
	flex: none;
	width: 44px;
	height: 24px;
	margin-top: 1px;
}

.np-pp .np-anthro-opt {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.np-pp .np-anthro-slider {
	position: absolute;
	inset: 0;
	background: #cdd6da;
	box-shadow: inset 0 1px 2px rgba(20, 40, 60, 0.10);
	transition: background 0.18s ease;
}

.np-pp .np-anthro-slider::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 40, 60, 0.25);
	transition: transform 0.18s ease;
}

.np-pp .np-anthro-opt:checked + .np-anthro-slider,
.np-pp .np-inbody-opt:checked + .np-anthro-slider {
	background: var(--np-green);
}

.np-pp .np-anthro-opt:checked + .np-anthro-slider::before,
.np-pp .np-inbody-opt:checked + .np-anthro-slider::before {
	transform: translateX(20px);
}

.np-pp .np-anthro-opt:focus-visible + .np-anthro-slider,
.np-pp .np-inbody-opt:focus-visible + .np-anthro-slider {
	box-shadow: inset 0 1px 2px rgba(20, 40, 60, 0.10), 0 0 0 3px rgba(var(--cd-primary-rgb),0.18);
}

.np-pp .np-anthro-body { display: block; }

.np-pp .np-anthro-note {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--np-green-d);
}

/* The “always included” variant: a light teal-tinted shadow (no rule). */
.np-pp .np-anthro-addon--included {
	box-shadow: 0 1px 2px rgba(var(--cd-primary-rgb),0.10), 0 6px 18px rgba(var(--cd-primary-rgb),0.14);
}

/* Check-in sessions add-on: a quantity row. */
.np-pp .np-control-desc { margin-bottom: 10px; }

.np-pp .np-control-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
}

.np-pp .np-control-qty-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--np-ink);
}

/* Quantity picker as segmented buttons (one button per figure). */
.np-pp .np-control-qtybtns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.np-pp .np-control-qtybtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--np-ink);
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 40, 60, 0.035), 0 6px 18px rgba(20, 40, 60, 0.045);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.np-pp .np-control-qtybtn input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.np-pp .np-control-qtybtn:hover {
	box-shadow: 0 2px 4px rgba(20, 40, 60, 0.05), 0 8px 20px rgba(20, 40, 60, 0.09);
}

.np-pp .np-control-qtybtn.is-active {
	color: #fff;
	background: var(--np-green);
	box-shadow: 0 1px 2px rgba(var(--cd-primary-rgb),0.20), 0 6px 18px rgba(var(--cd-primary-rgb),0.22);
}

.np-pp .np-control-qtybtn input:focus-visible + span {
	text-decoration: underline;
}

.np-pp .np-control-unit {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--np-green-d);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

@media (max-width: 860px) {
	.np-pp-wrap {
		grid-template-columns: 1fr;
	}

	.np-pp-right {
		border-top: none;
	}

	.np-pp-right-inner {
		position: static;
		top: auto;
	}

	.np-pp-head {
		padding: 24px 20px 20px;
	}

	.np-pp-content {
		padding: 24px 20px;
	}

	.np-pp-how {
		padding: 24px 20px;
	}

	.np-pp-rules {
		margin: 16px 20px;
	}

	.np-pp-title {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.np-pp-head-icon {
		display: none;
	}
}
