/* Import des polices */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Alumni+Sans+Inline+One&family=Varela+Round&display=swap");

/* Réinitialisation et styles globaux */
:root {
  --primary: #ec994b;
  --white: #ffffff;
  --bg: #f5f5f5;
  --header-bg: #333333;
  --hover-bg: #09e02d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px pour faciliter les calculs */
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

body {
  font-family: "Varela Round", sans-serif;
  font-size: 1.4rem; /* 14px */
  background-color: #7f8c8d;
  width: 100%;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 1rem;
}

::-webkit-scrollbar-thumb {
  border-radius: 1rem;
  background: #797979;
  transition: all 0.5s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #222224;
}

::-webkit-scrollbar-track {
  background: #f9f9f9;
}

/* Header */
header,
.menu__bar {
  background-color: var(--header-bg);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2%;
  width: 100%;
  position: relative;
  top: 0;
  z-index: 1000;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}
header h1,
.menu__bar h1 {
  font-size: 2rem;
  margin-left: 0rem;
  color: var(--white);
}

header a,
.menu__bar a {
  text-decoration: none;
  color: var(--white);
}

header ul,
.menu__bar ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

header ul li,
.menu__bar ul li {
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  cursor: pointer;
  color: var(--white);
  transition: background 0.3s ease;
}

header ul li:hover,
.menu__bar ul li:hover {
  background: var(--hover-bg);
  border-radius: 20px;
}

/* Dropdowns */
.dropdown,
.dropdown2 {
  position: sticky;
  top: 100%;
  background-color: var(--header-bg);
  visibility: hidden;
  max-height: 24rem;
  overflow-y: auto;
  width: clamp(15rem, 20vw, 20rem);
  border-radius: 0 0 8px 8px;
}

.dropdown {
  left: clamp(0rem, 5vw, 5rem);
}

.dropdown2 {
  left: 0;
}

.menu__bar ul li:hover .dropdown,
.menu__bar ul li:hover .dropdown2,
.dropdown:hover,
.dropdown2:hover {
  visibility: visible;
}

.dropdown ul,
.dropdown2 ul {
  display: block;
  margin: 0;
  padding: 0.5rem;
}

.dropdown ul li,
.dropdown2 ul li {
  padding: 0.8rem 1rem;
  font-size: 1.3rem;
}

.dropdown ul li:hover,
.dropdown2 ul li:hover {
  background: var(--hover-bg);
  border-radius: 8px;
}

/* Section */
section {
  background-color: #045f5f;
  border: 5px solid var(--header-bg);
  padding: clamp(2rem, 5%, 4rem);
  margin: clamp(1rem, 3%, 2rem);
}

/* Titres */
.titre,
.titre2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: clamp(1rem, 2vw, 2rem);
}

.titre h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  box-shadow: 2rem 1.5rem 3.5rem rgba(0, 0, 0, 0.3);
  color: black;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.titre2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

/* Boutons */
.btn1 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--white);
  background-color: black;
  padding: 1rem 2rem;
  margin: 2rem 0 0 1rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  transition: letter-spacing 0.5s;
  border-radius: 70px;
  display: inline-flex;
}

.btn1:hover {
  letter-spacing: 4px;
}

.btn3 li {
  display: inline-block;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white);
}

/* Iframe */
.vision {
	display: block;
	margin: 0 auto;
	width: clamp(30rem, 80%, 50rem);
	height: clamp(20rem, 45vh, 30rem); /* Hauteur responsive entre 20rem et 30rem, basée sur 45% de la hauteur de la fenêtre */
	padding: 1rem;
	aspect-ratio: 16 / 9; /* Maintient un ratio d'aspect standard pour les vidéos */
  margin-top: 2rem;
  margin-bottom: 2rem;
  }

