/*================================*/
/* == VARIABLES ET RESPONSIVE ====*/
/*================================*/
@media (max-width:800px){ .pc{display:none;} }
@media (min-width:801px){ .mob{display:none;} }

:root {
	--fond-grille: rgb(60,0,80);
	--rose-fluo: rgb(255,0,180);
	--jaune-canari: rgb(255,239,0);
	--orange: rgb(250,60,70);
	--saumon: rgb(200,110,200);
	--violet: rgb(129,0,162);
	--halo: rgba(255,150,50,0.4);
	--rose: #d5007f;
	--violet-fonce: #0a004d;
}

/*================================*/
/* == ÉLÉMENTS GLOBAUX ===========*/
/*================================*/

html, body {
	margin: 0;
	height: 100%;
	background: var(--violet);
}
body > * {
	max-width: 100%;
}
a {
	color: var(--orange);
	font-size: 1.1em;
	font-weight: bold;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/*================================*/
/* == DÉCOR GLOBAL (SOLEIL/GRILLE/TRIANGLES) == */
/*================================*/

/* === Conteneur général décor === */
#deco_global {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

/* === Soleil === */
.sun {
	position: absolute;
	z-index: 0;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 50vh;
	height: 50vh;
	border-radius: 50%;
	background:
		linear-gradient(to bottom,
			var(--jaune-canari) 0%,
			var(--orange) 40%,
			var(--saumon) 100%),
		linear-gradient(to bottom,
			transparent 0%,
			transparent 30%,
			var(--violet) 30%,
			var(--violet) 33%,
			transparent 33%,
			transparent 41%,
			var(--violet) 41%,
			var(--violet) 45%,
			transparent 45%,
			transparent 53%,
			var(--violet) 53%,
			var(--violet) 58%,
			transparent 58%,
			transparent 66%,
			var(--violet) 66%,
			var(--violet) 71%,
			transparent 71%,
			transparent 79%,
			var(--violet) 79%,
			var(--violet) 84%,
			transparent 84%,
			transparent 92%,
			var(--violet) 92%,
			var(--violet) 97%,
			transparent 97%,
			transparent 100%
		);
	background-blend-mode: overlay;
	box-shadow: 0 0 30px 10px var(--halo);
}

/* === Grille synthwave === */
.grid {
	position: absolute;
	z-index: 50;
	left: 50%;
	top: 50%;
	width: 220vw;
	height: 130vh;
	transform-origin: 50% 0;
	transform: translateX(-50%) perspective(391px) rotateX(60deg);
	background:
		repeating-linear-gradient(90deg,
			var(--rose-fluo) 0 2px,
			transparent 2px 80px),
		repeating-linear-gradient(0deg,
			var(--rose-fluo) 0 2px,
			transparent 2px 80px),
		var(--fond-grille);
	background-size: 80px 80px;
	animation: gridmove 3s linear infinite;
	overflow-x: hidden;
	max-width: 200%;
}

@keyframes gridmove {
	from { background-position: 0 0, 0 0, 0 0; }
	to { background-position: 0 80px, 0 80px, 0 0; }
}

/* === Ligne supérieure de la grille === */
.grid_top {
	position: absolute;
	z-index: 100;
	top: 50%;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--orange);
	box-shadow:
		0 0 18px 6px var(--orange),
		0 0 40px 5px var(--orange);
	animation: pulse 3s ease-in-out infinite;
}
.grid_top::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center,
		rgba(255,120,0,0.8) 0%,
		rgba(255,120,0,0.3) 40%,
		rgba(255,120,0,0.05) 70%,
		transparent 100%);
}
@keyframes pulse {
	2%, 12% {
		box-shadow: 0 0 18px 6px var(--orange),
		0 0 40px 5px var(--orange);
	}
	7% {
		box-shadow: 0 0 20px 8px var(--orange),
		0 0 45px 10px var(--orange);
	}
}

/* === Triangles décoratifs === */
.triangle {
	position: absolute;
	bottom: 50%;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	background: linear-gradient(to bottom right, var(--rose-fluo) 0%, rgb(113,2,2) 100%);
}
.triangle::after {
	content: "";
	position: absolute;
	inset: 0;
	clip-path: polygon(50% 0, 53% 18%, 51% 36%, 58% 44%, 52% 53%, 83% 100%, 0 100%);
	background: var(--violet-fonce);
}
.triangle::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: transparent;
}

