@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wdth" 100;
	scroll-behavior: smooth;
	scroll-padding-top: 7rem;
}

html * {
	box-sizing: border-box;
}

body {
	min-height: 0;
	margin: 0;
	padding: 0;
	font-size: 1.2rem;
	color: #064578;

	&:has(#fullscreen-slider:checked) {
		overflow: hidden;
	}

	> header {
		position: relative;
		z-index: 10;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		height: auto;
		user-select: none;
		padding: 3rem 0;

		div {
			font-family: "Montserrat", sans-serif;
			font-optical-sizing: auto;
			font-weight: 700;
			font-style: normal;
			font-size: 4rem;
			line-height: 3.2rem;
			flex: 0 1 30%;

			span {
				display: block;
				white-space: nowrap;
			}

			span + span {
				font-weight: 600;
				font-size: 2.2rem;
				letter-spacing: .1rem;
			}

			@media screen and (width < 700px) {
				span {
					text-align: center;
				}
			}

		}

		&::before, &::after {
			content: '';
			position: absolute;
			z-index: -10;
			top: 0;
			left: 0;
			bottom: 0;
			right: 0;
			background: url('../images/switches.jpg?cb=2') no-repeat;
			background-size: cover;
			background-position: 50% 50%;
			opacity: .5;
			filter: contrast(0.5) brightness(1.5);
		}

		&::after {
			z-index: -1;
			border: 1px solid #064578;
			background: none;
			border-width: 3rem 0;
			opacity: 1;
			filter: none;
		}
	}
}

body:has(input:not(:checked) + #modal),
body:has(input:checked + .reveal) {
	overflow: hidden;
}

main {
	background: #eee;
	overflow: auto;
}

footer {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 1rem;
	flex-flow: wrap;
	background: #064578;
	padding: 1em;

	address, div {
		flex: 1 1 300px;
		text-align: center;
	}

	h2, p {
		color: #fff;
		margin: 0;
	}

	a {
		display: block;
		color: #eee;
	}
	a:hover {
		color: #064578;
	}

	img {
		width: 125px;
	}
}

h1 {
	position: relative;
	text-align: center;
	margin: 0;
	padding: 1.5rem;
	font-size: 2rem;
	color: #064578;

	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 900;
	font-style: normal;
}

h1::after {
	content: attr(data-title);
	display: block;
    position: absolute;
    left: 0;
    top: 0;
	width: calc(100% - 3rem);
	padding: 1.5rem;
	white-space: pre-line;
	color: #06457855;
    filter: blur(2px);
    transform: scale(0.97) translate3d(0, .3rem, 0);
}

#ledazur-logo {
	flex: 0 1 300px;
	display: block;
	width: 600px;
	max-width: 300px;
}


nav span, footer span {
	display: block;
	font-size: 1.5rem;
	color: #064578;
	font-weight: 700;
	margin: 0;
	text-align: center;
}

footer span {
	color: #fff;
}


h2 {
	font-size: 1.5rem;
	color: #064578;
	margin: 0;
}

h3 {
	font-size: 1.4rem;
	margin: 0;
}

a, a:visited {
	color: #064578;
	text-decoration: none;
	transition: color .3s;
}

a:hover {
	color: #064578;
}

nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	box-shadow: 0 1rem .5rem -.5rem rgba(0,0,0,.5);
	user-select: none;

	address {
		flex: 0 0 15rem;
		padding: .5rem;
	}

	input {
		position: absolute;
		top: 7rem;
		width: 0;
		height: 0;
		opacity: 0;

		@media screen and (width >= 700px) {
			+ label {
				display: none;
			}
		}
	}

	label {
		display: block;
		width: 3rem;
		height: 3rem;
		margin: 0 2rem;
	}

	menu {
		display: flex;
		position: absolute;
		right: 1rem;
		top: 110%;
		padding: 1rem;
		margin: 0 0 0 1rem;
		list-style: none;
		flex-direction: column;
		flex: 1 1 auto;
		justify-content: space-around;
		align-items: start;
		gap: .5rem;
		background: #fff;
		border: 1px solid #ccc;
		box-shadow: 0 1rem .5rem -.5rem rgba(0,0,0,.5);
		visibility: hidden;
		opacity: 0;
		transition: opacity .3s linear .1s, visibility 0s linear 1s;

		li, button, label {
			font-size: 1.5rem;
			line-height: 2.5rem;
		}

		hr {
			width: 100%;
			height: 1px;
			border: none;
			background: #ccc;
		}

		li.mobile-action, button, label {
			width: 100%;
		}

		button, label {
			display: block;
			margin: .5rem 0;
			padding: .5rem;
			text-align: center;
			color: #064578;
			line-height: 2rem;
			border: 1px solid #ccc;
			border-radius: .25rem;
			box-shadow: 0 0 .2rem .25rem inset rgba(255,255,255,.5);
			background: #eee;
			cursor: pointer;
		}

		@media screen and (width >= 700px) {
			position: relative;
			flex-direction: row;
			border: none;
			box-shadow: none;
			visibility: visible;
			opacity: 1;
			transition: none;

			li {
				font-size: 1.3rem;
			}

			li.mobile-action, hr {
				display: none;
			}
		}
	}

	input:focus ~ menu {
		visibility: visible;
		opacity: 1;
		transition: visibility 0s linear 0s, opacity .3s linear 0s
	}

	a {
		display: block;
		text-align: center;
		color: #064578;
	}
}

