/* L'agence immo — widget styles. Brand: #1E355E royal blue, #C3CCDA gris béton, #242422 noir. */

/* ============ Hero ============ */
.immo-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	color: #fff;
	background: #14243f;
}
.immo-hero__media,
.immo-hero__poster,
.immo-hero__video,
.immo-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.immo-hero__media { z-index: 0; }
.immo-hero__poster,
.immo-hero__video { object-fit: cover; }
.immo-hero__video { opacity: 0; transition: opacity 1.2s ease; }
.immo-hero__video.is-playing { opacity: 1; }
.immo-hero__media { transform: scale(1.08); transition: transform 2.6s cubic-bezier(.2,.7,.1,1); }
.immo-hero.is-ready .immo-hero__media { transform: scale(1); }
.immo-hero__overlay {
	--immo-overlay: #14243f;
	background:
		linear-gradient(180deg, rgba(20,36,63,.35) 0%, rgba(20,36,63,0) 30%, rgba(20,36,63,0) 55%, rgba(20,36,63,.55) 100%),
		var(--immo-overlay);
	opacity: .45;
}
.immo-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 980px;
	padding: 140px 24px 160px;
	text-align: center;
}
.immo-hero__eyebrow {
	margin: 0 0 28px;
	font-family: "Red Hat Display", sans-serif;
	font-size: 12px;
	letter-spacing: .32em;
	text-transform: uppercase;
}
.immo-hero__title {
	margin: 0;
	color: #fff;
	font-family: "Playfair Display", serif;
	font-weight: 400;
	font-size: clamp(40px, 6.4vw, 84px);
	line-height: 1.05;
}
.immo-line { display: block; overflow: hidden; padding-bottom: .08em; }
.immo-line__inner {
	display: inline-block;
	transform: translateY(105%);
	transition: transform 1.1s cubic-bezier(.19,1,.22,1);
	transition-delay: calc(var(--d, 0) * 120ms + 150ms);
}
.immo-hero__subtitle {
	margin: 26px 0 0;
	font-family: "Playfair Display", serif;
	font-style: italic;
	font-size: clamp(18px, 2vw, 24px);
}
.immo-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .9s ease, transform 1s cubic-bezier(.19,1,.22,1);
	transition-delay: calc(var(--d, 0) * 120ms + 250ms);
}
.immo-hero.is-ready .immo-line__inner { transform: none; }
.immo-hero.is-ready .immo-reveal { opacity: 1; transform: none; }

