/* ============================================================
   PAGE RESET
   ============================================================ */

body.casamore-offer-page {
	background: #ffffff;
	color: #171310;
}

.casamore-offer-page .site-content,
.casamore-offer-page .entry-content,
.casamore-offer-page .ast-article-single {
	background: transparent;
}

.casamore-offer-page .site-content > .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.casamore-offer-page .site-content,
.casamore-offer-page .site-main,
.casamore-offer-page .content-area,
.casamore-offer-page #primary {
	margin-top: 0 !important;
	padding-top: 0;
	padding-bottom: 0;
}

.casamore-offer-page .entry-content {
	max-width: none;
	margin: 0 !important;
	padding: 0;
}

.casamore-offer-page .entry-content > .casamore-offer.alignfull,
.casamore-offer-page .entry-content[data-ast-blocks-layout="true"] > .casamore-offer.alignfull {
	position: relative;
	right: 50%;
	left: 50%;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-right: -50vw !important;
	margin-left: -50vw !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

@supports (width: 100dvw) {
	.casamore-offer-page .entry-content > .casamore-offer.alignfull,
	.casamore-offer-page .entry-content[data-ast-blocks-layout="true"] > .casamore-offer.alignfull {
		width: 100dvw !important;
		max-width: 100dvw !important;
		margin-right: -50dvw !important;
		margin-left: -50dvw !important;
	}
}

.casamore-offer-page .entry-header,
.casamore-offer-page .entry-title,
.casamore-offer-page .ast-single-entry-banner,
.casamore-offer-page .ast-page-title-bar {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ============================================================
   WRAPPER
   ============================================================ */

.casamore-offer {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 0 clamp(3rem, 5vw, 4.5rem) !important;
}

.casamore-offer *,
.casamore-offer *::before,
.casamore-offer *::after {
	box-sizing: border-box;
}

.casamore-offer :where(.wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-image, .wp-block-cover, .wp-block-heading, p, figure) {
	margin: 0;
}

.casamore-offer :where(img) {
	display: block;
	width: 100%;
}

/* Centered containers */
.casamore-offer__section,
.casamore-offer__journey {
	width: min(calc(100% - 48px), 920px);
	margin-left: auto;
	margin-right: auto;
}

/* ============================================================
   HERO
   ============================================================ */

.casamore-offer__hero-image {
	width: 100%;
	max-width: 100%;
	margin: 0;
	line-height: 0;
	overflow: hidden;
	background: #ddd0bd;
}

.casamore-offer__hero-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 2.15 / 1;
	object-fit: cover;
	object-position: center;
}

/* ============================================================
   INTRO
   ============================================================ */

.casamore-offer__section--intro {
	padding-top: clamp(48px, 6vw, 74px);
	padding-bottom: clamp(56px, 7vw, 92px);
}

.casamore-offer__intro-grid.wp-block-columns {
	display: grid !important;
	grid-template-columns: 372px minmax(0, 1fr);
	gap: clamp(58px, 6.8vw, 98px);
	align-items: start;
	flex-wrap: unset;
}

.casamore-offer__intro-grid .wp-block-column {
	flex-basis: unset !important;
	max-width: none !important;
}

.casamore-offer__intro-title-col {
	display: block;
	background: transparent;
	border: none;
	backdrop-filter: none;
	box-shadow: none;
	padding: 0;
	min-height: auto;
	align-content: unset;
}

.casamore-offer__intro-copy-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	background: transparent;
	border: none;
	backdrop-filter: none;
	box-shadow: none;
	padding: 0;
	padding-top: clamp(52px, 5.6vw, 68px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.casamore-offer__eyebrow,
.casamore-offer__section-label {
	font-family: "Oswald", sans-serif;
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #9c8770;
	margin: 0 !important;
}

.casamore-offer__title.wp-block-heading {
	margin: 12px 0 0 !important;
	font-family: "Oswald", sans-serif;
	font-size: clamp(2rem, 4.5vw, 3.75rem) !important;
	font-weight: 400 !important;
	line-height: 1.06 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #171310 !important;
}

.casamore-offer__section-title.wp-block-heading {
	font-family: "Oswald", sans-serif;
	font-size: clamp(2rem, 3.7vw, 3.2rem) !important;
	font-weight: 400 !important;
	line-height: 1.02 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #171310 !important;
	margin: 12px 0 1.15rem !important;
}

.casamore-offer__copy {
	font-family: "Courier Prime", monospace;
	font-size: clamp(0.9rem, 1.05vw, 0.98rem);
	line-height: 1.75;
	color: #534c45;
}

.casamore-offer__copy--lead {
	font-size: clamp(0.95rem, 1.15vw, 1.02rem);
	color: #171310;
}

.casamore-offer__intro-copy-col > .casamore-offer__copy + .casamore-offer__copy {
	margin-top: 1rem !important;
}

/* ============================================================
   FACTS
   ============================================================ */

.casamore-offer__intro-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	padding-top: 1.25rem;
}

.casamore-offer__fact {
	font-family: "Oswald", sans-serif;
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #9c8770;
	padding: 0;
	border: none;
	background: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.casamore-offer__buttons.wp-block-buttons {
	display: flex !important;
	flex-wrap: wrap;
	gap: clamp(1rem, 2.4vw, 2rem);
	margin-top: 1.75rem !important;
}

.casamore-offer__button.wp-block-button {
	margin: 0;
}

.casamore-offer__button.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12.5rem;
	min-width: 12.5rem;
	min-height: 3rem;
	padding: 0.9rem 1.2rem !important;
	background: #b7aa99 !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: "Oswald", sans-serif !important;
	font-size: 0.7rem !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.casamore-offer__button.wp-block-button .wp-block-button__link:hover {
	background: #a29280 !important;
}

.casamore-offer__button--secondary.wp-block-button .wp-block-button__link {
	background: transparent !important;
	color: #171310 !important;
	border: 1px solid #c8bfb3 !important;
}

.casamore-offer__button--secondary.wp-block-button .wp-block-button__link:hover {
	background: #f4efe8 !important;
	color: #171310 !important;
}

/* ============================================================
   STORY SECTIONS (full-bleed, alternating image / text)
   ============================================================ */

.casamore-offer__section--story {
	width: 100%;
	max-width: 100%;
	padding-bottom: clamp(2.8rem, 6vw, 4.8rem);
}

.casamore-offer__story-grid.wp-block-columns {
	display: grid !important;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: stretch;
	flex-wrap: unset !important;
	overflow: hidden;
}

.casamore-offer__story-grid .wp-block-column {
	flex-basis: unset !important;
	max-width: none !important;
}

.casamore-offer__story-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-top: clamp(36px, 5vw, 64px);
	padding-bottom: clamp(36px, 5vw, 64px);
	background: transparent;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
}

.casamore-offer__story-grid--right .casamore-offer__story-copy {
	order: 1;
	padding-left: clamp(24px, 5vw, 80px);
	padding-right: clamp(28px, 4vw, 56px);
}

.casamore-offer__story-grid--right .casamore-offer__story-media {
	order: 2;
	justify-content: flex-end;
}

.casamore-offer__story-grid--left .casamore-offer__story-media {
	order: 1;
	justify-content: flex-start;
}

.casamore-offer__story-grid--left .casamore-offer__story-copy {
	order: 2;
	padding-left: clamp(28px, 4vw, 56px);
	padding-right: clamp(24px, 5vw, 80px);
}

.casamore-offer__story-media {
	display: flex;
	overflow: hidden;
}

.casamore-offer__story-image {
	width: 100%;
	margin: 0;
	height: 100%;
	box-shadow: none;
	background: #ddd0bd;
	overflow: hidden;
}

.casamore-offer__story-image img {
	width: 100%;
	height: 100%;
	min-height: clamp(420px, 34vw, 560px);
	object-fit: cover;
	object-position: center;
}

.casamore-offer__story-copy .casamore-offer__copy {
	max-width: 24rem;
}

.casamore-offer__story-copy > .casamore-offer__copy + .casamore-offer__copy {
	margin-top: 1rem !important;
}

/* ============================================================
   JOURNEY — grille 4 cartes portrait
   ============================================================ */

.casamore-offer__journey {
	padding-top: clamp(48px, 6vw, 74px);
	padding-bottom: 0;
}

.casamore-offer__journey-head {
	max-width: none;
	display: grid;
	gap: 0;
	padding-bottom: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid #e6e0d8;
	margin-bottom: 0 !important;
}

.casamore-offer__journey-head .casamore-offer__section-title {
	margin: 12px 0 0.75rem !important;
}

.casamore-offer__journey-head .casamore-offer__copy {
	max-width: 32rem;
}

/* ── Grille 4 colonnes, pleine largeur ── */
.casamore-offer__cards {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid #e6e0d8;
	align-items: stretch;
}

/* ── Chaque carte ── */
.casamore-offer-card {
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden;
	border-right: 1px solid #e6e0d8;
}

.casamore-offer-card:last-child {
	border-right: none;
}

/* ── Image portrait ── */
.casamore-offer-card__image {
	width: 100%;
	margin: 0 !important;
	overflow: hidden;
	flex-shrink: 0;
	line-height: 0;
	background: #ddd0bd;
}

.casamore-offer-card__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ── Corps de carte ── */
.casamore-offer-card__body {
	display: flex !important;
	flex-direction: column !important;
	flex: 1;
	padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 2.5vw, 2rem);
}

