@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;
}

/* Actions */
.actions {
  z-index: 9999;
  position: fixed;
  bottom: 64px;
  right: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.actions > button {
  background: linear-gradient(60deg, var(--cta-bg), var(--cta-bg-2));
  padding: 16px;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transform: scale(1.2);
}

#to-home.hidden {
  transform: scale(0);
}

.actions > button:hover {
  transform: scale(1.5);
}

/* Menu Icon */
.menu-icon {
  display: none;
  z-index: 9999;
}

.menu-icon-bar {
  transition: 0.3s;
  height: 4px;
  border-radius: 4px;
  transform-origin: center left;
  background-color: #c3c5c9;
}

/* Activated behaviors */
.menu-icon.activated .menu-icon-bar:nth-of-type(1) {
  transform: rotateZ(45deg) scaleX(1.2);
}

.menu-icon.activated .menu-icon-bar:nth-of-type(2) {
  transform-origin: center;
  background-color: transparent;
  transform: rotateZ(45deg);
}

.menu-icon.activated .menu-icon-bar:nth-of-type(3) {
  transform: rotateZ(-45deg) scaleX(1.2);
}

.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%;
  height: 64px;
  background: var(--dark-grey);
  padding: 16px 0;
  color: white;
  z-index: 999;
  display: flex;
  justify-content: space-around;
  transition: 0.5s;
}

#main-nav.deployed {
  height: 100%;
}

#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);
}

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

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

/* 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: 27%;
}

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

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

ul.technologies {
  list-style: square;
  margin-left: 32px;
}

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

.text {
  line-height: 1.2rem;
}

.founders-cards {
  justify-content: space-around;
  gap: 10%;
}

.photo {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 16px;
}

.photo:hover {
  filter: grayscale(1);
}

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

.photo .full-text {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background-color: transparent;
  color: transparent;
  transition: 0.3s;
  font-size: 1rem;
}

.photo .full-text:hover {
  background-color: #3b3b3ba2;
  color: whitesmoke;
}

.photo .full-text p {
  padding: 16px;
}

.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;
  display: flex;
}

.row.team {
  justify-content: space-around;
}

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

.row.team > .column {
  width: 20%;
}

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;
}

#toast {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  background-color: rgba(4, 161, 4, 0.85);
  border-radius: 8px;
  color: white;
}

#toast .close {
  position: absolute;
  right: 8px;
  top: 8px;
  cursor: pointer;
}

#toast.hidden {
  color: transparent;
  background-color: transparent;
  z-index: -1;
  transition: 0.5s;
}

#toast .title{
  padding: 16px 16px 8px 16px;
  font-weight: bold;
}

#toast .content {
  padding: 0 16px;
  width: calc(100% - 32px);
}

#toast.error, #toast.denied {
  background-color: rgba(255, 0, 0, 0.75);
}

#toast .loading-bar {
  height: 6px;
  margin-top: 16px;
  background-color: white;
  width: 100%;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

#toast .loading-bar.hidden {
  transition: 5s linear;
  width: 0%;
}

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

footer a {
  color: white;
}

@media screen and (max-width: 1600px) {
  .photo .full-text {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 1400px) {
  :root {
    --content-width: 85%;
  }
  .founders-cards {
    justify-content: space-around;
    gap: 10%;
  }
  .photo .full-text {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 1200px) {

  h1 {
    font-size: 2rem;
  }

  .service {
    width: 50vw;
  }

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

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

  form .row {
    flex-direction: column;
  }

  .row.founders-cards {
    width: 90%;
    margin: auto;
  }

  .photo .full-text {
    font-size: 0.6rem;
  }

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

@media screen and (max-width: 992px) {

  #main-nav {
    height: 48px;
  }

  .actions {
    bottom: 32px;
    right: 32px;
  }

  .actions > button {
    padding: 16px;
    transform: scale(1.1);
  }

  .photo .full-text {
    display: none;
  }

  .row.team > .column {
    width: 100%;
  }

  /* Menu Icon */
  .menu-icon {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 32px;
    width: 32px;
    cursor: pointer;
  }

  .service {
    width: 70vw;
    flex: 1 0 calc(50% - 48px);
    margin: 24px;
  }

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

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

  .navlinks {
    flex-direction: column;
    margin-top: 64px;
    text-align: right;
  }

  .navlink {
    display: none;
    align-items: flex-end;
  }

  #main-nav.deployed .navlink {
    display: flex;
    width: 100%;
  }

  .logo-proxicod {
    height: 48px;
  }

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

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

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

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

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

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

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

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

  footer {
    padding: 16px;
  }

  :root {
    --content-width: 95%;
    --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;
  }

  .row.team {
    gap: 32px;
  }

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

  .actions {
    bottom: 16px;
    right: 16px;
  }

  .actions > button, .actions > button:hover {
    transform: scale(1);
  }
  
  .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%;
  }

  .row.founders-cards, .row.team > .column {
    width: 80%;
    margin: auto;
  }

  :root {
    --section-padding: 24px;
    --font-size: 1rem;
  }
}
