/* || General setup */


html {
  background-image: linear-gradient(white, #b8f2c8);
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
  color: #2a2a2a;
  font-size: 16px;
}



li {
  list-style-type: none;
}

body {
  width: 80%;
  margin: 0 auto;
}


.wrapper {
  display: flex;
  flex-flow: column;
}

.wrapper > * {
  flex: 1 100%;
}

/* || typography */

a {
  color: #2a2a2a;
  text-decoration: none;
}

p,
input {
  text-align: justify;
}

.header {
  display: flex;
  padding: 0px;
  margin-bottom: 10px;
  margin-top: 10px;
  align-items: center;
}

h1 {
  font-size: 3rem;
  text-align: center;
  color: #b8f2c8;
  text-shadow: 2px 2px 10px black;
  flex: 2;
}

.header img {
  max-width: 20%;
  height: auto;
  flex: 1;
}

h2 {
  font-size: 2rem;
  text-align: center;
  width: 100%;
}

h3 {
  font-size: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.5;
}

/* || navigation layout */

nav,
article {
  padding: 1%;
}

nav {
  margin-bottom: 10px;
  position: relative;
}

nav > ul {
  padding: 0;
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: space-evenly;
}

nav a {
  text-decoration: none;
  color: black;
}

nav a:hover {
  color: grey;
}

nav .search img {
  max-width: 100%;
  height: auto;
}

nav i {
  margin-right: 10px;
}

.drop-menu {
  visibility: hidden;
  position: absolute;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 12px 16px;
  z-index: auto;
  overflow: visible;
  margin-left: 1%;
  text-align: left;
  transition: opacity 700ms, visibility 700ms;
  opacity: 0;
  background-image: linear-gradient(white, #b8f2c8);
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  border: 1px solid grey;
}

.drop-form {
  visibility: hidden;
  position: absolute;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 5px;
  margin-right: 5%;
  right: -10px;
  overflow: visible;
  text-align: left;
  transition: opacity 700ms, visibility 700ms;
  opacity: 0;
  background-color: #b8f2c8;
  border: 1px solid grey;
}

input[type="search"] {
  width: 300px;
}

.dropdown:hover .drop-menu {
  visibility: visible;
  opacity: 1;
}

.dropdown:hover .drop-form {
  visibility: visible;
  opacity: 1;
}

.drop-menu li {
  margin-top: 10px;
}

.drop-menu li a:hover {
  padding-left: 10px;
  border-left: 2px solid rgb(59, 177, 55);
  transition: all 0.3s ease;
}

input {
  font-size: 1rem;
  height: 32px;
  text-align: center;
}

input[type="submit"] {
  flex: 1;
  margin-left: 1rem;
  background: white;
  border: 1px solid grey;
  border-radius: 1px;
  color: black;
}

/* || main layout */

main {
  display: flex;
}

article {
  flex: 1;
}

article a {
text-decoration: underline dotted green;  
}

article a:hover {
color: grey;
}

footer {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 10px;
}

.main li {
  list-style-type: circle;
}

.contact p {
  text-align: center;
}

.justify p {
  text-align: justify;
}

.center-img {
  text-align: center;
}

.contact iframe {
  max-width: 100%;
}

/* Team layout */

.row {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 50px;
}

.column {
  display: flex;
  justify-content: center;
  max-width: 100%;
  padding: 0.5em 0;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 0.6em;
  cursor: pointer;
  padding: 1.5em 2em;
  width: 205px;
  height: 310px;
}

.card a {
  text-decoration: none;
}

.card a:hover {
  color: black;
}

.card .img-container {
  width: 8em;
  height: 8em;
  background-color: #8bd0b9;
  padding: 0.3em;
  border-radius: 50%;
  margin: 0 auto 2em auto;
}

.card img {
  width: 100%;
  border-radius: 50%;
}

.card h3 {
  font-weight: 600;
}

.card p {
  margin: 0 0.5em;
  letter-spacing: 0.5px;
}

.card .Fonction {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.card .icons {
  width: 50%;
  min-width: 180px;
  margin: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
}

.icons a {
  font-size: 1.4em;
  display:flex;
  align-items: center;
  text-decoration: none;
}



.card:hover {
  background: linear-gradient(#b8f2c8, #8bd0b9);
}

.card:hover .img-container {
  transform: scale(1.1);
}

/* Accueil */

.index-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.index-accueil {
  max-width: 90%;
}

.index-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  gap: 10px 0px;
}

.index-images img {
  max-width: 90%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.maxwidthimg50 img {
  max-width: 50%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Presentation */


.presentation-horaire img {
    border-radius: 50%;
    max-width: 100px;
    height:auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.contact-cha img {
  border-radius: 50%;
  max-width: 150px;
  height:auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.presentation-wrapper {
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.presentation-horaire {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin-right: 10px;
  }

.contact-cha {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.presentation-texte {
  flex: 10;
  border-left: 1px dashed green;
  padding-left: 10px;
}

.pres-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Rendez-vous */

.rdv {
  display:flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 0 10px;
}

.rdv-wrapper {
  border: 1px solid grey;
  padding: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  height: 50px;
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.rdv a {
  text-decoration: none;
}

.bold {
font-weight: 600;
}

.calendrier {
  display: flex;
  justify-content: center;
}

/* Suivis */

.suivis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.suivis > * {
  border: 0.5px solid grey;
  padding: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 5%;
  height: 150px;
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suivi-couple {
  background-image: url(images/services/couple.jpg);
}

.suivi-psycho {
  background-image: url(images/services/psychologie.png);
}

.suivi-ado {
  background-image: url(images/services/teenagers.jpg);
}

.suivi-enfant {
  background-image: url(images/services/psy-child.png);
}

.suivi-sante {
  background-image: url(images/services/psy-sante.jpg);
}

.suivi-tabacologie {
  background-image: url(images/services/tabacologie.jpg);
}

.suivi-peri {
  background-image: url(images/services/perinatale.jpg);
}

.suivi-pro {
  background-image: url(images/services/pro.jpg);
}

.suivi-sexo {
  background-image: url(images/services/sexologie.jpg);
}

.suivis > * a {
  color: rgb(255, 255, 255);
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
}

.suivis > * a:hover {
  color: rgb(255, 255, 255);
}

.suivi-content {
  display:flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Mobile Layout */

@media all and (max-width: 820px) {
  .nav {
    display: none;
  }

  @keyframes bugfix { from {padding:0;} to {padding:0;}}
@-webkit-keyframes bugfix { from {padding:0;} to {padding:0;}}

#overlay-button {
  position: fixed;
  left: 1em;
  top: 2em;
  padding: 0px 0px;
  z-index: 5;
  cursor: pointer;
  user-select: none;
  span {
      height: 4px;
      width: 35px;
      border-radius: 2px;
      background-color: black;
      position: relative;
      display: block;
      transition: all .2s ease-in-out;
      &:before {
        top: -10px;
        visibility: visible;
      }
      &:after {
        top: 10px;
      }
      &:before, &:after {
          height: 4px;
          width: 35px;
          border-radius: 2px;
          background-color: black;
          position: absolute;
          content: "";
          transition: all .2s ease-in-out;
      }
    }
    &:hover span, &:hover span:before, &:hover span:after {
      background: #333332;
    }
}

input[type=checkbox] {
  display: none;
  
  &:checked ~ #overlay {
    visibility: visible;
  }
  
  &:checked ~ #overlay-button {
    &:hover span, span{
      background: transparent;
    }
    span {
      &:before {
        transform: rotate(45deg) translate(7px, 7px);
        opacity: 1;
      }
      &:after {
        transform: rotate(-45deg) translate(7px, -7px);
      }
    }
  }
}

#overlay {
  height: 100vh;
  width: 100%;
  z-index: 2;
  visibility: hidden;
  position: fixed;
  top: 0em;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(white, #b8f2c8);
  &.active {
    visibility: visible;
  }
  ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 70vh;
    list-style-type: none;
    li {
      padding: 1em;
      a {
        color: black;
        text-decoration: none;
        font-size: 1em;
        &:hover {
          color: #333332;
        }
      }
    }
  }
}

#overlay ul {
  padding-left: 0;
}

  .mobile-nav {
    display: flex;
    flex-direction: column;
    flex: 0.2;
    width: auto;
    justify-content: flex-start;
    gap: 50px;
    order: 1;
    align-items: center;
    width: 100px;
  }

  .header {
    display: none;
  }

  .main {
    flex: 5;
    order: 2;
    margin-right: 5%;
  }
  .wrapper {
    flex-direction: row;
  }

  body {
    width: 100%;
    animation: bugfix infinite 1s;
  -webkit-animation: bugfix infinite 1s;
  }

  .mobile-header {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    align-items: center;
    margin-top: 5%;
  }

  .mobile-header img {
    max-width: 50%;
  }

  .row {
    gap: 0 10px;
    }
    
  .presentation-wrapper {
  flex-direction: column;
  align-items: center;
}
  
  .presentation-horaire p {
    margin: 0;
  }
  
  .presentation-horaire img {
    margin-bottom: 10px;
  }

  .pres-icons {
    flex-direction: row;
    gap: 10px;
  }
}

@media all and (min-width: 821px) {
  .mobile-nav {
    display: none;
  }

  .mobile-header {
    display: none;
  }
}
