@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Quicksand:wght@300;500;700&family=Sacramento&display=swap");

@font-face {
	font-family: "tilda-sans-regular";
	src: url("../medias/font/tilda-sans_regular.woff2") format("woff2");
}
@font-face {
	font-family: "tilda-sans-semi";
	src: url("../medias/font/tilda-sans_semibold.woff2") format("woff2");
}

:root {
	--background-color: #04080d;
	--color-white: #fafafa;
	--transition-speed: 0.3s;
}

body {
	background: var(--background-color);
	color: var(--color-white);
	font-family: "tilda-sans-regular", sans-serif;
	font-size: 1rem;
	font-style: normal;
	width: 100vw;
	position: relative;
}

section {
	padding: 50px 200px;
}

/* -------------- Fonts -------------- */

a {
	text-decoration: none;
	color: var(--color-white);
}

h1 {
	font-family: "tilda-sans-semi", sans-serif;
	font-size: 4rem;
	font-style: normal;
	line-height: normal;
	text-transform: uppercase;
}

h2 {
	font-family: "Playfair Display", serif;
	font-size: 2rem;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
}

h3 {
	font-family: "tilda-sans-semi", sans-serif;
	font-size: 1.5rem;
	font-style: normal;
	text-transform: uppercase;
}

h4 {
	font-family: "Sacramento", cursive;
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 400;
	color: var(--background-color);
	border-radius: 30px;
	border: 2px solid var(--background-color);
	width: fit-content;
	height: 35px;
	padding: 10px 15px;
	text-transform: lowercase;
	-webkit-text-stroke-width: 0.5px;
	-webkit-text-stroke-color: var(--background-color);
}

@media screen and (max-width: 768px) {
	body {
		font-size: 0.8rem;
	}
	h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 1.5rem;
	}
}

/* -------------- Header -------------- */

header {
	display: flex;
	position: fixed;
	width: -webkit-fill-available;
	padding: 15px 200px;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--color-white);
	background: var(--background-color);
	z-index: 50;
}

.menu-btn {
	display: none;
	width: 45px;
	height: 45px;
	padding: 10px;
	flex-direction: column;
	cursor: pointer;
}

.bar {
	width: 100%;
	height: 2px;
	background-color: var(--color-white);
	margin: 3px 0;
	transition: 0.4s;
}

.menu {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
}

.list-page,
.list-help {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	font-size: 1rem;
	font-style: normal;
	font-weight: 500;
	text-transform: uppercase;
}

.list-page li,
.list-help li {
	margin-right: 20px;
}

.list-page {
	display: flex;
	align-items: flex-start;
	gap: 50px;
	text-transform: uppercase;
	margin: auto;
}

.list-page a {
	position: relative;
}

.list-page a::before {
	content: "";
	position: absolute;
	display: block;
	width: 100%;
	height: 2px;
	bottom: -2px;
	left: 0;
	background-color: var(--color-white);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.list-page a:hover::before {
	transform: scaleX(1);
}

.active {
	border-bottom: 2px solid var(--color-white);
}

.list-help {
	display: flex;
	gap: 15px;
}

.button-help-menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

@media screen and (max-width: 1440px) {
	header {
		padding: 35px 100px;
		height: 80px;
	}

	.menu-btn {
		display: flex;
	}

	.menu {
		display: none;
		flex-direction: column;
		background-color: var(--background-color);
		position: absolute;
		top: 80px;
		right: 0;
		width: 100%;
		border-bottom: 2px solid var(--color-white);
		padding-top: 25px;
	}

	.menu.opened,
	.list-page.opened,
	.list-help.opened {
		display: flex;
	}

	.list-page,
	.list-help {
		padding: 25px;
	}

	.list-page.opened {
		width: 100%;
		justify-content: space-between;
		padding: 0 100px;
	}

	.list-help {
		gap: 50px;
	}

	.list-page li,
	.list-help li {
		margin-right: 0;
		margin-bottom: 10px;
	}
}

@media screen and (max-width: 768px) {
	header {
		padding: 15px 25px;
	}

	.list-page.opened {
		flex-direction: column;
		align-items: center;
		gap: 25px;
		padding: 0;
	}
}

/* -------------- Footer -------------- */
footer {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 25px 200px;
}

.lien-principal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 15px;
}

.contact-footer {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 15px;
}

.lien-important {
	display: flex;
	justify-content: center;
	gap: 15px;
	padding-top: 15px;
	border-top: 2px solid var(--color-white);
}

@media screen and (max-width: 1440px) {
	footer {
		padding: 25px 100px;
	}
}

@media screen and (max-width: 768px) {
	footer {
		padding: 25px;
	}
}