/* === Disposition des triangles === */
.t1  { left: calc(50% - 900px); width: 400px; height: 240px; z-index: 0; }
.t2  { left: calc(50% - 650px); width: 400px; height: 290px; z-index: 1; }
.t3  { left: calc(50% - 730px); width: 380px; height: 230px; z-index: 0; }
.t4  { left: calc(50% - 520px); width: 320px; height: 250px; z-index: 5; }
.t5  { left: calc(50% - 400px); width: 340px; height: 150px; z-index: 4; }
.t6  { left: calc(50% - 270px); width: 350px; height: 220px; z-index: 2; }
.t7  { left: calc(50% - 20px); width: 200px; height: 150px; z-index: 1; }
.t8  { left: calc(50% + 50px); width: 300px; height: 300px; z-index: 5; }
.t9  { left: calc(50% + 140px); width: 150px; height: 80px; z-index: 6; }
.t10 { left: calc(50% + 270px); width: 300px; height: 230px; z-index: 3; }
.t11 { left: calc(50% + 180px); width: 280px; height: 190px; z-index: 4; }
.t12 { left: calc(50% + 350px); width: 330px; height: 280px; z-index: 2; }
.t13 { left: calc(50%); width: 110px; height: 60px; z-index: 3; }
.t14 { left: calc(50% + 500px); width: 250px; height: 210px; z-index: 1; }
.t15 { left: calc(50% - 750px); width: 300px; height: 200px; z-index: 0; }
.t7, .t8, .t9, .t10, .t11, .t12, .t13, .t14 {
	transform: rotateY(180deg);
}

/*================================*/
/* == LOGO ET MENU ===============*/
/*================================*/

/* === Logo central animé === */
.logo-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 40vh;
	filter: drop-shadow(0 0 25px rgba(200,230,255,0.9))
			drop-shadow(0 0 50px rgba(180,220,255,0.6))
			drop-shadow(0 0 90px rgba(160,210,255,0.4));
	animation: logoFloat 4s ease-in-out infinite alternate;
	z-index: 200;
	pointer-events: auto;
	cursor: pointer;
}
@keyframes logoFloat {
	0% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, calc(-50% - 1.5%)) scale(1.02); }
	100% { transform: translate(-50%, -50%) scale(1); }
}
.logo-center.move-up {
	animation: logoMove 2.5s linear forwards;
}
@keyframes logoMove {
	0% { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.0); }
	100% { top: -15.5%; left: 50%; transform: translate(-50%, 1%) scale(0.2); }
}

/* === Menu principal synthwave === */
.menu-container {
	position: fixed;
	z-index: 190;
	text-align: center;
	font-family: 'Orbitron', sans-serif;
	width: 100vw;
	top: 0;
	left: 0;
}
.menu {
	display: flex;
	gap: 2em;
	align-items: center;
	font-family: 'Orbitron', sans-serif;
	font-size: 1em;
	position: absolute;
	top: 2%;
}
.menu-left { left: 5%; }
.menu-right { right: 5%; }

.menu a {
	color: rgb(0,200,255);
	text-shadow: 0 0 6px rgb(255,0,120);
	text-decoration: none;
	transition: 0.2s;
}
.menu a:hover {
	color: rgb(255,0,120);
	text-shadow: 0 0 8px rgb(0,200,255);
}

/* === Burger mobile === */
.burger-btn {
	position: fixed;
	top: 15px;
	right: 15px;
	width: 35px;
	height: 25px;
	background: none;
	border: none;
	cursor: pointer;
	display: none;
	flex-direction: column;
	justify-content: space-between;
	z-index: 1000;
}
.burger-btn span {
	display: block;
	width: 100%;
	height: 3px;
	background: rgb(255,0,120);
	box-shadow: 0 0 6px rgb(255,0,120);
	transition: 0.3s;
}
.burger-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 60%;
	height: 100%;
	background: rgba(10,10,30,0.95);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2em;
	transition: right 0.3s ease;
	z-index: 900;
}
.burger-menu a {
	color: rgb(0,200,255);
	text-shadow: 0 0 6px rgb(255,0,120);
	text-decoration: none;
	font-family: 'Orbitron', sans-serif;
	font-size: 1.2em;
}
.burger-menu.open { right: 0; }

/* Menu masqué par défaut */
.menu-container, .burger-btn {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}
/* Classe activée après clic logo */
.menu-visible .menu-container,
.menu-visible .burger-btn {
	opacity: 1;
	pointer-events: auto;
}