.casamore-offer-card__body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ── Index ── */
.casamore-offer-card__index {
	font-family: "Oswald", sans-serif;
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #9c8770;
}

/* ── Titre ── */
.casamore-offer-card__title.wp-block-heading {
	font-family: "Oswald", sans-serif;
	font-size: clamp(1.4rem, 2vw, 1.85rem) !important;
	font-weight: 400 !important;
	line-height: 1.04 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #171310 !important;
	margin: 8px 0 0.85rem !important;
}

/* ── Description ── */
.casamore-offer-card__description {
	font-family: "Courier Prime", monospace;
	font-size: 0.88rem;
	line-height: 1.65;
	color: #534c45;
}

/* ── Lien collé en bas ── */
.casamore-offer-card__body > p:last-child {
	margin-top: auto !important;
	padding-top: 1.25rem;
	border-top: 1px solid #e6e0d8;
	width: 100%;
}

.casamore-offer-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: "Oswald", sans-serif;
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: #171310;
}

.casamore-offer-card__link::after {
	content: "→";
	font-size: 0.85rem;
}

.casamore-offer-card__link:hover {
	color: #9c8770;
}

/* ============================================================
   CTA — pleine largeur, texte blanc sur photo
   ============================================================ */

.casamore-offer__cta {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	margin-top: clamp(2rem, 4vw, 3.5rem);
}

