.bedame-estimator {
	--bedame-main: #ffef2c;
	--bedame-main-hover: #ffdd00;
	--bedame-main-text: #042a44;
	--bedame-secondary: #042a44;
	--bedame-secondary-hover: #031f33;
	--bedame-secondary-soft: #1a335c;
	--bedame-teal: #00c9b8;
	--bedame-teal-soft: #e8faf8;
	--bedame-select: var(--bedame-secondary);
	--bedame-select-bg: #fff;
	--bedame-border: #fff;
	--bedame-muted: #6b7a90;
	--bedame-white: #ffffff;
	--bedame-radius: 20px;
	--bedame-radius-sm: 14px;
	--bedame-font: Poppins, Arial, Helvetica, sans-serif;
	--bedame-gap: 24px;
	font-family: var(--bedame-font);
	color: var(--bedame-secondary);
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 12px 40px;
	box-sizing: border-box;
}

.bedame-estimator *,
.bedame-estimator *::before,
.bedame-estimator *::after {
	box-sizing: border-box;
}

.bedame-estimator__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr);
	gap: var(--bedame-gap);
	align-items: start;
}

/* Panneau jaune */
.bedame-estimator__config {
	background: var(--bedame-main);
	border-radius: 28px;
	padding: 30px 20px 26px;
	display: grid;
	gap: 16px;
}

.bedame-section--panel {
	background: var(--bedame-white);
	border-radius: var(--bedame-radius);
	padding: 18px 18px 16px;
	box-shadow: 0 2px 10px rgba(10, 31, 61, 0.04);
}

.bedame-section--panel[data-section="formules"] {
	background: none;
	box-shadow: none;
	padding: 0;
}

.bedame-section__heading {
	margin: 0 0 24px;
	text-align: center;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: var(--bedame-main-text) !important;
}

.bedame-section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 0.9rem;
	font-weight: 500 !important;
}

.bedame-section__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bedame-secondary);
	flex: 0 0 auto;
	width: 1.15em;
}

.bedame-section__icon i {
	font-size: 0.95em;
}

.bedame-cards {
	display: grid;
	gap: 10px;
}

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

.bedame-cards--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bedame-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	background: var(--bedame-white);
	border: 1px solid #e4eaf2;
	border-radius: var(--bedame-radius-sm);
	padding: 14px 12px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	min-height: 100%;
	text-align: left;
}

.bedame-card:hover {
	border-color: #c5d3e4;
}

.bedame-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bedame-card:has(input:checked),
.bedame-card.is-selected {
	border-color: var(--bedame-select);
	background: var(--bedame-select-bg);
	box-shadow: 0 0 16px 0 rgba(0, 97, 253, 0.25);
}

.bedame-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}

.bedame-card__radio {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: 2px solid #b7c0d0;
	border-radius: 50%;
	background: #fff;
	position: relative;
}

.bedame-card:has(input:checked) .bedame-card__radio,
.bedame-card.is-selected .bedame-card__radio {
	border-color: var(--bedame-teal);
	background: var(--bedame-teal);
}

.bedame-card:has(input:checked) .bedame-card__radio::after,
.bedame-card.is-selected .bedame-card__radio::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 3px;
	width: 5px;
	height: 10px;
	border: 2px solid #fff;
	border-top: 0;
	border-left: 0;
	transform: rotate(45deg);
}

.bedame-card__title {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.25;
	color: var(--bedame-secondary);
	text-align: left;
}

.bedame-card__desc {
	display: block;
	width: 100%;
	font-size: 0.76rem;
	line-height: 1.4;
	color: var(--bedame-secondary);
	font-style: italic;
	font-weight: 400;
	text-align: left;
}

/* Services */
.bedame-services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.bedame-service {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 8px 4px;
	border-bottom: 1px solid #eef2f7;
}

.bedame-service:last-child {
	border-bottom: 0;
}

.bedame-service__icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #c5ccd8;
	position: relative;
	background: #fff;
}

.bedame-service.is-included .bedame-service__icon {
	border-color: var(--bedame-teal);
	background: var(--bedame-teal);
}

.bedame-service.is-included .bedame-service__icon::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 3px;
	width: 5px;
	height: 9px;
	border: 2px solid #fff;
	border-top: 0;
	border-left: 0;
	transform: rotate(45deg);
}

.bedame-service:not(.is-included) .bedame-service__icon::before,
.bedame-service:not(.is-included) .bedame-service__icon::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 7px;
	height: 2px;
	background: #9aa5b8;
	border-radius: 2px;
}

.bedame-service:not(.is-included) .bedame-service__icon::before {
	transform: rotate(45deg);
}

.bedame-service:not(.is-included) .bedame-service__icon::after {
	transform: rotate(-45deg);
}