section {
	min-height: 50vh;
	margin: 1.5rem;
	padding: 1rem;
	background: #fff;
	border-radius: .75rem;

	&.list {
		p {
			position: relative;
			margin-left: -.5rem !important;
			padding-left: 1.75rem;
		}

		p::before {
			content: '⚡';
			position: absolute;
			top: 0;
			left: 0;
			line-height: 1.5rem;
			transform: scale3d(.75, 1, 1);
		}

		p.regular {
			margin-top: .5rem;
		}

		p.regular::before {
			content: '';
		}
	}

	label {
		font-weight: 600;
		color: #3c3;
		padding: 0rem 0.1rem;
		border: 2px solid #3c3;
		border-width: 2px 0;
		cursor: pointer;
	}

	label.reveal img {
		width: auto;
		max-width: 100%;
		max-height: 100%;
	}

	input.reveal {
		position: absolute;
		width: 0;
		height: 0;
		opacity: 0;
	}
}

h1 + section {
	margin: 0 1.5rem 1.5rem 1.5rem;
}

form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	position: relative;
	max-width: 100%;
	width: 35rem;
	margin: auto;
	padding: 1rem;
	overflow: hidden;
	border: 1px solid #064578;
	border-radius: .5rem;
	font-size: 0;

	* {
		font-size: 1rem;
	}

	::before {
		content: '';
		display: block;
		position: absolute;
		z-index: 10;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(256,256,256,.5);
		opacity: 0;
		transition: opacity .3s;
		pointer-events: none;
	}

	&.disabled {
		::before {
			opacity: 1;
			pointer-events: all;
		}
	}

	::after {
		content: '';
		position: absolute;
		z-index: 20;
		top: 50%;
		left: 50%;
		width: 90%;
		margin: 0;
		padding: .75rem;
		line-height: 2rem;
		white-space: pre-wrap;
		background: #fff;
		border: 3px solid #064578;
		border-radius: .5rem;
		box-shadow: 0 -.5rem .5rem -.5rem rgba(0,0,0,.25), 0 1rem .5rem -.75rem rgba(0,0,0,.25);
		opacity: 0;
		transform: translate3d(-50%, -50%, 0);
		transition: opacity .3s;
		user-select: none;
	}


	&.responseOK {
		::after {
			content: 'Merci pour votre message !\AJe vous recontacterai dans les meilleurs délais.';
			opacity: 1;
		}
	}

	&.responseKO {
		::after {
			content: "Votre message n'a pas pu être envoyé...\AN'hésitez pas à m'appeler au 06.750.999.55 !";
			opacity: 1;
			border: 3px solid #ff6969;
		}
	}

	*:required {
		border-color: #064578 !important;
		border-width: 3px !important;
	}

	input[type="radio"] {
		position: absolute;
		width: 0;
		height: 0;
		opacity: 0;
	}

	input[type="text"], input[type="submit"], textarea {
		flex: 1 1 auto;
		min-width: 0;
		padding: .5rem 1rem;
		font-family: "Roboto", sans-serif;
		border: 1px solid #ccc;
		border-radius: .5rem;

		&.toggledep {
			flex: 0 0 75% ;
		}

	}

	textarea {
		flex: 1 1 100%;
		height: 8rem;
		resize: none;
	}

	div {
		flex: 1 0 100%;
		display: flex;
	}

	.toggle {
		flex: 1 1 0;
		padding: .5rem 0;
		text-align: center;
		color: #064578;
		border: 3px solid #064578;
		transition: color .3s, background-color .3s;
		user-select: none;
	}

	.toggle:first-of-type {
		border-radius: .5rem 0 0 .5rem;
		border-width: 3px 0 3px 3px;
	}

	.toggle:last-of-type {
		border-radius: 0 .5rem .5rem 0;
	}

	#contactstatus1:checked ~ div label[for="contactstatus1"],
	#contactstatus2:checked ~ div label[for="contactstatus2"] {
		color: #fff;
		background: #064578;
	}

	#contactstatus1:checked ~ .toggledep {
		opacity: .5;
		pointer-events: none;
	}

	input[type="submit"] {
		flex: 0 1 50%;
		margin: 1rem auto 0;
		font-weight: 600;
		color: #064578;
		background: #fff;
		border: 3px solid #064578;
	}
}

