/* ------------------------------------------------------------------
 * Barre de progression des paliers
 * ------------------------------------------------------------------ */
.fdp-progress {
	--fdp-fill: #c8f53b;
	--fdp-track: #2b2b2b;
	--fdp-tick: #5b6475;
	--fdp-text: inherit;
	color: var(--fdp-text);
	padding: 14px 16px 10px;
	line-height: 1.3;
}

.fdp-progress__msg {
	font-size: 1.05em;
	margin-bottom: 18px;
}

.fdp-progress__msg strong {
	font-weight: 700;
}

.fdp-progress__msg .woocommerce-Price-amount {
	font-weight: inherit;
}

.fdp-progress__track {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: var(--fdp-track);
}

.fdp-progress__fill {
	position: absolute;
	inset: 0 auto 0 0;
	min-width: 6px;
	border-radius: 999px;
	background: var(--fdp-fill);
	box-shadow: 0 0 8px color-mix(in srgb, var(--fdp-fill) 55%, transparent);
	transition: width .5s ease;
}

.fdp-progress__tick {
	position: absolute;
	top: 1px;
	bottom: 1px;
	width: 3px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--fdp-tick);
	z-index: 1;
}

.fdp-progress__tick.is-reached {
	background: color-mix(in srgb, var(--fdp-track) 60%, #000);
}

.fdp-progress__labels {
	position: relative;
	height: 1.6em;
	margin-top: 8px;
	font-size: .92em;
	font-weight: 700;
}

.fdp-progress__label {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	white-space: nowrap;
}

.fdp-progress__label.is-end {
	transform: translateX(-100%);
}

.fdp-progress__label.is-start {
	transform: none;
}

.fdp-progress__label.is-reached {
	opacity: .55;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.fdp-progress.is-complete .fdp-progress__label.is-reached {
	opacity: 1;
	text-decoration: none;
}

/* Sur la page panier / commande */
.fdp-zone--cart,
.fdp-zone--checkout {
	margin-bottom: 1.5em;
}

.fdp-zone--cart .fdp-progress,
.fdp-zone--checkout .fdp-progress {
	padding: 0 0 6px;
}

/* ------------------------------------------------------------------
 * Bloc cagnotte
 * ------------------------------------------------------------------ */
.fdp-wallet {
	padding: 10px 16px;
	font-size: .92em;
}

.fdp-zone .fdp-wallet {
	padding: 10px 0;
}

.fdp-wallet__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.fdp-wallet__btn {
	flex-shrink: 0;
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--fdp-fill, #c8f53b);
	color: #111;
	font-weight: 700;
	font-size: .95em;
	line-height: 1.2;
	cursor: pointer;
}

.fdp-wallet__btn.is-ghost {
	background: transparent;
	color: inherit;
	text-decoration: underline;
	padding: 6px 0;
}

.fdp-wallet__btn[disabled] {
	opacity: .5;
	cursor: wait;
}

.fdp-wallet__earn {
	margin-top: 4px;
	opacity: .8;
}

.fdp-wallet__row + .fdp-wallet__earn {
	margin-top: 8px;
}

.fdp-wallet__error:empty {
	display: none;
}

.fdp-wallet__error {
	margin-top: 6px;
	color: #e2401c;
}

/* ------------------------------------------------------------------
 * Mon compte
 * ------------------------------------------------------------------ */
.fdp-account .fdp-card {
	margin-bottom: 2em;
}

.fdp-card__big {
	font-size: 2em;
	font-weight: 700;
	margin: 0 0 .4em;
}

.fdp-card__muted {
	opacity: .7;
}

.fdp-copy {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin-bottom: 1em;
}

.fdp-copy input {
	flex: 1;
	min-width: 0;
}

.fdp-log .is-plus {
	color: #2e7d32;
}

.fdp-log .is-minus {
	color: #c62828;
}

/* Lien retour des sous-pages */
.fdp-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 1.2em;
	padding: 6px 14px 6px 8px;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 999px;
	color: inherit;
	font-size: .92em;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s;
}

.fdp-back:hover,
.fdp-back:focus-visible {
	border-color: currentColor;
	color: inherit;
}

/* ------------------------------------------------------------------
 * Accueil Mon compte
 * ------------------------------------------------------------------ */
.fdp-dash {
	--fdp-border: color-mix(in srgb, currentColor 14%, transparent);
	--fdp-soft: color-mix(in srgb, currentColor 5%, transparent);
	--fdp-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fdp-hello {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--fdp-border);
}

.fdp-hello__title {
	margin: 0;
	font-size: 1.8em;
	line-height: 1.2;
}

.fdp-hello__logout {
	font-size: .9em;
	opacity: .7;
}

.fdp-dash-card {
	padding: 20px 22px;
	border: 1px solid var(--fdp-border);
	border-radius: var(--fdp-radius);
	background: var(--fdp-soft);
}

.fdp-dash-card__label {
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .65;
}

.fdp-dash-card__link {
	font-size: .9em;
	white-space: nowrap;
}

/* Cagnotte */
.fdp-dash-wallet__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.fdp-dash-wallet__amount {
	font-size: 2.4em;
	font-weight: 800;
	line-height: 1.1;
	margin-top: 4px;
}

.fdp-dash-wallet__bar {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: var(--fdp-track, #2b2b2b);
	overflow: hidden;
}

.fdp-dash-wallet__fill {
	height: 100%;
	min-width: 8px;
	border-radius: 999px;
	background: var(--fdp-fill, #c8f53b);
	transition: width .6s ease;
}

.fdp-dash-wallet__scale {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: .82em;
	opacity: .65;
}

.fdp-dash-wallet__msg {
	margin: 12px 0 0;
	font-size: .95em;
}

/* Code parrain */
.fdp-dash-ref {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.fdp-dash-ref__text {
	flex: 1 1 260px;
}

.fdp-dash-ref__text p {
	margin: 6px 0 0;
	font-size: .95em;
}

.fdp-dash-ref__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fdp-dash .fdp-dash-ref__code {
	padding: 10px 18px;
	border: 2px dashed currentColor;
	border-radius: 10px;
	background: transparent;
	color: inherit;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 1.25em;
	font-weight: 700;
	letter-spacing: .08em;
	cursor: pointer;
}

.fdp-dash .fdp-dash-ref__share {
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--fdp-fill, #c8f53b);
	color: #111;
	font-weight: 700;
	cursor: pointer;
}

/* Tuiles */
.fdp-dash-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.fdp-dash-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fdp-dash-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 22px;
	border: 1px solid var(--fdp-border, rgba(127, 127, 127, .25));
	border-radius: var(--fdp-radius, 14px);
	color: inherit;
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}

.fdp-dash-tile:hover,
.fdp-dash-tile:focus-visible {
	border-color: currentColor;
	transform: translateY(-2px);
	color: inherit;
}

.fdp-dash-tile__icon {
	margin-bottom: 8px;
	opacity: .85;
}

.fdp-dash-tile__label {
	font-weight: 700;
	font-size: 1.05em;
}

.fdp-dash-tile__desc {
	font-size: .88em;
	opacity: .65;
}

@media (max-width: 900px) {
	.fdp-dash-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.fdp-dash-grid,
	.fdp-dash-grid--3 {
		grid-template-columns: 1fr;
	}
	.fdp-dash-wallet__amount {
		font-size: 2em;
	}
}
