/* --------- Polices d'écriture ---------- */

@font-face {
	font-family: "Andale Mono";
	src: url("../fonts/andale_mono") format("truetype");
}

@font-face {
	font-family: "Personal Services";
	src: url("../fonts/personal_services") format("truetype");
}


/* ------------- Par défaut -------------- */

body {
	background-color: black;
	margin: 0;
	font-family: Arial;
}

/* Anti copie d'image */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Réinitialise paramètres float */
.fin_section {
	clear: both;
}

/* Lien vers une section plus marge top nav */
.lien_section {
  position: absolute;
  margin-top: -52px;
}


/* ------- Animation d'apparition -------- */

/* Animation */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* État initial caché */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1s, transform 1s;
}

/* État final visible */
.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Adapte le div au contenu */
.fit-content {
	display: inline-block;
}


/* --------- Barre de navigation --------- */

/* Fond barre de navigation */
.barre_nav {
	position: fixed;
	z-index: 500;
	top: 0;
	width: 100vw;
	overflow: hidden;
	background-color: rgba(28, 28, 30, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-family: Andale Mono, Arial;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.barre_nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0.5px);
}

/* Lien barre de navigation */
.barre_nav a {
	float: left;
	display: block;
	color: #f2f2f2;
	text-align: center;
	text-decoration: none;
	font-size: 17px;
}

/* Logo dans la navigation */
.logo_site {
	padding: 0 16px;
	margin-top: 12px;
	height: 30px;
}

/* Texte navigation */
.lien_nav {
	padding: 0 16px;
}

/* Lien barre de nav - pointeur dessus */
.barre_nav a:hover {
	color: gray;
}

/* Lien actif barre de nav */
.barre_nav a.active {
	color: red;
}

/* Groupe d'icones réseaux sociaux barre de nav */
.icon-bar {
	float: right;
	margin-right: 10px;
}

/* Icone réseaux sociaux barre de nav */
.social {
	padding: 16.9px 9px;
	width: 17px;
}

/* Séparateur */
a.separator {
	padding: 16.9px 9px;
	width: 17px;
	color: grey;
}

/* Menu hamburger */
.menu-toggle {
	display: none;
	position: absolute;
	right: 0;
	top: 0;
	padding: 12px 19px;
	width: 22px;
}

/* Linge menu hamburger */
.menu-toggle span {
	display: block;
	background: white;
	height: 2px;
	width: 100%;
	margin: 6px 0;
	border-radius: 5px;
	transition: all 0.3s ease;
}

/* Transformation - menu hamburger */
.menu-toggle.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}


/* ------ Barre secondaire - pilule ------ */

/* Groupe barre de nav secondaire */
.sous_nav_grp {
	font-family: Andale Mono, Arial;
	display: flex;
	justify-content: center;
	position: sticky;
	top: 70px;
}

/* Barre de nav secondaire */
.sous_nav {
	float: left;
	background-color: rgba(28, 28, 30, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 10em;
	text-align: center;
	color: grey;
	padding: 1em;
	box-shadow: 
		inset 0.1px 0.1px 2px rgba(255, 255, 255, 0.5), /* bevel */
		0 4px 6px rgba(0, 0, 0, 0.5); /* shadow */
}


/* ------------ Corps de page ------------ */

/* Titre principal */
h1 {
	text-align: center;
	margin-top: 8vw;
	font-size: 6vw;
	color: #AE1D0F;
	text-transform: uppercase;
}

/* Sous-titres - categories */
h2 {
	text-align: center;
	color : white;
	font-family: Andale Mono, Arial;
	font-size: 3vw;
	margin-top: 5vw;
}

/* Image Full Frame */
.bandeau {
	width: 100%;
	margin: 0;
}

/* Double image */
.double_photo {
	float: left;
	width: 50%;
	margin: 0;
}


/* ------------- Bas de page ------------- */

/* Flèche retour haut de page */
.fleche_haut_page {
	float: right;
	margin-right: 5vw;
	display: block;
	font-size: 4vw;
	text-decoration: none;
	color: white;
}

.fleche_haut_page:hover {
	opacity: .5;
}

/* copyright */
footer {
	float: left;
	width: 60%;
	margin-left: 20%;
	text-align: center;
	font-family: Andale Mono;
	font-size: 1vw;
	line-height: 2.3vw;
	color : white;
	padding: 1vw;
}

footer a {
	text-decoration: none;
	color: gray;
}

/* ------------ Pop-Up vidéo ------------- */
.popup {
	display: none;
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 0;
	z-index: 500;
	background-color: rgba(0, 0, 0 , 0.7);
}

.popup iframe {
	position: fixed;
	top: 53vh;
	left: 50vw;
	transform: translate(-50%, -50%);
	width: 80vw;
	height: 45vw;
	border-radius: 14px;
	border: none;
}

#closePopup {
	position: absolute;
	padding-left: 11px;
	padding-right: 11px;
	top: 53vh;
	left: 50vw;
	transform: translate(-50%, -50%) translate(42vw, -24.5vw);
	font-size: 40px;
	cursor: pointer;
	color: white;
}

#closePopup:hover {
	color: grey;
}


/* ----------- Version mobile ------------ */

/* ---- Barre de navigation ---- */

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

  /* Lien sauf logo barre */
  .barre_nav a:not(:first-child) {
    display: none;
  }

  /* Lien avec logo barre */
  .barre_nav a {
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
  }

  /* Icone menu déroulant */
  .menu-toggle  {
    display: block;
  }

  /* Lien barre de navigation - ouvert */
  .barre_nav.responsive a {
    float: none;
    display: block;
  }

  /* Texte navigation */
  .lien_nav {
    padding: 0;
    margin: 8.95vh;
    font-size: 3vh;
    font-family: Andale Mono;
  }

  /* Groupe réseaux sociaux */
	.icon-bar {
    float: none;
		display: flex;
    margin-left: 20vw;
    margin-right: 20vw;
	}

  /* Lien - pointeur dessus */
  .barre_nav a:hover {
    color: white;
  }

  /* Lien actif - pointeur dessus */
  .barre_nav a.active:hover {
    color: red;
  }
}


/* ------- Corps de page ------- */

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

  /* Titre principal */
  h1 {
    margin-top: 20vw;
    font-size: 10vw;
  }

  /* Sous-titres - categories */
  h2 {
    margin-top: 10vw;
  }

  /* À supprimer sur téléphone */
  #mobile_suppr {
    display: none;
  }

  /* Flèche retour haut de page - seulement sur ordinateur */
    .fleche_haut_page {
    display: none;
  }

  /* Copyright */
  footer {
    margin-left: 10vw;
    width: 80vw;
    font-size: 1.8vw;
    line-height: 4vw;
  }

  /* Pop-Up vidéo */

  #closePopup {
    transform: translate(-100%, -100%) translate(11px, 0) translate(40vw, -22.5vw);
  }
}