.hero {
	min-height: 20vh;
	margin: 0;
	padding: 1rem 2.5rem;
	border-radius: 0;
	box-shadow: 0 -.5rem .5rem -.5rem rgba(0,0,0,.25), 0 1rem .5rem -.5rem rgba(0,0,0,.5);
}

.cards {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: center;
	justify-content: center;
	margin-top: 1rem;

	article {
		display: flex;
		flex-direction: column;
		flex: 0 1 35rem;
		align-self: stretch;
		border: 1px solid #064578;
		border-radius: .5rem;
		overflow: hidden;

		header {
			padding: 0;
			text-align: center;
		}

		img {
			width: 60%;

			&.small {
				float: right;
				display: inline;
				width: auto;
				max-width: 110px;
			}
		}

		h3 {
			padding: .5rem 1rem;
			text-align: center;
		}

		section, p {
			min-height: auto;
			margin: 0
		}

		section {
			display: flex;
			flex: 1 1 0;
			flex-direction: column;
			justify-content: center;
		}

		small, p {
			margin-top: 1rem;
		}

		small, sup {
			text-align: right;
			color:#064578;
		}
	}
}

#certifications div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 15vw;
	min-height: 5rem;

	img {
		display: block;
		margin: .5rem auto 0;
		max-height: 100%;

		&:nth-child(1) {
			max-height: 8vw;
		}

		&:nth-child(3) {
			max-height: 12vw;
		}
	}
}

input.hidden {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
}

#modal, label.reveal, input:checked + label.reveal {
	position: fixed;
	z-index: 1000;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	padding: 3rem;
	background: rgba(0,0,0,.5);
	transform: translate3d(-50%, -50%, 0);
	visibility: visible;
	opacity: 1;
	transition: height 0s linear 0s, visibility 0s linear 0s, opacity .3s linear 0s;
}

input:checked + #modal,
label.reveal {
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s linear 0s, visibility 0s linear .3s, height 0s linear .3s;
	pointer-events: none;
}

label.reveal {
	display: flex;
	height: 0;
	justify-content: center;
	align-items: center;
	pointer-events: all;
}


#modal div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #fff;
	width: 100%;
	height: 100%;
	border-radius: .75rem;
}

#modal img {
	position: absolute;
	max-width: 70%;
	max-height: 70%;
	visibility: hidden;
	transition: visibility 0s linear .5s;
}

#modal input:checked + img {
	visibility: visible;
	transition: visibility 0s linear 0s;
}

#modal label {
	position: absolute;
	top: 2rem;
	right: 2rem;
	margin: 2rem;
	padding: .5rem 1rem;
	background-color: #eee;
	border: 1px solid #ddd;
	border-radius: .5rem;
}

.hidden {
	display: none;
}

.image-slider {
	height: 50vh;
	user-select: none;
	border-radius: .5rem;
	box-shadow: 0 0 1rem -.25rem rgba(0,0,0,.3);

	.swiper-slide {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	img {
		display: block;
		max-width: 100%;
		max-height: 100%;
		margin: auto;
	}

	label {
		position: absolute;
		z-index: 1000;
		top: 10px;
		right: 10px;
		width: 2rem;
		height: 2rem;
		border: 0;
		background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23333333"><path d="M120-120v-320h80v184l504-504H520v-80h320v320h-80v-184L256-200h184v80H120Z"/></svg>') no-repeat;
		background-size: cover;
		cursor: pointer;
	}
}

#fullscreen-slider {
	position: absolute;
	z-index: -1;
	width: 0;
	height: 0;
	opacity: 0;

	&:checked {
		& + .image-slider {
			position: fixed;
			z-index: 1000;
			top: 0;
			left: 0;
			width: 100vw;
			height: 100vh;
			background: #ffffff;

			label {
				background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23333333"><path d="m136-80-56-56 264-264H160v-80h320v320h-80v-184L136-80Zm344-400v-320h80v184l264-264 56 56-264 264h184v80H480Z"/></svg>') no-repeat;
			}
		}
	}
}