/*================================*/
/* == FORMULAIRES GÉNÉRAUX ======*/
/*================================*/

.page-content {
	position: relative;
	z-index: 120;
	top: 12%;
	left: 7%;
	width: 86%;
	text-align: center;
	color: rgb(255,255,255);
	font-family: 'Orbitron', sans-serif;
}
.form-register {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	background: rgba(0,0,0,0.6);
	border: 1px solid rgba(255,0,150,0.5);
	padding: 30px 40px;
	border-radius: 8px;
	backdrop-filter: blur(4px);
	box-shadow: 0 0 20px rgba(255,0,150,0.3);
}
.form-register label {
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgb(255,200,255);
}
.form-register input {
	width: 220px;
	padding: 8px;
	border: none;
	border-radius: 4px;
	text-align: center;
	font-family: inherit;
	font-size: 0.9em;
	background: rgba(255,255,255,0.1);
	color: rgb(255,255,255);
	outline: 1px solid rgba(255,0,150,0.4);
}
.form-register input:focus {
	outline-color: rgb(255,0,150);
	background: rgba(255,255,255,0.15);
}
.form-register button {
	margin-top: 10px;
	padding: 10px 25px;
	border: none;
	border-radius: 4px;
	background: linear-gradient(to right, rgb(255,0,150), rgb(0,150,255));
	color: white;
	text-transform: uppercase;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 0 12px rgba(255,0,150,0.4);
	transition: transform 0.2s, box-shadow 0.2s;
}
.form-register button:hover {
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(255,0,150,0.7);
}

/* Messages */
.message-erreur {
	color: rgb(255,100,100);
	background: rgba(0,0,0,0.6);
	display: inline-block;
	padding: 10px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
	box-shadow: 0 0 10px rgba(255,0,0,0.3);
}
.message-succes {
	color: rgb(100,255,150);
	background: rgba(0,0,0,0.6);
	display: inline-block;
	padding: 10px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
	box-shadow: 0 0 10px rgba(0,255,100,0.3);
}
/*================================*/
/* == SECTION : CATALOGUE ========*/
/*================================*/

.catalogue-section {
	padding: 40px 5vw;
	color: rgb(230,230,230);
	margin-bottom: 20px;
}

/* --- Sous-menu / barre d’outils --- */
.catalogue-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 25px;
	background: rgba(0,0,0,0.4);
	padding: 10px 15px;
	border-radius: 8px;
	min-height: 35px;
}
.catalogue-tools input[type="text"] {
	flex: 1;
	padding: 8px 12px;
	border: none;
	border-radius: 4px;
	font-size: 1em;
}
.catalogue-tools button {
	background: rgb(60,120,255);
	color: white;
	border: none;
	border-radius: 4px;
	padding: 8px 14px;
	cursor: pointer;
	transition: background 0.2s;
	margin: 0 auto;
}
.catalogue-tools button:hover {
	background: rgb(80,140,255);
}

/* --- Navigation alphabétique --- */
.letters-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.letters-nav a {
	color: rgb(200,200,255);
	text-decoration: none;
	padding: 4px 6px;
	font-weight: bold;
}
.letters-nav a:hover {
	text-decoration: underline;
}
.letters-nav a.active {
	color: rgb(255,200,100);
	text-decoration: underline;
}

/* --- Compteur catalogue --- */
.catalogue-count {
	font-size: 1.1em;
	font-weight: bold;
	color: rgb(210,210,240);
	margin-top: -10px;
	margin-bottom: 20px;
	text-align: center;
}

/* --- Tableau principal des films --- */
table.catalogue {
	table-layout: fixed;
	width: 100%;
	border-collapse: collapse;
	border-radius: 6px;
}
table.catalogue tr {
	background: rgba(255,255,255,0.2);
}
table.catalogue tr:hover {
	background: rgba(255,255,255,0.4);
	cursor: pointer;
}
table.catalogue th, table.catalogue td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
table.catalogue th {
	background: rgba(0,0,0,0.6);
	color: white;
	cursor: default;
}

/* Largeurs des colonnes */
.catalogue th:first-child { width: 46%; }
.catalogue th:nth-child(2) { width: 7%; }
.catalogue th:nth-child(3) { width: 29%; }
.catalogue th:nth-child(4) { width: 7%; }
.catalogue th:nth-child(5){ width: 11%; }

