:root {
	--color-bg: #f8f5f0;
	--color-surface: #ffffff;
	--color-text: #221f1a;
	--color-muted: #756c5e;
	--color-accent: #b08d57;
	--color-accent-dark: #93733f;
	--color-dark: #14120f;
	--color-border: #e6ddd0;
	--radius: 6px;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

h1, h2 { font-family: var(--font-serif); line-height: 1.15; font-weight: 600; margin: 0 0 16px; }
h3 { line-height: 1.2; font-weight: 600; margin: 0 0 16px; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }

.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: 0.03em;
	border: 1px solid transparent;
	cursor: pointer;
}
.btn--cta {
	background: var(--color-accent);
	color: var(--color-dark);
}
.btn--cta:hover { background: var(--color-accent-dark); }
.btn--outline {
	background: transparent;
	border-color: var(--color-border);
	color: var(--color-text);
	margin-bottom: 8px;
}
.btn--block { display: block; text-align: center; width: 100%; }

/* Header */
.site-header {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 20;
}
/* Pages logement : le bandeau défile avec la page pour libérer l'iframe de réservation */
.single-logement .site-header { position: relative; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
}
.site-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.site-nav ul {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}
.nav-toggle span {
	width: 24px;
	height: 2px;
	background: var(--color-text);
}

.lang-switcher { position: relative; }
.lang-switcher__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 1rem;
}
.lang-switcher__flag { font-size: 1.1rem; line-height: 1; }
.lang-switcher__caret { font-size: 0.7rem; color: var(--color-muted); }
.lang-switcher__menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: 0 12px 28px rgba(28, 26, 23, 0.12);
	list-style: none;
	margin: 0;
	padding: 6px;
	min-width: 160px;
	z-index: 30;
}
.lang-switcher.is-open .lang-switcher__menu { display: block; }
.lang-switcher__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 0.9rem;
	white-space: nowrap;
}
.lang-switcher__item:hover { background: var(--color-bg); }
.lang-switcher__item.is-active { color: var(--color-accent); font-weight: 700; }

/* Hero */
.hero {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #241f1a, var(--color-dark));
	color: #fff;
	text-align: center;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}
.hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
}
.hero__content h1 { font-size: 3.4rem; margin-bottom: 14px; letter-spacing: 0.01em; }
.hero__content p { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; opacity: 0.9; }

.page-hero {
	background: var(--color-dark);
	color: #fff;
	padding: 72px 0;
	text-align: center;
}
.page-hero h1 { letter-spacing: 0.01em; }
.page-hero p { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; opacity: 0.85; }

/* Logements grid */
.logements-list { padding: 56px 0; scroll-margin-top: 90px; }
.logements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px;
	margin-top: 24px;
}
.logement-card {
	background: var(--color-surface);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--color-border);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.logement-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(28, 26, 23, 0.08);
}
.logement-card__image { aspect-ratio: 4 / 3; overflow: hidden; }
.logement-card__image img { width: 100%; height: 100%; object-fit: cover; }
.logement-card__placeholder { width: 100%; height: 100%; background: var(--color-border); }
.logement-card__body { padding: 18px 20px; }
.logement-card__meta { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 4px; }
.logement-card__specs { color: var(--color-muted); font-size: 0.9rem; }
.logement-card__price { margin-top: 10px; }

/* Logement detail */
.logement-detail {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
	padding: 40px 0 64px;
	align-items: start;
}
.logement-detail__image { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.logement-detail__specs { color: var(--color-muted); margin-bottom: 24px; }
.logement-detail__amenities ul {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.logement-detail__amenities li::before { content: "✓ "; color: var(--color-accent); }

.booking-card {
	position: sticky;
	top: 90px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
	text-align: center;
}
.booking-card__price { font-size: 1.1rem; margin-bottom: 16px; }

.booking-widget { padding: 0 0 64px; scroll-margin-top: 90px; }
.booking-widget iframe { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius); }

/* Contact */
.contact {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
	padding: 56px 0;
}
.form-row { margin-bottom: 18px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
}
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.notice--success { background: #e5f5ea; color: #1e6b3a; }
.notice--error { background: #fbe6e2; color: #a5301a; }
.contact__sidebar .btn--outline { display: block; }
.contact__hours { color: var(--color-muted); margin-top: 12px; }

/* Footer */
.site-footer { background: var(--color-dark); color: #d8d2c9; padding: 48px 0 0; }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer a:hover { color: var(--color-accent); }
.site-footer h3 { color: #fff; font-weight: 600; }
.site-footer__brand .site-logo { color: #fff; }
.site-footer__menu ul { list-style: none; padding: 0; margin: 0; }
.site-footer__menu li { margin-bottom: 8px; }
.site-footer__bottom { padding: 20px 0; font-size: 0.85rem; opacity: 0.7; }

/* Page content */
.page-content { padding: 48px 0; max-width: 760px; }

/* Section headers (testimonials, why-us, faq) */
.section-eyebrow {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	color: var(--color-muted);
	margin: 0 0 8px;
}
.section-title { text-align: center; margin-bottom: 40px; }

/* Testimonials */
.testimonials { padding: 64px 0; }
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}
.testimonial-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
}
.testimonial-card__stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card__text { color: var(--color-text); margin-bottom: 20px; }
.testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}
.testimonial-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--color-dark);
	font-weight: 700;
	flex-shrink: 0;
}

/* Why us */
.why-us { padding: 64px 0; background: var(--color-surface); }
.why-us-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
.why-us-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
	text-align: center;
}
.why-us-card p { color: var(--color-muted); margin: 0; }

