/*** General ***/

* {
  margin: 0;
  padding: 0;
  list-style-type: none;
  /* Permet d'éviter le scroll horizontal sur l'ensemble du site */
  scroll-behavior: smooth;
}

@font-face {
  font-family: VisbyExtrabold;
  src: url(../fonts/VisbyExtrabold.otf);
}

@font-face {
  font-family: VisbyBold;
  src: url(../fonts/VisbyBold.otf);
}

@font-face {
  font-family: VisbySemibold;
  src: url(../fonts/VisbySemibold.otf);
}

@font-face {
  font-family: VisbyMedium;
  src: url(../fonts/VisbyMedium.otf);
}

a {
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

h2,
h3 {
  font-family: VisbyBold;
}

/* Navigation */

nav {
  position: sticky;
  top: 0;
  z-index: 99;
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 2em 0;
}

.navBackground {
  background: #ffffff;
  border: #000000 solid 1px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

nav img {
  width: 250px;
}

/* Ancres */

#projets_ancre,
#apropos_ancre,
#cours_ancre,
#contact_ancre {
  position: relative;
}

#projets_ancre,
#contact_ancre {
  top: -10em;
}

#cours_ancre,#apropos_ancre {
  top: -5em;
}

/* Links */

.links {
  width: 40%;
}

.links ul {
  font-family: VisbyBold;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.links ul a {
  font-size: 20px;
}

.yellowLinks a {
  cursor: pointer;
  background-image: linear-gradient(#f9cf20, #f9cf20);
  background-size: 0% 0.1em;
  background-position-y: 100%;
  background-position-x: 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s ease-in-out;
}

.yellowLinks a:hover,
a:focus,
a:active {
  background-size: 100% 0.2em;
}

.contactButton {
  background: #fab417;
}

.contactButton:hover {
  background: #fecd098c;
}

.blogButton {
  background: #e84822;
}

.blogButton:hover {
  background: #e16a4c;
}

.contactButton,
.blogButton {
  text-align: center;
  border-radius: 2em;
  padding: 1em;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  -ms-border-radius: 2em;
  -o-border-radius: 2em;
  transition: background 0.5s ease-in-out;
  -webkit-transition: background 0.5s ease-in-out;
  -moz-transition: background 0.5s ease-in-out;
  -ms-transition: background 0.5s ease-in-out;
  -o-transition: background 0.5s ease-in-out;
}

/* Responsive Navigation */

#responsive__icon {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 2.5em;
  right: 2em;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
  display: none;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -ms-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  z-index: 99;
  text-align: center;
}

#responsive__icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #000000;
  border-radius: 9px;
  opacity: 1;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

#responsive__icon span:nth-child(1) {
  top: 0;
}

#responsive__icon span:nth-child(2) {
  top: 8px;
  width: 75%;
}

#responsive__icon span:nth-child(3) {
  top: 16px;
  width: 50%;
}

#responsive__icon.open span:nth-child(1) {
  top: 10px;
  transform: rotate(90deg);
  background: #000000;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
}

#responsive__icon.open span:nth-child(2) {
  background: #000000;
  left: 10px;
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
}

#responsive__icon.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-90deg);
  background: #000000;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
}

.responsive__navigation {
  height: 100vh;
  background: #ffffff;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
  padding-bottom: 3.5em;
  border: 6px solid #f8d410;
  border-bottom: none;
  z-index: 5;
  box-sizing: border-box;
  text-align: center;
}

.responsive__navigation ul {
  margin-top: 7em;
}

.responsive__navigation ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 3em;
  font-weight: 600;
}

.responsive__navigation ul li a {
  color: #000000;
  font-family: VisbyBold;
  font-size: 20px;
  cursor: pointer;
  background-image: linear-gradient(#f9cf20, #f9cf20);
  background-size: 0% 0.1em;
  background-position-y: 100%;
  background-position-x: 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease-in-out;
  width: 25%;
  -webkit-transition: background-size 0.3s ease-in-out;
  -moz-transition: background-size 0.3s ease-in-out;
  -ms-transition: background-size 0.3s ease-in-out;
  -o-transition: background-size 0.3s ease-in-out;
}

.responsive__navigation ul li a:hover {
  background-size: 100% 1em;
  margin: 0;
}

.responsive__navigation__social__links ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background: #ffffff;
}

