*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  --lightGrey: #fcfcfc;
  --darkGrey: #585858;
  --darkerGrey: #6d6d6d;
  --yellow: #ffe75e;
  --white: #fff;
  --familyRoboto: "Roboto", sans-serif;
  --bold: bold;
  --lightgreen: #e6f1e0;
  --green: #55af38;
  --blue: #0166cc;
  --darkgreen: #30582e;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--lightGrey);
  font-family: var(--familyRoboto);
  line-height: 1.6;
  padding-top: 80px;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

a {
  text-decoration: none;
  outline-color: var(--yellow);
}

/* Header */
.header {
  padding: 1rem;
  background-color: var(--lightGrey);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
}
#header-img{
  padding-left: 30px;
  max-width: 200px;
}
.nav-toggle {
  display: block;
  width: 24px;
  height: 24px;
  cursor: pointer;
  position: relative;
  border: none;
  background-color: transparent;
}

.hamburger {
  top: 10px;
  left: 0;
  display: block;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 3px;
  background-color: var(--darkGrey);
}

.hamburger::before {
  top: -10px;
  left: 0;
}

.hamburger::after {
  left: 0;
  bottom: -12px;
}

[aria-expanded="true"] .hamburger,
[aria-expanded="true"] .hamburger::before,
[aria-expanded="true"] .hamburger::after {
  transition: all 0.3s ease-in-out;
}

[aria-expanded="true"] .hamburger::before {
  opacity: 0;
  transform: rotate(0deg) scale(0.2);
}

