:root {
  --service-color: #D02828;
}

.blue {
  --service-color: #55A8DB;
}

.pink {
  --service-color: #E25FAE;
}

.yellow {
  --service-color: #FDE80A;
}

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,
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;
  vertical-align: baseline;
}

a {
  text-decoration: none;
  color: white;
  display: inline-block;
}

html, body {
  font-family: 'Afacad', sans-serif;
  font-size: 16px;
}

button, .button {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #6D6D6D;
  background: rgba(217, 217, 217, 0.10);
  cursor: pointer;
}

button:hover, .button:hover {
  background: rgba(217, 217, 217, 0.33);
}

body {
  /*background: #1A1A1A;*/
  background: radial-gradient(25rem at top center, #323232 0%, #1A1A1A 100%);
  color: white;
}

p, ul, ol, input, textarea, button, label {
  font-size: 1.125rem;
  font-family: 'Afacad', sans-serif;
  margin: 0;
  color: white;
}

ul, ol {
  padding-left: 1.5rem;
}

h1 {
  font-family: 'Calistoga', sans-serif;
  margin: 0;
}

h2, h3, h4, h5, h6 {
  font-family: 'Afacad', sans-serif;
  margin: 0;
}

* {
  box-sizing: border-box;
}

.title {
  margin: 3.5rem 0 0 4rem;
}

.subtitle {
  color: #979797;
  margin: -0.5rem 0 0 1.7rem;
  font-weight: bold;
  font-size: 1.5rem;
}

h1 {
  font-size: 4rem;
  font-weight: normal;
}

h1 span {
  font-size: 3rem;
  color: #407C1A;
  margin-right: 0.1rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
}

h2 span {
  color: #407C1A;
}

h3 {
  font-size: 2rem;
}

h3 span {
  color: var(--service-color);
  font-weight: 700;
}

h4 {
  color: var(--service-color);
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-weight: bold;
  font-size: 1.125rem;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
}

.section {
  margin: 0 8rem 4rem;
}

.services {
  padding: 1.5rem 2.5rem;
  overflow: hidden;
  justify-content: center;
  align-items: flex-start;
  display: inline-flex;
  gap: 4rem 5%;
  flex-wrap: wrap;
  align-content: flex-start
}

.service-section {
  display: flex;
  max-width: 550px;
  width: 50%;
  padding: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
  border-top: 0.4rem solid var(--service-color);
  background: rgba(255, 255, 255, 0.03);
}

.realisations {
  display: inline-flex;
  padding: 1rem;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2rem;
}

.agence {
  color: #383838;
  width: 100%;
  height: 550px;
  background: url('../img/agence-bg.png') no-repeat center center;
  padding-top: 4rem;
}

.agence p {
  color: #383838;
}

.agence-text {
  display: flex;
  flex-wrap: wrap;
}

.agence-text p {
  width: 50%;
  padding: 1rem;
}

.partners {
  display: flex;
  padding: 1rem;
  align-items: center;
  gap: 4rem;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.05);
  justify-content: space-between;
}

.partners img {
  width: 200px;
}

.contact {
  background: rgba(255, 255, 255, 0.10);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact label, .contact p {
  display: block;
  margin-bottom: 0.5rem;
}

form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

form div {
  align-self: stretch;
}

form input, form textarea {
  width: 100%;
  border-radius: 8px;
  background: rgba(217, 217, 217, 0.20);
  border: none;
  padding: 0.5rem;
  font-size: 1.2rem;
}

form h2 {
  margin: 0;
}

form .submit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
}

footer {
  text-align: center;
  margin: 10rem 0 1rem;
}

.legals-btn {
  cursor: pointer;
}

.legals {
  position: fixed;
  width: 100%;
  height: 100vh;
  margin: auto;
  top: 0;
  left: 0;
  background-color: rgba(26, 26, 26, 0.7);
}

.legals-content {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #4e4e4e;
  border: 1px solid #6c6c6c;
}

.close {
  float: right;
  cursor: pointer;
}

.legals-content p {
  font-size: 1.5rem;
}

@media screen and (max-width: 1400px) {
  html, body {
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
  }

  .section {
    margin: 0 4rem 4rem;
  }

  .service-section {
    width: 100%;
  }
}


@media screen and (max-width: 800px) {
  html, body {
    font-size: 16px;
  }

  h1 {
    font-size: 3rem;
  }


  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .section {
    margin: 0 1rem 4rem;
  }

  .service-section {
    max-width: 85%;
    padding: 1rem;
  }

  .services {
    padding: 1rem 0;
  }

  .agence {
    padding-top: 1rem;
    width: 100%;
    height: auto;
    background: white;
  }

  .agence-text p {
    width: 100%;
    text-align: center;
  }

  .partners img {
    width: 100px;
  }

  .contact {
    padding: 1.5rem;
  }

  form {
    gap: 1rem;
  }

  .legals-content p {
    font-size: 1rem;
  }
}