/* ══════════════════════════════════════════════
   VARIABLES GLOBALES
   ══════════════════════════════════════════════ */

:root {
  --couleur: 201, 174, 255;
  --typo: black;
  --stroke: black;
  --logo: invert(0);
  --p2typo: white;

  /* timing */
  --t-fast: 0.5s;
  --t-base: 0.8s;
  --t-slow: 1s;
  --t-ui: 1.5s;
  --t-overlay: 1.5s;
  --t-cinema: 3s;
  --t-panel: 1.5s;
  /* installation / expo transitions */
--t-preview: 1.8s;
--t-underline: 1.2s;
  /* easing */
  --ease: ease;
  --ease-out: ease-out;
  --ease-in-out: ease-in-out;
}


.t-opacity {
  transition: opacity var(--t-base) var(--ease);
}

.t-opacity-fast {
  transition: opacity var(--t-fast) var(--ease);
}

.t-opacity-slow {
  transition: opacity var(--t-ui) var(--ease);
}

.t-all {
  transition:
    opacity var(--t-base) var(--ease),
    text-shadow var(--t-base) var(--ease),
    color var(--t-slow) var(--ease),
    -webkit-text-stroke var(--t-slow) var(--ease-out);
}



/* ══════════════════════════════════════════════
   FONTS
   ══════════════════════════════════════════════ */

@font-face {
  font-family: 'Lagarto';
  src: url('Lagarto.ttf') format('truetype');
}

@font-face {
  font-family: 'Abordage';
  src: url('Abordage-Regular.ttf') format('truetype');
}


/* ══════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════ */

body {
  font-family: system-ui, sans-serif;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

span {
  z-index: 1000;
  font-family: Abordage;
  color: var(--stroke);
  white-space: nowrap;
}


* {
  -webkit-tap-highlight-color: transparent;
}


/* ══════════════════════════════════════════════
   BOUTON ABOUT / PANEL
   ══════════════════════════════════════════════ */



#btn-lang{
  font-family: Abordage;
  background-color: none;
  stroke: none;
}



#about {
  position: relative;
  z-index: 3000;
}

#boite_about {
  position: relative;
  width: 70px;
  height: 34px;
  padding-top: 10px;
  padding-left: 20px;
  background: white;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
  opacity:0;
  box-shadow:
    0 0 30px rgba(255,255,255,1),
    0 0 20px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,1);
  transition:
    width 1.1s ease,
    height 1.1s ease,
    border-radius 1.1s ease,
    box-shadow 0.7s ease,
    transform 1.1s ease,
    padding 1.1s ease,
    background 0.6s ease,

}



#boite_about.visible {
  opacity: 1;
  transition:
    opacity 1s ease,
    width 1.1s ease,
    height 1.1s ease,
    border-radius 1.1s ease,
    box-shadow 0.7s ease,
    transform 1.1s ease,
    padding 1.1s ease,
    background 0.6s ease;
}


#boite_about::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  background: rgba(255,255,255,0.9);
  filter: blur(22px);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.7s ease,
    transform 0.9s ease;
  pointer-events: none;
}

#boite_about:hover::before {
  opacity: 1;
  transform: scale(1.35);
}

#boite_about:hover {
  box-shadow:
    0 0 80px rgba(255,255,255,1),
    0 0 50px rgba(255,255,255,0.98),
    0 0 20px rgba(255,255,255,0.95),
    0 0 10px rgba(255,255,255,0.95);
}

#about-label {
  position: relative;
  z-index: 3;
  display: inline-block;
  color: black;
  margin-bottom: 10px;
  transition:
    opacity 0.35s ease,
    transform 0.6s ease;
    text-decoration:none;
}


#boite_about:hover #about-label {
  text-decoration: underline;
}


#about-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#about-content {
  position: absolute;
  margin-top: 45px;
  padding-bottom: 100px;
  top: 0px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  overflow-y: auto;
  white-space: pre-line;
  font-family: Abordage;
  font-size: 0.95em;
  line-height: 1.45;
  color: black;
  scrollbar-width: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  /* masque scroll */
  -webkit-mask: linear-gradient(
    to bottom,
    black 0%,
    black 75%,
    transparent 100%
  );

  mask: linear-gradient(
    to bottom,
    black 0%,
    black 75%,
    transparent 100%
  );
}

