/* =========================================================
   estimer-mon-bien-immobilier.fr — styles du thème enfant
   Les pages sont construites dans Elementor ; ce fichier gère le header
   sticky, le menu, le blog, les formulaires CF7 et le simulateur.
   ========================================================= */

:root {
	--emb-navy: #1e3253;
	--emb-navy-dark: #15243d;
	--emb-navy-light: #2a4576;
	--emb-green: #318343;
	--emb-green-dark: #276b36;
	--emb-green-light: #e8f3ea;
	--emb-text: #5f6b7a;
	--emb-text-dark: #1e3253;
	--emb-bg-light: #f4f7fb;
	--emb-border: #e1e6ee;
	--emb-white: #ffffff;
	--emb-radius: 8px;
	--emb-radius-lg: 16px;
	--emb-shadow: 0 10px 30px rgba(30, 50, 83, 0.08);
	--emb-font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
	--emb-font-body: "Inter", "Segoe UI", Arial, sans-serif;
	--emb-header-height: 84px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--emb-header-height) + 16px);
}

body.emb {
	font-family: var(--emb-font-body);
	color: var(--emb-text);
	-webkit-font-smoothing: antialiased;
}

body.emb h1,
body.emb h2,
body.emb h3,
body.emb h4,
body.emb h5,
body.emb h6 {
	font-family: var(--emb-font-heading);
	color: var(--emb-text-dark);
	line-height: 1.2;
}

/* Spécificité volontairement basse (0,1,1) : les composants (.emb-card__title a, .emb-nav__list a…) doivent pouvoir la surcharger */
.emb a {
	color: var(--emb-green);
}

.emb a:where(:hover) {
	color: var(--emb-green-dark);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Conteneurs génériques (blog) ---------- */

/* Hello Elementor limite .site-main à 1140px : nos gabarits blog gèrent eux-mêmes la largeur (bandeaux pleine largeur) */
body.emb .site-main.emb-blog,
body.emb .site-main.emb-article {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

.emb-container {
	width: min(1240px, calc(100% - 40px));
	margin-inline: auto;
}

.emb-container--narrow {
	width: min(820px, calc(100% - 40px));
}

.emb-section {
	padding: 64px 0;
}

/* ---------- Boutons ---------- */

.emb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--emb-radius);
	font-family: var(--emb-font-heading);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.emb-btn:hover {
	transform: translateY(-1px);
}

.emb-btn--primary {
	background: var(--emb-green);
	border-color: var(--emb-green);
	color: #fff !important;
}

.emb-btn--primary:hover {
	background: var(--emb-green-dark);
	border-color: var(--emb-green-dark);
}

.emb-btn--outline {
	background: transparent;
	border-color: var(--emb-navy);
	color: var(--emb-navy) !important;
}

.emb-btn--outline:hover {
	background: var(--emb-navy);
	color: #fff !important;
}

.emb-btn--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff !important;
}

.emb-btn--outline-light:hover {
	background: #fff;
	color: var(--emb-navy) !important;
}

/* ---------- Header sticky ---------- */

.emb-header {
	position: sticky;
	top: 0;
	z-index: 990;
	background: var(--emb-white);
	box-shadow: 0 1px 0 var(--emb-border);
	transition: box-shadow 0.25s ease;
}

.emb-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(30, 50, 83, 0.1);
}

body.admin-bar .emb-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .emb-header {
		top: 46px;
	}
}

/* Header rendu dans l'éditeur Elementor : pas de sticky pour éviter les chevauchements */
body.elementor-editor-active .emb-header {
	position: relative;
}

.emb-header .elementor-widget-image a,
.emb-header .elementor-widget-image img {
	display: block;
}

.emb-fallback-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1240px, calc(100% - 40px));
	margin-inline: auto;
	min-height: 72px;
}

.emb-fallback-header__brand {
	font-family: var(--emb-font-heading);
	font-weight: 700;
	color: var(--emb-navy);
	text-decoration: none;
}

.emb-fallback-footer {
	text-align: center;
	padding: 24px;
	background: var(--emb-navy);
	color: #fff;
}

/* ---------- Menu principal ([emb_menu]) ---------- */

.emb-nav {
	position: relative;
	display: flex;
	align-items: center;
}

.emb-header .elementor-widget-shortcode .emb-nav {
	justify-content: center;
}

