/**
 * Le Quai — styles du plugin.
 * Les familles Poppins, Playfair Display et Josefin Sans sont déjà
 * configurées dans WordPress. Ce fichier ne les charge pas.
 */

:root {
	--lq-red: #9a2627;
	--lq-cream: #f7f1e9;
	--lq-ink: #171310;
	--lq-copy: #2a2521;
	--lq-note: #6d5147;
	--lq-max: 1360px;
	--lq-font-sans: Poppins, Arial, sans-serif;
	--lq-font-serif: "Playfair Display", Georgia, serif;
	--lq-font-eyebrow: "Josefin Sans", Arial, sans-serif;
}

/* Histoire */

.lq-story {
	position: relative;
	padding: 86px 0 88px;
	overflow: hidden;
	background: var(--lq-cream);
	color: var(--lq-ink);
	font-family: var(--lq-font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

.lq-story__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.78fr) 140px;
	gap: 46px;
	align-items: center;
	width: min(calc(100% - 8vw), var(--lq-max));
	margin-inline: auto;
}

/* Annule la largeur de contenu, les marges auto et l’écart de blocs du thème. */
.lq-story .lq-story__inner > *,
.lq-story .lq-story__content > * {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.lq-story .lq-story__inner.wp-block-group > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.lq-story__inner > .block-list-appender {
	grid-column: 1 / -1;
}

.lq-story__content {
	min-width: 0;
	padding-left: 28px;
}

.lq-story .lq-story__content > p.lq-story__eyebrow {
	max-width: none;
	margin: 0 0 14px;
	color: var(--lq-red);
	font-family: var(--lq-font-eyebrow);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.18em;
	text-align: left;
	text-transform: uppercase;
	hyphens: none;
}

.lq-story .lq-story__title {
	margin: 0 0 24px;
	color: var(--lq-ink);
	font-family: var(--lq-font-serif);
	font-size: clamp(40px, 4.4vw, 64px);
	font-weight: 500;
	font-style: normal;
	line-height: 1.05;
	letter-spacing: -0.035em;
	text-align: left;
}

.lq-story .lq-story__text {
	max-width: 640px;
	margin: 0 0 18px;
	color: var(--lq-copy);
	font-family: var(--lq-font-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	text-align: justify;
	text-justify: inter-word;
	hyphens: none;
	-webkit-hyphens: none;
}

.lq-story__media {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
}

.lq-story__media img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 8 / 9;
	object-fit: cover;
	object-position: center 40%;
}

.lq-story .lq-story__inner > p.lq-story__note {
	align-self: end;
	max-width: none;
	margin: 0 0 42px;
	color: var(--lq-note);
	font-family: var(--lq-font-serif);
	font-size: 18px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.5;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	hyphens: none;
	transform: rotate(-2deg);
}

.lq-story .lq-story__actions {
	margin-top: 24px;
}

.lq-story .lq-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 16px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--lq-red);
	background-image: none;
	color: #fff;
	font-family: var(--lq-font-eyebrow);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.14em;
	text-align: left;
	text-decoration: none;
	text-transform: uppercase;
	transition: 0.2s;
}

.lq-story .lq-btn .wp-block-button__link::after {
	content: "→";
}

.lq-story .lq-btn .wp-block-button__link:hover {
	color: #fff;
	background: var(--lq-red);
	transform: translateY(-2px);
}

@media (max-width: 980px) {
	.lq-story {
		padding: 72px 0 76px;
	}

	.lq-story__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 32px;
		align-items: stretch;
	}

	.lq-story__content {
		grid-column: 1;
		grid-row: 1;
		padding-left: 4px;
	}

	.lq-story__media {
		grid-column: 2;
		grid-row: 1 / span 2;
		height: 100%;
	}

	.lq-story__media img {
		height: 100%;
		min-height: 460px;
		aspect-ratio: auto;
		object-fit: cover;
	}

	.lq-story .lq-story__title {
		font-size: clamp(36px, 4vw, 52px);
	}

	.lq-story .lq-story__inner > p.lq-story__note {
		grid-column: 1;
		grid-row: 2;
		align-self: end;
		max-width: 14em;
		margin: 12px 0 0;
		font-size: 17px;
		transform: none;
	}
}

@media (max-width: 760px) {
	.lq-story {
		padding: 56px 0 60px;
	}

	.lq-story__inner {
		gap: 24px;
	}

	.lq-story__content {
		padding-left: 0;
	}

	.lq-story__media img {
		min-height: 380px;
	}

	.lq-story .lq-story__title {
		font-size: clamp(32px, 4.4vw, 42px);
		margin-bottom: 18px;
	}

	.lq-story .lq-story__inner > p.lq-story__note {
		font-size: 16px;
	}
}

.lq-bridge {
	display: none;
	margin: 0;
}

