/*
Theme Name: Je fais un voeu — Parallax
Description: Accueil illustré pour le thème enfant de Parallax Frame.
Author: Je fais un voeu
Template: parallax-frame
Version: 1.1.5
Text Domain: je-fais-un-voeu-parallax
*/

@import url("../parallax-frame/style.css");

body.home {
	padding-top: 0;
	background: #f7f0e2;
	color: #15283b;
	cursor: url("assets/images/magic-wand-cursor.png") 8 8, auto;
}

body.home,
body.home * {
	cursor: url("assets/images/magic-wand-cursor.png") 8 8, auto !important;
}

.jfv-magic-trail {
	position: fixed;
	z-index: 99999;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.jfv-magic-trail__star {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--star-size);
	height: var(--star-size);
	border-radius: 35%;
	background: var(--star-color);
	box-shadow: 0 0 8px color-mix(in srgb, var(--star-color) 70%, transparent);
	clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 59%, 80% 100%, 50% 76%, 20% 100%, 30% 59%, 0 38%, 38% 35%);
	opacity: 0;
	transform: translate3d(var(--trail-x), var(--trail-y), 0) rotate(var(--star-rotation)) scale(.25);
	animation: jfv-star-fall var(--star-duration) ease-out forwards;
}

@keyframes jfv-star-fall {
	12% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translate3d(var(--trail-x), calc(var(--trail-y) + var(--fall-distance)), 0) rotate(calc(var(--star-rotation) + 150deg)) scale(.15);
	}
}

body.home #masthead {
	position: absolute;
	z-index: 10;
	top: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(1, 16, 29, .72), transparent);
}

body.home #masthead.header-background {
	position: fixed;
	background: rgba(3, 25, 41, .96);
}

body.home #masthead .wrapper {
	width: min(100% - 64px, 1360px);
}

body.home #site-branding {
	padding: 14px 0;
}

body.home #site-logo {
	display: none;
}

body.home #site-header {
	float: left;
	margin: 0;
	padding: 12px 0;
}

body.home #site-header .site-title {
	margin: 0;
	font-family: "Trebuchet MS", "Segoe UI", sans-serif;
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 500;
	letter-spacing: .01em;
	line-height: 1.3;
	text-transform: none;
}

body.home #site-header .site-title a {
	color: #fff8e9;
}

body.home #site-header .site-title a::before {
	margin-right: .55rem;
	color: #ffd166;
	content: "\2726";
}

body.home #site-header .site-description {
	display: none;
}

body.home .nav-primary {
	margin-top: 0;
}

body.home .nav-primary .menu a {
	padding: 30px 14px;
	color: #fff8e9;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
}

body.home .nav-primary .menu a:hover,
body.home .nav-primary .menu .current_page_item > a {
	color: #ffd166;
}

body.home .nav-primary .menu .current_page_item > a {
	position: relative;
}

body.home .nav-primary .menu .current_page_item > a::after {
	position: absolute;
	right: 14px;
	bottom: 21px;
	left: 14px;
	height: 2px;
	background: #ffd166;
	content: "";
}

body.home .nav-primary .page-item-2 {
	display: none;
}

body.home .primary-search-icon,
body.home #header-right-menu {
	color: #fff8e9;
}

.home #content.site-content {
	padding: 0;
}

.home #content .wrapper {
	width: 100%;
	max-width: none;
	padding: 0;
}

.home #primary {
	float: none;
	width: 100%;
}

.home #secondary {
	display: none;
}

.home #main.site-main {
	float: none;
	width: 100%;
	margin: 0;
}

.jfv-home {
	margin: 0;
}

.jfv-home__hero {
	position: relative;
	display: flex;
	min-height: max(680px, 100svh);
	flex-direction: column;
	align-items: flex-start;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(ellipse at 75% 55%, rgba(35, 101, 125, .48), transparent 49%),
		linear-gradient(180deg, #031623 0%, #062537 48%, #153b4c 78%, #132d35 100%);
	color: #fff8ed;
}

.jfv-home__hero::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: linear-gradient(180deg, rgba(1, 15, 25, .48), transparent 34%, transparent 62%, rgba(1, 14, 21, .22));
	content: "";
	pointer-events: none;
}

