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

body {
  margin: 0;
  background: #000;
  color: #000;
  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;
}

/* 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: #a29389;
}

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

h3 {
  font-weight: 200;
}

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

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

a:hover {
  opacity: 0.8;
}

a:hover img {
  opacity: 0.9;
}

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

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

/* Images */
#bataille {
  margin-bottom: 20px;
}

.choix {
  vertical-align: top;
}

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

.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;
}

.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: 3px;
}

.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;
  vertical-align: inherit;
}

/* 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;
}

/* 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: 24px;
  left: 0;
  right: 0;
  height: 100px;
  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;
}