#about-content::-webkit-scrollbar {
  display: none;
}

/* état ouvert */
#boite_about.open {
  width: min(47vw, calc(100vw - 80px));
  height: 82vh;
  padding-top: 20px;
  padding-left: 24px;
  border-radius: 20px;
  margin-right: 20px;
  background: rgba(255,255,255,1);
  box-shadow:
    0 0 30px rgba(255,255,255,0.98),
    0 0 20px rgba(255,255,255,0.95),
    0 0 10px rgba(255,255,255,1);
}

#boite_about.open::before {
  opacity: 1;
  transform: scale(1);
  filter: blur(10px);
}


#boite_about.open #about-label {
  transform: translateY(0);
    text-decoration: underline;
}

#boite_about.open #about-panel {
  opacity: 1;
  pointer-events: auto;
}

#boite_about.show-text #about-content {
  opacity: 1;
  transform: translateY(0);
}




/* ══════════════════════════════════════════════
   CALENDRIER
   ══════════════════════════════════════════════ */

#boite_calendar {
  position: fixed;
  top: calc(3.5em);
  left: 25px;
  z-index: 3000;  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  pointer-events: none;
}

#boite_calendar.visible {
  opacity: 1;
}


#boite_calendar.hidden-in-part3 {
  pointer-events: none !important;
}


#calendar-label {
  font-family: Abordage;
  font-size: 1em;
  color: black;
  margin-top: -10px;
  text-shadow:
    0 0 80px rgba(255,255,255,1),
    0 0 60px rgba(255,255,255,1),
    0 0 50px rgba(255,255,255,1),
    0 0 40px rgba(255,255,255,1),
    0 0 30px rgba(255,255,255,1),
    0 0 20px rgba(255,255,255,1),
    0 0 15px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,1),
    0 0 6px rgba(255,255,255,1),
    0 0 3px rgba(255,255,255,1);
  transition: opacity 0.4s ease;
  white-space: nowrap;
  cursor: pointer;
}


#boite_calendar:hover #calendar-label {
  text-decoration: underline;
}

#boite_calendar.open #calendar-label {
  text-decoration: underline;
}

#calendar-panel {
  position: relative;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
    cursor: pointer;
  filter: 
          drop-shadow(0 0 30px rgba(255,255,255,1))
          drop-shadow(0 0 20px rgba(255,255,255,1))
          drop-shadow(0 0 10px rgba(255,255,255,1))
          drop-shadow(0 0 6px rgba(255,255,255,1))
          drop-shadow(0 0 3px rgba(255,255,255,1));
}


@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {

    #calendar-label,
    .calendar-nav-artist {
      text-shadow:
        0 0 6px rgba(255,255,255,1),
        0 0 12px rgba(255,255,255,1),
        0 0 20px rgba(255,255,255,1),
        0 0 35px rgba(255,255,255,1);
    }

  }
}


#boite_calendar.open #calendar-panel {
  opacity: 1;
  pointer-events: auto;
}

#calendar-content {
  font-family: Abordage;
  font-size: 0.85em;
  line-height: 1.6;
  color: black;
  max-height: 57vh;
  overflow-y: auto;

  scrollbar-width: none;
  -webkit-mask: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
  mask: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
  transition: opacity 0.7s ease, transform 0.7s ease;
  opacity: 0;
  transform: translateY(8px);
  padding-bottom: 80px;
}

#calendar-content::-webkit-scrollbar { display: none; }

#boite_calendar.show-text #calendar-content {
  opacity: 1;
  transform: translateY(0);
}

.calendar-entry {
  display: flex;
  gap: 2em;
  padding: 2px 0;
  max-height: 2em;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
cursor: default;}

.calendar-entry.today {
  text-decoration: underline;
}


.calendar-entry.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
}

.calendar-date {
  opacity: 0.6;
  min-width: 5em;
}

.calendar-artist {
  flex: 1;
}

#calendar-top-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4em;
}

#calendar-artists-nav {
  display: flex;
  gap: 0.3em 0.8em;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding-left: 0;
}