.jfv-home__hero::after {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: 0;
	left: 0;
	height: 44%;
	background: linear-gradient(180deg, transparent, rgba(1, 14, 21, .5));
	content: "";
	pointer-events: none;
}

.jfv-home__landscape {
	position: absolute;
	z-index: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center bottom;
}

.jfv-home__foreground {
	position: absolute;
	z-index: 2;
	bottom: -1px;
	left: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	pointer-events: none;
}

.jfv-home__wish-trail {
	position: absolute;
	z-index: 1;
	top: 7%;
	right: 5%;
	width: min(65%, 800px);
	height: auto;
	overflow: visible;
	opacity: .8;
	pointer-events: none;
}

.jfv-home__sheep {
	position: absolute;
	z-index: 3;
	bottom: clamp(18px, 4vw, 56px);
	left: clamp(5%, 8vw, 130px);
	width: clamp(230px, 26vw, 360px);
	height: auto;
	min-height: 0;
	aspect-ratio: 1.42;
	padding: 0;
	background: url("assets/images/voeu-sheep.png") center top / contain no-repeat;
	pointer-events: none;
}

.jfv-home__copy {
	position: absolute;
	z-index: 4;
	top: 50%;
	right: clamp(32px, 6.5vw, 100px);
	width: min(39vw, 440px);
	margin: 0;
	padding: 0;
	text-align: left;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
	transform: translateY(-50%);
}

.jfv-home__title {
	max-width: 430px;
	margin: 0;
	color: #fff8ed;
	font-family: "Trebuchet MS", "Segoe UI", sans-serif;
	font-size: clamp(3rem, 5vw, 4.65rem);
	font-weight: 400;
	letter-spacing: -.045em;
	line-height: 1.03;
}

.jfv-home__description {
	max-width: 390px;
	margin: 1.25rem 0 0;
	color: rgba(255, 249, 236, .93);
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	line-height: 1.65;
}

.jfv-home__link {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	margin-top: 1.35rem;
	padding: .75rem 1.6rem;
	border: 1px solid #ffc542;
	border-radius: 999px;
	background: #ffc542;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
	color: #172534;
	font-size: .96rem;
	font-weight: 700;
	text-decoration: none;
	text-shadow: none;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.jfv-home__link:hover,
.jfv-home__link:focus-visible {
	transform: translateY(-2px);
	background: #ffda7c;
	box-shadow: 0 7px 22px rgba(0, 0, 0, .25);
	color: #172534;
}

.jfv-home__link-star {
	font-size: 1.1rem;
}

.jfv-home__welcome {
	position: relative;
	z-index: 2;
	padding: 0 24px clamp(4rem, 8vw, 7rem);
	background: #101f2a;
}

.jfv-home__welcome-inner {
	position: relative;
	width: min(100%, 1080px);
	min-height: 220px;
	margin: -28px auto 0;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 7vw, 5.5rem);
	border: 1px solid #182a39;
	border-radius: 4px 8px 5px 7px;
	background:
		radial-gradient(ellipse at 12% 18%, rgba(255, 255, 255, .86), transparent 36%),
		#f8ebd3;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
	color: #14283b;
	text-align: left;
}

.jfv-home__welcome-inner::before {
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(31, 45, 54, .7);
	border-radius: 2px 5px 3px 4px;
	content: "";
	pointer-events: none;
}

.jfv-home__welcome h2 {
	position: relative;
	max-width: 680px;
	margin: 0;
	color: #132d43;
	font-family: "Trebuchet MS", "Segoe UI", sans-serif;
	font-size: clamp(2rem, 3.5vw, 2.9rem);
	font-weight: 500;
	letter-spacing: -.03em;
	line-height: 1.18;
}

.jfv-home__welcome p {
	position: relative;
	max-width: 700px;
	margin: 1rem 0 0;
	color: #324452;
	font-size: 1.05rem;
	line-height: 1.75;
}

