@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');

/***** Style generaux *****/
body {
  background: rgb(225, 247, 253);
  font-family: "Ubuntu", Helvetica, Arial, sans-serif;
}

h1 {
  font-size: 1.5em;
  color: rgb(7, 77, 99);
}

h2 {
  color: rgb(14, 142, 185);
  font-size: 1.2em;
}

a {
  text-decoration: none;
}

/****** Identite ******/
#identite {
  margin-left: 1.7em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact {
  color: #000000;
}

.contact_img {
  height: 15px;
  box-shadow: none;
  margin-right: 0.7em;
}

.metier {
  font-style: italic;
  color: rgb(7, 77, 99);
  font-size: 1.4em;
  text-align: center;
  margin-bottom: 2em;
}

.photo {
  height: 100px;
  box-shadow: 5px 5px 5px grey;
}
/***** End Identite *****/

/***** Page accueil / Categorie *****/
.accueil_title {
  margin-bottom: 10px;
  margin-top: 10px;
  font-weight: bold;
}

#categ {
  margin-top: 1em;
  /* Flexbox */
  display: flex;
  justify-content: space-around;
}

section[class='sous_categ'] h2 {
  width: 30%;
  text-align: center;
}

/***** End accueil / Categories *****/

/***** XP / formation ******/
#experiences li {
  /* Agit sur balises toutes les li d'#experiences */
  margin-left: 2em;
}

.exp {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  border-bottom: 1px solid black;
}

.experience_img {
  height: 100px;
  margin-bottom: 20px;
  box-shadow: none;
  float: right;
}

.intitule_exp {
  color: rgb(14, 142, 185);
  text-align: center;
  font-size: 1.5em;
}

.formation_left {
  margin-left: 3em;
}
/**** End XP / formation ****/

/* RESPONSIVE NAVIGATION */
body,
div,
p,
ol,
ul,
li {
  margin: 0;
  padding: 0;
  border: 0;
}

.main {
  box-sizing: border-box;
  padding: 3em 4em;
  position: fixed;
  overflow: hidden;
  overflow-y: scroll;
  border-radius: 5px;
  box-shadow: 0 0 15px;
  top: 2em;
  right: 2em;
  bottom: 0;
  width: 76%;
  background: #fff;
}

.nav-collapse {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 5em;
  left: 0;
}

.nav-collapse ul li {
  display: block;
  width: 100%;
}

.nav-collapse a {
  color: grey;
  font-weight: bold;
  box-sizing: border-box;
  display: block;
  padding: 1em 2em;
}

.nav-collapse .active a {
  color: #fff;
  background: rgba(0, 0, 0, .3)
}

/*********** MEDIA QUERIES ***********/
@media screen and (max-width: 1024px) {

  #categ {
    flex-direction: column;
    margin-left: 1.7em;
  }

  .sous_categ {
    width: 90%;
  }

  .photo {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  #identite {
    flex-direction: column;
    justify-content: space-around;
    margin-left: 1.7em;
  }

  .metier {
    margin-top: 2em;
  }

  .nav-collapse {
    top: 0;
    width: 100%;
    position: relative;
  }

  .main {
    -webkit-overflow-scrolling: auto;
    padding: 0 2em 2em;
    position: relative;
    width: 100%;
    overflow: hidden;
    right: 0;
  }

}