/* ==========================================================================
   YT Pricing Toggle — Base styles
   ========================================================================== */

.yt-pt-wrapper {
	margin: 0 auto;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Toggle switch:  Mensuel — [switch] — Annuel
   -------------------------------------------------------------------------- */
.yt-pt-toggle-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-bottom: 40px;
}

/* Labels */
.yt-pt-toggle__label-text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #888;
	cursor: pointer;
	transition: color .3s ease;
	white-space: nowrap;
	user-select: none;
}

.yt-pt-toggle__label-text:hover {
	color: #555;
}

.yt-pt-toggle__label-text.is-active {
	color: #1a1a2e;
}

/* The switch track */
.yt-pt-wrapper .yt-pt-switch,
.yt-pt-wrapper .yt-pt-switch:focus,
.yt-pt-wrapper .yt-pt-switch:hover,
.yt-pt-wrapper .yt-pt-switch:active {
	--yt-sw-w: 52px;
	--yt-sw-h: 28px;
	--yt-sw-pad: 3px;
	--yt-knob: calc(var(--yt-sw-h) - var(--yt-sw-pad) * 2);
	position: relative;
	display: inline-flex;
	align-items: center;
	width: var(--yt-sw-w);
	height: var(--yt-sw-h);
	min-width: var(--yt-sw-w);
	min-height: var(--yt-sw-h);
	background-color: #ccc;
	border-radius: 9999px !important;
	border: none !important;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	transition: background-color .3s ease;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	flex-shrink: 0;
	box-sizing: content-box;
	line-height: 1;
}

.yt-pt-wrapper .yt-pt-switch.is-on {
	background-color: #6C63FF;
}

/* The knob — perfectly round */
.yt-pt-wrapper .yt-pt-switch .yt-pt-switch__knob {
	position: absolute;
	top: var(--yt-sw-pad);
	left: var(--yt-sw-pad);
	width: var(--yt-knob);
	height: var(--yt-knob);
	background: #fff;
	border-radius: 50% !important;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
	pointer-events: none;
	display: block;
}

.yt-pt-wrapper .yt-pt-switch.is-on .yt-pt-switch__knob {
	transform: translateX(calc(var(--yt-sw-w) - var(--yt-knob) - var(--yt-sw-pad) * 2));
}

/* Badge (-20%) */
.yt-pt-toggle__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 3px 7px;
	border-radius: 10px;
	background: #4CAF50;
	color: #fff;
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Cards grid
   -------------------------------------------------------------------------- */
.yt-pt-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.yt-pt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 300px;
	max-width: 450px;
	background: #fff;
	border: 2px solid #e8e8e8;
	border-radius: 16px;
	padding: 32px;
	transition: transform .25s ease, box-shadow .25s ease;
}

.yt-pt-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.yt-pt-card--featured {
	border-color: #6C63FF;
}

/* Badge "Populaire" */
.yt-pt-card__badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: #6C63FF;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 16px;
	border-radius: 20px;
	white-space: nowrap;
}

/* Header */
.yt-pt-card__header {
	margin-bottom: 16px;
}

.yt-pt-card__name {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
}

.yt-pt-card__subtitle {
	margin: 0;
	font-size: 14px;
	color: #888;
}

/* Price */
.yt-pt-card__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 12px;
}

.yt-pt-card__price-value {
	font-size: 42px;
	font-weight: 800;
	line-height: 1;
	color: #1a1a2e;
}

.yt-pt-card__price-suffix {
	font-size: 15px;
	color: #888;
	font-weight: 500;
}

.yt-pt-card__price-decimal {
	font-size: 0.55em;
	font-weight: 700;
	vertical-align: sub;
}

/* Description (under price) */
.yt-pt-card__description {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin: 0 0 20px;
}

/* Features */
.yt-pt-card__features {
	flex: 1;
	margin-bottom: 24px;
}

.yt-pt-card__feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #555;
}

.yt-pt-card__feature--disabled {
	color: #ccc;
	text-decoration: line-through;
}

.yt-pt-card__feature-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	font-size: 16px;
	line-height: 1;
}

.yt-pt-card__feature-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.yt-pt-card__feature-icon--check {
	color: #4CAF50;
}

.yt-pt-card__feature-icon--cross {
	color: #ccc;
}

/* Pre-CTA text (above button) */
.yt-pt-card__pre-cta {
	font-size: 13px;
	color: #888;
	margin: 0 0 12px;
	line-height: 1.4;
}

/* CTA buttons */
.yt-pt-card__ctas {
	margin-top: auto;
	margin-bottom: 10px;
}

.yt-pt-card__cta {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: #6C63FF;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease;
	box-sizing: border-box;
}

.yt-pt-card__cta:hover {
	background: #5a52e0;
	color: #fff;
	transform: translateY(-1px);
}

/* Annotations (under button) */
.yt-pt-card__annotations {
	margin: 0;
}

.yt-pt-card__annotation {
	font-size: 12px;
	color: #999;
	line-height: 1.4;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.yt-pt-cards {
		flex-direction: column;
		align-items: center;
	}

	.yt-pt-card {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.yt-pt-toggle__label-text {
		font-size: 14px;
	}
}
