@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

* {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

/*
	Variables
*/

:root {
	--primary-color: #0057ff;
	--primary-color-hover: #003ecb;
	--primary-color-focus: #1753d4;
	--primary-color-pressed: #1753d4;
	--secondary-color: #96b8ff;

	--gray: lightgray;
	--black: #111111;

	--border-radius: 6px;
	--font: 'Poppins', sans-serif;
}

/*
	Components
*/

/* Buttons */

.primary-button {
	background-color: var(--primary-color);
	color: white;
	text-decoration: none;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	border-radius: var(--border-radius);
	padding: 13px 20px;
	font-size: 15px;
	font-family: var(--font);
	transition: .15s;
	outline: none;
}

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

.primary-button:focus {
	background-color: var(--primary-color-focus);
	box-shadow: 0 0 0 2.5px var(--secondary-color);
}

.primary-button:active {
	background-color: var(--primary-color-pressed);
	box-shadow: 0 0 0 2.5px var(--secondary-color);
}

.primary-button > svg {
	fill: white;
	height: auto;
	width: 20px;
	margin: 0 8px;
}

.secondary-button {
	background-color: transparent;
	color: var(--primary-color);
	text-decoration: none;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1.5px solid var(--primary-color);
	border-radius: var(--border-radius);
	padding: 13px 20px;
	font-size: 15px;
	transition: .15s;
	outline: none;
}

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

.secondary-button > svg {
	fill: white;
	height: auto;
	width: 20px;
	margin: 0 8px;
}

/* Inputs (TEXT) */

.primary-text-input {
	border: 1.5px solid var(--gray);
	border-radius: var(--border-radius);
	padding: 15px;
	font-size: 15px;
	transition: .15s;
	outline: none;
	margin-bottom: 15px;
	resize: vertical;
	font-family: sans-serif;
}

.primary-text-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2.5px #96b8ff;
}

.primary-text-input:active {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2.5px #96b8ff;
}

/* Popups */

.popup-form {
	position: absolute;
    min-width: 40vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.9);
    border-radius: 5px;
    padding: 20px;
    font-family: sans-serif;
    height: 60vh;
    overflow-y: scroll;
    background-color: white;
    font-smoothing: grayscale;
    -moz-osx-font-smoothing: grayscale;
    -webkit-osx-font-smoothing: grayscale;
    osx-font-smoothing: grayscale;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.popup-form > form > input, .popup-form > form > textarea {
	width: calc(100% - 40px);
}

/* H */

.h1 {
    font-size: 30px;
    margin-bottom: 30px;
    user-select: none;
}

.h2 {
	font-size: 25px;
	margin-bottom: 30px;
	user-select: none;
}

.h3 {
    font-size: 16px;
    margin-bottom: 30px;
    user-select: none;
}

/* Ripples */

.b-ripple {
    position: absolute;
    background: black;
    transform: translate(-50%,-50%);
    pointer-events: none;
    border-radius: 50%;
    animation: b-ripple .6s ease-in-out;
}

.c-ripple {
    position: absolute;
    background: black;
    transform: translate(-50%,-50%);
    pointer-events: none;
    border-radius: 50%;
    animation: c-ripple .9s ease-in-out;
}

@keyframes b-ripple {
    0% {
        height: 0;
        width: 0;
        opacity: 0.1;
    }
    100% {
        height: 500px;
        width: 500px;
        opacity: 0;
    }
}

@keyframes c-ripple {
    0% {
        height: 0;
        width: 0;
        opacity: 0.1;
    }
    100% {
        height: 1500px;
        width: 1500px;
        opacity: 0;
    }
}

#top-bar {
	top: 0;
	left: 0;
	z-index: 998;
	background: black;
	height: 8vh;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: sans-serif;
	font-smoothing: grayscale;
	-moz-osx-font-smoothing: grayscale;
	-webkit-osx-font-smoothing: grayscale;
	osx-font-smoothing: grayscale;
	position: fixed;
	width: 100vw;
}

#logo {
	margin-left: 40px;
}

#logo img {
	width: 180px;
}

#links {
	margin-right: 40px;
	display: flex;
	align-items: center;
}

#links a {
	margin-left: 15px;
}

#links a svg {
	fill: white;
	width: 25px;
}

#top-bar a {
	color: white;
	text-decoration: none;
}

#posts {
	margin: 25px 0;
	position: relative;
	width: 100%;
	padding: 35px 0;
	font-family: sans-serif;
	font-smoothing: grayscale;
	-moz-osx-font-smoothing: grayscale;
	-webkit-osx-font-smoothing: grayscale;
	osx-font-smoothing: grayscale;
}