#boite_calendar.open #calendar-artists-nav {
  opacity: 1;
  pointer-events: auto;
}

.calendar-nav-artist {
  font-family: Abordage;
  font-size: 0.7em;
  color: black;
  opacity: 0.35;
  cursor: pointer;
text-shadow:
    0 0 80px rgba(255,255,255,1),
    0 0 60px rgba(255,255,255,1),
    0 0 50px rgba(255,255,255,1),
    0 0 40px rgba(255,255,255,1),
    0 0 30px rgba(255,255,255,1),
    0 0 20px rgba(255,255,255,1),
    0 0 15px rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,1),
    0 0 6px rgba(255,255,255,1),
    0 0 3px rgba(255,255,255,1);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.calendar-nav-artist:hover {
  opacity: 1;
}


.calendar-entry.today .calendar-date,
.calendar-entry.today .calendar-artist {
  text-decoration: underline;
}


.texte-dates {
  font-family: Abordage;
  font-size: 0.8em;
  line-height: 1.6;
  margin-bottom: 1em;
  cursor: default;
}

#calendar-close-mobile {
  display: none;
}

body.calendar-open-cursor {
  cursor: pointer;
}

body.calendar-open-cursor .calendar-entry {
  cursor: default;
}

body.calendar-open-cursor #about-content {
  cursor: default;
}

/* ══════════════════════════════════════════════
   FOND COULEUR ANIMÉ
   ══════════════════════════════════════════════ */

#gradient_fond {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(var(--couleur), 0.1) 10px,
    rgba(var(--couleur), 0.3) 20px,
    rgba(var(--couleur), 0.5) 30px,
    rgba(var(--couleur), 0.7) 40px,
    rgba(var(--couleur), 0.85) 50px,
    rgba(var(--couleur), 0.95) 60px,
    rgb(var(--couleur)) 70px,
    rgb(var(--couleur)) calc(100% - 70px),
    rgba(var(--couleur), 0.95) calc(100% - 60px),
    rgba(var(--couleur), 0.85) calc(100% - 50px),
    rgba(var(--couleur), 0.7) calc(100% - 40px),
    rgba(var(--couleur), 0.5) calc(100% - 30px),
    rgba(var(--couleur), 0.3) calc(100% - 20px),
    rgba(var(--couleur), 0.1) calc(100% - 10px),
    transparent 100%
  );
  box-shadow:
    inset 100px 0 80px -50px rgba(247, 247, 247, 1),
    inset -100px 0 80px -50px rgba(247, 247, 247, 1);
  transition: opacity var(--t-overlay) var(--ease-in-out);
}


/* ══════════════════════════════════════════════
   TITRE WAVE (PART 1)
   ══════════════════════════════════════════════ */

.editor {
  position: fixed;
  top: 12%;
  left: 50%;
  z-index: 10;
  width: calc(100vw - 30px);
  max-width: 90%;
  transform: translateX(-50%);
  opacity: 0;
}

#desktop-wave-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

body.lang-fr #desktop-wave-lines > div:not(:first-child) {
  margin-top: -15px;
}
/* ══════════════════════════════════════════════
   CARROUSEL ARTISTES (PART 1)
   ══════════════════════════════════════════════ */

#artistes-container {
  z-index: 15;
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: -20px;
  margin-bottom: -20px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;
  -webkit-mask: linear-gradient(
    to right,
    transparent 15px,
    black 100px,
    black calc(100% - 100px),
    transparent calc(100% - 15px)
  );
  mask: linear-gradient(
    to right,
    transparent 15px,
    black 100px,
    black calc(100% - 100px),
    transparent calc(100% - 15px)
  );
}

.carrousel-wrapper {
  display: inline-flex;
  gap: 20px;
  will-change: transform;
  transition: opacity var(--t-ui) var(--ease-in-out);
}