.bedame-service__title {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--bedame-secondary);
}

.bedame-service:not(.is-included) .bedame-service__title {
	color: #8a96a8;
	font-weight: 400;
}

.bedame-service__badge {
	font-size: 0.72rem;
	color: var(--bedame-secondary);
	white-space: nowrap;
}

.bedame-service:not(.is-included) .bedame-service__badge {
	color: #8a96a8;
}

.bedame-more {
	display: inline-block;
	margin-top: 12px;
	color: #3b6fd9;
	font-weight: 400;
	font-size: 0.86rem;
	text-decoration: none;
	font-family: inherit;
}

.bedame-more:hover {
	text-decoration: underline;
	color: #2a58b5;
}

/* Options */
.bedame-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.bedame-option {
	background: #f7f9fc;
	border-radius: 12px;
	padding: 2px 6px 2px 14px;
}

.bedame-option__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	padding: 10px 8px 10px 0;
}

.bedame-option__title {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
}

.bedame-option__desc {
	display: block;
	font-size: 0.76rem;
	color: var(--bedame-secondary);
	margin-top: 2px;
	font-style: italic;
}

.bedame-switch {
	position: relative;
	flex: 0 0 auto;
}

.bedame-switch__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.bedame-switch__track {
	display: block;
	width: 46px;
	height: 26px;
	background: #d5dbe6;
	border-radius: 999px;
	position: relative;
	transition: background 0.2s ease;
}

.bedame-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}

.bedame-switch__input:checked + .bedame-switch__track {
	background: var(--bedame-teal);
}

.bedame-switch__input:checked + .bedame-switch__track::after {
	transform: translateX(20px);
}

.bedame-switch__input:focus-visible + .bedame-switch__track {
	outline: 2px solid var(--bedame-secondary);
	outline-offset: 2px;
}

/* Sidebar estimation */
.bedame-estimate {
	background: var(--bedame-white);
	border-radius: 22px;
	padding: 30px 20px 20px;
	box-shadow: 0 14px 36px rgba(10, 31, 61, 0.12);
	border: 1px solid #e8ecf3;
	position: sticky;
	top: 100px;
}

.bedame-estimate__title {
	margin: 0 0 24px;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	text-align: center;
}

.bedame-estimate__lines {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	gap: 16px;
}

.bedame-estimate__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
	font-size: 0.88rem;
}

.bedame-estimate__line-title {
	font-weight: 700;
	line-height: 1.3;
}

.bedame-estimate__line-sub {
	display: block;
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--bedame-muted);
	margin-top: 2px;
}

.bedame-estimate__line-sub--inline {
	display: inline;
	margin-top: 0;
	margin-left: 6px;
}

.bedame-card__title .bedame-estimate__line-sub {
	font-weight: 500;
}

.bedame-estimate__line-price {
	text-align: right;
	line-height: 1.3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.bedame-estimate__price-row {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
}

.bedame-estimate__gift {
	color: var(--bedame-teal);
	font-size: 0.85em;
}

.bedame-estimate__old {
	color: #9aa5b8;
	font-weight: 600;
	text-decoration: line-through;
}

.bedame-estimate__monthly-price {
	white-space: nowrap;
}

.bedame-estimate__per {
	font-size: 12px;
	font-weight: 600;
}

.bedame-estimate__setup-fee {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
	text-align: right;
}

.bedame-estimate__promo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--bedame-secondary);
	color: #fff;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 0.84rem;
	font-weight: 400;
	margin-bottom: 16px;
}

.bedame-estimate__promo--setup-discount {
	background: var(--bedame-teal);
	color: var(--bedame-white);
	margin-top: 12px;
	margin-bottom: 16px;
}

.bedame-estimate__promo--setup-discount[hidden] {
	display: none !important;
}

.bedame-estimate__promo-icon {
	display: inline-flex;
}

.bedame-estimate__billing {
	margin-bottom: 16px;
	border-top: 1px solid #e8ecf3;
	padding-top: 16px;
}

.bedame-estimate__billing-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 0.95rem;
	margin-bottom: 10px;
}

.bedame-billing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	align-items: stretch;
}

.bedame-billing__item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 4px;
	height: 100%;
	padding: 10px 12px;
	border: 1px solid #e4eaf2;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.bedame-billing__item:hover {
	border-color: #c5d3e4;
}

.bedame-billing__item:has(input:checked),
.bedame-billing__item.is-selected {
	border-color: var(--bedame-select);
	background: var(--bedame-select-bg);
	box-shadow: 0 0 16px 0 rgba(0, 97, 253, 0.25);
}

.bedame-billing__head {
	display: flex;
	align-items: center;
	gap: 8px;
	text-align: left;
}