section > h2 {
	font-weight: 400;
	width: 80%;
	max-width: 1100px;
	margin: 0 auto;
	margin-bottom: 30px;
}

.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: 80%;
	max-width: 1100px;
	margin: 0 auto;
}

#services {
	background-color: #f3f3f3;
	margin: 0;
	font-family: var(--font);
	padding: 50px 0;
}

.grid-4 > div {
	display: flex;
	justify-content: center;
	margin: 20px auto;
	width: 200px;
}

.service-box {
	text-align: center;
	text-decoration: none;
	width: 200px;
}

.service-box > a:hover {
	color: royalblue;
	text-decoration: underline;
}

.service-box > a {
	margin-top: 20px;
	color: black;
	display: block;
	text-decoration: none;
}

.service-box-image {
	height: 200px;
	width: 100%;
	background-color: #e3e3e3;
	background-size: cover;
	background-position: center;
	position: relative;
}

.service-box-image > div {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0 ,0 ,0, .65);
	transition: .3s;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
}

.service-box-image > div > a {
	text-decoration: none;
	padding: 10px;
	color: white;
	border: 1px solid white;
	transition: .3s;
}

.service-box-image > div > a:hover {
	color: black;
	background-color: white;
}

.service-box-image:hover div {
	opacity: 1;
}

footer {
	background: black;
	padding: 20px 0;
	text-align: center;
	font-family: sans-serif;
	font-smoothing: grayscale;
	-moz-osx-font-smoothing: grayscale;
	-webkit-osx-font-smoothing: grayscale;
	osx-font-smoothing: grayscale;
	color: white;
}

footer a {
	color: royalblue;
}

.m-top {
	margin-top: 9vh;
}

#service {
	text-align: center;
}

#service > div:first-of-type {
	width: 450px;
	height: 450px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: 0px auto;
}

#service > h2 {
	margin: 30px 0;
	position: relative;
	display: inline-block;
	background-color: white;
	padding: 10px;
}

#service > ul {
	text-align: left;
	width: 80%;
	margin: 0 auto;
	list-style-position: inside;
}

#service > p {
	text-align: justify;
	line-height: 1.3em;
	font-size: 15px;
	margin: 30px auto;
	width: 80%;
}

#service01-img {
	background-image: url(media/image4.jpeg);
}

#service02-img {
	background-image: url(media/image5.jpeg);
}

#service03-img {
	background-image: url(media/image6.jpeg);
}

#service04-img {
	background-image: url(media/image7.jpeg);
}

#service05-img {
	background-image: url(media/moi.jpg);
}

#reservations {
	width: 80%;
	margin: 0 auto;
}

#reservations > form > div {
	margin: 15px 0;
	display: flex;
	justify-content: space-between;
}

/* #reservations > form a, #reservations > form button {
	padding: 10px;
	font-size: 15px;
	color: white;
	border-radius: 3px;
	background-color: royalblue;
	text-decoration: none;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
} */

#reservations > form > div:first-of-type {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#reservations > form > textarea {
	width: calc(100% - 23px);
	min-height: 300px;
	font-family: sans-serif;
	resize: vertical;
}

#reservations > form > div:last-of-type {
	width: 100%;
	display: flex;
	justify-content: flex-end;
}

#blog-post {
	min-height: 85vh;
}

#blog-post h1 {
	font-size: 70px;
	width: 80%;
	max-width: 1100px;
	margin: 20px auto;
	font-family: 'Abril Fatface', cursive;
}

#blog-post a {
	color: var(--primary-color);
	text-decoration: none;
}

#blog-post a:hover {
	text-decoration: underline;
}

#footer-image {
	width: 100%;
	height: 180px;
	background: url('images/footer_image.png');
	background-size: cover;
	position: relative;
}

#footer-image::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(0 ,0 ,0, .10);
}

