*,
::before,
::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	/* palette */
	--main-white: #dddddd;
	--shade-white: #d3d3d3;
	--main-black: #181818;
	--main-violet: #ddd6fe;
	--dark-violet: #a78bfa;

	/* Fonts */
	--base-font: Open sans, sans-serif;
	--title-font: Merriweather, serif;

	/* Font-size */
	--fs-14: 1.4rem;
	--fs-16: 1.6rem;
	--fs-18: 1.8rem;
	--fs-20: 2rem;
	--fs-24: 2.4rem;
	--fs-30: 3rem;
	--fs-36: 3.6rem;
	--fs-42: 4.2rem;
	--fs-50: 5rem;
	--fs-72: 7.2rem;
}

html {
	font-size: 62.5%; /* 1rem = 10px */
}

body {
	font-family: var(--base-font);
	font-size: var(--fs-16);
}

/* Global Utility classes */
.section-title {
	font-style: var(--title-font);
	font-size: var(--fs-36);
	margin-bottom: 0.6rem;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	text-decoration-thickness: 0.2rem;
	text-underline-offset: 0.6rem;
}

.section-title img {
	width: 5rem;
	margin-left: 0.8rem;
}

.section-subtitle {
	font-size: var(--fs-24);
	margin-bottom: 7.2rem;
	text-align: center;
}

.heading-h3 {
	font-size: var(--fs-24);
	display: flex;
	align-items: center;
}

.heading-h3 img {
	width: 3.6rem;
	margin-right: 0.6rem;
}

.heading-h4 {
	font-size: var(--fs-20);
}

.heading-h3,
.heading-h4 {
	font-family: var(--title-font);
	text-transform: uppercase;
}

.container {
	max-width: 110rem;
	margin: 0 auto;
}

@media screen and (max-width: 1024px) {
	.section-title {
		font-size: var(--fs-30);
	}

	.section-title img {
		width: 4.2rem;
	}

	.section-subtitle {
		font-size: var(--fs-20);
		margin-bottom: 5.2rem;
	}
	.heading-h3 {
		font-size: var(--fs-18);
	}

	.heading-h3 img {
		width: 3rem;
	}

	.container {
		max-width: 70rem;
	}
}

@media (max-width: 750px) {
	.section-title {
		font-size: var(--fs-24);
	}
	.section-title img {
		width: 3rem;
	}
	.section-subtitle {
		font-size: var(--fs-16);
	}
	.heading-h3 {
		font-size: var(--fs-16);
	}
}
@media (max-width: 525px) {
	.section-title {
		font-size: var(--fs-20);
	}
	.section-subtitle {
		font-size: var(--fs-14);
	}
	.heading-h3 img {
		width: 2rem;
	}
}

/* Navigation */

.main-nav {
	position: fixed;
	z-index: 99;
	top: 0;
	width: 100%;
	padding: 1.6rem;
	background-color: var(--main-violet);
	border-bottom: 0.1rem solid var(--main-black);
}

.main-nav ul {
	display: flex;
	justify-content: center;
	list-style: none;
}
.main-nav a:link,
.main-nav a:visited {
	margin: 0 1.2rem;
	padding: 0.8rem;
	border-radius: 0.2rem;
	color: var(--main-black);
	font-weight: 700;
	text-transform: uppercase;
	text-decoration-style: dotted;
	text-underline-offset: 4px;
}

.main-nav a:hover,
.main-nav a:active {
	background-color: var(--main-black);
	color: var(--dark-violet);
}

.nav-toggler {
	display: none;
}

@media screen and (max-width: 1024px) {
	.main-nav a:link,
	.main-nav a:visited {
		font-size: var(--fs-14);
		padding: 0.6rem;
	}
}

@media screen and (max-width: 525px) {
	.main-nav {
		display: flex;
		order: 1;
	}

	.main-nav ul {
		padding: 5rem;
		display: none;
		flex-direction: column;
	}

	.main-nav ul li {
		margin: 0.6rem 0;
	}

	.main-nav.active ul {
		display: flex;
	}

	.nav-toggler {
		order: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
		align-self: baseline;
		background: none;
		border: none;
		cursor: pointer;
	}

	.nav-toggler img {
		width: 2rem;
	}
}

.main-nav img {
	width: 2rem;
}

/* Hero section */

