/*                      */
/* CONTAINER & NAV TABS */
/*                      */
.contact-rdv-container {
  width: 1000px;
  margin: 4rem auto;
}

@media screen and (max-width: 1000px) {
  .contact-rdv-container {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .contact-rdv-container {
    margin: 2rem auto;
  }
}

.contact-rdv-container .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
}

@media screen and (max-width: 1000px) {
  .contact-rdv-container .nav-tabs {
    flex-wrap: wrap;
    padding: 0 4rem;
  }
}

@media screen and (max-width: 800px) {
  .contact-rdv-container .nav-tabs {
    padding: 0 2rem;
  }
}

.contact-rdv-container .nav-link {
  font-size: initial;
}

.contact-rdv-container .nav-item {
  width: 50%;
}

@media screen and (max-width: 1000px) {
  .contact-rdv-container .nav-item {
    width: 100%;
  }
}

.contact-rdv-container .nav-item:first-child {
  margin-right: 1rem;
}

@media screen and (max-width: 1000px) {
  .contact-rdv-container .nav-item:first-child {
    margin-right: 0;
  }

  .contact-rdv-container .nav-item:last-child {
    margin-top: 2rem;
  }
}

.contact-rdv-container .nav-item .nav-link {
  width: 100%;
  border: none;
  margin: 0;
  color: var(--text-green);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 500px) {
  .contact-rdv-container .nav-item .nav-link {
    padding: .5rem;
  }
}

.contact-rdv-container .nav-item .nav-link:hover {
  border: none;
  margin: 0;
  color: var(--light-green);
  border-radius: 0;
}

.contact-rdv-container .nav-item .nav-link[aria-selected="true"] {
  background: var(--bg-green);
  color: var(--text-grey);
  margin: 0;
}

.contact-rdv-container .nav-link:focus-visible {
  outline: 0;
  box-shadow: none;
}

.contact-rdv-container .nav-link:not(.active):hover {
  border-radius: 0;
  color: var(--light-green);
}

.contact-rdv-container .nav-link:not(.active) {
  position: relative;
}

.contact-rdv-container .nav-link:not(.active)::before, .contact-rdv-container .nav-link:not(.active)::after {
  content: '';
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-style: solid;
  border-color: var(--text-green);
}

.contact-rdv-container .nav-link:not(.active)::before {
  top: 0;
  left: 0;
  border-width: .2rem 0 0 .2rem;
}

.contact-rdv-container .nav-link:not(.active)::after {
  bottom: 0;
  right: 0;
  border-width: 0 .2rem .2rem 0;
}

/*             */
/* CONTACT TAB */
/*             */
.tab-pane {
  margin: 4rem auto;
  margin-top: 6rem;
  padding: 4rem;
  background: var(--bg-grey);
  position: relative;
}

@media screen and (max-width: 800px) {
  .tab-pane {
    position: initial;
    padding: 2rem;
    margin: 2rem auto;
  }
}

.tab-pane h1 {
  color: var(--text-grey);
  background: var(--bg-green);
  margin: 0 auto;
  padding: 1rem;
  position: absolute;
  top: 0;
  right: 50%;
  transform: translate(50%, -50%);
}

@media screen and (max-width: 800px) {
  .tab-pane h1 {
    width: 60%;
    position: initial;
    top: initial;
    right: initial;
    transform: initial;
  }
}

@media screen and (max-width: 500px) {
  .tab-pane h1 {
    width: 100%;
  }
}

.contact-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: var(--text-green);
  margin: 0 auto;
  margin-top: 2rem;
}

.contact-text-container {
  position: relative;
  padding: 2.5rem;
  color: var(--text-green);
}

@media screen and (max-width: 500px) {
  .contact-text-container {
    padding: 0;
  }
}

.contact-text-container::before, .contact-text-container::after {
  content: '';
  position: absolute;
  width: 5rem;
  height: 5rem;
  border-style: solid;
  border-color: var(--text-green);
}

@media screen and (max-width: 500px) {
  .contact-text-container::before, .contact-text-container::after {
    display: none;
  }
}

.contact-text-container::before {
  top: 0;
  left: 0;
  border-width: .2rem 0 0 .2rem;
}

.contact-text-container::after {
  bottom: 0;
  right: 0;
  border-width: 0 .2rem .2rem 0;
}

.contact-text-container p {
  margin-bottom: 1rem;
}

.contact-text-container p:last-child {
  margin-bottom: 0;
}

#link-to-rdv {
  color: var(--blue);
  cursor: pointer;
  transition: color .3s ease-in-out;
}

#link-to-rdv:hover {
  color: var(--light-green);
}

.contact-infos-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