.carrousel-wrapper.vitesse-9 {
  will-change: transform;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.artiste_accueil {
  display: inline-block;
  flex-shrink: 0;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.5em;
  text-shadow: none;
  transition: filter 0.8s ease;
}

.artiste_accueil:hover {
  filter:     
      drop-shadow(0 0 3px white) 
    drop-shadow(0 0 6px white)
    drop-shadow(0 0 10px white)
    drop-shadow(0 0 15px white);
}


/* ══════════════════════════════════════════════
   IMAGES VIGNETTES AU SURVOL
   ══════════════════════════════════════════════ */

.artiste-image {
  position: fixed;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  border-radius: 10px;
    filter: blur(0px);
  transition: opacity var(--t-overlay) var(--ease-out);
  -webkit-mask:
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-composite: intersect;
}

.artiste-image.visible {
  opacity: 0.8;
  transition: opacity var(--t-fast) var(--ease-out);
}

.artiste-image.intro-blur {
  opacity: 0.6;
  filter: blur(6px);
}

.artiste-image.leave-blur {
  filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}


/* ══════════════════════════════════════════════
   UTILITAIRES
   ══════════════════════════════════════════════ */

.hidden-content {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity var(--t-overlay) var(--ease-out);
}



.btn_hover:hover {
  opacity: 1;
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 20px #ffffff,
    0 0 35px #ffffff;
}

.btn_home:hover {
  opacity: 1;
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 20px #ffffff,
    0 0 35px #ffffff;
}

#top-right-buttons {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#top-right-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

#btn-lang {
  background: none;
  border: none;
  font-family: Abordage;
  font-size: 0.8em;
  color: var(--stroke);
  cursor: pointer;
  opacity: 1;
}


@media (min-width: 769px) {
  #btn-lang.nav_link {
    color: var(--p2typo);
    opacity: 0.8;
  }
}

/* ══════════════════════════════════════════════
   MODE CINÉMA — OVERLAY
   ══════════════════════════════════════════════ */

#btn_cine_switch:hover svg {
  filter: drop-shadow(0 0 8px white) drop-shadow(0 0 15px white);
  transition: filter var(--t-base) var(--ease);
}

#btn_cine_switch svg {
  filter: drop-shadow(0 0 0px transparent);
  transition: filter var(--t-base) var(--ease);
}



#cinema-tunnel {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 52;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  overflow: hidden;
    overscroll-behavior: none;
}


#cinema-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 51;
  pointer-events: none;

  background: black;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0);
  width: 100vmin;
  height: 100vmin;
  border-radius: 50%;
  box-shadow: 0 0 0 0 black;

  will-change: transform, width, height, border-radius, opacity, box-shadow;
  backface-visibility: hidden;

  transition:
    transform var(--t-overlay) var(--ease-out),
    width var(--t-overlay) var(--ease-out),
    height var(--t-overlay) var(--ease-out),
    border-radius var(--t-overlay) var(--ease-out),
    box-shadow var(--t-overlay) var(--ease-out),
    opacity calc(var(--t-overlay) * 0.5) var(--ease-out);
}

#cinema-overlay.active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
  width: 150vw;
  height: 150vh;
  border-radius: 10%;
  box-shadow:
    0 0 10vw 8vw black,
    0 0 22vw 18vw rgba(0, 0, 0, 0.62),
    0 0 36vw 28vw rgba(0, 0, 0, 0.28);
}

#cinema-overlay.closing {
  opacity: 0 !important;
  transition:
    opacity var(--t-overlay) var(--ease-out) !important,
    box-shadow 1.2s ease-out !important;
}





body.cinema-mode::before {
  content: '';
  position: fixed;
  inset: 0;
  background: black;
  z-index: 50;  /* juste en dessous du tunnel (z-index: 52) et overlay (z-index: 51) */
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

body:not(.cinema-mode)::before {
  content: '';
  position: fixed;
  inset: 0;
  background: black;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}




body.cinema-mode #gauche,
body.cinema-mode #gauche .titre,
body.cinema-mode #gauche #info,
body.cinema-mode .btn {
  color: var(--p2typo) !important;
}


#gauche .titre .artiste-nom,
#gauche .titre .artiste-titre,
#gauche .titre .artiste-details {
  white-space: normal !important;
  word-break: break-word !important;
}

body:not(.cinema-mode) .btn_hover:hover {
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 20px #ffffff,
    0 0 30px #ffffff;
}