.hero {
	min-height: 75rem;
	padding-top: 20rem;
	background-image: url(/ressources/hero-background.jpg);
	background-size: cover;
	background-position: 50% 20%;
	position: relative;
	text-align: center;
}

.main-title {
	font-family: var(--title-font);
	font-size: var(--fs-72);
	color: var(--main-white);
	font-weight: 900;
}

.main-subtitle {
	font-size: var(--fs-30);
	margin-bottom: 2.8rem;
	color: var(--main-white);
	font-weight: 300;
}

.hero-link {
	min-width: 15.5rem;
	padding: 0.8rem 1.2rem;
	border-radius: 0.5rem;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	color: var(--main-black);
}

.hero-link span {
	text-decoration: underline dotted;
	text-decoration-color: var(--main-black);
	text-underline-offset: 0.4rem;
	position: relative;
	bottom: 0.2rem;
}

.hero-link img {
	margin-left: 0.2rem;
	width: 2.4rem;
}

.hero-link span,
.hero-link img {
	pointer-events: none;
}

.hero-link-1:link,
.hero-link-1:visited {
	background-color: var(--main-violet);
}

.hero-link-1:hover,
.hero-link-1:active {
	background-color: var(--dark-violet);
}

.hero-link-2:link,
.hero-link-2:visited {
	background-color: var(--main-white);
	margin-left: 1.2rem;
}

.hero-link-2:hover,
.hero-link-2:active {
	background-color: var(--shade-white);
}

.push-down-hero {
	display: none;
}

@media (max-width: 1024px) {
	.hero {
		min-height: 60rem;
		padding-top: 14.5rem;
	}
	.main-title {
		font-size: var(--fs-50);
	}
	.main-subtitle {
		font-size: var(--fs-30);
	}
}
@media (max-width: 750px) {
	.main-title {
		font-size: var(--fs-36);
	}
	.main-subtitle {
		font-size: var(--fs-24);
	}
	.hero-link {
		min-width: 11rem;
		padding: 0.8rem 0.6rem;
		font-size: var(--fs-14);
	}
	.hero-link img {
		display: none;
	}
	.push-down-hero {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 4rem;
		height: 4rem;
		border-radius: 50%;
		background: var(--main-black);
		border: 0.1rem solid var(--main-white);
		position: absolute;
		bottom: 0;
		margin-bottom: 0.3rem;
		left: 50%;
		transform: translateX(-50%);
	}
	.push-down-hero img {
		width: 2rem;
		pointer-events: none;
	}
}
@media (max-width: 525px) {
	.hero {
		padding-top: 12.5rem;
		min-height: 50rem;
	}
	.hero-link {
		padding: 0.6rem;
	}
	.main-title {
		font-size: var(--fs-24);
	}
	.main-subtitle {
		font-size: var(--fs-20);
	}
}

/* About section */
.about {
	padding: 5rem 2rem 12.5rem;
	background-color: var(--main-white);
}

.about-content {
	display: flex;
}

.about-text {
	width: 60%;
	margin-right: 9.6rem;
}

.about-text .heading-h3 {
	margin-bottom: 1.2rem;
}

.about-text p {
	font-size: var(--fs-16);
	line-height: 1.4;
}

.about-text p:nth-child(2) {
	margin-bottom: 4.4rem;
}

.about-slideshow {
	width: 40%;
}

.slideshow-images-container {
	margin: 1.2rem 0;
	display: grid;
}