/* Variante wishlist */
.catalogue_w th:first-child { width: 3% !important; }
.catalogue_w th:nth-child(2) { width: 40% !important; }
.catalogue_w th:nth-child(3) { width: 7% !important; }
.catalogue_w th:nth-child(4) { width: 29% !important; }
.catalogue_w th:nth-child(5) { width: 7% !important; }
.catalogue_w th:nth-child(6){ width: 11% !important; }
.catalogue_w th:nth-child(7){ width: 3% !important; }

/* Film déjà vu */
tr.film-row.vu {
	background: rgba(250,60,70,0.8) !important;
	color: yellow;
}
tr.film-row.vu:hover {
	background: rgba(250,60,70,0.95) !important;
}

/* --- Ligne étendue (détails) --- */
tr.details-row {
	display: none;
	background: rgba(255,153,0,0.4) !important;
}
tr.details-row td { padding: 15px; }

.details-content {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.details-content img {
	width: 120px;
	border-radius: 6px;
}
.details-info { flex: 1; }

.personal-data { margin-top: 10px; }
.personal-data label { margin-right: 15px; }

.personal-data input[type="checkbox"] {
	transform: scale(1.2);
	margin-right: 5px;
}
.personal-data input[type="number"] {
	width: 60px;
	padding: 3px;
}

/* Icône favori */
.favorite {
	font-size: 1.4em;
	color: rgb(255,100,150);
	cursor: pointer;
	user-select: none;
}
.favorite.inactive { color: rgba(255,100,150,0.3); }

/* --- Messages catalogue --- */
.catalogue-message {
	padding: 10px 15px;
	margin: 10px 0 20px 0;
	border-radius: 6px;
	font-weight: bold;
	text-align: center;
	display: inline-block;
	animation: fadeOut 5s ease forwards;
}
.msg-success {
	background: rgba(50,200,50,0.6);
	color: rgb(100,255,100);
	border: 1px solid rgb(50,200,50);
}
.msg-warning {
	background: rgba(255,200,50,0.6);
	color: rgb(255,220,100);
	border: 1px solid rgb(255,200,50);
}
.msg-error {
	background: rgba(255,80,80,0.8);
	color: rgb(255,255,255);
	border: 1px solid rgb(255,80,80);
}
@keyframes fadeOut {
	0% { opacity: 1; }
	80% { opacity: 1; }
	100% { opacity: 0; display: none; }
}

/*================================*/
/* == SECTION : AJOUT DE FILM === */
/*================================*/

.ajouter-section {
	padding: 40px 5vw;
	color: rgb(230,230,230);
}

/* Recherche TMDB */
.tmdb-search {
	position: relative;
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	background: rgba(0,0,0,0.4);
	padding: 10px 15px;
	border-radius: 8px;
}
.tmdb-search input[type="text"] {
	flex: 1;
	padding: 8px 12px;
	border-radius: 4px;
	border: none;
	font-size: 1em;
}
.tmdb-search button {
	background: rgb(60,120,255);
	color: white;
	border: none;
	border-radius: 4px;
	padding: 8px 14px;
	cursor: pointer;
}
.tmdb-search button:hover { background: rgb(80,140,255); }

/* Résultats TMDB */
.tmdb-results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
	gap: 20px;
}
.tmdb-card {
	background: rgba(0,0,0,0.6);
	padding: 15px;
	border-radius: 8px;
	display: flex;
	gap: 15px;
	align-items: flex-start;
}
.tmdb-card img {
	width: 90px;
	border-radius: 4px;
}
.tmdb-info h3 {
	margin: 0;
	font-size: 1.1em;
	color: rgb(200,220,255);
}
.tmdb-info p {
	font-size: 0.9em;
	margin: 5px 0;
}
.tmdb-info form { margin-top: 10px; }

.tmdb-info button {
	background: rgb(100,200,100);
	color: black;
	border: none;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
}
.tmdb-info button:hover { background: rgb(120,220,120); }

/* État enregistré */
.tmdb-card.enregistre {
	background: rgba(255,255,255,0.7);
	color: black;
}
.tmdb-card.enregistre .tmdb-info h3 {
	color: rgb(40,40,40);
}
.tmdb-info button.btn-enregistre {
	background: rgb(255,140,0);
	color: white;
	border: none;
	border-radius: 4px;
	padding: 6px 10px;
	font-weight: bold;
	cursor: default;
	opacity: 0.9;
}
.tmdb-info button.btn-ajouter {
	background: rgb(100,200,100);
	color: black;
	border: none;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
}
.tmdb-info button.btn-ajouter:hover { background: rgb(120,220,120); }