/*
 * Sous 1280 px, les 5 rubriques ne tiennent plus entre le logo et le bouton :
 * passage en burger. Le widget menu est repoussé en fin de ligne et le bouton
 * occupe l'espace restant (même comportement que les réglages tablette du
 * modèle Elementor, étendu ici jusqu'à 1279 px).
 */
@media (max-width: 1279px) {
	/* Spécificité ≥ au CSS généré par Elementor pour l'élément (4 classes) */
	.emb-header .e-con .elementor-element.elementor-widget.elementor-widget-shortcode {
		--order: 10;
		--flex-grow: 0;
		--flex-shrink: 0;
		width: auto;
		max-width: none;
	}

	.emb-header .e-con .elementor-element.elementor-widget.elementor-widget-button {
		--flex-grow: 1;
	}

	.emb-header .elementor-widget-shortcode .emb-nav {
		justify-content: flex-end;
	}
}

.emb-nav__list,
.emb-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.emb-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
}

.emb-nav__list > li {
	position: relative;
}

/* Préfixe body.emb : prime sur la couleur de lien globale du Kit Elementor */
body.emb .emb-nav__list a {
	display: block;
	padding: 10px 9px;
	font-family: var(--emb-font-heading);
	font-size: 14px;
	font-weight: 500;
	color: var(--emb-navy);
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s ease, background-color 0.2s ease;
	white-space: nowrap;
}

body.emb .emb-nav__list a:hover,
body.emb .emb-nav__list a:focus-visible,
body.emb .emb-nav__list .current-menu-item > a,
body.emb .emb-nav__list .current-menu-ancestor > a,
body.emb .emb-nav__list .current_page_parent > a {
	color: var(--emb-green);
	background: var(--emb-green-light);
}

.emb-nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.emb-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 240px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--emb-border);
	border-radius: var(--emb-radius);
	box-shadow: var(--emb-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 20;
}

.emb-nav__list .sub-menu a {
	font-weight: 500;
	white-space: normal;
}

.emb-nav__list li:hover > .sub-menu,
.emb-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Spécificité renforcée : le Kit Elementor stylise tous les <button> */
body.emb .emb-nav__toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: transparent;
	border: 1px solid var(--emb-border);
	border-radius: var(--emb-radius);
	box-shadow: none;
	cursor: pointer;
}

body.emb .emb-nav__toggle:hover,
body.emb .emb-nav__toggle:focus {
	background: var(--emb-bg-light);
	border-color: var(--emb-border);
}

.emb-nav__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--emb-navy);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.emb-nav__toggle[aria-expanded="true"] .emb-nav__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.emb-nav__toggle[aria-expanded="true"] .emb-nav__toggle-bar:nth-child(2) {
	opacity: 0;
}

.emb-nav__toggle[aria-expanded="true"] .emb-nav__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Liste simple (liens légaux du footer) */
.emb-nav--simple .emb-nav__list--simple {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px 20px;
}

body.emb .emb-nav--simple .emb-nav__list--simple a {
	padding: 4px 0;
	font-family: var(--emb-font-body);
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
	background: transparent;
}

body.emb .emb-nav--simple .emb-nav__list--simple a:hover,
body.emb .emb-nav--simple .emb-nav__list--simple .current-menu-item > a {
	color: #fff;
	background: transparent;
	text-decoration: underline;
}

/* Reste en ligne quand le menu principal passe en burger (règles colonne ≤ 1279 px) */
@media (max-width: 1279px) {
	.emb-nav--simple .emb-nav__list--simple {
		flex-direction: row;
	}
}

@media (max-width: 767px) {
	.emb-nav--simple .emb-nav__list--simple {
		justify-content: center;
	}
}

.emb-nav__notice {
	margin: 0;
	padding: 6px 10px;
	font-size: 13px;
	color: #b45309;
	background: #fff7ed;
	border-radius: 6px;
}

