body {
	margin: 0 auto;
	font-family: 'Georgia';
	background-color:rgb(8, 8, 8);
	color:rgb(165, 165, 165);
}

header { /* Bandeau de titre */
	text-align: center;
	width: 100%;
	z-index: 9999; /* Couche (layer) élevée pour que le menu passe devant tous les éléments */
	position: -webkit-sticky;
    position: sticky;
    top: 0;
}

nav{ /* Menu horizontal */
	width: 100%;
	margin: 0 auto;
	background: linear-gradient(#000000, #1b1b1b); /* Dégradé du bandeau de menu */
	padding: 1rem 0;
	z-index: 9999;
}

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

nav ul li{
	float: left;
	width: 25%;
	text-align: center;
	font-family: 'Times New Roman';
}

nav ul::after{
	content: "";
	display: table;
	clear: both;
}

nav a{
	display: block;
	text-decoration: none;
	color: rgb(200, 236, 146);
	border-bottom: 0.125rem solid transparent;
	padding: 0.31rem 0;
}

nav a:hover{
	color: rgb(77, 148, 87);
	border-bottom: 0.125rem solid rgb(44, 66, 49);
}

.sous{ /* Cacher les sous-menus et ne les afficher que lorqu'on passe la souris par dessus l'onglet du menu correspondant */
	visibility: hidden;
	box-shadow: 0 0.06rem 0.125rem rgb(44, 44, 44);
	background-color: black;
	padding-left: 0;
	position: absolute;
	width: 25%;
	z-index: 1000;
	opacity: 0;
	transform: translateY(-5px);
	transition: opacity .5s, visibility .5s, transform .2s;
}
nav > ul li:hover .sous {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.sous li{ /* Les éléments des sous-menus doivent s'afficher les uns en dessous des autres */
	float: none;
	width: 100%;
	text-align: left;
}

.sous a{ /* Mise en forme des onglets des sous-menus */
	padding: 0.625rem;
	border-bottom: none;
}
.sous a:hover{
	border-bottom: none;
	background-color: rgba(200,200,200,0.1);
}

.deroulant > a::after{ /* Symbole ▼ pour faire comprendre que c'est un menu déroulant */
	content: "▼";
	font-size: 0.75rem;
}

.banner {
	height: 60vh; /* 60% de l'écran, même si on rétrécit la fenêtre */
	position: relative; /* Le titre est relatif à la bannière, donc il apparaît dessus et ne pousse pas la vidéo quand il s'écrit */
	overflow: hidden; /* Si la fenêtre est trop petite et on ne voit pas la bannière en entier, on ne verra pas le débordement */
	cursor: pointer;
}

.banner_container { /* Titre sur la vidéo */
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.banner_video {
	object-fit: cover;
	height: 100%;
	width: 100%;

	position: absolute;
	top: 0;
	left: 0;
}

#typewriter {
	font-family: 'Roboto Mono';
	font-size: 5rem;
}
	
.banner_content {
	position: relative;
	font-size: 4rem;
	color: #fff;
}

.titlelink {
	text-decoration: none;
}

.container {
	width: 90%;
	max-width: 75rem;
	margin: 0 auto;
}

p {
	max-width: 65.625rem;
}

.center {
	max-width: 56.25rem;
	margin-right: auto;
	margin-left: auto;
}

.section {
	padding: 2rem 0;
}

.section:nth-child(2n) {
	background-color:rgb(8, 8, 8);
} 

.section_title {
  font-size: 1.8rem;
  text-align: center;
}

.cvsr {
	display:flex;
	margin-bottom: 1.69rem;
}

#cliche {
	margin-top: 1.125rem;
	margin-left: auto;
	margin-right: auto;
	color:#aaaaaa;
	text-align: center;
}

#realite {
	margin-top: 1.125rem;
	margin-left: 5.31rem;
	margin-right: auto;
	color:#aaaaaa;
	text-align: center;
}

.cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.card {
	border: 0.06 solid black;
	flex: 0 1 calc(25% - 1em);
	position: relative;
	transition: all .5s ease-in;
}

.card_image {
	display: block;
	width: 100%;
	height: auto;
}

.card_overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	visibility: none;
	transition: .5s ease;
	background-color: rgba(0,0,0,.5);
	display: flex;
	align-items: center;
	justify-content: center;
  }

  .card:hover .card_overlay {
	opacity: 1;
  }

  .overlay_text {
	color: rgb(202, 202, 202);
	font-size: 1.25rem;
	text-align: center;
  }

.card_title {
	margin: .5rem 0;

}

.card_img img {
	width: 100%;
}

.autres_types {
	font-weight: bold;
	color:rgb(209, 209, 209);
}

#greenhat {
	color:rgb(15, 201, 15);
}

#redhat {
	color: red;
}

#bluehat {
	color: rgb(0, 102, 255);
}

#purplehat {
	color: purple;
}

.definition {
	font-weight: bold;
	text-decoration: underline;
	color:rgb(206, 206, 206);
	cursor:pointer;
}

.hacker_name {
	font-size: 1.56rem;
	color:rgb(221, 221, 221);
	margin-bottom: 0.94rem;
}

.exemple {
	display: flex;
	margin-bottom: 2.625rem;
}

.imghacker {
	width: 18.75rem;
	display:block;
	object-fit: contain;
	align-self: flex-start;
}

.hacker_text {
	margin-right: 3.125rem;
	margin-left: 2.813rem;
}

.sous_partie {
	font-size: 1.5rem;
	margin-bottom: -0.125rem;
}

.sous_sous_partie {
	font-size: 1.1rem;
	margin: -0.3rem 0;
	font-style: italic;
}

.question_title {
	font-size: 1.05rem;
	margin: -0.3rem 0 -0.8rem 0;
	font-style: bold;
}

.ressource {
	color:rgb(63, 196, 63);
}
.ressource:hover {
	color:rgb(30, 87, 30);
}