.immo-hero__universes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 56px;
}
.immo-universe {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	min-width: 260px;
	padding: 18px 24px 18px 28px;
	border: 1px solid #fff;
	color: #fff;
	text-align: left;
	text-decoration: none;
	background: rgba(255,255,255,.06);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color .35s ease, color .35s ease;
}
.immo-universe__text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.immo-universe__label { font-family: "Playfair Display", serif; font-size: 22px; line-height: 1.1; letter-spacing: .02em; }
.immo-universe__sub { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.immo-universe__arrow { display: inline-flex; transition: transform .35s ease; }
.immo-universe:hover .immo-universe__arrow,
.immo-universe:focus-visible .immo-universe__arrow { transform: translateX(6px); }
.immo-universe:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.immo-hero__scroll {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 28px;
	z-index: 1;
	width: max-content;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: 500 11px/1 "Red Hat Display", sans-serif;
	letter-spacing: .3em;
	text-transform: uppercase;
	cursor: pointer;
}
.immo-hero__scroll:hover, .immo-hero__scroll:focus { background: none; color: #fff; }
.immo-hero__scroll-line { position: relative; width: 1px; height: 48px; background: rgba(255,255,255,.35); overflow: hidden; }
.immo-hero__scroll-line::after {
	content: "";
	position: absolute;
	left: 0; top: -40%;
	width: 1px; height: 40%;
	background: #fff;
	animation: immo-scroll 2.2s cubic-bezier(.6,0,.2,1) infinite;
}
@keyframes immo-scroll { to { top: 100%; } }

/* Entry animation: royal-blue curtain with the mark, lifted to reveal the film */
.immo-hero__intro {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	background-color: #1e355e;
	transition: transform 1.1s cubic-bezier(.77,0,.18,1);
}
.immo-hero__intro-logo { width: 150px; opacity: 0; transform: translateY(12px); animation: immo-intro-in .9s .15s cubic-bezier(.19,1,.22,1) forwards; }
.immo-hero__intro-logo img { display: block; width: 100%; height: auto; }
.immo-hero__intro-bar { width: 120px; height: 1px; background: rgba(255,255,255,.25); overflow: hidden; }
.immo-hero__intro-bar span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; animation: immo-intro-bar var(--intro-ms, 1600ms) .3s cubic-bezier(.65,0,.35,1) forwards; }
.immo-hero.is-ready .immo-hero__intro { transform: translateY(-100%); pointer-events: none; }
.immo-hero--skip .immo-hero__intro,
.elementor-editor-active .immo-hero__intro { display: none; }
@keyframes immo-intro-in { to { opacity: 1; transform: none; } }
@keyframes immo-intro-bar { to { transform: scaleX(1); } }
html.immo-lock, html.immo-lock body { overflow: hidden; }

@media (max-width: 767px) {
	.immo-hero__inner { padding: 120px 20px 140px; }
	.immo-hero__universes { flex-direction: column; align-items: stretch; margin-top: 40px; }
	.immo-universe { min-width: 0; }
}

/* ============ Property carousel ============ */
.immo-biens { --per-view: 3; --gap: 28px; --accent: #1e355e; position: relative; }
.immo-biens__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	gap: var(--gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	outline: none;
	padding-bottom: 2px;
}
.immo-biens__track::-webkit-scrollbar { display: none; }
.immo-card { scroll-snap-align: start; background: #fff; min-width: 0; }
.immo-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.immo-card__media { position: relative; aspect-ratio: 4 / 3; }
.immo-card__img { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #c3ccda 0%, #e3e7ee 100%); }
.immo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.19,1,.22,1); }
.immo-card__link:hover .immo-card__img img { transform: scale(1.05); }
.immo-card__badge {
	position: absolute; top: 16px; left: 16px;
	padding: 7px 12px;
	background: #fff; color: var(--accent);
	font: 500 10px/1 "Red Hat Display", sans-serif; letter-spacing: .22em; text-transform: uppercase;
}
.immo-card__badge--vendu, .immo-card__badge--sous_compromis { background: var(--accent); color: #fff; }
.immo-card__face {
	position: absolute; right: 16px; bottom: -26px; z-index: 2;
	width: 56px; height: 56px; border-radius: 50%;
	border: 3px solid #fff; overflow: hidden; background: #c3ccda;
	display: flex; align-items: center; justify-content: center;
	color: var(--accent); font: 600 15px/1 "Red Hat Display", sans-serif;
	box-shadow: 0 6px 18px rgba(20,36,63,.18);
}
.immo-card__face img { width: 100%; height: 100%; object-fit: cover; }
.immo-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px 22px; border: 1px solid #e3e7ee; border-top: 0; }
.immo-card__place { margin: 0 0 8px; color: #5c6676; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.immo-card__title { margin: 0 0 12px; color: var(--accent); font-family: "Playfair Display", serif; font-weight: 400; font-size: 21px; line-height: 1.3; }
.immo-card__meta { margin: 0 0 20px; color: #242422; font-size: 14px; }
.immo-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e3e7ee; }
.immo-card__agent { margin: 0; font-size: 13px; line-height: 1.4; color: #242422; }
.immo-card__agent span { display: block; color: #5c6676; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.immo-card__price { margin: 0; color: var(--accent); font-family: "Playfair Display", serif; font-size: 22px; white-space: nowrap; }

.immo-biens__nav { display: flex; align-items: center; gap: 32px; margin-top: 36px; }
.immo-biens.is-static .immo-biens__nav { display: none; }
.immo-biens__progress { position: relative; flex: 1; height: 1px; background: #c3ccda; }
.immo-biens__progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--accent); transition: left .5s ease, width .5s ease; }
.immo-biens__arrows { display: flex; gap: 10px; }
.immo-biens__arrow {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; padding: 0;
	border: 1px solid var(--accent); border-radius: 50%;
	background: transparent; color: var(--accent);
	cursor: pointer; transition: background-color .3s, color .3s, opacity .3s;
}
.immo-biens__arrow:hover, .immo-biens__arrow:focus-visible { background: var(--accent); color: #fff; }
.immo-biens__arrow[disabled] { opacity: .3; pointer-events: none; }
.immo-biens__empty { text-align: center; color: #5c6676; }

/* ============ Google reviews ============ */
.immo-avis { --speed: 60s; --accent: #1e355e; }
.immo-avis__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-bottom: 40px; }
.immo-avis__score { font-family: "Playfair Display", serif; font-size: 40px; line-height: 1; color: var(--accent); }
.immo-avis__count { color: #5c6676; font-size: 14px; letter-spacing: .04em; }
.immo-avis__more { color: var(--accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.immo-stars { display: inline-flex; gap: 2px; color: #e7b04a; }
.immo-stars .off { color: #c3ccda; }
.immo-avis__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.immo-avis__track { display: flex; width: max-content; animation: immo-marquee var(--speed) linear infinite; }
.immo-avis__viewport:hover .immo-avis__track,
.immo-avis__viewport:focus-within .immo-avis__track { animation-play-state: paused; }
.immo-avis__group { display: flex; gap: 24px; padding-right: 24px; }
@keyframes immo-marquee { to { transform: translateX(-50%); } }
.immo-review {
	display: flex; flex-direction: column; gap: 18px;
	width: 380px; margin: 0; padding: 30px 30px 26px;
	background: #fff; border: 1px solid #e3e7ee;
}
.immo-review__text { margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.65; color: #242422; font-style: normal; flex: 1; }
.immo-review__by { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #e3e7ee; }
.immo-review__by strong { display: block; font-weight: 600; font-size: 14px; color: var(--accent); }
.immo-review__by small { display: block; font-size: 12px; color: #5c6676; }
.immo-review__by .immo-g { margin-left: auto; }
.immo-review__avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--accent); color: #fff; font: 600 13px/1 "Red Hat Display", sans-serif;
}
@media (max-width: 767px) {
	.immo-review { width: 300px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.immo-hero__media, .immo-line__inner, .immo-reveal, .immo-hero__intro { transition: none !important; }
	.immo-avis__track { animation: none; }
	.immo-avis__viewport { overflow-x: auto; }
	.immo-hero__scroll-line::after { animation: none; }
}

/* Failsafe: never leave the curtain up if the script does not run. */
.immo-hero--intro .immo-hero__intro { animation: immo-intro-failsafe .01s 4.5s forwards; }
@keyframes immo-intro-failsafe { to { visibility: hidden; opacity: 0; } }
.immo-hero--intro:not(.is-ready) .immo-line__inner { animation: immo-reveal-failsafe .01s 4.6s forwards; }
.immo-hero--intro:not(.is-ready) .immo-reveal { animation: immo-reveal-failsafe .01s 4.6s forwards; }
@keyframes immo-reveal-failsafe { to { opacity: 1; transform: none; } }

/* Guard against the kit's global button styles */
.elementor-kit-9 .immo-hero .immo-hero__scroll,
body .immo-hero .immo-hero__scroll {
	background: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #fff;
	font: 500 11px/1 "Red Hat Display", sans-serif;
	letter-spacing: .3em;
	text-transform: uppercase;
}
.elementor-kit-9 .immo-hero .immo-hero__scroll:hover,
.elementor-kit-9 .immo-hero .immo-hero__scroll:focus { background: none; color: #fff; }

/* Poster must fill the hero (Elementor caps img to max-width:100%) */
.immo-hero img.immo-hero__poster { max-width: none; width: 100%; height: 100%; }
/* Cinematic overlay: clear in the middle, deep at the edges for legibility */
.immo-hero .immo-hero__overlay {
	opacity: 1;
	background: linear-gradient(180deg, rgba(14,25,45,.62) 0%, rgba(14,25,45,.18) 32%, rgba(14,25,45,.28) 62%, rgba(14,25,45,.82) 100%);
}
.immo-hero__title, .immo-hero__subtitle, .immo-hero__eyebrow { text-shadow: 0 2px 30px rgba(10,18,32,.35); }

/* Carousel arrows: keep the outlined circle whatever the kit button style */
.elementor-kit-9 .immo-biens .immo-biens__arrow {
	width: 56px; height: 56px; padding: 0;
	border: 1px solid var(--accent); border-radius: 50%;
	background: transparent; color: var(--accent);
}
.elementor-kit-9 .immo-biens .immo-biens__arrow:hover,
.elementor-kit-9 .immo-biens .immo-biens__arrow:focus-visible { background: var(--accent); color: #fff; }
/* Hero overlay: more depth behind the title */
.immo-hero .immo-hero__overlay {
	background:
		radial-gradient(ellipse 70% 55% at 50% 50%, rgba(14,25,45,.38) 0%, rgba(14,25,45,0) 100%),
		linear-gradient(180deg, rgba(14,25,45,.62) 0%, rgba(14,25,45,.25) 30%, rgba(14,25,45,.32) 62%, rgba(14,25,45,.85) 100%);
}