/* Présentation */

.presentation {
  display: flex;
  width: 80%;
  margin: 0 auto;
  justify-content: space-between;
}

.presentation__left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 50%;
  padding-top: 5em;
}

.presentation__left__center {
  margin: 0 auto;
}

.presentation__left h1 {
  font-family: VisbyExtrabold;
  font-size: 45px;
}

.presentation__left p {
  width: 500px;
  font-family: VisbyMedium;
  padding: 2em 0;
  font-size: 23px;
  text-align: justify;
}

.bold {
  font-family: VisbyBold;
}

.presentation__right {
  padding: 1em 0;
  width: 50%;
  text-align: center;
}

.presentation__right img {
  padding-top: 6em;
  width: 600px;
}

.blackButton,
.projectButton {
  text-align: center;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  background: #000000;
  padding: 2em 0;
  margin: 0 auto;
}

.blackButton {
  width: 300px;
}

.projectButton {
  width: 200px;
}

.blackButton a,
.projectButton a {
  color: #ffffff;
  font-family: VisbyBold;
  font-size: 20px;
}

.blackButton,
.projectButton {
  transition: background-color 0.5s ease-in-out;
  -webkit-transition: background-color 0.5s ease-in-out;
  -moz-transition: background-color 0.5s ease-in-out;
  -ms-transition: background-color 0.5s ease-in-out;
  -o-transition: background-color 0.5s ease-in-out;
}

.blackButton:hover,
.projectButton:hover {
  background: #fab417;
}

.social__icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5em 0;
}

.social__icons img {
  width: 40px;
}

/* Projets */

.projets {
  margin: 0 auto;
}

.apropos,
.cours {
  margin: 5em auto;
}

.projets,
.apropos,
.cours {
  width: 80%;
}