.about-slideshow img {
	grid-area: 1/1/2/2;
	width: 100%;
	border-radius: 0.3rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.about-slideshow img.active {
	opacity: 1;
	visibility: visible;
	z-index: 10;
}

.dots {
	display: flex;
	justify-content: center;
	align-items: center;
}

.dot {
	width: 1.5rem;
	height: 1.5rem;
	margin: 0 0.5rem;
	border-radius: 50%;
	cursor: pointer;
	border: 0.1rem solid var(--main-black);
	background-color: var(--main-white);
}

.dot.active {
	background-color: var(--main-black);
}

@media (max-width: 1024px) {
	.about {
		padding: 5rem 2rem 10rem;
	}
	.about-content {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.about-text {
		width: 100%;
		margin-right: 0;
	}
	.about-slideshow {
		width: 80%;
	}
	.slideshow-images-container {
		margin: 7.2rem auto 1.2rem;
	}
}
@media (max-width: 750px) {
	.about-text p {
		font-size: var(--fs-14);
	}
}
@media (max-width: 525px) {
	.about {
		padding: 4rem 1.4rem 10rem;
	}
	.about-slideshow {
		width: 100%;
	}
}

/* Prestations */

.prestations {
	padding: 5rem 1rem 10rem;
	background-color: var(--main-black);
}
.prestations .section-title,
.prestations .section-subtitle {
	color: var(--main-white);
}
.prestations .section-title img {
	transform: rotate(5deg);
}
.prestations-container {
	display: flex;
	justify-content: center;
}
.prestations-card {
	width: 100%;
	box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.5);
	padding: 3.6rem 3.6rem 9.6rem;
	background-color: var(--main-violet);
	border-radius: .5rem;
}
.prestations-card:nth-child(1) {
	margin-right: 2.8rem;
}
.prestations-category-title {
	font-family: var(--title-font);
	font-size: var(--fs-30);
	margin-bottom: 4.4rem;
	text-transform: uppercase;
	color: var(--main-black);
	font-weight: 900;
	display: flex;
	justify-content: center;
	align-items: center;
}
.prestations-category-title img {
	width: 3.6rem;
	margin-left: 1.2rem;
	transform: rotateY(-180deg);
}
.prestations-list {
	list-style-type: none;
}
.prestations-list h4 {
	margin-bottom: .8rem;
}
.prestations-list p {
	font-weight: 500;
	line-height: 1.4;
}
.prestations-list li:not(:last-of-type) {
	margin-bottom: 2.8rem;
}

@media (max-width: 1024px) {
	.prestations-container {
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.prestations-card {
		max-width: 53rem;
	}
	.prestations-card:nth-child(1) {
		margin-right: 0;
		margin-bottom: 3.6rem;
	}
}

@media (max-width: 525px) {
	.prestations {
		padding: 5rem 1rem 9rem;
	}
	.prestations-category-title {
		font-size: var(--fs-20);
		margin-bottom: 3.6rem;
	}
	.prestations-category-title img {
		width: 3rem;
	}
	.prestations-card {
		padding: 2.8rem 2.8rem 6rem;
	}
	.prestations-card h4 {
		font-size: var(--fs-16);
	}
	.prestations-list p {
		font-size: var(--fs-14);
	}
}

/* Team */

.team {
	padding: 5rem 1rem 15rem;
	background-color: var(--main-white);
}

.team .section-subtitle {
	margin-bottom: 2.8rem;
}
.cards-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.team-card {
	flex-shrink: 0;
	width: 30rem;
	color: var(--main-violet);
	box-shadow: 0 .5rem .5rem rgba(0, 0, 0, 0.4);
	margin: 2rem;
	border-radius: .5rem;
	background-color: var(--main-black);
	background-image: repeating-linear-gradient(
			90deg,
			hsla(57, 0%, 42%, 0.09) 0px,
			hsla(57, 0%, 42%, 0.09) 1px,
			transparent .1rem,
			transparent 6rem
		),
		repeating-linear-gradient(
			0deg,
			hsla(57, 0%, 42%, 0.09) 0px,
			hsla(57, 0%, 42%, 0.09) 1px,
			transparent .1rem,
			transparent 6rem
		),
		repeating-linear-gradient(
			0deg,
			hsla(57, 0%, 42%, 0.09) 0px,
			hsla(57, 0%, 42%, 0.09) 1px,
			transparent .1rem,
			transparent 1rem
		),
		repeating-linear-gradient(
			90deg,
			hsla(57, 0%, 42%, 0.09) 0px,
			hsla(57, 0%, 42%, 0.09) 1px,
			transparent .1rem,
			transparent 1rem
		),
		linear-gradient(90deg, rgb(20, 20, 20), rgb(20, 20, 20));
}

.profile-image {
	width: 100%;
	height: 30rem;
	object-fit: cover;
	border-top-left-radius: .5rem;
	border-top-right-radius: .5rem;
}
.card-content {
	padding: 2rem;
}
.top-card-content {
	display: flex;
	align-items: center;
	margin-bottom: 3.6rem;
}
.card-name {
	font-size: var(--fs-20);
}
.top-card-content img {
	width: 2.4rem;
	cursor: pointer;
}
.top-card-content a:nth-child(2) {
	margin-left: auto;
	margin-right: .8rem;
}
@media (max-width: 1024px) {
	.team {
		padding: 5rem 2rem 10rem;
	}
}
@media (max-width: 750px) {
	.team-card {
		width: 100%;
		max-width: 43rem;
	}
}

/* Testimonials */

.testimonial-section {
	background-image: url(ressources/testimonial.jpg);
	background-size: cover;
	background-position: 0 80%;
	padding: 8.4rem;
}
.text-slideshow-container {
	max-width: 110rem;
	margin: 0 auto;
	position: relative;
	background-color: rgba(0, 0, 0, 0.345);
	overflow: hidden;
}
.sliding-container {
	display: flex;
	color: var(--main-white);
	animation: carousel 16s ease-in-out infinite;
}

@keyframes carousel {
	0%,
	20% {
		transform: translateX(0);
	}
	25%,
	45% {
		transform: translateX(-100%);
	}
	50%,
	70% {
		transform: translateX(-200%);
	}
	75%,
	95% {
		transform: translateX(-300%);
	}
	100% {
		transform: translateX(-400%);
	}
}
.text-slide {
	flex-shrink: 0;
	width: 100%;
	text-align: center;
	padding: 4.4rem;
}
.testimonial-text {
	font-family: var(--title-font);
	font-size: var(--fs-36);
	margin-bottom: .6rem;
}
.testimonial-author {
	font-size: var(--fs-20);
}

@media (max-width: 1024px) {
	.text-slideshow-container {
		max-width: 75rem;
	}
	.testimonial-section {
		padding: 4.4rem;
	}
	.testimonial-text {
		font-size: var(--fs-30);
	}
	.testimonial-author {
		font-size: var(--fs-16);
	}
}
@media (max-width: 750px) {
	.text-slideshow-container {
		max-width: 60rem;
	}
	.testimonial-text {
		font-size: var(--fs-20);
	}
}
@media (max-width: 525px) {
	.text-slideshow-container {
		max-width: 100%;
		margin: 0;
	}
	.text-slide {
		padding: 3.6rem 0;
	}
	.testimonial-section {
		padding: 4.4rem .2rem;
	}
	.testimonial-text {
		font-size: var(--fs-20);
	}
}

/* Contact */
.contact {
	padding: 5rem 2rem 15rem;
	background-color: var(--main-violet);
}

.contact-content {
	display: flex;
	justify-content: center;
}
.address-block {
	background-color: var(--main-black);
	padding: 2rem;
	border-radius: .5rem;
	color: var(--main-violet);
	width: 35rem;
}

.address-block:nth-child(1) {
	margin-bottom: 1.6rem;
}
.address-block p:nth-child(1) {
	font-size: var(--fs-18);
	margin-bottom: 1.2rem;
}
.address-block p:nth-child(2) {
	margin-bottom: 3.6rem;
}
.address-block p:nth-child(3) {
	margin-bottom: 1.2rem;
}
.address-block img {
	width: 2.4rem;
}
.address-block a:not(:last-of-type) {
	margin-right: 1rem;
}

.schedule {
	margin-left: 4.4rem;
}
.schedule-table p {
	display: flex;
	justify-content: space-between;
	margin: 1.2rem 0;
	padding-bottom: .6rem;
}
.schedule-table p:not(:last-of-type) {
	border-bottom: .1rem solid var(--main-black);
}
.schedule-table p span:nth-child(1) {
	font-weight: 900;
}

@media (max-width: 750px) {
	.contact-content {
		flex-direction: column;
	}
	.address-block {
		width: auto;
	}
	.schedule {
		margin: 0;
	}
	.schedule-table,
	.address-block {
		max-width: 45rem;
		margin: 0 auto;
	}
	.addresses {
		margin-bottom: 3.6rem;
	}
}

@media (max-width: 525px) {
	.contact {
		padding: 3rem 2rem 9rem;
	}
	.addresses .address-block p,
	.schedule p {
		font-size: var(--fs-14);
	}
	.address-block img {
		width: 2rem;
	}
	.address-block a:not(:last-of-type) {
		margin-right: .6rem;
	}
}

/* Footer */

footer {
	padding: 1.2rem;
	text-align: center;
	background-color: var(--main-black);
}

footer a {
	color: var(--main-white);
}
