/* RESET CSS */

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Prevent font size inflation */
html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
	list-style: none;
}

/* Set core body defaults */
body {
	min-height: 100svh;
	line-height: 1.3;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
	line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
	color: currentColor;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
	min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
	scroll-margin-block: 5ex;
}

/* CUSTOM STYLES */

body {
	background-color: #a3ccee;
	color: #323232;
	margin: 0;
	padding: 0;
	font-family: "Lato", Helvetica, Arial, sans-serif;
	font-size: 16px;

	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 900px) {
	body {
		font-size: 18px;
	}
}

h1 {
	font-size: 32px;
	font-style: italic;
	color: #ffffff;
	text-shadow: 0 0 5px #000000;
}
@media (min-width: 900px) {
	h1 {
		font-size: 38px;
		text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	}
}

.hero {
	text-align: center;
	flex: 0 0 auto;
}

.hero.is-mobile {
	background-image: url("assets/artisan_sauvez_leurs_mains_sp.png"), url("assets/chirurgien_sauvez_leurs_mains_sp.png");
	background-size: cover;
	background-position: center;
	padding: 20px;
	padding-top: 35px;
	padding-bottom: 55px;
	margin-bottom: 20px;
	position: relative;
	flex: 0 0 auto;
}

.button {
	background-color: #e6231e;
	color: #ffffff;
	text-transform: uppercase;
	font-weight: bold;
	padding: 8px 14px;
	border-radius: 10px;
	display: inline-block;
	font-size: 18px;
	text-decoration: none;
  transform: scale(1);
  transition: all 0.25s ease-in-out;
}
.button:hover {
  transform: scale(1.05);
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.3);
}

.hero .button,
.main .button {
	position: absolute;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: fit-content;
	bottom: calc(-1em - 4px);
}

.main {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
}
.main .logos {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}
.main .logos img {
	height: 190px;
	width: auto;
}
.main .content {
	text-align: center;
  padding: 15px;
  background-color: rgba(255,255,255, 0.5);
  border-radius: 10px;
}
.main .content p {
	font-style: italic;
	text-wrap: balance;
}

.main.is-desktop {
	/* background-image: url("assets/artisan_sauvez_leurs_mains_ecran.png"), url("assets/chirurgien_sauvez_leurs_mains_ecran.png");
	background-size: contain;
  background-repeat: no-repeat;
	background-position: center left, center right; */
	position: relative;
	flex: 0 0 70vh;
	text-align: center;
	position: relative;
}
.main.is-desktop::before,
.main.is-desktop::after {
	content: "";
	position: absolute;
	top: 0;
	width: clamp(200px, 65%, 1000px);
	height: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: -1;
}
.main.is-desktop::before {
	left: 0;
	background-image: url("assets/artisan_sauvez_leurs_mains_ecran.png");
	background-position: right center;
	/* mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%); */
}
.main.is-desktop::after {
	right: 0;
	background-image: url("assets/chirurgien_sauvez_leurs_mains_ecran.png");
	background-position: left center;
	/* mask-image: linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%); */
}
.main.is-desktop .content {
	max-width: 500px;
}

footer {
	text-align: center;
	color: #646464;
	font-size: 12px;
	flex: 0 0 auto;
	padding: 20px;
}

@media (min-width: 900px) {
	footer {
		flex: 1;
	  font-size: 14px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

.socials {
	margin-top: 10px;
	display: flex;
	justify-content: center;
	gap: 0;
}
.socials a {
	display: inline-flex;
}
.socials img {
	width: 1.65em;
	height: 1.65em;
}
.socials a + a::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1.65em;
  background-color: rgba(255,255,255,0.5);
  margin: 0 10px;
}

/* UTILITIES */
@media (max-width: 900px) {
	.is-desktop {
		display: none;
	}
}
@media (min-width: 900px) {
	.is-mobile {
		display: none;
	}
}