.title__left,
.title__right {
  width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.title__right {
  flex-direction: row-reverse;
}

.title__left hr,
.title__right hr {
  width: 100px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border: #000000 3px solid;
}

.title__left h2,
.title__right h2 {
  font-family: VisbyBold;
  margin-left: 1em;
  font-size: 35px;
}

.project__example {
  display: flex;
  justify-content: space-around;
  margin-top: 8em;
}

.project__example:nth-of-type(2),
.project__example:nth-of-type(4),
.project__example:nth-of-type(6) {
  flex-direction: row-reverse;
}

.project__image img {
  width: 700px;
}

.project_right {
  width: 35%;
  padding: 2em 0;
}

.project__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project__title h2 {
  font-family: VisbyExtrabold;
  font-size: 30px;
}

.project__title p {
  font-family: VisbySemiBold;
  font-size: 20px;
}

.project__description p,
.apropos__top__left p {
  font-family: VisbyMedium;
  font-size: 20px;
  padding: 3em 0;
  text-align: justify;
}

/* À propos */

.apropos__top {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 5em auto 0;
}

.apropos__top__left {
  width: 50%;
}

.apropos__top__left h3 {
  font-family: VisbySemiBold;
  font-size: 25px;
}

.apropos__top__right {
  display: flex;
  flex-direction: column;
}

.apropos__top__right img {
  width: 350px;
  border: #fecf09 solid 8px;
  margin-top: 2em;
}

.aproposButton {
  width: 200px;
  padding: 2em;
  margin: 4em auto;
  background-color: #fecf09;
  border-radius: 50px;
  text-align: center;
}

.aproposButton a {
  font-family: VisbyBold;
  color: #ffffff;
  font-size: 20px;
}

.apropos_bottom {
  display: flex;
  justify-content: space-around;
}

.apropos_bottom h3 {
  font-size: 20px;
}

.apropos_bottom p {
  font-family: VisbyMedium;
  font-size: 20px;
}

/* Avis */

.avis {
  margin: 0 auto 7em;
}

.avis h2,
.avis h3,
.avis1,
.avis2,.confiance h2 {
  text-align: center;
}

.avis1,
.avis2,.confiance h2 {
  margin: 3em 0;
}

.avis-flex,
.avis1 p,
.avis2 p {
  width: 80%;
  margin: 0 auto;
}

.avis1 p,
.avis2 p,
.avis span {
  font-family: VisbyMedium;
  font-size: 20px;
  text-align: justify;
}

.avis img {
  width: 200px;
  padding: 2em;
}

.avis h2, .confiance h2 {
  font-family: VisbyBold;
  font-size: 35px;
}

/* Ils m'on fait confiance */
.formation1,.formation2{
  display:flex;
  margin: 0 auto;
  width:80%;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}
.formation1 img,.formation2 img{
  width:225px;
}

.formation1{
  margin-top: 2em;
}

/* Cours */

.cours__flex {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 5em auto 0;
}

.cours__left,
.cours__center,
.cours__right {
  width: 400px;
  text-align: center;
}

.cours__left h3,
.cours__center h3,
.cours__right h3 {
  font-size: 25px;
}

.cours p {
  margin: 3em auto;
  font-family: VisbyMedium;
  font-size: 20px;
}

.cours img {
  width: 375px;
}

.coursButton {
  width: 150px;
  padding: 1em;
  margin: 2em auto;
  text-align: center;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  background: #000000;
}

.coursButton a {
  color: #ffffff;
  font-family: VisbyBold;
}

/* Contact */

.contact,
.contact__flex {
  width: 80%;
  margin: 0 auto;
}

.contact__left,
.contact__right {
  width: 30%;
  margin: 0 auto;
}

.contact__flex {
  display: flex;
  justify-content: space-between;
  padding: 4em 0;
}

.contact h2 {
  font-family: VisbyBold;
  font-size: 35px;
}

.contact h3 {
  font-family: VisbyBold;
  font-size: 25px;
  padding: 1em 0;
}

.contact p {
  font-family: VisbyMedium;
  font-size: 20px;
  margin: 1em 0;
  text-align: justify;
}

/* Footer */

footer {
  background: #000000;
  margin-top: 2em;
}

.footer__icons {
  width: 40%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 2em 0 3em;
}

.footer__icons img {
  width: 40px;
}

footer ul {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 1em 0;
}

footer ul li {
  width: 30%;
  text-align: center;
  font-size: 18px;
  font-family: VisbyBold;
}

footer ul li,
footer a {
  color: #ffffff;
}

.contact__right p a {
  text-decoration: underline;
  -moz-text-decoration: underline;
}

/* Pages projets */

.header_project {
  width: 100%;
}

.header_project img {
  margin: 3em 0;
  width: 800px;
}

.single_project_main {
  width: 1000px;
  margin: 0 auto;
}

.single_project_flex {
  display: flex;
  margin: 2em auto;
  justify-content: space-between;
}

.header_project,
.single_project_image {
  margin: 0 auto;
  text-align: center;
}

.single_project_left {
  width: 50%;
  margin: 2em 0;
}

.single_project_left p,
.single_project_right {
  font-family: VisbyMedium;
  padding: 1em 0;
  text-align: justify;
}

.single_project_left p {
  font-size: 20px;
}

.single_project_left h2 {
  font-size: 25px;
}

.single_project_right {
  width: 25%;
  text-align: center;
  margin: 1em 0;
}

.single_project_right h3 {
  font-size: 23px;
}

.single_project_right ul {
  margin: 1em 0;
}

.single_project_right ul li {
  font-size: 18px;
}

.single_project_image,
.single_project_image img {
  width: 1000px;
}

video {
  width: 100%;
  margin: 3em 0;
}

/* Mentions légales */

.mentions__main {
  margin: 5em auto;
  width: 80%;
}

.mentions__main h2,
.mentions__main h3 {
  font-family: VisbyBold;
}

.mentions__main p {
  font-family: VisbyMedium;
  font-size: 20px;
  margin-top: 1em;
}

/* Responsive Css */

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

  .presentation,
  .projets,
  .apropos,
  .cours,
  .cours__flex,
  .contact,
  .contact__flex {
    width: 100%;
  }

  #navbar {
    width: 90%;
  }

  .links {
    width: 50%;
  }

  .project__image,
  .project__image img {
    width: 100%;
  }

  .project_left {
    width: 35%;
    padding: 2em 0;
  }

  .cours__flex {
    width: 100%;
    justify-content: space-around;
  }
}

@media screen and (max-width: 1450px) {
  .presentation__right img {
    width: 500px;
  }
}

