:root {
  --primaryColor: #1a4e8c;
  --primaryColor2: #edf2f8;
  --primary-shade: #4771a3;
  --primary-background: #fcfcfd;
  --secondaryColor: #d22027;
  --secondary-background: #fef9f9;
  --white: #fff;
  --text: #666;
}

/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--text);
  list-style: none;
  scroll-padding-top: calc(50px + 1.6rem);
}
.desktop {
  display: flex;
  margin: 0 auto;
  padding: 4rem 2rem;
  max-width: 1280px;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-weight: 500;
}
h1,
h2,
h3 {
  text-align: center;
}
h1,
h2 {
  font-size: 1.4rem;
  color: var(--white);
}
h3 {
  font-size: 1.2rem;
  color: var(--text);
}
h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondaryColor);
}

.download h3 .accent-heading {
  margin-left: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondaryColor);
}

strong {
  color: var(--secondaryColor);
  font-weight: 500;
}

.president {
  margin-top: 3rem;
  text-align: center;
}

address {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.phone-link {
  color: var(--secondaryColor);
  font-weight: 500;
}
.send p {
  font-size: 1.4rem;
  text-align: center;
  color: var(--white);
}
footer p,
footer a {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  line-height: 2;
  color: var(--white);
}
footer p a:hover {
  color: var(--primary-shade);
}
footer h3 {
  color: var(--white);
  text-align: left;
}
footer address {
  margin: 1rem 0 0.35rem;
  color: var(--white);
  text-align: left;
}
footer p a:hover {
  color: var(--secondaryColor);
}
footer .copyright {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  line-height: 2;
  color: var(--white);
  background-color: var(--primary-shade);
}
.soon {
  margin-top: 1rem;
}
.company-items .tel {
  font-weight: 500;
  color: var(--secondaryColor);
  margin-bottom: 1rem;
}

/* BUTTON */

.btn {
  display: inline-block;
  margin: 0.5rem 0.7rem;
  padding: 0 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
  line-height: 2.5rem;
  color: var(--white);
  border-radius: 0.4rem;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}
.btn-primary {
  background-color: var(--primaryColor);
}
.btn-secondary {
  margin: 0;
  background-color: var(--secondaryColor);
}
.btn-primary:hover {
  background-color: var(--secondaryColor);
}
.btn-secondary:hover {
  background-color: var(--primaryColor);
}
.download .btn {
  margin: 0;
}

/* NAV */
#logo img {
  height: 50px;
  vertical-align: bottom;
}
nav {
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--primaryColor);
  background-color: var(--white);
  z-index: 999;
}
nav .desktop {
  padding: 0 2rem;
}
nav div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 0 1.5rem;
}
nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav li a {
  margin-left: 2rem;
  list-style: none;
  transition: all 0.2s ease-in-out;
}
nav li a:hover {
  color: var(--secondaryColor);
}
#menu li {
  position: relative;
}
.submenu a {
  margin-left: 0;
  line-height: 2.5rem;
}
#menu .submenu {
  display: none;
  position: absolute;
  padding: 10px;
  top: 51px;
  left: calc(2rem - 10px);
  width: max-content;
  background: var(--primaryColor2);
  z-index: 1;
}
#menu .submenu.active {
  display: block;
}
.dropdown-arrow img {
  width: 12px;
  margin-left: 10px;
  transition: all 0.3s ease-in-out;
}
.dropdown-arrow img.active {
  transform: rotate(180deg);
}

/* HAMBURGER */