@media (max-width: 1279px) {
	body.emb .emb-nav__toggle {
		display: flex;
	}

	.emb-nav__panel {
		position: fixed;
		inset: var(--emb-header-height, 84px) 0 auto 0;
		max-height: calc(100vh - var(--emb-header-height, 84px));
		overflow-y: auto;
		padding: 12px 20px 24px;
		background: #fff;
		border-top: 1px solid var(--emb-border);
		box-shadow: 0 20px 40px rgba(30, 50, 83, 0.15);
		display: none;
	}

	.emb-nav.is-open .emb-nav__panel {
		display: block;
	}

	.emb-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	body.emb .emb-nav__list a {
		padding: 14px 12px;
		font-size: 17px;
		white-space: normal;
	}

	.emb-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 16px;
	}

	body.emb .emb-nav__list .sub-menu a {
		font-size: 15px;
	}

	.emb-nav__list .menu-item-has-children > a::after {
		float: right;
		margin-top: 8px;
	}

	.emb-nav__cta {
		display: flex;
		justify-content: center;
		margin-top: 16px;
	}
}

/* Bouton du panneau : uniquement en mode burger */
@media (min-width: 1280px) {
	.emb-nav__cta {
		display: none;
	}
}

/* Petits écrans : logo + burger seulement, le CTA vit dans le panneau */
@media (max-width: 479px) {
	.emb-header .elementor-widget-button {
		display: none;
	}
}

/* ---------- En-tête de page (blog) ---------- */

.emb-page-hero {
	padding: 64px 0 56px;
	background: linear-gradient(135deg, var(--emb-navy) 0%, var(--emb-navy-light) 100%);
	color: #fff;
}

/* body.emb : prime sur la couleur des titres du Kit Elementor (.elementor-kit-x h1) */
body.emb .emb-page-hero__title {
	margin: 12px 0 0;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	color: #fff;
}

.emb-page-hero__intro {
	max-width: 720px;
	margin-top: 16px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.emb-page-hero__intro p {
	margin: 0;
}

.emb-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

.emb-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.emb-breadcrumb a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Cartes d'articles ---------- */

.emb-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

@media (max-width: 1024px) {
	.emb-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.emb-cards {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.emb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--emb-border);
	border-radius: var(--emb-radius-lg);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.emb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--emb-shadow);
}

.emb-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--emb-bg-light);
	overflow: hidden;
}

.emb-card__media img,
.emb-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.emb-card:hover .emb-card__media img {
	transform: scale(1.04);
}

.emb-card__placeholder {
	background: linear-gradient(135deg, var(--emb-navy) 0%, var(--emb-green) 100%);
}

.emb-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
	padding: 22px 24px 26px;
}

.emb-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--emb-text);
}

.emb-card__category {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--emb-green-light);
	color: var(--emb-green);
	font-weight: 600;
	text-decoration: none;
}

.emb-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.emb-card__title a {
	color: var(--emb-navy);
	text-decoration: none;
}

.emb-card__title a:hover {
	color: var(--emb-green);
}

.emb-card__excerpt {
	margin: 0;
	flex: 1;
	font-size: 15px;
	line-height: 1.6;
}

.emb-card__link {
	font-family: var(--emb-font-heading);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.emb-empty {
	text-align: center;
	font-size: 18px;
}

/* ---------- Pagination ---------- */

.emb-blog .pagination,
.emb-blog .navigation.pagination {
	margin-top: 48px;
	border: 0;
	padding: 0;
}

.emb-blog .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.emb-blog .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--emb-border);
	border-radius: var(--emb-radius);
	color: var(--emb-navy);
	font-weight: 600;
	text-decoration: none;
}

.emb-blog .nav-links .page-numbers.current {
	background: var(--emb-navy);
	border-color: var(--emb-navy);
	color: #fff;
}

.emb-blog .nav-links a.page-numbers:hover {
	border-color: var(--emb-green);
	color: var(--emb-green);
}

/* ---------- Article ---------- */

.emb-article__meta {
	margin: 16px 0 0;
	display: flex;
	gap: 10px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
}

.emb-article__thumbnail {
	margin: -32px 0 40px;
	border-radius: var(--emb-radius-lg);
	overflow: hidden;
	box-shadow: var(--emb-shadow);
}

.emb-article__thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.emb-article__content {
	font-size: 17px;
	line-height: 1.75;
	padding-bottom: 40px;
}

.emb-article__content > * + * {
	margin-top: 1.2em;
}

.emb-article__content h2 {
	margin-top: 2em;
	font-size: 28px;
}

.emb-article__content h3 {
	margin-top: 1.6em;
	font-size: 22px;
}

.emb-article__content ul,
.emb-article__content ol {
	padding-left: 1.4em;
}

