@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

:root {
  --light-shade: #f9f7f6;
  --light-accent: #70c1b3;
  --main-brand: #50514f;
  --dark-accent: #f25f5c;
  --dark-shade: #ffe066;
  --lapi-lazuli: #247ba0;
  --text-dark: #121212;
}

/* Basic reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

body {
  line-height: 1;
  font-family: 'Lato', serif;
  padding-top: 50px;
  background-color: var(--light-shade);
  color: var(--text-dark);
}

p {
  margin-bottom: 10px;
  line-height: 1.2;
  font-size: 17px;
}

ul {
  padding-left: 10px;
}

li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.2;
}

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

main {
  width: 100%;
  overflow: hidden;
}

.presentation {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.presentation h1 {
  font-size: 28px;
  color: var(--main-brand);
  margin: 0;
  text-align: center;
}

.avatar {
  transform: translate(75px);
  z-index: 3;
}

.avatar__img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  padding: 0.5rem;
  border: solid 2px white;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.presentation__content {
  background: white;
  border-radius: 10px;
  max-width: 700px;
  padding: 40px;
  min-height: 200px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 95px;
  position: relative;

}

.frieze {
  height: 111px;
  margin: 50px 0;
  background: url('images/frieze.svg');
  background-position: bottom center;
  background-repeat: repeat-x;
}

.share {
  display: flex;
  align-items: center;
}

.share a {
  display: block;
}

.share a:not(:last-child) {
  margin-right: 15px;
}

.contact {
  position: absolute;
  padding: 20px;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  box-sizing: border-box;
  left: 0;
}

.tel {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-accent);
  text-decoration: none;
}

.tel:hover,
.tel:focus {
  text-decoration: underline;
}

.action-zone {
  max-width: 900px;
  margin: 120px auto;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.action-zone figure {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.action-zone figure div {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--main-brand);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
}

.action-zone figure:first-child div {
  background: var(--dark-accent);
}

.action-zone figure:last-child div {
  background: var(--lapi-lazuli);
}

.action-zone figure img {
  width: 80px;
  height: 80px;
}

.action-zone figure figcaption {
  font-weight: 600;
  font-size: 22px;
  max-width: 250px;
  color: var(--text-dark);
}

.intervention {
  background: var(--light-accent);
  padding: 60px 0;
}

.intervention h2 {
  font-size: 23px;
  font-weight: 500;
  color: var(--text-dark);
}

.intervention h2 b {
  font-weight: 600;
  background-image: linear-gradient(transparent 10px, var(--dark-shade) 10px);
}

.intervention .content {
  max-width: 950px;
  margin: 0 auto;
  background: white;
  display: flex;
  border-radius: 15px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.map {
  padding: 20px;
  border-right: 1px solid #ebebeb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map__figure {
  width: 150px;
  height: 150px;
}

.interventions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  gap: 10px;
}

.actionButton {
  width: -moz-fit-content;
  width: fit-content;
  padding: 15px 40px;
  font-size: 16px;
  color: white;
  margin-top: 40px;
  border: none;
  background: var(--dark-accent);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.actionButton:hover,
.actionButton:focus {
  background: #366390;
}

.actionButton.fade {
  background: #bebebe;
  margin-left: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  color: rgb(90, 90, 90);
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  padding: 1.2rem 4.2rem 1.2rem 2rem;
  border-radius: 15px;
  border: 1px solid #ebebeb;
  min-width: 150px;
  margin-bottom: 20px;
  resize: none;
}

form input:focus,
form textarea:focus {
  border-color: var(--main-brand);
  outline: none;
}

form div.button-row {
  align-self: center;
  display: flex;
}

form button.actionButton {
  margin: 0 auto;
}

.customer-zone {
  background: white;
  padding: 5rem 0;
}

.customer-zone h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: var(--main-brand);
}

.customer-zone > div {
  display: flex;
  margin: auto;
  max-width: 700px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.cust {
  width: 33.3%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.customer__img {
  max-width: 115px;
  max-height: 115px;
  margin: 20px auto;
  object-fit: contain;
}

.customer__img.cherpantier,
.customer__img.mutuelle {
  max-width: 200px;
}

.withoutLogos {
  padding: 0;
  margin-top: 30px;
  font-weight: bold;
  text-align: center;
}

.description {
  background: white;
  border-radius: 15px;
  box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.15);
  max-width: 950px;
  margin: 4rem auto;
  padding: 40px;
  color: var(--main-brand);
}

.description h2 {
  font-size: 28px;
  color: var(--main-brand);
}

.description h3 {
  margin-bottom: 15px;
  margin-top: 20px;
  font-size: 23px;
}

.description p {
  text-align: justify;
}

.description b {
  font-weight: 600;
  background-image: linear-gradient(transparent 10px, var(--dark-shade) 10px);
}

.description ul {
  list-style: none;
}

.description ul li::before {
  content: '✓';
  margin-right: 5px;
  color: #cbcbcb;
}

footer {
  background: #121212;
  color: var(--light-shade);
  font-size: 12px;
  height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: none;
  backdrop-filter: blur(0.8rem);
  overflow: auto;
}

.modal.open {
  display: flex;
}

.modal .card {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 1;
  transform: scale(1);
  padding: 4rem;
  width: 60%;
  border-radius: 15px;
  background: #fff;
  z-index: 1002;
  overflow: auto;
  max-width: 600px;
  position: relative;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-dark);
}

.modal .background {
  position: fixed;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
}

.sent-message {
  font-weight: bold;
}

@media only screen and (max-width: 769px) {
  .presentation {
    flex-direction: column;
    padding: 0 20px;
  }

  .presentation h1 {
    text-align: center;
  }

  .avatar {
    transform: translate(0, 75px);
  }

  .presentation__content {
    padding: 80px 20px 80px 20px;
    max-width: 90vw;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .action-zone {
    flex-direction: column;
    align-items: center;
    margin: 80px auto;
  }

  .intervention .content {
    flex-direction: column;
  }

  .map {
    border-bottom: 1px solid #ebebeb;
    border-right: none;
  }

  .customer-zone > div {
    gap: 10px;
  }

  .cust {
    width: 50%;
  }

  .description {
    padding: 20px;
    border-radius: 0;
    margin: 3rem 10px;
  }

  .modal .card {
    padding: 35px;
    width: 90%;
  }

  form input,
  form textarea {
      padding: 0.6rem 2.1rem 0.6rem 1rem;
  }
}
