@import url(./animations.css);

/* Variables */
:root {
  --content-width: 70%;
  --section-padding: 96px;
  --blue-bg: #36c4f3;
  --cta-bg: rgb(233, 121, 17);
  --cta-bg-2: rgb(221, 152, 87);
  --dark-grey: #22262a;
  --middle-grey: #424242;
  --service-padding: 16px;
  --font-size: 1.1rem;
}

.logo-proxicod {
  height: 64px;
}

html {
  font-size: var(--font-size);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
}

span.accroche {
  font-size: 1.4rem;
  text-transform: uppercase;
}

/* NAVBAR */
#main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--dark-grey);
  padding: 16px 0;
  color: white;
  z-index: 999;
  display: flex;
  justify-content: space-around;
}

#main-nav > div {
  justify-content: space-between;
}

.navlinks {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.navlink > a {
  color: white;
  text-transform: uppercase;
  text-decoration: none;
}

.navlink-underline {
  height: 2px;
  background-color: rgb(109, 143, 175);
  width: 0%;
  transition: 0.3s;
}

.navlink-underline.visible {
  width: 100%;
}

span.accroche::before {
  content: "{ ";
  color: var(--blue-bg);
}

span.accroche::after {
  content: " }";
  color: var(--blue-bg);
}

/* CONTENU */
.content {
  width: var(--content-width);
}

section {
  padding: var(--section-padding) 0;
}

.blue {
  background: var(--blue-bg);
  color: white;
}

section:first {
  padding: 0;
}

#home {
  position: relative;
}

#home > img {
  width: 100%;
}

#home > .overlay {
  background: rgba(55, 100, 143, 0.363);
  position: absolute;
  height: calc(100% - 2px - var(--section-padding));
  width: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.overlay > .content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  color: white;
}

.overlay > .content > span {
  font-size: 1.4em;
}

/* Bouton call to action */
button.see-more {
  padding: 16px 16px 8px 16px;
  background: linear-gradient(60deg, var(--cta-bg), var(--cta-bg-2));
  border: none;
  border-radius: 8px;
  font-size: larger;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

section .content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

button.see-more:hover {
  transform: scale(1.05);
}

.button-icon {
  font-weight: 900;
}

.button-icon.animate {
  animation: arrowDown 1s ease-in-out infinite;
}

/* Nos services */
.nos-services {
  width: 100%;
  min-width: 128px;
  background: var(--blue-bg);
  display: flex;
  flex-wrap: wrap;
}

.service {
  flex: 1 0 calc(50% - 64px);
  margin: 32px;
  background: var(--middle-grey);
  color: white;
}

.service > .row {
  padding: var(--service-padding);
  gap: var(--service-padding);
  background: var(--dark-grey);
}

.service .column {
  gap: var(--service-padding);
}

.service-title {
  font-weight: 900;
}

.service-subtitle {
  font-size: 1.15em;
}

.service img {
  width: 64px;
}

.service-content {
  background-color: var(--middle-grey);
  padding: var(--service-padding);
  line-height: 1.3rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cards .card {
  /* On enlève le padding, le border et le gap */
  flex: 1 0 calc(18% - 16px - 32px - 4px);
  border: white 2px solid;
  padding: 16px;
  text-align: center;
  align-items: center;
  gap: 16px;
}

.cards .card img {
  width: 30%;
}

.cards .card:nth-child(2n + 1) {
  background: var(--dark-grey);
}

.cards .card:nth-child(2n) {
  background: var(--middle-grey);
}

ul.technologies {
  list-style: square;
}

ul.technologies > li {
  line-height: 32px;
}

.text {
  line-height: 1.4rem;
}

.photos {
  width: 100%;
  margin: 0 auto;
  justify-content: space-around;
  gap: 5%;
}

.photo .column.content {
  align-items: center;
}

img.photo {
  width: 25%;
}

.name {
  padding: 8px 0;
  font-size: larger;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--blue-bg);
}

.middle-grey {
  background: var(--middle-grey);
  color: white;
}

.middle-grey.card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
}

#contact .row {
  justify-content: space-between;
  width: 100%;
  gap: 5%;
}

#contact .column {
  gap: 32px;
}

.input-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

input,
textarea {
  padding: 8px;
  font-size: larger;
  border: 1px #cdd9ed solid;
  background-color: white;
  border-radius: 8px;
  transition: 0.2s;
  resize: none;
}

p.hint {
  font-size: 0.7rem;
  color: var(--middle-grey);
}

input:focus-within,
textarea:focus-within {
  border: 1px var(--blue-bg) solid;
  background-color: rgb(218, 234, 240);
}

input.focused:invalid,
textarea.focused:invalid {
  border: 1px solid red;
  background-color: rgb(248, 226, 226);
}

button.send-email {
  background-color: var(--blue-bg);
  border: 0px;
  padding: 8px 16px;
  font-size: 1.2rem;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.row.team {
  gap: 5%;
}

.row.team img {
  width: 100%;
}

button.send-email:hover {
  filter: brightness(1.05);
}

footer {
  background: var(--dark-grey);
  padding: 64px;
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 32px;
  line-height: 2em;
}

.social-link {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.social-link img {
  height: 32px;
}

.copyright {
  margin-top: 32px;
  text-align: center;
}

.numero-tel img {
  height: 1em;
}

.numero-tel {
  vertical-align: middle;
  display: flex;
  gap: 8px;
  align-items: center;
}

footer a {
  color: white;
}

@media screen and (max-width: 1200px) {
  h1 {
    font-size: 2rem;
  }

  .service {
    width: 50vw;
  }

  img.photo {
    width: 35%;
  }

  .overlay > .content {
    gap: 24px;
  }

  .overlay > .content > span {
    font-size: 1.2em;
  }

  :root {
    --content-width: 80%;
  }
}

@media screen and (max-width: 768px) {
  .service {
    width: 70vw;
    flex: 1 0 calc(50% - 48px);
    margin: 24px;
  }

  .cards .card img {
    width: 40%;
  }

  img.photo {
    width: 70%;
  }

  #about .row {
    flex-direction: column;
  }

  .navlink {
    display: none;
  }

  .logo-proxicod {
    height: 48px;
  }

  button.see-more {
    font-size: medium;
    padding: 8px;
  }

  #main-nav {
    padding: 8px 0;
  }

  #home .content {
    margin-top: 32px;
    gap: 16px;
  }


  :root {
    --content-width: 90%;
    --section-padding: 64px;
    --font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 1.6rem;
    flex: 1 0 calc(50% - 32px);
    margin: 16px;
  }

  .overlay > .content > span, button.see-more {
    display: none;
  }

  .service {
    width: 80vw;
  }

  img.photo,.row.team img {
    width: 80%;
    margin: auto;
  }

  .row.team {
    gap: 32px;
  }

  #home .content {
    margin-top: 32px;
    gap: 8px;
  }

  #about .row,
  form .row {
    flex-direction: column;
  }

  #contact .row,
  #contact .column {
    gap: 16px;
  }

  #contact .input-text {
    width: 100%;
  }

  .cards .card {
    /* On enlève le padding, le border et le gap */
    flex: 1 0 calc(50% - 16px - 32px - 4px);
  }

  .cards .card img {
    width: 60%;
  }

  :root {
    --content-width: 95%;
    --section-padding: 24px;
    --font-size: 1rem;
  }
}
