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

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a {
  text-decoration: none;
}
* {
 box-sizing: border-box;
}

:root {
  font-size: 0.875em;
}
@media screen and (min-width: 40em) {
  :root {
    font-size: 1em;
  }
}

/* ------------------ VARIABLES ------------------ */

:root {
  --color--primary: rgba(255,81,0,1);
  --color--secondary: rgba(0,0,0,1);
  --color--text: rgba(70,70,70,1);
  --color--text-light: rgba(100,100,100,1);
  --color--text-ultra-light: rgba(170,170,170,1);

  --color--input-border: rgba(217,217,217,1);
  --color--input-background: rgba(246,246,246,1);
  --color--input-placeholder: rgba(202,202,202,1);
}

/* ------------------ BODY ------------------ */

* {
  box-sizing: border-box;
}

body {
  position: relative;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.4em;
  overflow-x: hidden;
  width: 100vw;
}

/* ------------------ HEADER ------------------ */

.header {
  position: relative;
  background-image: url('/public/images/background-mobile.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #d23812;
}

.header__content {
  position: relative;
  z-index: 100;
  color: white;
  width: 100%;
  padding: 92vw 2rem 8rem;
}

@media screen and (min-width: 46em) {
  .header {
    background-image: url('/public/images/background.png');
    background-size: cover;
    background-position: center center;
  }
  .header__content {
    width: calc(50% + 3rem);
    margin: 0 50% 0 auto;
    padding: 3rem 2rem 8rem;
    max-width: 40rem;
  }
  .header p {
    max-width: 50vw;
  }
}

.header__logo {
  display: block;
  width: 14rem;
  margin-bottom: 1.5rem;
}

.header__logo svg {
  width: 100%;
  height: auto;
}

.header h1 {
  font-size: 2.2rem;
  line-height: 1.1em;
  font-weight: 700;
  margin-bottom: 1rem;
}
.header h1 span {
  font-weight: 400;
}

.header p {
  font-size: 1.125rem;
  line-height: 1.3em;
}

.header p b {
  font-weight: 600;
}

.header__bull {
  position: absolute;
  top: calc(100vw / 14 * 10.7);
  left: 50%;
  display: block;
  width: 11.25rem;
  height: auto;
}

@media screen and (min-width: 46em) {
  .header h1 {
    font-size: 2.5rem;
  }
  .header__bull {
    top: 50%;
    left: calc(50% + 2rem);
  }
}

/* ------------------ TOPBAR ------------------ */

.topbar {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  color: var(--color--secondary);
  font-size: 1.375rem;
  font-weight: 800;
  padding: 1rem 1.5rem;
  background: rgb(255,255,255,1);
  border-radius: 0 0 0 1rem;
}

.topbar a {
  color: var(--color--primary);
  text-decoration: none;
}
.topbar a:focus,
.topbar a:hover {
  color: var(--color--secondary);
}
/* ------------------ FORM ------------------ */

.form {
  position: relative;
  z-index: 200;
  background: white;
  border-radius: 1.25rem;
  box-shadow: 0 0 1.25rem 0 rgba(0,0,0,0.12);
  margin: -5rem 1rem 3rem;
}

@media screen and (min-width: 46em) {
  .form {
    margin: -5rem auto 3rem;
    max-width: 44rem;
  }
}


.form-step {
  display: none;
  position: relative;
  padding: 2rem 1.5rem 0.5rem;
}

@media screen and (min-width: 40em) {
  .form-step {
    padding: 2.5rem 3rem 1rem;
  }
}


.form-step.visible {
  display: block;
}

.form-step__title {
  display: block;
  color: var(--color--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2em;
}

.fields-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.fields-wrapper .field,
.fields-wrapper--60-40 .field:first-child,
.fields-wrapper--60-40 .field:last-child {
  width: 100%;
}

@media screen and (min-width: 35em) {
  .fields-wrapper .field {
    width: calc(50% - 0.75rem);
  }
  .fields-wrapper--60-40 .field:first-child {
    width: calc(60% - 0.75rem);
  }
  .fields-wrapper--60-40 .field:last-child {
    width: calc(40% - 0.75rem);
  }

}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  color: var(--color--text);
  font-size: 1rem;
  line-height: 1.1em;
  margin-bottom: 0.4rem;
}

.field input {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 0.875rem;
  border: 1px solid var(--color--input-border);
  border-radius: 0.5rem;
  background: var(--color--input-background);
  color: var(--color--secondary);
  color: var(--color--secondary);
  outline: none;
}

.field input:hover,
.field input:focus {
  border: 1px solid var(--color--text-light);
}

.field select {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 0.875rem 1.5rem 0.875rem 0.875rem;
  border: 1px solid var(--color--input-border);
  border-radius: 0.5rem;
  background-color: var(--color--input-background);
  color: var(--color--secondary);
  color: var(--color--secondary);
  outline: none;
  -webkit-appearance: none; /* Safari et Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none;
  background-image: url("/public/images/select_arrow.png");
  background-size: 0.75rem auto;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}


.field input::placeholder {
  color: var(--color--input-placeholder);
}

.field input.isInvalid,
.field select.isInvalid {
  border-color: var(--color--primary);
}

.field .error {,
  display: block;
  width: 100%;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: var(--color--primary);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.form-footer__left {
  flex-grow: 1;
  padding: 1rem 1.5rem 1rem 1rem;
  font-size: 0.875rem;
  color: var(--color--text-light);
  text-align: right;
}

.form-footer__left a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color--secondary);
}

.form-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.625rem;
  background: var(--color--primary);
  color: rgb(255,255,255,1);
  padding: 1.5rem;
  border-radius: 1.25rem 0 1.25rem 0;
  align-self: flex-end;
}

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

.form-button svg {
  width: 1rem;
  display: inline-block;
  margin-left: 0.7rem;
}

/* ------------------ SITE DESCRIPTION ------------------ */

.site-description {
  max-width: 50rem;
  margin: 0 auto 4rem;
}

.site-description__block {
  margin-bottom: 3rem;
}

/* ------------------ FOOTER ------------------ */

footer {
  max-width: 50rem;
  margin: 0 auto 1rem;
}

footer p {
  color: var(--color--text-ultra-light);
  font-size: 0.875rem;
}

footer a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.75rem;
  text-transform: uppercase;
  color: var(--color--secondary);
  margin-bottom: 1rem;
}

footer a:focus,
footer a:hover {
  color: var(--color--primary);
}

/* ------------------ BLOCK ------------------ */

.block {
  padding-top: 0rem;
}

.block h3 {
  color: var(--color--secondary);
  font-size: 2rem;
  line-height: 1.2em;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.block h3 span {
  font-weight: 700;
}

.block__title {
  position: relative;
  margin-bottom: 1.25rem;
  padding: 0 2rem;
}

.block__title--small h3 {
  font-size: 1.5rem;
}

.block__title .icon {
  position: relative;
  height: auto;
  width: 4rem;
}

@media screen and (min-width: 40em) {
  .block {
    padding-top: 4rem;
  }
  .block__title .icon {
    position: absolute;
    height: 4rem;
    width: auto;
    top: -4.25rem;
    left: -0.75rem;
  }
  .block--end {
    margin-top: -3rem;
  }
}

.block__content {
  padding: 0 2rem;
  color: var(--color--text-light);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3em;
}
.block__content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.block--end a {
  font-size: 2.5rem;
  color: var(--color--primary);
  font-weight: 800;
  line-height: 1.1em;
}

.block--end a:last-child {
  margin-top: 1.25rem;
}

.block--end a:focus,
.block--end a:hover {
  color: var(--color--secondary);
}


@media screen and (min-width: 60em) {
  .block {
    display: flex;
  }
  .block__title {
    width: 16.25rem;
  }

  .block__content {
    width: calc(100% - 16.25rem);
  }
}

/* ------------------ SOCIALS ------------------ */

.socials {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.socials a {
  display: block;
  position: relative;
  height: 4rem;
  width: 4rem;
  border-radius: 100%;
  border: 2px solid rgba(224,224,224,1);
  margin-right: 0.75rem;
}

.socials a:hover,
.soacials a:focus {
  border-color: var(--color--secondary);
}

.socials a svg {
  display: block;
  width: 1.6rem;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -0.8rem;
  margin-top: -0.8rem;
  fill: var(--color--secondary);
}

/* ------------------ POPUP ------------------ */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  padding: 2rem;
  background: rgba(0,0,0,0.75);
  pointer-events: none;
  opacity: 0;
}

.popup.visible {
  opacity: 1;
  pointer-events: all;
}

.popup__content {
  display: block;
  padding: 2rem;
  background-color: white;
  border-radius: 1.25rem;
  box-shadow: 0 0 1.25rem 0 rgba(0,0,0,0.12);
  text-align: center;
  max-width: 37.5rem;
  color: var(--color--secondary);
}

.popup__content h3 {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2em;
}

.popup__content .popup__content__subtitle {
  font-size: 1.25rem;
}

.popup__content .popup__content__subtitle span {
  color: var(--color--primary);
}
 
.popup__content p {
  font-size: 1.125rem;
  color: var(--color--text);
  margin-bottom: 1.25rem;
}

.popup__content p a {
  color: var(--color--secondary);
  font-weight: 600;
}

.popup__content .button {
  display: inline-block;
  font-size: 1rem;
  background: var(--color--primary);
  color: rgb(255,255,255,1);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
}

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

/* ------------------ BLOCK TEXT ------------------ */

.block-text p {
  margin-bottom: 0.875rem;
}

.block-text a {
  color: var(--color--secondary);
}