body:not(.cinema-mode) .artiste_accueil:hover {
  filter: 
    drop-shadow(0 0 3px white) 
    drop-shadow(0 0 6px white)
    drop-shadow(0 0 10px white)
    drop-shadow(0 0 15px white);
  }

body:not(.cinema-mode) .artist-list-item:hover {
  text-shadow:
    0 0 8px #ffffff,
    0 0 15px #ffffff,
    0 0 25px #ffffff,
    0 0 40px #ffffff;
}



/* ══════════════════════════════════════════════
   PART 3 — STRUCTURE
   ══════════════════════════════════════════════ */

#part_3 {
  position: fixed;
  top: 15vh;
  left: 0;
  z-index: 200;
  display: inline-flex;
  width: 100vw;
  height: 80vh;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-overlay) var(--ease-out),
    visibility 0s linear var(--t-overlay);
}

body.pseudo-fullscreen-active #part_3 {
  z-index: 10000;
}


body.pseudo-fullscreen-active #video-container {
  height: 100svh;
}
#part_3.visible {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--t-overlay) var(--ease-out),
    visibility 0s linear 0s;
}

#titre-haut {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 300;
  color: transparent;
  cursor: pointer;
  height: 10vh;
  opacity: 0;
  transition:
    opacity var(--t-overlay) var(--ease-out),
    -webkit-text-stroke var(--t-base) var(--ease-out);
}

body.lang-fr #titre-haut {
}



#gauche {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 35vw;
  height: 80vh;
  padding: 0 20px;
  font-size: 1.5em;
}
.artiste-nom{  color: inherit;}

.artiste-titre {
font-style: italic;
  color: inherit;
}


#texte-wrapper {
  position: relative;
  height: 80vh;
  overflow-y: auto;
  -webkit-mask: linear-gradient(to bottom, black 70%, transparent 100%);
  mask: linear-gradient(to bottom, black 70%, transparent 100%);
}

#texte-wrapper::-webkit-scrollbar {
  display: none;
}

#texte-wrapper {
  scrollbar-width: none;
}

#texte-oeuvre {
  font-family: Abordage;
  padding-bottom: 60px;
  font-size: 0.8em;
  line-height: 1.5;
  white-space: pre-line;
    overflow-wrap: break-word;   /* ← ajoute ça */
  word-break: break-word;  
  opacity: 0;
  transition:
    opacity var(--t-base) var(--ease),
    color var(--t-slow) var(--ease);
}


#mask-texte-oeuvre {
  display: contents; /* le div devient transparent dans le layout, comme s'il n'existait pas */
}
#texte-oeuvre.visible {
  opacity: 1;
}

#droite {
  position: relative;
  width: 65vw;
  height: 80vh;
  padding-right: 20px;
  

}

#video-container {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 63vw;
  height: 80vh;
}

#video {
  display: block;
  width: 63vw;
  height: 80vh;
  object-fit: contain;
  object-position: right center;
  cursor: inherit;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--t-preview) var(--ease),
    visibility 0s linear 0s;
}


#video.is-dimmed {
  opacity: 0;
}

#video.is-preview-hidden {
  opacity: 0 !important;
    transition: opacity 0.35s var(--ease) !important;
}



.video-hover-preview {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 63vw;
  height: 80vh;
  object-fit: contain;
  object-position: right center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}

.video-hover-preview.visible {
  opacity: 1;
}

.artist-list-item.hovered {
  text-decoration: underline;
}

.video-hover-preview.fading-out {
  transition: opacity 0.45s var(--ease);
}


#fullscreen.is-hidden-during-preview,
#next_artist.is-hidden-during-preview {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity var(--t-ui) var(--ease) !important;
}

/* ══════════════════════════════════════════════
   PART 3 — BOUTONS DE NAVIGATION
   ══════════════════════════════════════════════ */


.nav_link {
  padding: 0;
  background: none;
  border: none;
  font-family: Abordage;
  font-size: 1em;
  color: var(--p2typo);
  cursor: pointer;
}