/*================================*/
/* == SECTION : NOTES ÉTOILES === */
/*================================*/

.note-stars {
	position: relative;
	width: 100px;
	height: 20px;
	background: url("img/note.png") no-repeat center/cover;
	overflow: hidden;
}
/* Calque coloré proportionnel à la note */
.note-stars::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: var(--note, 0%);
	background: linear-gradient(to right, rgba(255,204,0,0.6), rgba(255,204,0,0.8));
	mask-image: url("img/note.png");
	mask-repeat: no-repeat;
	mask-size: cover;
	mask-position: left;
	-webkit-mask-image: url("img/note.png");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: cover;
	-webkit-mask-position: left;
}
/*================================*/
/* == SECTION : SÉANCES / AJOUT VUE ==*/
/*================================*/

/* == Formulaire ajout de vue == */
.form-vue {
	max-width: 600px;
	margin: 40px auto;
	padding: 30px 40px;
	background: rgba(0, 0, 0, 0.7);
	border: 2px solid rgb(200, 0, 0);
	border-radius: 10px;
	color: white;
	font-family: sans-serif;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Conteneur de chaque ligne (label + input alignés) */
.input-block {
	display: grid;
	grid-template-columns: 40% 60%;
	align-items: center;
}

/* Label à gauche */
.input-block label {
	text-align: right;
	margin-right: 15px;
	font-weight: bold;
}

/* Champs à droite */
.input-block input,
.input-block select {
	width: 100%;
	padding: 8px 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgb(150, 0, 0);
	color: white;
	border-radius: 4px;
}

/* Checkboxs participants */
.input-block input[type="checkbox"] {
	width: auto;
	margin-right: 6px;
	accent-color: rgb(200, 0, 0);
}
.input-block label input[type="checkbox"] {
	margin-left: 5px;
}

/* Bouton soumission */
.form-vue button[type="submit"], .table-vues .btn {
	margin-top: 10px;
	padding: 10px 25px;
	border: none;
	border-radius: 4px;
	background: linear-gradient(to right, rgb(255, 0, 150), rgb(0, 150, 255));
	color: white;
	text-transform: uppercase;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 0 12px rgba(255, 0, 150, 0.4);
	transition: transform 0.2s, box-shadow 0.2s;
}
.form-vue button[type="submit"]:hover, .table-vues .btn:hover {
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(255, 0, 150, 0.7);
}

/* Zone texte libre */
.form-vue textarea {
	resize: vertical;
	padding: 8px;
	border-radius: 5px;
	border: 1px solid rgba(255,255,255,0.2);
	min-height: 120px;
}

/* ===== Range personnalisé ===== */
.form-vue input[type="range"] {
	-webkit-appearance: none;
	width: 100%;
	height: 10px;
	border-radius: 5px;
	background: linear-gradient(to right, rgb(255,100,150), rgb(255,200,0));
	outline: none;
	cursor: pointer;
	transition: filter 0.2s;
}
.form-vue input[type="range"]:hover { filter: brightness(1.2); }

/* Pistes et curseurs */
.form-vue input[type="range"]::-webkit-slider-runnable-track,
.form-vue input[type="range"]::-moz-range-track {
	height: 10px;
	border-radius: 5px;
	background: linear-gradient(to right, rgb(255,100,150), rgb(255,200,0));
}
.form-vue input[type="range"]::-webkit-slider-thumb,
.form-vue input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgb(255,255,255);
	border: 3px solid rgb(255,100,150);
	box-shadow: 0 0 10px rgba(255,100,150,0.7);
	transition: all 0.2s;
}
.form-vue input[type="range"]:active::-webkit-slider-thumb,
.form-vue input[type="range"]:active::-moz-range-thumb {
	transform: scale(1.2);
	box-shadow: 0 0 15px rgba(255,200,0,0.9);
	border-color: rgb(255,200,0);
}

/* Titres et labels */
.form-vue label,
.emotion-block label {
	font-weight: bold;
	color: white;
	letter-spacing: 0.5px;
}