.hamburger {
  display: none;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  border-radius: 20px;
  background-color: var(--secondaryColor);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HEADER */

header {
  margin-top: calc(50px + 1.6rem);
  background: url(../img/carte-background.jpg) no-repeat center;
  background-size: cover;
}
header .desktop {
  justify-content: center;
}
.home-download h4,
p {
  text-align: center;
}
.tel {
  text-align: left;
}
header .desktop * + * {
  margin-left: 2rem;
}
header .home * + * {
  margin-left: 0rem;
}

header .desktop h4 {
  margin-left: 0;
}
header .title {
  padding: 1rem;
  background-color: var(--primaryColor);
}
header .send {
  padding: 1rem;
  background-color: var(--secondaryColor);
}

.blue {
  color: var(--primaryColor);
  margin-top: 3rem;
}
.download {
  padding: 1.5rem;
  min-width: 265px;
  text-align: center;
  border-radius: 0.4rem;
  background-color: var(--primary-background);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
}

.home-download img {
  width: 200px;
}

.home-download {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  text-align: left;
  border-radius: 0.4rem;
  background-color: var(--primary-background);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
}

.download img {
  display: block;
  margin: 1rem auto 2rem;
  width: 200px;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
}

/* MAIN */
.category {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 3.5rem 2rem;
}
main .title {
  padding: 1rem;
  text-align: center;
  background-color: var(--secondaryColor);
}
main .title svg {
  margin-top: 20px;
}
.aboutus hr,
.contact hr {
  margin-bottom: 2rem;
}

hr {
  margin: 1rem auto 0;
  width: 3rem;
  border: 1px solid var(--primaryColor);
}
main section {
  padding-top: 4rem;
}
main section:nth-child(even) {
  background-color: var(--primaryColor2);
}
.company {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 40px;
  grid-row-gap: 50px;
  margin: 0 auto;
  padding: 4rem 2rem;
  max-width: 1280px;
}
.company-items {
  padding: 1.5rem;
  border-radius: 0.4rem;
  background-color: var(--primary-background);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.07);
}
.icon {
  width: 2rem;
  margin-right: 0.8rem;
  transition: 0.2s;
}
.icon:hover {
  opacity: 0.5;
  filter: grayscale(100%);
}
#aboutus .desktop,
#contact .desktop {
  padding: 0 2rem;
}
main #aboutus,
main #contact {
  padding-top: 0;
}

.aboutus {
  flex-basis: 50%;
  padding: 4rem 2rem 4rem 0;
}
.contact {
  flex-basis: 50%;
  padding: 4rem 0 4rem 2rem;
}
.img-who {
  flex-basis: 50%;
  padding: 0 4rem;
  background: url(../img/cartes.jpg) no-repeat center;
  background-size: cover;
}

.img-who-mobile {
  display: none;
}

.img-contact {
  flex-basis: 50%;
  padding: 0 4rem;
  background: url(../img/richelieu.jpg) no-repeat center;
  background-size: cover;
}

/* FORM */

form {
  display: flex;
  flex-direction: column;
}
input {
  margin-bottom: 1.5rem;
}
button {
  margin: 1.75rem auto 0 0;
  padding: 0 1.2rem;
  color: var(--white);
  background-color: var(--secondaryColor);
  border-style: none;
  font-weight: 500;
  border-radius: 0.4rem;
  letter-spacing: 0.05rem;
  line-height: 2.5rem;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}
button:hover {
  background-color: var(--primaryColor);
}
form input,
form textarea {
  border: 1px solid var(--text);
}
.mobileWho,
.mobileContact {
  display: none;
}
.mobileWho img,
.mobileContact img {
  vertical-align: bottom;
  width: 100%;
}
.grecaptcha-badge {
  visibility: hidden;
}

/* FOOTER */
footer {
  background-color: var(--primaryColor);
}
footer .desktop {
  display: flex;
}
.footer-items {
  flex-basis: calc(100% / 4);
  text-align: left;
}
footer img {
  width: 150px;
}

@media only screen and (max-width: 768px) {
  nav ul {
    position: fixed;
    left: -100%;
    top: calc(51px + 1.6rem);
    flex-direction: column;
    justify-content: flex-start;
    /* height: 100vh; */
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.5s;
  }
  nav ul.active {
    left: 0;
  }
  nav li {
    margin: 1rem 0;
  }
  nav li a {
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0;
    color: var(--text);
  }
  #menu .submenu {
    display: none;
    margin-top: 2rem;
    width: 100vw;
    background: var(--primaryColor2);
    height: max-content;
    position: relative;
    top: 0;
    left: auto;
  }
  .hamburger {
    display: block;
    cursor: pointer;
  }
  header .desktop {
    flex-direction: column;
  }
  header .desktop * + * {
    margin-left: 0;
  }
  header .download:nth-child(1) {
    margin-bottom: 2rem;
  }

  .download img {
    margin: 1rem auto 2rem;
  }
  .company {
    grid-template-columns: repeat(1, 1fr);
  }
  .company-icons {
    display: flex;
    justify-content: space-between;
  }
  .company-items h4 {
    margin-bottom: 0.2rem;
    /* text-align: center; */
  }

  .mobileWho,
  .mobileContact {
    display: block;
  }
  .tel {
    display: none;
  }
  .icon {
    width: 3rem;
    margin-right: 0;
  }
  #aboutus .desktop,
  #contact .desktop {
    flex-direction: column;
  }
  .aboutus {
    padding: 4rem 0;
  }
  .contact {
    padding: 4rem 0;
  }
  footer address,
  footer p,
  footer h3 {
    text-align: center;
  }
  footer h3 {
    margin-top: 1rem;
  }
  footer .desktop {
    flex-direction: column;
  }
  .footer-items {
    text-align: center;
  }
}