/* Footer */
footer {
  background: var(--header-bg);
  min-height: 10rem;
  padding: clamp(2rem, 5%, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

footer .social_icon,
footer .outil {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

footer .social_icon li a,
footer .outil li a {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--white);
  margin: 0 1rem;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

footer .social_icon li a:hover {
  transform: translateY(-1rem);
}

footer .outil li a {
  opacity: 0.75;
}

footer .outil li a:hover {
  opacity: 1;
}

footer p {
  color: var(--white);
  text-align: center;
  margin: 1.5rem 0 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Player Select */
#player-select {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#player-select button {
  background-color: var(--white);
  border: none;
  color: black;
  margin: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  box-shadow: 2rem 1.5rem 3.5rem rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
}

#player-select button:hover {
  background-color: var(--hover-bg);
  cursor: pointer;
}

#player-select button.active {
  background-color: blue;
  color: var(--white);
}

/* Conteneur principal */
.full-ser-ctrl {
	background: var(--header-bg, #333333);
	display: flex;
	flex-wrap: wrap; /* Permet le retour à la ligne sur petits écrans */
	justify-content: space-between;
	align-items: center;
	color: var(--white, #ffffff);
	padding: clamp(1rem, 2%, 1.5rem); /* Padding adaptatif */
	width: 100%;
	gap: 1rem; /* Espacement entre les éléments */
  margin-bottom: 2rem;
  }
  
  /* Boutons de navigation (précédent/suivant) */
  .ctrl-prev,
  .ctrl-net {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: clamp(8rem, 15vw, 10rem); /* Largeur responsive */
	height: clamp(3.5rem, 6vh, 4rem); /* Hauteur adaptée */
	padding: clamp(0.5rem, 1vw, 0.8rem);
	border-radius: 20px;
	border: 3px solid #ccc;
	background-color: #0404a7;
	color: var(--white, #ffffff);
	font-size: clamp(1.2rem, 2vw, 1.4rem);
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
  }
  
  .ctrl-prev:hover,
  .ctrl-net:hover {
	background-color: var(--header-bg, #333333);
	color: var(--white, #ffffff);
  }
  
  .ctrl-prev.no-active,
  .ctrl-net.no-active {
	visibility: hidden;
  }
  
  /* Sélecteurs de saison et épisode */
  .nav-season-select,
  .nav-episode-select {
	width: clamp(10rem, 20vw, 12rem); /* Largeur plus grande pour meilleure ergonomie */
	height: clamp(3.5rem, 6vh, 4rem); /* Hauteur alignée avec les boutons */
	padding: clamp(0.5rem, 1vw, 0.8rem);
	border-radius: 20px;
	background-color: black;
	color: var(--white, #ffffff);
	font-size: clamp(1.2rem, 2vw, 1.4rem);
	cursor: pointer;
	font-weight: bold;
	text-align: center;
	border: none; /* Suppression de bordure par défaut pour harmonie */
  }
  
  .nav-episode-select.close {
	visibility: hidden;
  }
  
  /* Style pour les éléments <select> à l'intérieur */
  .nav-season-select select,
  .nav-episode-select select {
	width: 100%;
	height: 100%;
	background: black;
	color: var(--white, #eb1414);
	font-size: inherit;
	border: none;
	cursor: pointer;
  border-radius: 20px;
	padding: 0.5rem;
  }

/* Media Queries pour différentes tailles d'écran */

/* Mobile (<480px) */
@media screen and (max-width: 480px) {
  html {
    font-size: 55%; /* Réduit la taille de base pour petits écrans */
  }

  header,
  .menu__bar {
    padding: 1rem;
  }

  header ul li,
  .menu__bar h1 {
    padding: 0.8rem;
    font-size: 1.5rem;
    display: inline-block;
    width: 100%;
  }
  
  header ul,
  .menu__bar ul {
    width: 100%;
    text-align: center;
    display: inline-block;
  }

  header ul li,
  .menu__bar ul li {
    padding: 0.8rem;
    font-size: 1.3rem;
    text-align: center;
    display: inline-block;
  }

  .dropdown,
  .dropdown2 {
    width: 100%;
    left: 0;
  }

  section {
    padding: 1rem;
    margin: 0.5rem;
  }

  .vision {
    width: 100%;
    height: clamp(15rem, 40vh, 20rem); /* Hauteur réduite pour mobile */
  }

  .titre h1 {
    font-size: 1.6rem;
  }

  .btn1 {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .full-ser-ctrl {
    flex-direction: column; /* Empile les éléments verticalement */
    padding: 1rem;
    gap: 0.8rem;
  }

  .ctrl-prev,
  .ctrl-net {
    width: clamp(7rem, 25vw, 9rem); /* Largeur réduite */
    height: clamp(3rem, 5vh, 3.5rem); /* Hauteur réduite */
    font-size: 1.5rem;
  }

  .nav-season-select,
  .nav-episode-select {
    width: clamp(9rem, 30vw, 11rem); /* Largeur adaptée */
    height: clamp(3rem, 5vh, 3.5rem);
    font-size: 1.5rem;
  }
}



/* Tablette (480px - 768px) */
@media screen and (min-width: 480px) and (max-width: 768px) {
  html {
    font-size: 60%;
  }

  header,
  .menu__bar {
    padding: 1.5rem 2%;
  }

  header ul li,
  .menu__bar ul li {
    padding: 0.8rem 1rem;
    font-size: 2.2rem;
  }

  header h1,
  .menu__bar h1 {
    font-size: 1rem;
  }
  section {
    padding: 2rem;
    margin: 1rem;
  }

  .vision {
    width: 90%;
    height: clamp(18rem, 45vh, 25rem); /* Hauteur légèrement plus grande pour tablette */
  }

  .dropdown,
  .dropdown2 {
    width: 20rem;
  }

  .full-ser-ctrl {
    flex-direction: row; /* Reste horizontal */
    padding: 1.2rem;
    gap: 1rem;
  }

  .ctrl-prev,
  .ctrl-net {
    width: clamp(8rem, 18vw, 10rem);
    height: clamp(3.5rem, 6vh, 4rem);
    font-size: 1.3rem;
  }

  .nav-season-select,
  .nav-episode-select {
    width: clamp(10rem, 22vw, 12rem);
    height: clamp(3.5rem, 6vh, 4rem);
    font-size: 1.3rem;
  }
}


/* Desktop (>768px) */
@media screen and (min-width: 769px) {
  html {
    font-size: 62.5%;
  }

  header,
  .menu__bar {
    padding: 1rem 3%;
  }

  section {
    padding: clamp(2rem, 5%, 3rem);
    margin: clamp(1rem, 3%, 2rem);
  }

  .vision {
    width: 70%;
    height: clamp(25rem, 50vh, 35rem); /* Hauteur plus grande pour desktop */
  }

  .full-ser-ctrl {
    padding: clamp(1.5rem, 2%, 2rem);
    gap: 1.2rem;
  }

  .ctrl-prev,
  .ctrl-net {
    width: clamp(9rem, 12vw, 11rem);
    height: clamp(4rem, 7vh, 4.5rem);
    font-size: 1.4rem;
  }

  .nav-season-select,
  .nav-episode-select {
    width: clamp(11rem, 15vw, 13rem);
    height: clamp(4rem, 7vh, 4.5rem);
    font-size: 1.4rem;
  }
}

/* Grands écrans (>1440px) */
@media screen and (min-width: 1440px) {
  html {
    zoom: 1.2;
  }
}

@media screen and (min-width: 2560px) {
  html {
    zoom: 1.5;
  }
}

@media screen and (min-width: 3860px) {
  html {
    zoom: 2;
  }

  .vision {
    width: 70%;
    height: clamp(25rem, 50vh, 35rem); /* Hauteur plus grande pour desktop */
  }
}

a{
	color: white;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	list-style: none;
}
li{
	text-decoration: none;
	color: white;
	text-align: center;
	font-size: 1em;
}