/* GENERAL */
html {
	scroll-behavior: smooth;
	max-width: 1920px;
	margin-right: auto;
	margin-left: auto;
	background-color: var(--background-secondary-color);
}

@font-face {
	font-family: 'dosis';
	font-style: normal;
	src: url('/fonts/dosis.ttf') format('truetype');
}

@font-face {
	font-family: 'dosis-bold';
	font-style: normal;
	src: url('/fonts/dosis-bold.ttf') format('truetype');
}

@font-face {
	font-family: 'rust';
	font-style: normal;
	src: url('/fonts/IntroRust-Base.otf') format('opentype');
}

body {
	-webkit-font-smoothing: antialiased;
	padding: 0;
	margin: 0;
	font-family: 'dosis', sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--primary-color: #375b6d;
	--secondary-color: #ccefed;
	--background-primary-color: #375b6d;
	--background-secondary-color: #e3f4f2;
	--highlight-color: #f05b67;
}

p {
	font-size: 1.8em;
}

.title {
	font-family: 'rust', sans-serif;
	text-transform: uppercase;
	line-height: 1em;
	font-size: 4em;
}

.text-bold {
	font-family: 'dosis-bold', sans-serif;
}

.text-center {
	text-align: center;
}

.text-uppercase {
	text-transform: uppercase !important;
}

.text-secondary {
	color: var(--secondary-color);
	font-size: 1.2em;
}

.highlight-text {
	color: var(--highlight-color);
}

.redirect-link {
	background-color: var(--highlight-color);
	font-family: 'rust', sans-serif;
	text-transform: uppercase;
	color: #ffffff;
	text-decoration: none;
	padding: 0.7em 1em;
	border-radius: 50px;
	transition: 0.3s;
	font-size: 1.5em;

	&:hover {
		filter: brightness(0.8);
		transition: 0.3s;
	}
}

.chevron {
	height: 50px;
	width: 50px;
}

.chevron-down {
	transform: rotate(90deg);
	margin-top: 2em;
}

/* NAVBAR */
nav {
	background-color: var(--background-primary-color);
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding-right: 4em;
	padding-left: 2em;
	font-size: 1.8em;
}

.mobile-navbar,
.mobile-menu {
	display: none;
}

.logo {
	height: 200px;
}

.nav-links {
	color: #ffffff;
}

.nav-link {
	text-transform: uppercase;
	color: #ffffff;
	text-decoration: none;
	padding-left: 10px;
	padding-right: 10px;
	position: relative;
	transition: color 0.3s ease;

	&::after {
		content: '';
		position: absolute;
		bottom: -5px;
		left: 0;
		width: 0;
		height: 2px;
		background-color: #ffffff;
		transition: width 0.3s ease;
	}

	&:hover {
		color: rgba(255, 255, 255, 0.9);

		&::after {
			width: 100%;
		}
	}
}

/* FOOTER */
footer {
	background-color: var(--background-secondary-color);
	color: var(--primary-color);

	.title {
		padding-top: 2em;
		font-size: 1.3em;
		margin-bottom: 0;
	}

	.logo {
		margin-top: 2em;
	}
}

.footer-row {
	display: flex;
	justify-content: space-between;
	margin-right: 10em;
	margin-left: 3em;
}

.footer-column {
	display: flex;
	flex-direction: column;
	text-align: left;
	gap: 5px;
	margin-bottom: 2em;
	align-items: flex-start;
}

.footer-link {
	color: var(--primary-color);
	text-decoration: none;
	text-transform: uppercase;
	font-size: 1.3em;
	line-height: 1.5em;
	position: relative;
	transition: color 0.3s ease;
	width: fit-content;

	&::after {
		content: '';
		position: absolute;
		bottom: -5px;
		left: 0;
		width: 0;
		height: 2px;
		background-color: var(--background-primary-color);
		transition: width 0.3s ease;
	}

	&:hover {
		color: var(--primary-color);

		&::after {
			width: 100%;
		}
	}
}

/* FORM */
.form-errors {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-error {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #e54646;
	font-size: 0.9rem;
	margin: 0;
}

.form-error-message {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: #fad1d1;
	border-radius: 8px;
	color: #e54646;
	font-size: 1rem;
}

.form-success-message {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: #d1fae5;
	border-radius: 8px;
	color: #065f46;
	font-size: 1rem;
}

/* RESPONSIVE */
@media screen and (max-width: 1780px) {
	.title {
		font-size: 3.5em;
	}
	.subtitle,
	p {
		font-size: 1.5em;
	}
}

@media screen and (max-width: 1440px) {
	.subtitle,
	p {
		font-size: 1.3em;
	}
}

@media screen and (max-width: 1250px) {
	nav {
		padding-right: 2em;
		padding-left: 1em;
	}

	.title {
		font-size: 3.2em;
	}

	.subtitle {
		max-width: 80%;
	}

	.footer-row {
		margin-right: 5em;
	}
}

@media screen and (max-width: 1130px) {
	.chevron {
		height: 30px;
		width: 30px;
	}
}

@media screen and (max-width: 1025px) {
	.title {
		font-size: 3.3em;
	}

	.subtitle {
		margin-right: auto;
		margin-left: auto;
	}

	.text-secondary {
		font-size: 1.9em;
	}

	.title {
		line-height: 1.1em;
	}
}

@media screen and (max-width: 995px) {
	/*MOBILE NAVBAR*/
	nav {
		padding-right: 1em;
		padding-left: 0;
		z-index: 1001;
		position: relative;
	}

	.nav-links {
		display: none;
	}

	.mobile-navbar {
		display: block;
		color: #ffffff;
		font-size: 1.5em;
		cursor: pointer;
	}

	.mobile-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.6);
		z-index: 999;
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.mobile-overlay.active {
		display: block;
		opacity: 1;
	}

	.mobile-menu {
		display: none;
		position: absolute;
		top: 5.5em;
		right: 0;
		background-color: var(--background-primary-color);
		width: 100%;
		flex-direction: column;
		padding: 1em 0;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		z-index: 1000;
	}

	.mobile-menu a {
		color: #ffffff;
		text-decoration: none;
		padding: 0.5em 2em;
		text-transform: uppercase;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		transition: background-color 0.3s ease;
	}

	.mobile-menu i {
		padding-right: 0.5em;
	}

	.mobile-menu a:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}

	.mobile-menu a:last-child {
		border-bottom: none;
	}

	/* Classe pour afficher le menu */
	.mobile-menu.active {
		display: flex;
	}

	.footer-row {
		flex-direction: column;
		margin-left: auto;
		margin-right: auto;
		justify-content: center;
	}

	.footer-row > .footer-column {
		position: relative;
		top: -3em;
	}

	footer .title {
		padding-top: 1em;
	}

	.footer-column {
		text-align: center;
		align-items: center;
		margin-bottom: unset;
	}

	footer .logo {
		width: 200px;
		margin: auto;
	}
}

@media screen and (max-width: 740px) {
	.title {
		font-size: 2.5em;
	}
}

@media screen and (max-width: 663px) {
	.mobile-menu a {
		padding: 0.5em 1em;
	}

	.title {
		font-size: 2.3em;
	}

	.text-secondary {
		font-size: 1.5em;
	}
}

@media screen and (max-width: 580px) {
	.subtitle {
		max-width: unset;
	}
}

@media screen and (max-width: 470px) {
	.redirect-link {
		padding: 0.7em 1em;
		font-size: 1.2em;
	}
}