.bas {
  position: fixed;
  bottom: 0;
  z-index: 100;
  display: none;
  padding-bottom: 1vh;
  font-family: Abordage;
  color: var(--p2typo);
  opacity: 0;
  transition:
    opacity var(--t-fast) var(--ease),
    text-shadow var(--t-base) var(--ease),
    color var(--t-slow) var(--ease);
}

#fullscreen {
  left: 50%;
  transform: translateX(-50%);
}

#list_artist {
  position: fixed;
  bottom: 0;
  left: 20px;
  z-index: 100;
  padding-bottom: 1vh;
  font-family: Abordage;
  color: var(--p2typo);
  cursor: pointer;
}

#next_artist {
  position: fixed;
  right: 20px;
  bottom: 0;
  z-index: 100;
  padding-bottom: 1vh;
  font-family: Abordage;
  color: var(--p2typo);
  cursor: pointer;
}


/* ══════════════════════════════════════════════
   PART 3 — APPARITION SÉQUENTIELLE
   ══════════════════════════════════════════════ */

.video-pack,
.info1 {
  opacity: 0;
  pointer-events: none;
  transition:    opacity var(--t-ui) var(--ease-out);
}

.part3-video-visible .video-pack {
  opacity: 1;
  pointer-events: auto;
}

.part3-info1-visible .info1 {
  opacity: 1;
  pointer-events: auto;
}


.part3-video-visible .video-pack #btn-play {
  opacity: 0;
  pointer-events: none;
}

#btn-play.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.info3 {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--t-slow) var(--ease),
    visibility 0s linear var(--t-slow),
    text-shadow var(--t-base) var(--ease);
}

.info3.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity var(--t-slow) var(--ease),
    visibility 0s linear 0s,
    text-shadow var(--t-base) var(--ease);
}

.info3.visible:hover {
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 20px #ffffff,
    0 0 35px #ffffff;
}


#gauche .titre {
  opacity: 0;
  transition:
    opacity var(--t-base) var(--ease),
    text-shadow var(--t-base) var(--ease),
    color var(--t-slow) var(--ease);
}


#btn_home {
  opacity: 0;
  pointer-events: none;
}


#btn_cine_switch {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#btn_cine_switch svg {
  transition: opacity var(--t-base) var(--ease);
}


/* ══════════════════════════════════════════════
   VIDÉO — BOUTON PLAY/PAUSE
   ══════════════════════════════════════════════ */

#video-wrapper {
  position: relative;
  display: inline-block;
  cursor: none;
}

#btn-play {
  position: absolute;
  z-index: 10;
  font-family: Lagarto;
  font-size: 4em;
  color: black;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  -webkit-text-stroke: 0.4px var(--p2typo);
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 20px #ffffff,
    0 0 35px #ffffff;
  transition:
    opacity var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    text-shadow var(--t-base) var(--ease),
    -webkit-text-stroke var(--t-slow) var(--ease-out);
}


/* ══════════════════════════════════════════════
   FULLSCREEN NATIF
   ══════════════════════════════════════════════ */


#fullscreen {
  transition: opacity var(--t-base) var(--ease);
  cursor: pointer;
}

#fullscreen.force-visible {
  opacity: 1 !important;
}
#video-wrapper:fullscreen,
#video-wrapper:-webkit-full-screen {
  display: block;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0;
  padding: 0;
  background: black;
}

#video-wrapper:fullscreen #video,
#video-wrapper:-webkit-full-screen #video {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center center;
}

#video-wrapper:fullscreen #vimeo-frame,
#video-wrapper:-webkit-full-screen #vimeo-frame {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: calc(100vw * 9 / 16) !important;
}


/* Timeline */
#timeline-fullscreen {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  width: 100%;
  height: 2px;
  background: black;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity var(--t-fast) var(--ease),
    height 0.2s var(--ease),
    background 0.2s var(--ease);
}

#timeline-fullscreen:hover {
  height: 10px;
  background: rgba(100, 100, 100, 0.5);
}

#timeline-fullscreen-fill {
  width: 0%;
  height: 100%;
  background: white;
  pointer-events: none;
}

#video-wrapper:fullscreen #timeline-fullscreen,
#video-wrapper:-webkit-full-screen #timeline-fullscreen {
  display: block;
}