.contact-infos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem auto;
  color: var(--text-green);
}

@media screen and (max-width: 700px) {
  .contact-infos {
    flex-direction: column;
  }
}

.contact-infos > div {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto;
}

@media screen and (max-width: 700px) {
  .contact-infos > div {
    width: 100%;
  }

  .tram {
    order: 4
  }

  .bus {
    order: 5;
  }
}

.contact-infos-container h4 {
  text-align: initial;
  color: var(--text-green);
}

.contact-infos a {
  color: var(--text-green);
}

.contact-infos img {
  width: 2rem;
}

/*     */
/* MAP */
/*     */
#map {
  border-radius: .375rem;
  height: 18rem;
  width: 100%;
  margin: 0 auto;
}

#map a, #map svg {
  margin: 0;
  font-size: .5rem;
}

/*         */
/* RDV TAB */
/*         */
.rdv-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: var(--text-green);
  margin: 0 auto;
  margin-top: 2rem;
}

.card-container {
  margin: 0 auto;
  margin-top: 4rem;
}

@media screen and (max-width: 800px) {
  .card-container {
    margin-top: 2rem;
  }
}

.contact-card {
  margin: 0 auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-green);
  background: var(--bg-white);
  text-decoration: none;
  border: .1rem solid var(--text-grey);
  transition: .5s;
}

.contact-card:last-child {
  margin-bottom: 0;
}

.contact-card:hover {
  border: .1rem solid var(--text-green);
  color: var(--text-green) !important;
}

.contact-card::before {
  content: '';
  bottom: 0;
  right: 0;
  position: absolute;
  border-color: var(--text-grey) var(--text-grey) transparent transparent;
  border-style: solid;
  border-width: 3rem 3rem 3rem 3rem;
  height: 0;
  width: 0;
  transform: rotate(90deg);
  transition: .5s;
}

@media screen and (max-width: 500px) {
  .contact-card::before {
    display: none;
  }
}

.contact-card:hover.contact-card::before {
  border-color: var(--text-green) var(--text-green) transparent transparent;
}

.contact-card::after {
  content: '\f274';
  font: var(--fa-font-solid);
  font-size: 1.5rem;
  color: var(--text-white);
  bottom: 0;
  right: 0;
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  transition: .5s;
}

@media screen and (max-width: 500px) {
  .contact-card::after {
    display: none;
  }
}

.contact-card-content {
  margin: 0;
  padding: 0;
}

.contact-card-title {
  color: var(--text-green);
  text-align: initial;
  padding: 1rem;
  border-bottom: .1rem solid var(--text-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: .5s;
}

@media screen and (max-width: 400px) {
  .contact-card-title {
    flex-direction: column;
    justify-content: center;
  }
}

.contact-card:hover .contact-card-title {
  border-color: var(--text-green);
}

.card-headerBody {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 400px) {
  .card-headerBody {
    flex-direction: column;
    justify-content: center;
  }
}

.card-headerBody i {
  margin: 1rem;
  color: var(--text-green);
}

.card-headerText {
  margin: 0 .5rem;
}

.card-headerText p, .card-headerText h5 {
  margin: 0;
  text-align: left;
}

@media screen and (max-width: 400px) {
  .card-headerText p, .card-headerText h5 {
    text-align: center !important;
  }
}

.contact-card-text {
  width: 80%;
  margin: 1rem;
}

@media screen and (max-width: 500px) {
  .contact-card-text {
    width: auto;
  }
}

/*              */
/* CONTACT FORM */
/*              */
.contact-form-container {
  width: 1000px;
  margin: 4rem auto;
  margin-top: 6rem;
  padding: 4rem;
  background: var(--bg-grey);
  position: relative;
}

@media screen and (max-width: 1000px) {
  .contact-form-container {
    width: 100%;
  }
}

@media screen and (max-width: 800px) {
  .contact-form-container {
    margin: 2rem auto;
    padding: 2rem;
  }
}

.contact-form-container h1 {
  color: var(--text-grey);
  background: var(--bg-green);
  margin: 0 auto;
  padding: 1rem;
  position: absolute;
  top: 0;
  right: 50%;
  transform: translate(50%, -50%);
}

@media screen and (max-width: 800px) {
  .contact-form-container h1 {
    width: 60%;
    position: initial;
    top: initial;
    right: initial;
    transform: initial;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 500px) {
  .contact-form-container h1 {
    width: 100%;
  }
}

#contact-form-input {
  display: none;
}

#contactButton {
  margin: 1rem auto;
  width: 100%;
}

#contactButton:hover {
  background-color: var(--bg-green) !important;
  color: var(--text-white) !important;
}

#contactForm p {
  text-align: center !important;
  font-style: italic;
}