:root {
	--main: #84A98D;
	--contrast: #527970;
}

/* Bloquer le scroll pendant le preloader */
html.preloader-active,
body.preloader-active {
	overflow: hidden !important;
	height: 100%;
	width: 100%;
	position: relative;
	touch-action: none; /* pour mobile */
}

#preloader-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--contrast);
	overflow: hidden;
	z-index: 9999; /* s'assurer qu'il est au-dessus de tout */
	transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader-container.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none; /* pour ne plus intercepter les clics */
}

#slogan1 {
	margin-top: 1vh;
	font-size: 1.5vw;
	font-weight: bold;
}

#slogan2 {
	margin-top: 0.25vh;
	font-size: 1vw;
	font-weight: normal;
}

#slogan1,
#slogan2 {
	font-family: "GFS Didot", serif;
	letter-spacing: 0.2em;
	color: var(--main);
	text-align: center;
	transform: translateY(100vh);
	transition: transform 1.2s ease-out;
}

#slogan1.visible,
#slogan2.visible {
	opacity: 1;
	transform: translateY(0) !important;
}

#logo-anime {
	display: block;
	height: auto;
	width: 100% !important;
	max-width: 10vw;
}

#logo-anime path {
	stroke-width: 2px !important;
	stroke-dasharray: 10000;
	stroke-dashoffset: 10000;
}

#logo-anime #g1 {
	stroke: var(--main);
}

.gfs-didot-regular {
	font-family: "GFS Didot", serif;
	font-weight: 400;
	font-style: normal;
}

/* ===== TRÈS PETITS ÉCRANS (moins de 480px) ===== */
@media screen and (max-width: 480px) {
	#logo-anime {
		max-width: 30vw;
	}
	#slogan1 {
		font-size: clamp(1.5rem, 7vw, 2.2rem);
	}
	#slogan2 {
		font-size: clamp(0.9rem, 4vw, 1.4rem);
	}
}

/* ===== MOBILES (écrans jusqu'à 767px) ===== */
@media screen and (max-width: 767px) {
	#slogan1 {
		font-size: clamp(1.8rem, 6vw, 2.8rem);
		margin-top: 20px;
	}
	#slogan2 {
		font-size: clamp(1rem, 3.5vw, 1.8rem);
		margin-top: 8px;
	}
	#logo-anime {
		max-width: 10vw;
	}
}

/* ===== TABLETTES (écrans entre 768px et 1024px) ===== */
@media screen and (max-width: 1024px) {
	#slogan1 {
		font-size: clamp(2rem, 5vw, 3.5rem);
	}
	#slogan2 {
		font-size: clamp(1.2rem, 3vw, 2.2rem);
	}
	#logo-anime {
		max-width: 20vw;
	}
}