/* Séparateurs */
.form-vue hr {
	width: 100%;
	border: none;
	height: 2px;
	background: linear-gradient(to right, rgb(255,100,150), rgb(255,200,0));
	border-radius: 2px;
	margin: 20px 0;
	box-shadow: 0 0 6px rgba(255,180,120,0.6);
	opacity: 0.8;
}

/* == Correction menus déroulants == */
.input-block select {
	background: rgba(0, 0, 0, 0.6);
	color: white;
	border: 1px solid rgb(150, 0, 0);
}
.input-block select option {
	background: rgba(0, 0, 0, 0.9);
	color: white;
}
.input-block select:focus {
	outline: none;
	box-shadow: 0 0 4px rgb(200, 0, 0);
}

/* == Uniformisation des champs == */
.input-block input[type="text"],
.input-block input[type="date"],
.input-block select {
	box-sizing: border-box;
	width: 100%;
	padding: 8px 10px;
}

/* Icône calendrier */
input[type="date"]::-webkit-calendar-picker-indicator {
	margin-right: -4px;
	filter: invert(1);
	opacity: 0.8;
}
input[type="date"] {
	appearance: none;
	-moz-appearance: none;
	background: rgba(0, 0, 0, 0.6);
	color: white;
}
.input-block input:focus,
.input-block select:focus {
	outline: none;
	box-shadow: 0 0 4px rgb(200, 0, 0);
}

/* == Participants alignés == */
.participants-block { align-items: flex-start; }
.participants-block .participants-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 15px;
	padding-left: 10px;
}
.participant-item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: white;
	font-size: 0.95em;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	padding: 4px 8px;
	border-radius: 4px;
}
.participant-item input[type="checkbox"] {
	accent-color: rgb(200, 0, 0);
	transform: scale(1.1);
}

/* == Tableau dernières vues == */
.dernieres-vues {
	width: 90%;
	max-width: 800px;
	margin: 50px auto;
	color: white;
	overflow: hidden;
}
.dernieres-vues h2 {
	text-align: center;
	margin-bottom: 15px;
	border-bottom: 2px solid rgb(200, 0, 0);
	padding-bottom: 5px;
}
.table-vues {
	width: 100%;
	border-collapse: collapse;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(200, 0, 0, 0.5);
	margin-bottom: 20px;
}
.table-vues th,
.table-vues td {
	padding: 10px 12px;
	text-align: center;
	border: 1px solid rgba(200, 0, 0, 0.3);
}
.table-vues th {
	background: rgba(200, 0, 0, 0.6);
	font-weight: bold;
}
.table-vues tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.05);
}

/*================================*/
/* == SECTION : NOTATION =========*/
/*================================*/

/* Émotions */
.emotions {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 10px;
}
.emotion-block {
	flex: 1 1 200px;
	text-align: center;
}
.emotion-block .icons {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 5px;
}
.emotion-block img {
	width: 40px;
	height: 40px;
	opacity: 0.3;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
}
.emotion-block img.active {
	opacity: 1;
	transform: scale(1.05);
}
.emotion-block label { font-weight: bold; }

/* Cellules émotion */
.emotions-cell {
	display: flex;
	gap: 6px;
	justify-content: center;
	align-items: center;
}
.emo-icon img {
	width: 20px;
	height: 20px;
	opacity: 0.9;
	filter: drop-shadow(0 0 3px rgba(255,255,255,0.4));
}

/* Ligne note générale */
.note-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.note-line label {
	flex: 0 0 120px;
	text-align: right;
}
.note-line input[type="range"] {
	flex: 1;
	min-width: 180px;
}
.note-line output {
	font-weight: bold;
	text-align: center;
}

/* Lignes notes / avis */
.ligne-note {
	cursor: pointer;
	transition: background-color 0.2s;
}
.ligne-note:hover {
	background-color: rgba(255,255,255,0.1);
}
.avis-cache {
	display: none;
	background-color: rgba(255,255,255,0.05);
}
.avis-cache.visible { display: table-row; }
.avis-texte {
	margin: 10px 0;
	padding: 8px 12px;
	font-style: italic;
	color: rgba(255,255,255,0.9);
}
.avis-vide { color: rgba(255,255,255,0.5); }

/* Modifications / icônes */
.col-modif { text-align: center; width: 40px; }
.mod-icon {
	width: 22px;
	height: 22px;
	opacity: 0.8;
	transition: opacity 0.2s, transform 0.2s;
}
.mod-icon:hover {
	opacity: 1;
	transform: scale(1.1);
}