.jfv-home__welcome-star {
	position: absolute;
	top: 1.5rem;
	right: clamp(2rem, 7vw, 5.5rem);
	color: #efa928;
	font-size: clamp(3rem, 7vw, 5rem);
	text-shadow: 0 2px 0 #15283b;
}

.jfv-home__welcome .jfv-home__link {
	position: relative;
	margin-top: 1.4rem;
}

.jfv-home a,
.jfv-home button,
.jfv-home__link {
	cursor: url("assets/images/magic-wand-cursor.png") 8 8, pointer !important;
}

@media (max-width: 800px) {
	body.home #masthead .wrapper {
		width: calc(100% - 32px);
	}

	body.home #site-branding {
		padding: 8px 0;
	}

	body.home #site-header {
		padding: 10px 0;
	}

	body.home #site-header .site-title {
		font-size: 18px;
	}

	body.home .nav-primary .menu a {
		padding: 14px 10px;
	}

	body.home .nav-primary .menu .current_page_item > a {
		position: relative;
	}

	body.home .nav-primary .menu .current_page_item > a::after {
		right: 10px;
		bottom: 8px;
		left: 10px;
		height: 1px;
	}

	.jfv-home__hero {
		min-height: max(720px, 100svh);
	}

	.jfv-home__landscape {
		left: 50%;
		width: auto;
		height: 100%;
		max-width: none;
		object-fit: cover;
		transform: translateX(-50%);
	}

	.jfv-home__foreground {
		left: -22%;
		width: 144%;
	}

	.jfv-home__wish-trail {
		top: 37%;
		right: -7%;
		width: 84%;
		opacity: .56;
	}

	.jfv-home__copy {
		top: 50%;
		right: 6%;
		width: min(52%, 440px);
		transform: translateY(-50%);
	}

	.jfv-home__title {
		font-size: clamp(2.8rem, 8vw, 4rem);
	}

	.jfv-home__description {
		max-width: 360px;
	}

	.jfv-home__sheep {
		bottom: 20px;
		right: auto;
		left: 6%;
		width: clamp(190px, 29vw, 280px);
	}

	.jfv-home__welcome-star {
		top: 1rem;
		right: 1.5rem;
	}

	.jfv-home__welcome h2 {
		max-width: 75%;
	}
}

@media (max-width: 520px) {
	body.home #masthead .wrapper {
		width: calc(100% - 24px);
	}

	body.home #site-header .site-title {
		font-size: 16px;
	}

	.jfv-home__hero {
		min-height: max(740px, 100svh);
	}

	.jfv-home__copy {
		top: 38%;
		right: 4%;
		left: auto;
		width: 60%;
		transform: translateY(-50%);
	}

	.jfv-home__title {
		max-width: 100%;
		font-size: clamp(1.9rem, 9.5vw, 2.7rem);
	}

	.jfv-home__description {
		max-width: 100%;
		font-size: clamp(.82rem, 3.5vw, .98rem);
	}

	.jfv-home__link {
		min-height: 46px;
		padding: .68rem 1.2rem;
		font-size: .9rem;
	}

	.jfv-home__landscape {
		left: 50%;
		width: auto;
		height: 100%;
		transform: translateX(-50%);
	}

	.jfv-home__foreground {
		left: -38%;
		width: 176%;
	}

	.jfv-home__sheep {
		bottom: 12px;
		right: auto;
		left: 4%;
		width: clamp(135px, 39vw, 175px);
	}

	.jfv-home__wish-trail {
		top: 30%;
		right: -23%;
		width: 108%;
		opacity: .42;
	}

	.jfv-home__welcome {
		padding-right: 14px;
		padding-left: 14px;
	}

	.jfv-home__welcome-inner {
		padding: 2rem 1.4rem;
	}

	.jfv-home__welcome h2 {
		max-width: 78%;
		font-size: 1.85rem;
	}

	.jfv-home__welcome p {
		font-size: .98rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jfv-magic-trail {
		display: none;
	}

	.jfv-home *,
	.jfv-home *::before,
	.jfv-home *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}

	.jfv-home__sheep.parallax-effect {
		background-position: center top !important;
	}
}