.emb-article__content li + li {
	margin-top: 0.4em;
}

.emb-article__content blockquote {
	margin: 1.5em 0;
	padding: 20px 24px;
	border-left: 4px solid var(--emb-green);
	background: var(--emb-bg-light);
	border-radius: 0 var(--emb-radius) var(--emb-radius) 0;
	font-style: italic;
}

.emb-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--emb-radius);
}

.emb-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 32px;
}

.emb-article__tags a {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--emb-bg-light);
	color: var(--emb-navy);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.emb-article__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 32px 0 56px;
	border-top: 1px solid var(--emb-border);
}

.emb-article__nav > div span {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--emb-text);
	margin-bottom: 6px;
}

.emb-article__nav a {
	font-family: var(--emb-font-heading);
	font-weight: 600;
	color: var(--emb-navy);
	text-decoration: none;
}

.emb-article__nav-next {
	text-align: right;
}

@media (max-width: 640px) {
	.emb-article__nav {
		grid-template-columns: 1fr;
	}

	.emb-article__nav-next {
		text-align: left;
	}
}

/* ---------- Bandeau CTA ---------- */

.emb-cta {
	padding: 56px 0;
	background: linear-gradient(135deg, var(--emb-navy-dark) 0%, var(--emb-navy) 60%, var(--emb-navy-light) 100%);
	color: #fff;
}

.emb-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

body.emb .emb-cta__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 32px);
	color: #fff;
}

.emb-cta__text {
	margin: 0;
	max-width: 620px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.emb-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Formulaires Contact Form 7 ---------- */

.emb .wpcf7 form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.emb .wpcf7 form > p,
.emb .wpcf7 form > .emb-field {
	margin: 0;
}

.emb .wpcf7 .emb-field--full,
.emb .wpcf7 form > .wpcf7-response-output,
.emb .wpcf7 form > .emb-form-submit,
.emb .wpcf7 form > .emb-form-consent {
	grid-column: 1 / -1;
}

@media (max-width: 640px) {
	.emb .wpcf7 form {
		grid-template-columns: minmax(0, 1fr);
	}
}

.emb .wpcf7 label {
	display: block;
	font-family: var(--emb-font-heading);
	font-size: 14px;
	font-weight: 600;
	color: var(--emb-navy);
	margin-bottom: 6px;
}

.emb .wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.emb .wpcf7 input[type="text"],
.emb .wpcf7 input[type="email"],
.emb .wpcf7 input[type="tel"],
.emb .wpcf7 input[type="number"],
.emb .wpcf7 input[type="url"],
.emb .wpcf7 select,
.emb .wpcf7 textarea {
	width: 100%;
	padding: 13px 16px;
	font-family: var(--emb-font-body);
	font-size: 16px;
	color: var(--emb-text-dark);
	background: #fff;
	border: 1px solid #cfd7e3;
	border-radius: var(--emb-radius);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.emb .wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

.emb .wpcf7 input:focus,
.emb .wpcf7 select:focus,
.emb .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--emb-green);
	box-shadow: 0 0 0 3px rgba(49, 131, 67, 0.18);
}

.emb .wpcf7 .wpcf7-not-valid {
	border-color: #dc2626;
}

.emb .wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: #dc2626;
}

.emb .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.emb .wpcf7 .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: var(--emb-font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: var(--emb-text);
	cursor: pointer;
}

.emb .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--emb-green);
}

.emb .wpcf7 input[type="submit"],
.emb .wpcf7 button[type="submit"] {
	width: 100%;
	padding: 16px 28px;
	font-family: var(--emb-font-heading);
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--emb-green);
	border: 0;
	border-radius: var(--emb-radius);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.emb .wpcf7 input[type="submit"]:hover,
.emb .wpcf7 button[type="submit"]:hover {
	background: var(--emb-green-dark);
	transform: translateY(-1px);
}

.emb .wpcf7 .wpcf7-spinner {
	display: block;
	margin: 8px auto 0;
}

.emb .wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 14px 18px;
	border-radius: var(--emb-radius);
	border-width: 1px;
	font-size: 15px;
}

.emb .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--emb-green);
	background: var(--emb-green-light);
	color: var(--emb-green-dark);
}