/* FAQ */
.faq { padding: 64px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 16px 20px;
}
.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	float: right;
	color: var(--color-accent);
	font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--color-muted); margin: 12px 0 0; }

/* Accueil Cinématique */
.has-cine-hero .site-header {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	background: transparent;
	border-bottom-color: transparent;
	color: #fff;
	transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.admin-bar.has-cine-hero .site-header { top: 32px; }
.has-cine-hero .site-header .nav-toggle span { background: currentColor; }
.has-cine-hero .site-header .lang-switcher__toggle {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .35);
	color: inherit;
}
.has-cine-hero .site-header .lang-switcher__caret { color: inherit; }
.has-cine-hero .site-header .lang-switcher__menu { color: var(--color-text); }
.has-cine-hero .site-header.is-solid {
	background: var(--color-surface);
	border-bottom-color: var(--color-border);
	color: var(--color-text);
}
.has-cine-hero .site-header.is-solid .lang-switcher__toggle {
	background: var(--color-bg);
	border-color: var(--color-border);
}

.cine {
	position: relative;
	height: 100svh;
	min-height: 540px;
	max-height: 960px;
	overflow: hidden;
	color: #fff;
	background: var(--color-dark);
}
.cine-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 1.8s ease;
}
.cine-slide.is-on { opacity: 1; }
.cine-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--o, 50% 50%);
	transform-origin: var(--o, 50% 50%);
}
.cine-slide.is-on img,
.cine-slide.was-on img { animation: cine-kenburns 9s ease-out both; }
@keyframes cine-kenburns {
	from { transform: scale(1.14); }
	to { transform: scale(1); }
}
.cine-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 8, 6, .55) 0%, rgba(10, 8, 6, 0) 26%),
		linear-gradient(0deg, rgba(10, 8, 6, .8) 0%, rgba(10, 8, 6, .15) 55%, rgba(10, 8, 6, 0) 75%);
}
.cine-inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(28px, 6vh, 64px);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}
.cine-copy { display: grid; gap: 14px; max-width: 640px; }
.cine-kicker {
	margin: 0;
	font-size: .75rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: #e8d6b4;
}
.cine-title {
	margin: 0;
	font-size: clamp(2.8rem, 8vw, 5.6rem);
	font-weight: 500;
	line-height: .95;
	text-wrap: balance;
	animation: cine-settle 2.2s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes cine-settle {
	from { letter-spacing: .08em; opacity: .35; transform: translateY(14px); }
	to { letter-spacing: 0; opacity: 1; transform: none; }
}
.cine-tag {
	margin: 0;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.1rem, 2.2vw, 1.45rem);
	opacity: .92;
}
.cine-copy .btn { justify-self: start; margin-top: 6px; }
.cine-meta { display: grid; gap: 10px; justify-items: end; text-align: right; }
.cine-place {
	margin: 0;
	font-size: .75rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #e8d6b4;
}
.cine-progress { display: flex; gap: 6px; }
.cine-progress span {
	width: 34px;
	height: 2px;
	background: rgba(255, 255, 255, .25);
	overflow: hidden;
}
.cine-progress span::after {
	content: "";
	display: block;
	height: 100%;
	width: 0;
	background: var(--color-accent);
}
.cine-progress span.is-on::after { animation: cine-fill 7s linear forwards; }
@keyframes cine-fill { to { width: 100%; } }

.has-cine-hero .logement-card__image img { transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.has-cine-hero .logement-card:hover .logement-card__image img { transform: scale(1.06); }
@supports (animation-timeline: view()) {
	.has-cine-hero .logement-card,
	.has-cine-hero .testimonial-card,
	.has-cine-hero .why-us-card {
		animation: cine-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 60%;
	}
	@keyframes cine-rise {
		from { transform: translateY(40px); }
		to { transform: none; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.cine-slide,
	.cine-slide img,
	.cine-title,
	.cine-progress span::after,
	.has-cine-hero .logement-card,
	.has-cine-hero .testimonial-card,
	.has-cine-hero .why-us-card {
		animation: none !important;
		transition: none !important;
	}
	.cine-progress span.is-on::after { width: 100%; }
}

@media (max-width: 782px) {
	.admin-bar.has-cine-hero .site-header { top: 46px; }
}

@media (max-width: 860px) {
	.cine-meta { justify-items: start; text-align: left; }
	.nav-toggle { display: flex; }
	.site-nav { display: none; width: 100%; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 12px; padding: 16px 0; }
	.contact, .site-footer__inner, .logement-detail { grid-template-columns: 1fr; }
}