/* Mini tableau notes utilisateurs */
.mini-notes {
	background-color: rgba(255, 180, 100, 0.6);
	border-collapse: collapse;
	margin-bottom: 6px;
	font-size: 0.8em;
}
.mini-notes td {
	padding: 2px 6px;
	border: 1px solid rgba(0,0,0,0.4) !important;
	color: black;
	font-weight: bold;
}
.mini-notes tr:nth-child(odd) {
	background-color: rgba(255,255,255,0.05);
}
.emotions-cell { text-align: center; min-width: 90px; }

/* Icônes émotions génériques */
.emo {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin: 1px;
	background-size: cover;
	vertical-align: middle;
}

/* Intensité */
.lvl1 { transform: scale(1.0); opacity: 0.7; }
.lvl2 { transform: scale(1.35); opacity: 0.85; }
.lvl3 { transform: scale(1.8); opacity: 1; }

/* Icônes spécifiques */
.emo.humour     { background-image: url('img/humour.png'); }
.emo.tristesse  { background-image: url('img/tristesse.png'); }
.emo.deception  { background-image: url('img/deception.png'); }
.emo.esthetique { background-image: url('img/esthetique.png'); }
.emo.peur       { background-image: url('img/peur.png'); }
.emo.surprise   { background-image: url('img/surprise.png'); }
.emo.confusion  { background-image: url('img/confusion.png'); }
.emo.amoureux   { background-image: url('img/amoureux.png'); }

