@font-face {
  font-family: myFont1;
  src: url("./fonts/Noto/NotoSansDisplay-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: myFont2;
  src: url("./fonts/Noto/NotoSansDisplay-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: myFont3;
  src: url("./fonts/Merienda/Merienda-Black.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
p {
  font-family: myFont1, Helvetica, Arial, sans-serif;
}

h1, strong, a {
  font-family: myFont3, Helvetica, Arial, sans-serif;
}

h2, h3, h4, h5 {
  font-size: 1.5em;
  font-family: myFont2, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-family: myFont1, Helvetica, Arial, sans-serif;
  color: #ECEAE0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #9BB1FF;
}

main p {
  font-size: 1.15em;
  margin-top: 0.35em;
}

section {
  padding: min(5em, 7%);
}

nav {
  background-color: #0c1b32;
  border-bottom: 1px solid #788BFF;
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}
nav ul li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
nav .home-li {
  margin-right: auto;
}
nav a {
  font-family: myFont1, Helvetica, Arial, sans-serif;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  text-decoration: none;
  color: #ECEAE0;
  padding: 1em 2em;
  -webkit-transition: background-color 150ms ease;
  transition: background-color 150ms ease;
}
nav a.active-link {
  border-bottom: 2px solid #ECEAE0;
}
nav a.accent-link {
  background-color: #5465FF;
}
nav a:hover {
  background-color: #788BFF;
}

@media screen and (max-width: 800px) {
  article, section, aside {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  article img, section img, aside img {
    -ms-flex-item-align: center !important;
        -ms-grid-row-align: center !important;
        align-self: center !important;
  }
  #open-sidebar-button, #close-sidebar-button {
    display: block !important;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(15em, 100%);
    z-index: 10;
    border-left: 1px solid #788BFF;
    -webkit-transition: right 300ms ease-out;
    transition: right 300ms ease-out;
  }
  nav ul {
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  nav ul a {
    width: 100%;
    padding-left: 2.5em;
  }
  nav ul a.active-link {
    border-bottom: none;
  }
  nav.visible {
    right: 0;
  }
  nav.visible ~ #overlay {
    display: block;
  }
}
#overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
}

#open-sidebar-button, #close-sidebar-button {
  position: relative;
  display: none;
  background: none;
  border: none;
  padding: 0.5em;
  cursor: pointer;
  z-index: 10;
  background-color: #0c1b32;
}

#open-sidebar-button {
  margin-left: auto;
}

button {
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
  font-family: myFont2, Helvetica, Arial, sans-serif;
  font-size: 1.15em;
  padding: 0.5em 2em;
  margin: 1em auto;
  background-color: #ECEAE0;
  color: #5465FF;
  border: none;
  border-radius: 15px;
  outline: 2px solid #9BB1FF;
  outline-offset: 4px;
}
button:hover {
  background-color: #5465FF;
  color: #ECEAE0;
}

#landing {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100dvh;
}
#landing p {
  background-color: #5465FF;
  padding: 0.5em 1em;
  font-family: myFont3, Helvetica, Arial, sans-serif;
  font-size: 2em;
  border-radius: 25px;
  margin-bottom: 2em;
}
#landing h1 {
  font-family: myFont2, Helvetica, Arial, sans-serif;
}
#landing h2 {
  font-family: myFont1, Helvetica, Arial, sans-serif;
}

#home {
  background-color: rgba(12, 27, 50, 0.25);
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #ECEAE0;
}
#home article {
  -webkit-filter: drop-shadow(0px 5px 10px #0c1b32);
          filter: drop-shadow(0px 5px 10px #0c1b32);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
}
#home svg {
  fill: #ECEAE0;
  width: 50%;
  max-width: 500px;
  padding: 2rem;
}
#home:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../data/images/bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  z-index: -1;
}

#apropos {
  position: relative;
  text-align: justify;
}
#apropos article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 2rem;
}
#apropos article img {
  outline: 2px solid #9BB1FF;
  outline-offset: 4px;
  -ms-flex-item-align: start;
      align-self: flex-start;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  width: 100%;
  max-width: 300px;
  border-radius: 0 45px;
}
#apropos article aside {
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  width: 100%;
  max-width: 500px;
}
#apropos {
  z-index: 0;
  background-color: #788BFF;
}
#apropos:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../data/images/physiotherapy_pattern_black.png");
  background-repeat: repeat;
  background-size: 400px;
  background-attachment: fixed;
  opacity: 0.1;
  z-index: -1;
}

#motifs article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#motifs article aside {
  margin: 1.5em 0;
  max-width: 1000px;
}
#motifs article aside ul {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
}
#motifs article aside ul li {
  background-color: #ECEAE0;
  padding: 0.5em 1em;
  outline: 1px solid #5465FF;
}

#services article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#services article section {
  margin-top: 2em !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4rem;
  max-width: 1200px;
}
#services article section aside {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  border-radius: 0 25px;
  outline: 2px solid #9BB1FF;
  outline-offset: 4px;
  overflow: hidden;
}
#services article section aside h2 {
  font-family: myFont2, Helvetica, Arial, sans-serif;
  font-size: 1.25em;
  min-height: 4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background-color: #5465FF;
  color: #ECEAE0;
  margin: 0;
}
#services article section aside img {
  width: 100%;
}
#services article section aside p {
  padding: 0.5em 0.75em;
  font-size: 1.25em;
  color: #0c1b32;
}
#services {
  background-color: #ECEAE0;
}

#secteurs {
  background-color: #9BB1FF;
}
#secteurs article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#secteurs article ul {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
}
#secteurs article ul li {
  background-color: #ECEAE0;
  padding: 0.5em 1em;
  outline: 1px solid #5465FF;
}
#secteurs article svg {
  max-width: 1000px;
}
#secteurs article p {
  font-size: 0.9em;
  max-width: 600px;
  text-align: center;
}

#formation {
  background-color: #788BFF;
}

#rendezvous {
  background-color: #ECEAE0;
}
#rendezvous article {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#rendezvous article form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  max-width: 800px;
}
#rendezvous article form .form-group {
  margin: 0.25em 0;
}
#rendezvous article form .form-group label {
  width: 100%;
  background-color: #9BB1FF;
  border-radius: 5px 5px 0 0;
  padding: 0.15em 0.5em;
}
#rendezvous article form .form-group input, #rendezvous article form .form-group textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1.15em;
}

article {
  min-height: 50vh;
  width: 100%;
}

footer p {
  margin: 1rem 0;
  text-align: center;
}