@media (max-width: 600px) {
	.lq-bridge {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		margin: 0 !important;
		padding: 14px 16px 18px;
		background: var(--lq-cream);
		color: var(--lq-note);
		font-family: var(--lq-font-serif);
		font-size: 16px;
		font-style: italic;
		font-weight: 400;
		line-height: 1.25;
		text-align: center;
		text-transform: none;
	}

	.lq-story {
		padding: 40px 0 64px;
		min-height: 70vh;
		background: var(--lq-cream);
	}

	.lq-story__inner {
		position: static;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 88%;
		max-width: none;
		margin-inline: auto;
		padding: 0;
		gap: 0;
		background: transparent;
	}

	.lq-story__content,
	.lq-story .lq-story__inner > p.lq-story__note {
		position: relative;
		z-index: 1;
	}

	.lq-story__content {
		box-sizing: border-box;
		width: 100%;
		padding: 28px 22px 26px;
		background: rgba(247, 241, 233, 0.9);
		border-radius: 12px;
	}

	.lq-story__media {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 0;
		width: 100%;
		height: auto;
		grid-column: auto;
		grid-row: auto;
		border-radius: 0;
	}

	.lq-story .lq-story__media img {
		width: 100%;
		height: 100%;
		min-height: 0;
		max-width: none;
		aspect-ratio: auto;
		object-fit: cover;
		object-position: center 32%;
	}

	.lq-story .lq-story__title {
		font-size: clamp(30px, 8vw, 36px);
		margin-bottom: 16px;
	}

	.lq-story .lq-story__text {
		margin-bottom: 14px;
		text-align: left;
		hyphens: none;
	}

	.lq-story .lq-story__inner > p.lq-story__note {
		display: none;
		max-width: none;
		margin: 4px 0 0;
		font-size: 16px;
	}

	.lq-story .lq-story__actions,
	.lq-story .lq-btn {
		width: 100%;
		flex-basis: 100%;
	}

	.lq-story .lq-btn .wp-block-button__link {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lq-story .lq-btn .wp-block-button__link {
		transition: none;
	}

	.lq-story .lq-btn .wp-block-button__link:hover {
		transform: none;
	}
}

/* Hero */

.lq-hero.wp-block-cover {
	box-sizing: border-box;
	align-items: stretch;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: #fff;
}

.lq-hero .wp-block-cover__background {
	opacity: 0;
}

.lq-hero.wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(12, 10, 8, 0.62) 0%, rgba(12, 10, 8, 0.22) 24%, rgba(12, 10, 8, 0.34) 52%, rgba(12, 10, 8, 0.16) 74%, rgba(12, 10, 8, 0.42) 100%);
}

.lq-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100svh;
}

.lq-hero .wp-block-cover__image-background {
	object-fit: cover;
}

.lq-hero .lq-hero__content {
	box-sizing: border-box;
	width: min(900px, 90vw);
	max-width: 90vw;
	margin-inline: auto;
	padding-top: 70px;
	text-align: center;
}

.lq-hero .lq-hero__content > * {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.lq-hero .wp-block-cover__inner-container > .lq-hero__content > p.lq-hero__eyebrow {
	margin: 0 0 12px;
	color: #fff;
	font-family: var(--lq-font-eyebrow);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.18em;
	text-align: center;
	text-transform: uppercase;
	hyphens: none;
}

.lq-hero .lq-hero__title {
	margin: 0;
	max-width: 100%;
	color: #fff;
	font-family: var(--lq-font-serif);
	font-size: clamp(52px, 6.1vw, 90px);
	text-wrap: balance;
	font-weight: 500;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: -0.035em;
	text-align: center;
	text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
}

.lq-hero .lq-hero__scroll {
	position: absolute;
	right: 0;
	bottom: clamp(72px, 12vh, 120px);
	left: 0;
	margin: 0;
	text-align: center;
}

.lq-hero .lq-hero__scroll a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-family: var(--lq-font-eyebrow);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.22em;
	text-decoration: none;
	text-transform: uppercase;
	animation: lq-hero-bounce 1.9s ease-in-out infinite;
}

.lq-hero .lq-hero__scroll a::before,
.lq-hero .lq-hero__scroll a::after {
	content: "↓";
	letter-spacing: 0;
}

@keyframes lq-hero-bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(7px);
	}

	60% {
		transform: translateY(3px);
	}
}

@media (max-width: 980px) {
	.lq-hero.wp-block-cover::after {
		background: linear-gradient(180deg, rgba(12, 10, 8, 0.72) 0%, rgba(12, 10, 8, 0.5) 30%, rgba(12, 10, 8, 0.4) 58%, rgba(12, 10, 8, 0.28) 80%, rgba(12, 10, 8, 0.5) 100%);
	}

	.lq-hero.wp-block-cover {
		min-height: 100svh !important;
	}

	.lq-hero .wp-block-cover__image-background {
		object-position: center 58% !important;
	}

	.lq-hero .lq-hero__content {
		padding-top: 84px;
	}

	.lq-hero .lq-hero__title {
		font-size: clamp(42px, 5.4vw, 68px);
	}
}

@media (max-width: 760px) {
	.lq-hero.wp-block-cover {
		min-height: 100svh !important;
	}

	.lq-hero .lq-hero__content {
		width: min(640px, 88vw);
		padding-top: 92px;
	}

	.lq-hero .lq-hero__title {
		font-size: clamp(36px, 6.4vw, 52px);
	}

	.lq-hero .lq-hero__scroll a {
		font-size: 12px;
		letter-spacing: 0.16em;
	}
}

@media (max-width: 600px) {
	.lq-hero.wp-block-cover {
		min-height: 100svh !important;
	}

	.lq-hero .wp-block-cover__image-background {
		object-position: center center !important;
	}

	.lq-hero .wp-block-cover__inner-container > .lq-hero__content > p.lq-hero__eyebrow {
		font-size: 12px;
		letter-spacing: 0.16em;
	}

	.lq-hero .lq-hero__title {
		font-size: clamp(32px, 8vw, 40px);
	}

	.lq-hero .lq-hero__scroll a {
		max-width: 100%;
		flex-wrap: wrap;
		justify-content: center;
		font-size: 12px;
		letter-spacing: 0.14em;
		row-gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lq-hero .lq-hero__scroll a {
		animation: none;
	}
}