@media screen and (min-width: 200px) {
	.grid-4 {
		grid-template-columns: repeat(1, 1fr);
	}
	.service-box {
		width: 100%;
		margin-bottom: 30px;
	}
	footer p {
		font-size: 11px;
	}
	#links {
		margin-right: 10px;
	}
	
	#links a {
		margin-left: 15px;
		font-size: 13px;
	}
	#links a svg {
		display: none;
	}
	#logo img {
		width: 90px;
	}
	#logo {
		margin-left: 10px;
	}
	#service > div:first-of-type {
		width: 100%;
		height: 300px;
	}
	#service > p {
		font-size: 13px;
		width: 90%;
	}
	#reservations > form > div {
		display: flex;
		flex-direction: column;
	}
	#reservations > form > div > a {
		margin-top: 10px;
		width: 100%;
	}
	#header-image {
		background-image: url(images/header_v5.png);
		height: 50vh;
		background-color: lightgray;
		width: 100vw;
		margin-top: 8vh;
		background-size: cover;
		background-position: center;
	}
	.rich-text {
		display: flex;
	}
	.rich-text-row {
		flex-direction: column;
	}
	.rich-text-row-reverse {
		flex-direction: column-reverse;
	}
	.rich-text {
		display: flex;
	}
	.rich-text > div:first-of-type{
		min-height: 300px;
	}
	.rich-text > div {
		width: 100%;
		min-height: 100%;
		background-size: cover;
		background-position: center;
	}
	.rich-text > div > h2, .rich-text > div > div {
		padding: 10px;
	}
}	

@media screen and (min-width: 600px) {
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.service-box {
		width: 100%;
		margin-bottom: 30px;
	}
	footer p {
		font-size: 11px;
	}
	#links {
		margin-right: 10px;
	}
	
	#links a {
		margin-left: 5px;
		font-size: 13px;
	}
	#logo img {
		width: 90px;
	}
	#logo {
		margin-left: 10px;
	}
	#service > div:first-of-type {
		width: 100%;
		height: 300px;
	}
	#service > p {
		font-size: 13px;
		width: 90%;
	}
	#header-image {
		background-image: url(images/header_v5.png);
		height: 50vh;
		background-color: lightgray;
		width: 100vw;
		margin-top: 8vh;
		background-size: cover;
		background-position: center;
	}
}	

@media screen and (min-width: 1000px) {
	.grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}
	.service-box {
		width: 200px;
	}
	footer p {
		font-size: 14px;
	}
	#links {
		margin-right: 30px;
	}
	
	#links a {
		margin-left: 25px;
		font-size: 15px;
	}
	#links a svg {
		display: block;
	}
	#logo img {
		width: 180px;
	}
	#logo {
		margin-left: 30px;
	}
	#service > div:first-of-type {
		width: 100%;
		height: 300px;
	}
	#service > p {
		font-size: 13px;
		width: 90%;
	}
	#reservations > form > div {
		display: flex;
		justify-content: space-between;
		flex-direction: row;
	}
	#reservations > form > div > a {
		margin-top: 0;
		width: auto;
	}
	#header-image {
		background-image: url(images/header_v5.png);
		height: 50vh;
		background-color: lightgray;
		width: 100vw;
		margin-top: 8vh;
		background-size: cover;
		background-position: center;
	}

	.rich-text-row {
		flex-direction: row;
	}
	.rich-text-row-reverse {
		flex-direction: row-reverse;
	}
	.rich-text {
		display: flex;
	}
	
	.rich-text > div {
		width: 50%;
		min-height: 100%;
		padding: 20px;
		background-size: cover;
		background-position: center;
	}
}

#ajouter-commentaires {
	width: 70%;
	margin: 0 auto;
}

#ajouter-commentaires > div:first-of-type {
	display: flex;
}

#ajouter-commentaires > textarea {
	width: calc(100% - 23px);
}

#ajouter-commentaires > div:first-of-type > input:first-of-type {
	margin-right: 10px;
}

#ajouter-commentaires > h2 {
	font-family: var(--font);
	padding-bottom: 20px;
}

#commentaires {
	border-top: 1.5px solid lightgray;
	width: 80%;
	margin: 20px auto;
}

.comment {
	padding-top: 10px;
	border-bottom: 1px solid lightgray;
}

.comment > h3 {
	padding-bottom: 10px;
}

.comment > p {
	line-height: 1.3em;
	color: #333333;
	font-size: 18px;
	padding-bottom: 10px;
}

.responses-container {
	border-left: 1px solid lightgray;
    margin-left: 40px;
    padding-left: 15px;
}

#header-image {
	background-image: url(images/header_v5.png);
	height: 50vh;
	background-color: lightgray;
	width: 100vw;
	margin-top: 8vh;
	background-size: cover;
	background-position: center;
}

.index {
	border-top: 2px solid lightgray;
	border-bottom: 2px solid lightgray;
	padding: 30px;
	margin: 20px 0;
}

.index > button {
	background: none;
	border: none;
	display: block;
	cursor: pointer;
	transition: .2s;
	font-size: 15px;
	padding: 5px 0;
	font-weight: 500;
}

.index > button:hover {
	color: #4169e1;
}

#social-section {
	margin: 40px auto;
	width: 70%;
	max-width: 1100px;
	display: flex;
}

#social-section > a > svg {
	width: 35px;
	margin-right: 10px;
}