/* Bouton exit fullscreen */
#fullscreen-exit {
  position: absolute;
  right: 5%;
  bottom: 7px;
  left: 50%;
  z-index: 9999;
  display: none;
  background: none;
  border: none;
  font-family: Abordage;
  font-size: 1em;
  color: white;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 0);
  transition: opacity var(--t-fast) var(--ease);
}

#video-wrapper:fullscreen #fullscreen-exit,
#video-wrapper:-webkit-full-screen #fullscreen-exit {
  display: block;
}

/* Bouton restart */
#btn-restart {
  position: absolute;
  bottom: 7px;
  left: 7px;
  z-index: 9999;
  display: none;
  background: none;
  border: none;
  font-family: Abordage;
  font-size: 1em;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}

#video-wrapper:fullscreen #btn-restart,
#video-wrapper:-webkit-full-screen #btn-restart {
  display: block;
}


/* ══════════════════════════════════════════════
   HARMONISATION DES TRANSITIONS TEXTE / UI
   ══════════════════════════════════════════════ */
.nav_link,
.btn_hover,
#list_artist,
#next_artist,
#btn-play,
#fullscreen,
#texte-oeuvre,
#gauche .titre,
#gauche #info,
#btn-lang,
#btn_cine_switch {
  transition:
    color var(--t-slow) var(--ease),
      text-shadow 0.3s var(--ease),
    -webkit-text-stroke var(--t-slow) var(--ease-out),
    opacity var(--t-base) var(--ease);
}



.slide-out-down {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

.slide-in-up {
  opacity: 0;
  transition: none !important;
}

.slide-in-up.settle {
  opacity: 1;
  transition: opacity 0.4s ease !important;
}


/* ══════════════════════════════════════════════
   CURATED ARTISTS LIST
   ══════════════════════════════════════════════ */

#gauche {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 0.7s var(--ease-in-out);
}

#gauche.wiped {
  clip-path: inset(0 0 100% 0);
}

#artists-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 35vw;
  height: 80vh;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(100% 0 0% 0);
  transition:
    clip-path 0.7s var(--ease-in-out),
    opacity 0s linear 0.7s;
    overflow: visible;
}


#artists-list.visible {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0% 0 0% 0);
  transition:
    clip-path 0.7s var(--ease-in-out),
    opacity 0s linear 0s;
}

.artist-list-item {
  font-family: Abordage;
  font-size: 1.3em;
  color: var(--p2typo);
  cursor: pointer;
  transition:
    text-shadow var(--t-base) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.artist-list-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.92);
  transform-origin: left center;
  transition:
    opacity var(--t-underline) var(--ease),
    transform var(--t-underline) var(--ease);
}



.artist-list-item.active::after,
.artist-list-item.hovered::after {
  opacity: 1;
  transform: scaleX(1);
}


.artist-list-item.active::after,
.artist-list-item.hovered::after {
  opacity: 1;
  transform: scaleX(1);
}

.artist-list-item:hover {
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 20px #ffffff,
    0 0 35px #ffffff;
}



.artist-list-item.active {
  text-decoration: underline;
}



/* --- Les artistes txt--- */



.artiste-details {
  font-family: Abordage;
  font-size: 0.55em;
  display: block;
  margin-top: 7px;
  white-space: normal;
  color: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.artiste-details.visible {
  opacity: 1;
}

#info {
  width: fit-content;
  cursor: pointer;
  transition:
    opacity 0.4s ease,
    text-shadow var(--t-base) var(--ease-out),
    color var(--t-slow) var(--ease);
    margin-top: -8px;
}

#info:hover {
  text-decoration: none;
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 20px #ffffff,
    0 0 25px #ffffff;
}
.texte-credits {
  margin-top: 2em;
  font-family: Abordage;
  font-size: 0.67em;
  line-height: 1.5;
  margin-bottom: 2em;
}


.texte-credits strong {
  margin-right: 4px;
  letter-spacing: 0.1em;
    -webkit-text-stroke: 0.9px currentColor;
    font-size: 0.92em

}


.texte-main {
  font-family: Abordage;
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 2em;
}

