@import url('https://fonts.googleapis.com/css?family=Rubik&display=swap');

body {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  background-color: #fff;
  font-family: 'Rubik', sans-serif;
}

h2 {
  background-color: rgba(0, 128, 255, 0.3);
  font-size: 1.2rem;
  margin: 0;
  padding: 10px;
}

p {
  background-color: rgba(255, 140, 0, 0.4);
  margin: 0;
  padding: 2px;
  font-size: 0.9rem;
}

a {
  color: #fff; 
  padding: 0 2%;
  justify-content: space-around;
  transition: transform 1s, color 0.5s, background-color 0.5s;
}

a:hover {
  transform: scale(1.2);
  color: #2fbd1a; 
  background-color: #222; 
}

#container-flex {
  display: flex;
  width: 100%;
}

article {
  height: 400px;
}

header {
  background-color: #000;
  display: flex;
  height: 70px;
  padding: 10px 0 20px;
}

nav {
  color: rgb(108, 147, 230);
  display: flex;
  justify-content: flex-end;
  width: 60%;
  padding: 2% 0;
  padding-left: 20%;
}

div {
  display: flex;
  width: 100px;
  height: 25px;
  padding-top: 1.9%;
}

div img {
  display: block;
  width: 100%;
  padding-left: 70%;
}

#ste-croix {
  background: url('../images/ste-croix.jpg') center no-repeat;
  background-size: cover;
  width: 25%;
}

#moudon {
  background: url('../images/moudon.jpg') center no-repeat;
  background-size: cover;
  width: 25%;
}

#lausanne {
  background: url('../images/lausanne.jpg') center no-repeat;
  background-size: cover;
  width: 25%;
}

#orbe {
  background: url('../images/orbe.png') center no-repeat;
  background-size: cover;
  width: 25%;
}

#montreux {
  background: url('../images/montreux.jpg') center no-repeat;
  background-size: cover;
  width: 25%;
}