.casamore-offer__cta-cover.wp-block-cover {
	min-height: clamp(28rem, 55vw, 44rem) !important;
	aspect-ratio: unset !important;
	overflow: hidden;
	width: 100% !important;
}

.casamore-offer__cta-cover .wp-block-cover__background {
	background: rgba(0, 0, 0, 0.50) !important;
}

.casamore-offer__cta-cover .wp-block-cover__image-background {
	object-fit: cover;
	object-position: center;
}

.casamore-offer__cta-cover .wp-block-cover__inner-container {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: inherit;
	padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.casamore-offer__cta-panel {
	width: min(100%, 52rem);
	display: grid;
	gap: 1rem;
	background: transparent;
	border: none;
	text-align: center;
}

.casamore-offer__section-label--light {
	color: rgba(255, 255, 255, 0.72);
}

.casamore-offer__cta-title.wp-block-heading {
	font-family: "Oswald", sans-serif;
	font-size: clamp(2rem, 4.2vw, 3.8rem) !important;
	font-weight: 400 !important;
	line-height: 1.04 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff !important;
	margin: 0 !important;
}

.casamore-offer__cta-text,
.casamore-offer__cta-cover .casamore-offer__cta-text {
	font-family: "Courier Prime", monospace;
	font-size: clamp(0.92rem, 1.1vw, 1.02rem);
	line-height: 1.75;
	color: #ffffff !important;
	max-width: 38rem;
	margin: 0 auto !important;
}

.casamore-offer__cta .casamore-offer__buttons.wp-block-buttons {
	justify-content: center;
	margin-top: 0.75rem !important;
}

.casamore-offer__button--light.wp-block-button .wp-block-button__link {
	background: rgba(255, 255, 255, 0.15) !important;
	border: 1px solid rgba(255, 255, 255, 0.55) !important;
	color: #ffffff !important;
}

.casamore-offer__button--light.wp-block-button .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.26) !important;
	border-color: rgba(255, 255, 255, 0.8) !important;
	color: #ffffff !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
	.casamore-offer__section,
	.casamore-offer__journey {
		width: min(100% - 2.5rem, 920px);
	}


	.casamore-offer__intro-grid.wp-block-columns {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.casamore-offer__intro-copy-col {
		padding-top: 0;
	}

	/* Story sections: stack vertically */
	.casamore-offer__story-grid.wp-block-columns {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.casamore-offer__story-copy,
	.casamore-offer__story-grid--right .casamore-offer__story-copy,
	.casamore-offer__story-grid--left .casamore-offer__story-copy {
		width: min(100% - 2.5rem, 920px);
		margin-left: auto;
		margin-right: auto;
		padding-top: 2rem;
		padding-bottom: 1.5rem;
		padding-left: 0;
		padding-right: 0;
		order: 1;
	}

	.casamore-offer__story-media,
	.casamore-offer__story-grid--right .casamore-offer__story-media,
	.casamore-offer__story-grid--left .casamore-offer__story-media {
		order: 2;
	}

	.casamore-offer__story-image img {
		min-height: 0;
	}

	.casamore-offer__story-copy .casamore-offer__copy {
		max-width: none;
	}

	/* Journey: 2 colonnes sur tablette */
	.casamore-offer__cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.casamore-offer-card:nth-child(2) {
		border-right: none;
	}

	.casamore-offer-card:nth-child(3) {
		border-top: 1px solid #e6e0d8;
		border-right: 1px solid #e6e0d8;
	}

	.casamore-offer-card:nth-child(4) {
		border-top: 1px solid #e6e0d8;
	}

	.casamore-offer-card__image img {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 600px) {
	.casamore-offer__section,
	.casamore-offer__journey {
		width: min(100% - 2rem, 920px);
	}

	.casamore-offer__hero-image img {
		aspect-ratio: 1.58 / 1;
	}

	.casamore-offer__section--intro {
		padding-top: 2rem;
		padding-bottom: 2.8rem;
	}

	.casamore-offer__section--story {
		padding-bottom: 2.2rem;
	}

	.casamore-offer__story-copy,
	.casamore-offer__story-grid--right .casamore-offer__story-copy,
	.casamore-offer__story-grid--left .casamore-offer__story-copy {
		width: min(100% - 2rem, 920px);
		padding-top: 1.6rem;
		padding-bottom: 1.25rem;
	}

	.casamore-offer__journey {
		width: min(100% - 2rem, 920px);
	}

	/* Journey: 2 colonnes compactes sur mobile */
	.casamore-offer__cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.casamore-offer-card:nth-child(2) {
		border-right: none;
	}

	.casamore-offer-card:nth-child(3) {
		border-top: 1px solid #e6e0d8;
		border-right: 1px solid #e6e0d8;
	}

	.casamore-offer-card:nth-child(4) {
		border-top: 1px solid #e6e0d8;
	}

	.casamore-offer-card__image img {
		aspect-ratio: 1 / 1;
	}

	.casamore-offer-card__body {
		padding: 1rem 0.85rem 1.25rem;
	}

	.casamore-offer__title.wp-block-heading {
		font-size: clamp(2rem, 11vw, 2.8rem) !important;
	}

	.casamore-offer__section-title.wp-block-heading {
		font-size: clamp(1.9rem, 9vw, 2.8rem) !important;
	}

	.casamore-offer__journey-title.wp-block-heading {
		font-size: clamp(1.5rem, 7vw, 2rem) !important;
	}

	.casamore-offer__copy {
		font-size: 0.9rem;
		line-height: 1.7;
	}

	.casamore-offer__cta-cover.wp-block-cover {
		min-height: clamp(22rem, 70vw, 32rem) !important;
	}

	.casamore-offer__button.wp-block-button .wp-block-button__link {
		min-width: 0;
		width: 100%;
	}
}