[aria-expanded="false"] .hamburger::before {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[aria-expanded="true"] .hamburger {
  transform: rotate(-45deg);
}

[aria-expanded="true"] .hamburger::after {
  transform: rotate(90deg) translateX(-12px);
}

[aria-expanded="false"] .hamburger,
[aria-expanded="false"] .hamburger::before,
[aria-expanded="false"] .hamburger::after {
  transition: all 0.3s ease-in-out;
}

.nav {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  top: -80px;
  left: -1rem;
  width: 50vw;
  height: 420px;
  transition: all 0.3s ease-in-out;
  transition-property: opacity, visibility, transform, background-color,
    box-shadow;
  background-color: #f4eeff;
  transform: translateX(-200%);
}

.logo {
  z-index: 2;
}

.nav-list {
  margin-top: 150px;
}

.nav.is-open {
  width: 70vw;
  height: 350px;
  top: -80px;
  margin-left: 0;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  background-color: var(--lightgreen);
  box-shadow: 0 6px 20px rgba(96, 109, 175, 0.2);
}

.nav.is-open .nav-link {
  margin-top: 1rem;
  margin-left: 1rem;
  font-size: 1.1rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  margin-top: 1rem;
  color: var(--darkGrey);
  font-size: 1.1rem;
}
.nav-link:hover{
  color: var(--green);
}

@media (min-width: 56em) {
  .nav-toggle {
    display: none;
    pointer-events: none;
  }

  .nav-list {
    margin-top: 0;
    display: flex;
  }

  .nav {
    width: auto;
    height: auto;
    position: static;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    background-color: initial;
  }
}

/* Intro */
.intro {
  margin-top: 2rem;
  padding: 0 1em;
}

.intro__title {
  margin: 0;
  font-family: var(--familyRoboto);
  font-size: 2rem;
  font-weight: var(--bold);
  line-height: 1;
  color: var(--darkgreen);
}

.intro__subtitle {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: var(--darkGrey);
}

.button {
  display: inline-block;
  padding: 0.7em 1.2em;
  font-size: 1rem;
  background-color: var(--green);
  color: var(--white);
  border-radius: 3px;
}

.button:hover {
  background-color: var(--darkgreen);


}
.button2 {
  text-align: center;
  display:block;
  margin-left: auto;
  margin-right: auto;
  padding: 0.7em;
  font-size: 1.3rem;
  background-color: var(--green);
  color: var(--white);
  border-radius: 3px;
  max-width: 20em;
}

.button2:hover {
  background-color: var(--darkgreen);
}

.intro__illustration {
  max-width: 100%;
  margin: 2rem 0;
}

@media (min-width: 32em) {
  .intro {
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-gap: 20px;
    grid-template-areas:
      ". img"
      "title img"
      "subtitle img"
      "button img"
      ". img";
  }

  .intro__title {
    grid-area: title;
    margin: 0;
  }

  .intro__subtitle {
    grid-area: subtitle;
    margin: 0;
  }

  .intro .button {
    grid-area: button;
    justify-self: start;
    align-self: start;
  }

  .intro__illustration {
    grid-area: img;
    align-self: center;
  }
}

@media (min-width: 60em) {
  .intro {
    width: 80%;
  }

  .intro__title {
    font-size: 2.5rem;
    margin: 0;
  }

  .intro__subtitle {
    font-size: 1.2rem;
  }

  .button {
    font-size: 1.1rem;
  }
}

/* Features */
.features {
  background-color: var(--lightgreen);
  padding: 0 1em;
  margin-top: 2.5rem;
  text-align: center;
}

.features__list li {
  padding: 1rem;
}

.features__list1 li {
  text-align: center;
  margin: auto;
  padding-bottom: 1rem;
}

.features p {
  font-size: 0.9rem;
}
.features__gif{
  width: 80px;
}
.features__png{
  width: 180px;
}

@media (min-width: 32em) {
  .features__list {
    display: flex;
    justify-content: space-around;
  }
  .features__list1 {
    max-width: 700px;
    margin: auto;
    display: flex;
  }
  .features__gif{
    width: 150px;
  }
  .features__list li {
    flex-basis: 350px;
  }
}



@media (min-width: 60em) {
 
  .features {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .features p {
    font-size: 1.1rem;
  }
}

.section__title {
  color: var(--darkgreen);
  font-weight: var(--bold);
  font-size: 1.85rem;
  line-height: 1.1;
}

@media (min-width: 60em) {
  .section__title {
    font-size: 2.25rem;
  }
}

/* formulaire */
.formulaire {
  position: relative;
  margin: 15px auto 30px auto;
}



@media (min-width: 32em) {
  .formulaire {
    margin-top: 5rem;
  }

  .formulaire__title {
    grid-area: title;
    color: var(--darkgreen);
  }

}

@media (min-width: 768px) {
  .formulaire {
    width: 880px;
		padding: 50px 0 50px 0;
  }

  .formulaire p {
    font-size: 1.1rem;
  }
}

/* Learning */
.learning {
  margin-top: 5rem;
  padding: 0 1em;
}
.learning2 {
  background-color: var(--lightgreen);
  margin-top: 5rem;
  padding: 0 1em;
}
.learning__title{
  padding-top: 1rem;
  color: var(--darkgreen);
}
.learning p {
  font-size: 0.9rem;
  padding-bottom: 1rem;
}


@media (min-width: 60em) {
  .learning {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .learning2 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .learning p {
    font-size: 1.1rem;
  }
}

/* Start learning */
.start-learning {
  position: relative;
  margin-top: 5rem;
  margin-bottom: 5rem;
  text-align: center;
}

.start-learning .button {
  margin: 2rem 0;
}

.video-learning {
  width: 80vw;
  margin: 0 auto;
  max-width: 800px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 0;
  border-radius: 3px;
}

.video {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  cursor: pointer;
}


/* Footer */
.footer {
  padding: 1em;
  margin: 2rem auto 0;
  background-color: #d6d6d6;
}


.footer-link {
  font-size: 0.85rem;
  font-weight: var(--bold);
  color: inherit;
}





.copyright {
  font-size: 10px;
  flex-basis: 100%;
  text-align: center;
  color: var(--darkerGrey);
}

.dotted-link {
  color: var(--green);
  border-bottom: 1px dashed var(--green);
}


@media (min-width: 45em) {
  .footer {
    padding: 2em 1em;
  }

  .footer-container {
    display: grid;
    grid-gap: 20px;
    grid-template-areas: "copyright copyright";
  }
  .copyright {
    grid-area: copyright;
    margin: 0;
  }
}

@media (min-width: 60em) {
  .footer-container {
    max-width: 80%;
    margin: auto;
  }
}


.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}