@import url('https://fonts.googleapis.com/css?family=Saira+Extra+Condensed');

@media only screen and (max-width: 320px) {
body {
font-size: 5em;
}
}

body {
font-family: 'Saira Extra Condensed';
  text-align: center;

}

section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-size: cover;
  box-sizing: border-box;
  height: 40vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

h1 {
	font-size: 4vw;
	text-transform: uppercase;
}

h2 {
	font-size: 2.5vw;
	text-transform: uppercase;
}

p {
    letter-spacing: 1px;
    font-size: 2.5vmin;
	margin-left: 15%;
  	margin-right: 15%;
}

#titre > div {
	background-color: black;
}

img {
	margin: 10px;
	width: 20%;
}
 
li {
	width: 300px;
    font-size: 2.5vmin;
    display: table-cell;
}

video {
  overflow: hidden;
  z-index: -1;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}



@media screen and (max-device-width: 480px) {
		video { display: none; }
        p { font-size: 3vh; }
        h1 { font-size: 3vh; }
        h2 { font-size: 3vh; }
        section { height: 80%; }
}

	}
@media screen and (max-width: 480px) {
	video { display: none; }
}





/* 1. Pas de support d'object-fit */
@media (min-aspect-ratio: 16/9) {
video {
    height: 300%;
    top: -100%;
  }
}
@media (max-aspect-ratio: 16/9) {
video {
    width: 300%;
    left: -100%;
  }
}
/* 2. En cas de support d'object-fit, écrase les règles en (1) */
@supports (object-fit: cover) {
video {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
  }
}

section:first-of-type {
  font-size: 60px;
  color: white;
  height: 100vh;
}

section:nth-of-type(even) {
	background: white;
	height: 100vh;
}

section:nth-of-type(3) {
	background-image: url('img/font1.jpg');
	margin-right: 20%;
}

section:nth-of-type(5) {
	background-image: url('img/font2.jpg');
}

section:nth-of-type(7) {
	background-image: url('img/font3.jpg');
	margin-left: 20%;
}

section:nth-of-type(9) {
	background-image: url('img/font4.jpg');
}