@media screen and (max-width: 1276px) {
  #navbar {
    width: 100%;
    justify-content: space-around;
  }
}

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

  .presentation,
  .cours__flex {
    flex-direction: column-reverse;
  }

  .presentation {
    padding: 0;
    margin: 2em 0;
  }

  .presentation__left {
    margin-top: 0;
  }

  .presentation__left,
  .presentation__right,
  .apropos__top {
    width: 100%;
  }

  .project_left {
    width: 50%;
    padding: 2em 0;
  }

  .blackButton,
  .social__icons {
    margin: 0 auto;
  }

  .apropos__top {
    flex-direction: column;
  }

  .apropos__top__left,
  .apropos__top__right {
    width: 70%;
    margin: 0 auto;
  }

  .apropos__top__right img {
    margin: 0 auto;
    width: 300px;
  }

  .formation1,.formation2{
    flex-direction:column;
  }

  .formation1 img,.formation2 img{
    padding:1em;
  }

  .cours__left,
  .cours__center,
  .cours__right {
    width: 100%;
  }

  .cours p {
    width: 70%;
  }
}

@media screen and (max-width: 1140px) {
  .presentation__right img {
    width: 700px;
    padding-bottom: 0;
  }
}

@media screen and (max-width: 1100px) {
  .single_project_flex {
    flex-direction: column;
    margin: 3em auto;
    text-align: center;
  }

  .single_project_main,
  .header_project,
  .single_project_left,
  .single_project_right,
  .single_project_image {
    width: 90%;
  }

  .single_project_left {
    margin: 0 auto;
  }

  .header_project img,
  .single_project_image img {
    width: 90%;
  }

  .single_project_right ul li {
    font-size: 20px;
  }
}

@media screen and (max-width: 980px) {
  nav {
    padding-top: 2em;
    padding-bottom: 2em;
  }

  .links {
    width: 60%;
  }

  .presentation {
    margin: 0;
  }

  .presentation__left h1 {
    text-align: center;
  }

  .title__right {
    flex-direction: row;
  }

  .project__example,
  .project__example:nth-of-type(2),
  .project__example:nth-of-type(4),
  .project__example:nth-of-type(6),
  .contact__flex {
    flex-direction: column;
    width: 100%;
    margin: 4em 0;
  }

  .project_left,
  .project_right {
    width: 70%;
    margin: 0 auto;
  }

  .apropos {
    margin: 3em 0;
  }

  .cours__flex {
    margin: 5em auto 3em;
  }

  .cours {
    margin: 0;
  }

  .cours p {
    margin-top: 1em;
  }

  .contact__left,
  .contact__right {
    width: 70%;
  }

  .cours__right {
    margin: 2em 0;
  }

  .contact__flex {
    margin: 0;
  }

  .contact__right {
    text-align: center;
  }
}

@media screen and (max-width: 880px) {
  .links {
    display: none;
  }

  #responsive__icon {
    display: block;
  }

  .blackButton,
  .projectButton,
  .aproposButton {
    width: 150px;
    padding: 1em;
  }

  .blackButton a,
  .projectButton a,
  .aproposButton a {
    font-size: 17px;
  }

  .avis img {
    width: 150px;
  }

  .footer__icons {
    width: 80%;
  }

  footer ul {
    flex-direction: column;
    padding: 0;
  }

  footer ul li {
    width: 80%;
    margin: 1em auto;
  }
}

@media screen and (max-width: 700px) {
  .presentation__right img {
    width: 90%;
  }
}

@media screen and (max-width: 575px) {
  #navbar {
    width: 90%;
    justify-content: space-between;
  }

  p {
    text-align: justify;
  }

  .presentation__left h1 {
    font-size: 2em;
  }

  .cours img,
  .presentation__left p {
    width: 90%;
    margin: 0 auto;
  }

  .presentation__left p {
    font-size: 1.4em;
  }

  .social__icons {
    width: 80%;
  }

  .project__title {
    display: flex;
    flex-direction: column;
  }

  .apropos__top__left h3 {
    text-align: center;
  }

  .apropos__top__right img {
    width: 90%;
  }

  .apropos_bottom {
    flex-direction: column;
  }

  .apropos_bottom p {
    text-align: center;
    padding: 1.5em 0;
  }

  .avis img {
    width: 100px;
  }

  .cours__flex {
    margin: 2em auto 3em;
  }

  .contact__flex {
    padding: 0;
  }

  .contact__right {
    width: 100%;
  }

  .contact p {
    text-align: center;
    width: 90%;
    margin: 2em auto;
  }
}