.emb .wpcf7 form.invalid .wpcf7-response-output,
.emb .wpcf7 form.failed .wpcf7-response-output,
.emb .wpcf7 form.aborted .wpcf7-response-output {
	border-color: #f59e0b;
	background: #fff7ed;
	color: #92400e;
}

.emb-form-note {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--emb-text);
}

/* Formulaire dans une carte blanche (widget Elementor) */
.emb-form-card {
	background: #fff;
	border: 1px solid var(--emb-border);
	border-radius: var(--emb-radius-lg);
	box-shadow: var(--emb-shadow);
	padding: 36px;
}

@media (max-width: 640px) {
	.emb-form-card {
		padding: 24px 18px;
	}
}

/* ---------- Simulateur PriceHubble ---------- */

/*
 * Le widget PriceHubble affiche le logo du compte (Nidéal) en tête de l’iframe.
 * Pas d’option d’embed pour le masquer : on recadre la bande mesurée
 * (18px de padding interne + logo 100px + 18px de marge = 136px).
 * Si le logo est retiré côté PriceHubble, supprimer le margin-top négatif.
 */
iframe#fisher-widget {
	width: 100%;
	min-height: 560px;
	border: 0;
	display: block;
	margin-top: -136px;
}

.emb-simulator {
	background: #fff;
	border: 1px solid var(--emb-border);
	border-radius: var(--emb-radius-lg);
	box-shadow: var(--emb-shadow);
	padding: 16px;
	overflow: hidden;
}

.emb-simulator .fisher-frame-wrapper {
	overflow: hidden;
}

/* ---------- Divers ---------- */

.emb-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--emb-green-light);
	color: var(--emb-green);
	font-family: var(--emb-font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Pastilles Elementor (helper badge()) : texte réellement centré dans la pilule. */
body.emb .elementor-widget-heading.emb-badge {
	width: auto !important;
	max-width: max-content;
	align-self: flex-start;
}
body.emb .elementor-widget-heading.emb-badge > .elementor-widget-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	width: auto;
}
body.emb .elementor-widget-heading.emb-badge .elementor-heading-title {
	margin: 0;
	padding: 0;
	line-height: 1.15;
}

.emb-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--emb-green);
	color: #fff;
	font-family: var(--emb-font-heading);
	font-weight: 700;
	font-size: 20px;
}

/* ---------- Hero visuel animé (accueil) ---------- */

.emb-hero-visual {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 4 / 3;
	box-shadow: 0 20px 50px rgba(30, 50, 83, 0.16);
	background: var(--emb-light);
}
.emb-hero-visual__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
	animation: emb-kenburns 18s ease-in-out infinite alternate;
}
.emb-hero-visual__card {
	display: none;
}
.emb-hero-visual__pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--emb-green-light);
	color: var(--emb-green);
	font-family: var(--emb-font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.emb-hero-visual__label {
	margin: 10px 0 2px;
	font-size: 13px;
	color: var(--emb-text);
}
.emb-hero-visual__price {
	margin: 0 0 10px;
	font-family: var(--emb-font-heading);
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 700;
	color: var(--emb-navy);
	letter-spacing: -0.02em;
	animation: emb-price-in 0.6s 1.15s both;
}
.emb-hero-visual__bar {
	height: 6px;
	border-radius: 999px;
	background: var(--emb-border);
	overflow: hidden;
}
.emb-hero-visual__bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--emb-green) 0%, #4caf5f 100%);
	animation: emb-bar 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.emb-hero-visual__meta {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--emb-text);
}

@keyframes emb-kenburns {
	from { transform: scale(1.08) translate(0, 0); }
	to { transform: scale(1.16) translate(-1.5%, -1%); }
}
@keyframes emb-card-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes emb-bar {
	from { width: 0; }
	to { width: 78%; }
}
@keyframes emb-price-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
	.emb-hero-visual {
		aspect-ratio: 5 / 4;
	}
	.emb-hero-visual__card {
		left: 12px;
		bottom: 12px;
		width: min(240px, calc(100% - 24px));
		padding: 12px 14px 12px;
	}
	.emb-hero-visual__price {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.emb-hero-visual__photo,
	.emb-hero-visual__card,
	.emb-hero-visual__bar span,
	.emb-hero-visual__price {
		animation: none !important;
		transform: none;
	}
	.emb-hero-visual__photo {
		transform: scale(1.04);
	}
	.emb-hero-visual__bar span {
		width: 78%;
	}
}
