/* Reset et styles globaux */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: #c8c8c8;
  font-family: GaramondPremrPro-ItCapt, serif;
  scrollbar-color: #c6c6ca #e6e6e636;
  scrollbar-width: thin;
}

html {
  font-size: 100%;
}

img {
  border: 0;
  outline: 0;
}

ul {
  padding-left: 7px;
  word-break: break-word;
}

ul a {
  font-size: 16px;
}

li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 275px;
}

#introuvable {
color: red;
  opacity: 0.1;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Headings */
h1 {
  font-size: 1.3em;
  letter-spacing: 2px;
  height: 25px;
  font-weight: 200;
  color: #9a9a9a;
}

h2 {
  font-size: 1.2em;
  font-weight: 200;
  color: white;
}

h3 {
  font-weight: 200;
}

p {
  padding-left: 1px;
  font-size: 15px;
  padding-right: 30px;
  font-weight: 200;
  color: white;
}

/* Links */
a {
  text-decoration: none;
  position: relative;
  z-index: 10;
  color: #fff;
  margin-left: 0px;
  vertical-align: top;
}

a:hover {
  opacity: 1;
}

a:hover img {
  opacity: 1;
}

/* Layout containers */
.scrollable-container {
  width: 522px;
  height: 350px;
  z-index: -1;
}

.scrollable {
  width: 400px;
  position: absolute;
  overflow: hidden;
  border-bottom: 1px solid #0a0a0a;
  border-top: 0px solid #ececec;
  background: #0a0a0a;
  padding: 20px 30px 28px 24px;
}

/* Images */
.image-wrapper {
  position: relative;
  margin-bottom: 20px;
  margin-left: -24px;
  margin-right: -30px;
  margin-top: -20px;
  width: calc(100% + 54px);
}

.image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.3) 30%,
    rgba(10, 10, 10, 0.6) 60%,
    rgba(10, 10, 10, 0.9) 85%,
    rgba(10, 10, 10, 1) 100%
  );
  pointer-events: none;
}

#bataille {
  display: block;
  margin-bottom: 0;
  width: 100%;
  height: auto;
  filter: contrast(1.05) brightness(1.02);
}

.choix {
  vertical-align: top;
}

a .choix {
  filter: brightness(1.05) contrast(1.05);
  transition: filter 0.1s ease, opacity 0.1s ease;
}

a:hover .choix {
  filter: brightness(1.15) contrast(1.1);
}

.sep2 {
  margin: 0 2px 0 4px;
  vertical-align: top;
  filter: opacity(0);
}

.fade-element {
  opacity: 1;
}

/* Liens désactivés */
a:has(.opacity-disabled) {
  opacity: 1 !important;
  pointer-events: none;
  cursor: default;
}

a:has(.opacity-disabled):hover {
  opacity: 0.35 !important;
}

a:has(.opacity-disabled) img:hover {
  opacity: 0.35 !important;
}

/* Image title styles */
.img-title {
  margin-bottom: 25px;
  margin-top: -2px;
  padding-left: 3px;
  filter: brightness(1.1) contrast(1.1);
  opacity: 0.95;
}

.img-subtitle {
  margin-bottom: 6px;
  margin-top: -2px;
  padding-left: 2px;
}

/* Margin utilities */
.mb-2 {
  margin-bottom: 1px;
}

.mb-3 {
  margin-bottom: 2px;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-6 {
  margin-bottom: 4px;
}

.ml-10 {
  margin-left: 10px;
}

.ml-0 {
  margin-left: 0px;
}

/* Disabled/faded items */
.opacity-disabled {
  opacity: 0.1;
}

/* Padding utilities */
.pl-0 {
  padding-left: 0px;
}

.pl-1 {
  padding-left: 1px;
}

/* Text utilities */
.text-right {
  text-align: right;
}

.text-grey {
  color: grey;
}

.text-lg {
  font-size: 19px;
}

/* Heading variants */
.h1-right {
  padding-top: 3px;
  padding-right: 9px;
  text-align: right;
}

/* Image utilities */
.img-bright {
  opacity: 0.9;
}

/* Tables */
table {
  border: 1px solid #555;
  margin-top: 7px;
  margin-left: 3px;
  border-collapse: collapse;
  font: 10px "Lucida Grande", sans-serif;
}

th,
td {
  border: 1px solid #bbb;
  padding: 2px 8px 1.2px;
  text-align: left;
}

thead > tr > th {
  background-color: transparent;
  font-size: 10.5px;
  color: white;
  border-bottom: 2px solid #999;
}

/* Notes section */
#notes {
  font-size: 13px;
}

#numero-notes {
  color: #c8b9b0 !important;
}

/* Image map preview (used by bataille.js) */
.area-overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: background-color 0.2s;
  z-index: 9998;
}

.area-overlay.hover {
  background-color: rgba(162, 147, 137, 0.01);
}

.preview-image {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  max-width: 90px;
  max-height: 100px;
  border: 2px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: none;
  opacity: 0.9;
}

img[usemap] {
  position: relative;
  z-index: 1;
}

/* Icônes de source pour les films */
.source-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 1px;
  margin-left: 6px;
  vertical-align: middle;
}

.source-internet {
  background-color: #858683;
}

.source-dvd {
  background-color: #7f5bb9;
}

#legende {
  font-size: 13.5px;
  color: #888;
  padding: 3px 0 2px 4px;
  margin-bottom: 5px;
  text-align: right;
}

#legende .legend-item {
  display: inline-block;
  margin-right: 5px;
}

#legende .source-icon {
  margin-right: 6px;
  margin-left: 0;
}