.bedame-billing__item input[type="radio"] {
	pointer-events: auto;
	flex: 0 0 auto;
	margin: 0;
	cursor: pointer;
}

.bedame-billing__name {
	font-size: 0.8rem;
	color: var(--bedame-secondary);
	text-align: left;
	line-height: 1.25;
}

.bedame-billing__hint {
	display: block;
	width: 100%;
	min-height: 1.2em;
	font-size: 0.66rem;
	color: #3b6fd9;
	line-height: 1.2;
	font-weight: 600;
	text-align: left;
}

.bedame-estimate__total {
	text-align: right;
	margin: 4px 0 18px;
	padding-top: 14px;
	border-top: 1px solid #e8ecf3;
}

.bedame-estimate__monthly {
	margin: 0 !important;
	font-size: clamp(1.55rem, 2.4vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--bedame-secondary);
	line-height: 1.2;
}

.bedame-estimate__total-unit {
	font-size: 0.9em;
	font-weight: 500;
}

.bedame-estimate__total-unit .bedame-estimate__per {
	font-size: 12px;
	font-weight: 500;
}

.bedame-estimate__period {
	margin: 6px 0 0 !important;
	font-size: 12px;
	font-style: italic;
	color: var(--bedame-muted);
	line-height: 1.4;
}

.bedame-estimate__setup {
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--bedame-secondary);
	line-height: 1.4;
}

.bedame-estimate__actions {
	display: grid;
	gap: 10px;
}

.bedame-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	border-radius: 999px;
	padding: 13px 18px;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 400;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.bedame-btn--primary {
	background: var(--bedame-main);
	color: var(--bedame-main-text);
	border-color: var(--bedame-main);
}

.bedame-btn--primary:hover {
	background: var(--bedame-main-hover);
	border-color: var(--bedame-main-hover);
	color: var(--bedame-main-text);
}

.bedame-btn--secondary {
	background: #fff;
	color: var(--bedame-secondary);
	border-color: var(--bedame-secondary);
}

.bedame-btn--secondary:hover {
	background: #f7f9fc;
	color: var(--bedame-secondary-hover);
	border-color: var(--bedame-secondary-hover);
}

.bedame-btn--block {
	width: 100%;
}

.bedame-btn:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.bedame-btn__icon {
	display: inline-flex;
}

/* Modal */
.bedame-modal[hidden] {
	display: none !important;
}

.bedame-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
}

.bedame-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 31, 61, 0.55);
}

.bedame-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(540px, 100%);
	background: #fff;
	border-radius: 18px;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.bedame-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--bedame-muted);
}

.bedame-modal__title {
	margin: 0 0 6px;
	font-size: 1.5rem !important;
	font-weight: 700 !important;
}

.bedame-modal__subtitle {
	margin: 0 0 18px;
	color: var(--bedame-muted);
	font-size: 0.9rem;
}

.bedame-modal__form {
	display: grid;
	gap: 12px;
}

.bedame-modal__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.bedame-modal__form label {
	font-size: 0.82rem;
}

.bedame-modal__form input {
	width: 100%;
	border: 1px solid var(--bedame-muted);
	border-radius: 99px;
	padding: 11px 12px;
	font: inherit;
	font-weight: 500;
	color: var(--bedame-secondary);
}

.bedame-modal__form input:focus {
	outline: none;
	border-color: var(--bedame-secondary);
	box-shadow: 0 0 0 3px rgba(0, 201, 184, 0.15);
}

.bedame-modal__message {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.88rem;
}

.bedame-modal__message.is-error {
	background: #fde8e8;
	color: #9b1c1c;
}

.bedame-modal__message.is-success {
	background: #e6f9f7;
	color: #0a6b62;
}

.bedame-modal__legal {
	margin: 4px 0 0;
	font-size: 0.72rem;
	line-height: 1.4;
	color: var(--bedame-muted);
	font-weight: 500;
	text-align: center;
}

.bedame-modal__legal a {
	color: var(--bedame-secondary-soft);
}

.bedame-required {
	color: #c0392b;
	font-weight: 700;
}

@media (max-width: 980px) {
	.bedame-estimator__layout {
		grid-template-columns: 1fr;
	}

	.bedame-cards--3 {
		grid-template-columns: 1fr;
	}

	.bedame-cards--2 {
		grid-template-columns: 1fr;
	}

	.bedame-estimate {
		position: static;
	}

	.bedame-estimator__config {
		padding: 16px 14px 20px;
		border-radius: 22px;
	}

	.bedame-billing {
		grid-template-columns: 1fr;
	}

	.bedame-service {
		grid-template-columns: 22px 1fr;
	}

	.bedame-service__badge {
		grid-column: 2;
	}
}

@media (max-width: 480px) {
	.bedame-modal__row {
		grid-template-columns: 1fr;
	}
}
