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

html {
  font-size: 100%;
}

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

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.002) 2px,
    rgba(0, 0, 0, 0.002) 3px
  );
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img {
  border: 0;
  outline: 0;
}

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

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

a:hover {
  opacity: 1;
}

a.revenir {
  color: #888;
}

a[href^="http"]::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 6.5L6.5 1.5M6.5 1.5H3M6.5 1.5V5' stroke='%2311236e' stroke-width='1.2' fill='none' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: 0.5px;
  opacity: 0.45;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8a8270;
}

/* Layout containers */
.scrollable-container {
  width: 360px;
}

.scrollable {
  width: 294px;
  overflow: hidden;
  background: #fefefe;
  padding: 20px 30px 28px 24px;
}

section {
  filter: contrast(0.97);
}

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

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(254, 254, 254, 0) 0%,
    rgba(254, 254, 254, 0.7) 65%,
    rgb(254, 254, 254) 90%
  );
  pointer-events: none;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.03) 1px,
    rgba(0, 0, 0, 0.03) 2px
  );
  mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
  pointer-events: none;
}

#main-img {
  display: block;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: contrast(1.01) brightness(1.01) sepia(0.08);
}


a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* Year switcher */
.year-tabs {
  opacity: 1;
  margin: 0;
  font-size: 11.5px;
}

.year-tab {
  cursor: pointer;
  opacity: 0.35;
}

.year-tab.is-active {
  opacity: 0.7;
}

.year-tab + .year-tab {
  margin-left: 6px;
}

.year-list {
  display: none;
}

.year-list.is-active {
  display: block;
}

@media (max-width: 700px) {
  .scrollable-container {
    width: 310px;
    zoom: 0.72;
  }

  .scrollable {
    width: 310px;
  }

  .image-wrapper video {
    display: block;
    width: 100%;
    height: auto;
  }



}