/* Filtres de tri */
.filters-nav {
	margin-top: 6px;
	text-align: center;
}
.filters-nav a {
	display: inline-block;
	margin: 2px 4px;
	padding: 4px 8px;
	background-color: rgba(255,255,255,0.1);
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9em;
	transition: background-color 0.2s;
}
.filters-nav a:hover {
	background-color: rgba(255,255,255,0.25);
}
.filters-nav a.active {
	background-color: rgb(255,140,0);
	color: black;
	font-weight: bold;
}
/*================================*/
/* ========== MOBILE =============*/
/*================================*/
@media (max-width: 800px) {

	/* == DÉCOR ET LOGO == */
	.sun {
		width: 80vw;
		height: 80vw;
		top: calc(50% - 70vw);
	}
	.logo-center {
		width: 60vw;
		height: 60vw;
	}
	@keyframes logoMove {
		0% {
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%) scale(1.0);
		}
		100% {
			top: 10px;
			left: calc(50% - 38px);
			transform: scale(1);
			animation: auto ease 0s 1 normal none running none;
			width: 75px;
			height: 67px;
		}
	}
	.t1, .t2, .t3, .t4, .t5, .t6, .t7, .t8, .t9, .t10, .t11, .t12, .t13, .t14, .t15 {
		transform-origin: bottom center;
		transform: scale(0.5);
	}

	/* == MENU == */
	.menu-left, .menu-right {
		display: none;
	}
	.burger-btn {
		display: flex;
	}

	/* == FORMULAIRES GÉNÉRAUX == */
	.form-register {
		width: 80%;
		padding: 20px;
	}
	.form-register input {
		width: 100%;
	}
	.page-content {
		top: 75px;
		left: 2%;
		width: 96%;
	}

	/*================================*/
	/* == CATALOGUE ==================*/
	/*================================*/

	.catalogue-section { padding: 10px; }
	.catalogue-section h1 { margin: 5px 0; font-size: 1.4em; }

	.catalogue-tools {
		position: relative;
		padding: 8px;
	}
	.catalogue-tools input[type="text"] {
		max-width: calc(100% - 96px);
		font-size: 0.8em;
	}
	.catalogue-tools button {
		position: absolute;
		right: 10px;
		max-width: 35%;
		top: 8px;
		font-size: 0.9em;
		padding: 8px;
	}
	.cat_w button { position: initial; margin: 0 auto; }
	.letters-nav { gap: 0; }
	.letters-nav a { padding: 2px 4px; }

	/* Tableau version mobile */
	table.catalogue { padding-bottom: 20px; }
	table.catalogue,
	table.catalogue thead,
	table.catalogue tbody,
	table.catalogue th,
	table.catalogue td,
	table.catalogue tr {
		display: block;
		width: 100%;
		text-align: left !important;
	}
	table.catalogue thead { display: none; }

	table.catalogue tr.film-row {
		margin-top: 5px;
		padding: 10px;
		text-align: right;
		position: relative;
		box-sizing: border-box;
	}
	table.catalogue tr.film-row td {
		display: inline;
		padding: 4px 0;
		border: none;
	}
	table.catalogue tr.film-row td:first-child {
		font-weight: bold;
		font-size: 1.1em;
	}
	table.catalogue tr.film-row td:nth-child(2) { font-size: 0.8em; }
	table.catalogue tr.film-row td:nth-child(2):before { content: ' ('; }
	table.catalogue tr.film-row td:nth-child(2):after { content: ')'; }
	table.catalogue tr.film-row td:nth-child(3) {
		font-size: 0.7em;
		font-style: italic;
	}
	table.catalogue tr.film-row td:nth-child(3):before { content: ''; display: block; }
	table.catalogue tr.film-row td:nth-child(4) { font-size: 0.8em; }
	table.catalogue tr.film-row td:nth-child(4):before { content: ' ['; }
	table.catalogue tr.film-row td:nth-child(4):after { content: ']'; }

	/* Masquage colonnes inutiles */
	table.catalogue tr.film-row td:nth-child(5),
	table.catalogue tr.film-row td:nth-child(6),
	table.catalogue tr.film-row td:nth-child(7),
	table.catalogue tr.film-row td:nth-child(8) { display: none; }
	
	/* Icone ajout en wishlist */
	table.catalogue tr.film-row td a img {
		width: initial !important;
		max-height: 45px;
		margin-right: 10px;
		float: left;
	}

	/* Détails étendus */
	table.catalogue tr.details-row {
		display: none;
		padding: 10px;
	}
	.details-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.details-content img {
		width: 60%;
		max-width: 200px;
	}
	.details-info {
		margin-top: 10px;
		padding-right: 20px;
		text-align: justify;
	}
	.personal-data {
		text-align: center;
		margin-top: 10px;
	}
	
	/* Mini tableau note utilisateurs */
	.catalogue tr.details-row td .mini-notes {
		display: table;
		width: 100%;
		border-collapse: collapse;
	}

	.catalogue tr.details-row td .mini-notes tr {
		display: table-row;
	}

	.catalogue tr.details-row td .mini-notes th,
	.catalogue tr.details-row td .mini-notes td {
		display: table-cell;
		padding: 6px 10px;
		text-align: center;
	}

	/*================================*/
	/* == AJOUT FILM / TMDB ========= */
	/*================================*/

	.tmdb-search input[type="text"] {
		max-width: calc(100% - 115px);
		font-size: 0.8em;
	}
	.tmdb-search button {
		position: absolute;
		right: 10px;
		max-width: 35%;
		top: 8px;
		font-size: 0.9em;
		padding: 8px 5px;
	}
	.tmdb-results {
		grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
	}

	/*================================*/
	/* == SÉANCES / FORMULAIRES ==== */
	/*================================*/

	.form-vue {
		max-width: initial;
		padding: 15px;
	}
	.participants-block {
		flex-direction: column;
	}
	.participants-list {
		padding-left: 0;
	}
	.input-block {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.input-block label {
		text-align: left;
		margin-right: 0;
		margin-bottom: 5px;
	}
	.table-vues {
		font-size: 0.8em;
	}
		.table_alt2 tbody tr:nth-child(even), #table-notes tbody tr:nth-child(n+3) { background-color: rgba(255,0,255,0.3); }
		.table-vues tbody tr td:first-child { width: 100%; }
		.table-vues tbody tr td:nth-child(n+2) {
			display: inline-block;
			width: 100%;
			box-sizing: border-box;
		}
		.table-vues .btn {
			padding: 5px;
			display: block;
			margin-top: 0;
		}

	/*================================*/
	/* == NOTATION ================== */
	/*================================*/
	.emotions {
		align-items: center;
	}
	.emotion-block {
		width: 100%;
	}
		.emotions-block .icons {
			gap: 0;
			margin-top: 0;
		}
	.note-line {
		align-items: flex-start;
	}
	.note-line label {
		text-align: left;
		flex: none;
		margin-bottom: 4px;
	}
	.note-line input[type="range"] {
		width: 100%;
		min-width: auto;
	}

	/*================================*/
	/* == AUTRES / MESSAGES ========= */
	/*================================*/
	.message-erreur,
	.message-succes {
		font-size: 0.9em;
		padding: 8px 14px;
	}
}
