 body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	height: 100vh;
	background-color: black;
	overflow: hidden;
}

/* Menu des catégories */
#categories-container {
	width: 45%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	background-color: white;
	transition: width 0.6s, height 0s;
}

/* Lecteur YouTube */
#player-container {
	width: 55%;
	height: 100%;
	position: fixed;
	top: 0;
	right: 0;
/*	display: flex;*/
	justify-content: center;
	align-items: center;
	background-color: black;
/*	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
	transition: width 0.6s, height 0s;
/*	transition: width 0.6s, height 0.6s;*/
}

#youtubePlayer {
	width: 100% !important;
	height:100% !important;
}

#controls-container {
	color: white;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour les contrôles */
	padding: 10px;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1; /* Assurez-vous que les contrôles sont au-dessus de la vidéo */
}
  @supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .checkbox-wrapper-14 input[type=checkbox] {
      --active: #275EFE;
      --active-inner: #fff;
      --focus: 2px rgba(39, 94, 254, .3);
      --border: #BBC1E1;
      --border-hover: #275EFE;
      --background: #fff;
      --disabled: #F6F8FF;
      --disabled-inner: #E1E6F9;
      -webkit-appearance: none;
      -moz-appearance: none;
      height: 21px;
      outline: none;
      display: inline-block;
      vertical-align: top;
      position: relative;
      margin: 0;
      cursor: pointer;
      border: 1px solid var(--bc, var(--border));
      background: var(--b, var(--background));
      transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    }
    .checkbox-wrapper-14 input[type=checkbox]:after {
      content: "";
      display: block;
      left: 0;
      top: 0;
      position: absolute;
      transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
    }
    .checkbox-wrapper-14 input[type=checkbox]:checked {
      --b: var(--active);
      --bc: var(--active);
      --d-o: .3s;
      --d-t: .6s;
      --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
    }
    .checkbox-wrapper-14 input[type=checkbox]:disabled {
      --b: var(--disabled);
      cursor: not-allowed;
      opacity: 0.9;
    }
    .checkbox-wrapper-14 input[type=checkbox]:disabled:checked {
      --b: var(--disabled-inner);
      --bc: var(--border);
    }
    .checkbox-wrapper-14 input[type=checkbox]:disabled + label {
      cursor: not-allowed;
    }
    .checkbox-wrapper-14 input[type=checkbox]:hover:not(:checked):not(:disabled) {
      --bc: var(--border-hover);
    }
    .checkbox-wrapper-14 input[type=checkbox]:focus {
      box-shadow: 0 0 0 var(--focus);
    }
    .checkbox-wrapper-14 input[type=checkbox]:not(.switch) {
      width: 21px;
    }
    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):after {
      opacity: var(--o, 0);
    }
    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):checked {
      --o: 1;
    }
    .checkbox-wrapper-14 input[type=checkbox] + label {
      display: inline-block;
      vertical-align: middle;
      cursor: pointer;
      margin-left: 4px;
    }

    .checkbox-wrapper-14 input[type=checkbox]:not(.switch) {
      border-radius: 7px;
    }
    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):after {
      width: 5px;
      height: 9px;
      border: 2px solid var(--active-inner);
      border-top: 0;
      border-left: 0;
      left: 7px;
      top: 4px;
      transform: rotate(var(--r, 20deg));
    }
    .checkbox-wrapper-14 input[type=checkbox]:not(.switch):checked {
      --r: 43deg;
    }
    .checkbox-wrapper-14 input[type=checkbox].switch {
      width: 38px;
      border-radius: 11px;
    }
    .checkbox-wrapper-14 input[type=checkbox].switch:after {
      left: 2px;
      top: 2px;
      border-radius: 50%;
      width: 17px;
      height: 17px;
      background: var(--ab, var(--border));
      transform: translateX(var(--x, 0));
    }
    .checkbox-wrapper-14 input[type=checkbox].switch:checked {
      --ab: var(--active-inner);
      --x: 17px;
    }
    .checkbox-wrapper-14 input[type=checkbox].switch:disabled:not(:checked):after {
      opacity: 0.6;
    }
  }

  .checkbox-wrapper-14 * {
    box-sizing: inherit;
  }
  .checkbox-wrapper-14 *:before,
  .checkbox-wrapper-14 *:after {
    box-sizing: inherit;
  }
/*
#controls-container label {
	margin: 0 10px;
	cursor: pointer;
	color: white;
}

#controls-container input[type="checkbox"] {
	margin-right: 5px;
}
*/

/* Configuration pour les écrans étroits (portrait) */
@media (max-aspect-ratio: 4/3) {
	body {
		flex-direction: column;
		height: 100vh;
	}
	#categories-container {
		width: 100%;
		height: 55vh;
		overflow-y: auto;
		box-sizing: border-box;
		transition: width 0s, height 0.6s;
	}
	#player-container {
		order: -1;
		width: 100%;
		height: 45vh;
		position: relative;
		transition: width 0s, height 0.6s;
	}
}

/* Onglets */
#tabs {
	display: flex;
	background-color: #2c3e50;
	padding: 10px 0;
}

.tab {
	flex: 1;
	text-align: center;
	padding: 10px;
	cursor: pointer;
	color: white;
	transition: background-color 0.3s;
}

.tab.active {
	background-color: #2980b9;
}

/* Contenu des catégories */
.categories-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: none;
	margin-bottom: 30px;
}

.categories-content.active {
	display: block;
}

h1 {
	margin-top: 0;
	font-size: 1.5em;
	margin-bottom: 10px;
}

.category {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 20px;
	background-color: #f9f9f9;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category h2 {
	color: #2c3e50;
	border-bottom: 2px solid #ecf0f1;
	padding-bottom: 5px;
	font-size: 1.2em;
	margin-bottom: 5px;
}

.category h3 {
	font-size: 1em;
	margin-bottom: 5px;
}

.category a {
	display: block;
	margin: 5px 0;
	color: #2980b9;
	text-decoration: none;
}

.category a:hover {
	text-decoration: underline;
}

.spectacle {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 20px;
	background-color: #f9f9f9;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spectacle h2 {
	color: #2c3e50;
	border-bottom: 2px solid #ecf0f1;
	padding-bottom: 5px;
	font-size: 1.2em;
	margin-bottom: 5px;
}

.spectacle h3 {
	font-size: 1em;
	margin-bottom: 5px;
}

.spectacle a {
	display: block;
	margin: 5px 0;
	color: #2980b9;
	text-decoration: none;
}
.star {
	margin-left:8px;
}

.spectacle a:hover {
	text-decoration: underline;
}

iframe {
	width: 90%;
	height: 90%;
	border: none;
}

#filter-container {
    display: flex; /* Met tous les groupes sur une seule ligne */
    justify-content: center; /* Centre les groupes horizontalement */
    align-items: center; /* Aligne verticalement les groupes */
    gap: calc(1% + 5px); /* Espacement entre chaque groupe */
}

.filter-group {
	display: flex;
	justify-content: center;
	align-items: center; /* Aligne verticalement les groupes */
}

.filter-star {
    font-size: 24px;
    color: gray;
    cursor: pointer;
    user-select: none;
    margin-bottom: 4px;
}

#figure-count {
	font-size: 16px;
	font-weight: bold;
    color: black;
}

#force-filter .filter-star.active {
    color: #f7dc6f;
}

#souplesse-filter .filter-star.active {
    color: #5dade2;
}

#technicite-filter .filter-star.active {
    color: #7dcea0;
}