/* -------------- Changer de couleur -------------- */
.choose-color {
	position: fixed;
	left: 50px;
	top: 40vh;
}

.bouton-color {
	width: 25px;
	height: 25px;
	border-radius: 25px;
	cursor: pointer;
}

.bouton-color.blue {
	background-color: #6cb4e4;
}

.bouton-color.pink {
	background-color: #ff3dff;
}

/* -------------- Image -------------- */
.image-container {
	width: 500px;
	height: 500px;
}

.fit-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------- Boutons -------------- */

/*Bouton ligne*/
.bouton-ligne {
	width: 100%;
	animation: all 1s ease-in-out;
}

.bouton-ligne div {
	display: flex;
	padding: 25px;
	justify-content: space-between;
	align-items: center;
	border-top: 2px solid var(--background-color);
	color: var(--background-color);
}

.bouton-ligne div:hover {
	background-color: var(--color-700);
	color: var(--color-white);
}

.bouton-ligne:hover svg {
	animation: slide1 1s ease-in-out infinite;
	margin-left: 9px;
	fill: var(--color-white);
}

.bouton-ligne:hover svg path {
	fill: var(--color-white);
}

@keyframes slide1 {
	0%,
	100% {
		transform: translate(0, 0);
	}

	50% {
		transform: translate(10px, 0);
	}
}

.btn {
	display: flex;
	padding: 8px 11px 8px 12px;
	align-items: center;
	gap: 10px;
	border-radius: 25px;
	animation: all 300ms ease-in-out;
	cursor: pointer;
}

.button-filter {
	border: 2px solid var(--color-white);
	color: var(--background-color);
}

.button-filter:hover {
	color: var(--primary-color);
}

.button-filter.active {
	border: 2px solid var(--primary-color);
	background-color: var(--primary-color);
	color: var(--color-white);
	border-radius: 25px;
}

/*Bouton black*/
.button-black {
	border: 1px solid var(--background-color);
}

.button-black h3 {
	font-size: 1.25rem;
	color: var(--background-color);
	animation: all 300ms ease-in-out;
}

.button-black:hover {
	background-color: var(--background-color);
}

.button-black:hover h3 {
	color: var(--color-white);
}

.button-black:hover svg path {
	fill: var(--color-white);
}

/* -------------- Frame -------------- */

.frame-custom {
	height: 91px;
	margin: 0 10px;
	padding: 5px 15px;
	position: relative;
	border: 2px solid var(--primary-color); /* Utilisez une bordure transparente par défaut */
	transition: border 1s ease-in-out; /* Ajoutez une transition pour la propriété "border" */
}

.frame-corner {
	position: absolute;
	width: 10px;
	height: 10px;
	border: 1px solid var(--primary-color);
	background: var(--color-white);
}

.corner1 {
	top: -6px;
	left: -6px;
}

.corner2 {
	top: -6px;
	right: -6px;
}

.corner3 {
	left: -6px;
	bottom: -6px;
}

.corner4 {
	right: -6px;
    bottom: -6px;
}

@media screen and (max-width: 1440px) {
	section {
		padding: 50px 100px;
	}
}

@media screen and (max-width: 768px) {
	section {
		padding: 25px;
	}
}

/* -------------- Bannière -------------- */

.banner {
	padding: 0;
	width: 100%;
	overflow: hidden;
	background: var(--primary-color);
	color: var(--background-color);
	padding-top: 115px;
}

.marquee {
	position: relative;
	overflow: hidden;
	--offset: 20vw;
	--move-initial: calc(-25% + var(--offset));
	--move-final: calc(-50% + var(--offset));
}

.marquee__inner {
	width: fit-content;
	display: flex;
	position: relative;
	transform: translate3d(var(--move-initial), 0, 0);
	animation: marquee 10s linear infinite;
	animation-play-state: running;
}

.marquee span {
	font-size: 10vw;
	padding: 0 2vw;
}

.marquee:hover .marquee__inner {
	animation-play-state: running;
}

@keyframes marquee {
	0% {
		transform: translate3d(var(--move-initial), 0, 0);
	}

	100% {
		transform: translate3d(var(--move-final), 0, 0);
	}
}

/* -------------- Loader -------------- */
.loader {
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: var(--color-white);
	position: absolute;
	z-index: 100;
	background-color: var(--background-color);
	transition: all 0.3s ease-in-out;
}

.underline {
	height: 2px;
	background-color: var(--color-white);
	display: inline-block;
	animation: fill 2s ease infinite;
}

@keyframes fill {
	0% {
		width: 0%;
	}

	50% {
		width: 10%;
	}

	100% {
		width: 0%;
	}
}