.texte-bio {
  font-family: Abordage;
  font-size: 0.9em;
  line-height: 1.6;

}

.titre-oeuvre {
  letter-spacing: 0.1em;
    -webkit-text-stroke: 1.1px currentColor;
  color: inherit;
  white-space: normal;
  font-style: italic;
}

.italic_style{
  color: inherit;
  font-style: italic;
    white-space: normal;
}
.bio-nom {
  letter-spacing: 0.1em;
    -webkit-text-stroke: 1.1px currentColor;
  display: inline-block;
  margin-bottom: 0.4em;
  color: inherit;
}


.bio-parenthese {
  -webkit-text-stroke: 0px currentColor;
  letter-spacing: normal;
      color: inherit;
}


.credit-label {
  text-decoration: underline;
  color: inherit;
  text-underline-offset: 2px;
}

.credit-colon {
  text-decoration: underline;
    color: inherit; /* ← réduit l'espace encore un peu */
}


/* --- GESTION PLAYER VIDEO --- */



#vimeo-frame {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 63vw;
  height: calc(63vw * 9 / 16);
  border: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  vertical-align: top;
}


#video-wrapper.is-vimeo {
  width: 63vw;
  height: calc(63vw * 9 / 16);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

#video-wrapper.is-vimeo #video {
  height: auto;
}
#vimeo-tap-overlay-desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: none;
  cursor: inherit;
}



#vimeo-frame:-webkit-full-screen {
  width: 100vw;
  height: calc(100vw * 9 / 16);
  position: absolute;
  top: 0;
  left: 0;
}

#vimeo-frame:fullscreen {
  width: 100vw;
  height: calc(100vw * 9 / 16);
  position: absolute;
  top: 0;
  left: 0;
}




/* --- Desktop : cache le bloc mobile --- */
.editor-mobile {
  display: none;
}




#about-close-mobile{
  display: none;
}

/* --- CREDIT --- */



.editor,
#editor-mobile,
#artistes-container,
#btn-lang,
#btn_cine_switch,
#logos-container {
  opacity: 0;
}


.p_titre{
  font-family: Abordage;
  font-size: 0.96em;
  display: block;
  margin-bottom: -11px;
  -webkit-text-stroke:0.9px currentColor;
  letter-spacing:0.1em;
}


#about-links {
  margin-top: 1.5em;
  display: flex;
  gap: 1.5em;
  font-family: Abordage;
  font-size: 0.85em;
}

#about-links a {
  color: black;
  text-decoration: underline;
  cursor: alias;
}

a{
  color: black;
  cursor: alias;
}



#about-calendar-link {
  text-decoration: underline;
  cursor: alias;
  white-space: nowrap;
}


#credits-section {
  margin-top: 2.5em;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.credit-titre {
  margin-bottom: 0.5em;
}


.credit-titre,
.credit-institution {
  font-size: 1em;
  font-family: Abordage;
  color: black;
}
.credit-institution {
  font-family: Abordage;
  margin-top: 1.7em;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
    -webkit-text-stroke: 0.9px currentColor;
    font-size: 0.96em
  color: black;
}


.credit-role {
  letter-spacing: 0.1em;
    -webkit-text-stroke: 0.9px currentColor;
    font-size: 0.88em;
  display: inline;
  color: black;
  margin-bottom: 0;
}

.credit-block {
  display: block;
  font-family: Abordage;
  color: black;
  font-size:0.9em;
    white-space: normal;      /* ← ajoute */
  overflow-wrap: break-word; /* ← ajoute */
  word-break: break-word;
}


#about-content p {
  margin-top: 0;
  margin-bottom: -20px;
}

.credit-names {
  margin-left:5px;
  cursor: alias;
}
.credit-name {
  display: inline-block;
}

.credit-spacer {
  margin-top: 25px;
}

.credit-block span,
.credit-names span {
  white-space: normal;
}

#carousel-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  font-family: Abordage;
  font-size: 0.85em;
  color: black;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-shadow:
    0 0 20px rgba(255,255,255,1),
    0 0 12px rgba(255,255,255,1),
    0 0 6px rgba(255,255,255,1);
}
#carousel-tooltip.visible {
  opacity: 1;
}
