#center-images {
  position: fixed;
  top: 50%;
  left: 66%; /* légèrement plus à droite pour éviter le menu */
  transform: translate(-50%, -50%);
  z-index: 9000; /* bien au-dessus de l'ombre radiale et tous les autres éléments */
  display: flex;
  align-items: center;
  pointer-events: auto; /* pour capter le scroll si nécessaire */
  width: 66vw; /* plus large, tout en restant à droite du menu */
  max-width: 1200px;
  max-height: 100vh;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.45s ease-out;
}
#center-images.show { opacity: 1; }
#center-images .images-scroll {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden; /* une seule grande image avec crossfade */
}

.accueil-label{
  font-weight: bold;
  text-decoration: underline;
  
}

/* Ensure Accueil is underlined regardless of element/class */
.menu-links .accueil,
.accueil label,
.accueil-label {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 5px;
}


#center-images .big-image {
  max-width: 100%;
  max-height: 84vh; /* agrandi en hauteur */
  width: 100%; /* occupe toute la largeur disponible du conteneur */
  height: auto;
  border-radius: 0px;
  box-shadow: 0 8px 32px #0005;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#center-images .big-image.visible { opacity: 1; transform: scale(1); }

/* Transition canvas for pixelation effect */
#center-images .transition-canvas {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Style spécifique pour Grid.webp - taille réduite et aspect ratio préservé */
#center-images .big-image[src*="Grid.webp"] {
  max-width: 70%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Style spécifique pour homme.png - taille réduite et aspect ratio préservé */
#center-images .big-image[src*="homme.png"] {
  max-width: 60%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: none;
}

/* Style spécifique pour blindmission6.png - aspect ratio préservé */
#center-images .big-image[src*="blindmission6.png"] {
  max-width: 80%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Style spécifique pour Baitlore.mp4 - aspect ratio préservé */
#center-images .big-image[src*="Baitlore.mp4"] {
  max-width: 80%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Style spécifique pour poster.webp - affichage complet sans crop */
#center-images .big-image[src*="poster.webp"] {
  max-width: 85%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Style spécifique pour silfy2.webp - aspect ratio préservé */
#center-images .big-image[src*="silfy2.webp"] {
  max-width: 70%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: none;
}

/* Style spécifique pour les images eureka - aspect ratio préservé */
#center-images .big-image[src*="eureka"] {
  max-width: 75%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Iframe style - fixed aspect ratio */
#center-images iframe.big-image {
  width: 640px;
  height: 360px;
  max-width: 90%;
  max-height: 80vh;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  margin-top: -40px;
  padding-top: 40px;
}

/* PDF viewer with zoom */
#center-images .pdf-viewer {
  max-width: 100%;
  max-height: 90vh;
  width: 100%;
  height: 90vh;
  cursor: zoom-in;
  object-fit: contain;
}

#center-images .pdf-viewer.zoomed {
  cursor: zoom-out;
  max-width: 100%;
  max-height: 100vh;
  width: 100%;
  height: 100vh;
  transform: none;
}

/* Carousel arrows */
#center-images .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  cursor: none;
  box-shadow: 0 6px 24px #0003;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#center-images .carousel-arrow.left { left: 10px; }
#center-images .carousel-arrow.right { right: 10px; }
#center-images .carousel-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.04); }
#center-images .carousel-arrow:active { transform: translateY(-50%) scale(0.98); }
/* Ombre radiale centrale pour focus projet - DÉSACTIVÉ */
#radial-shadow {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(circle at 33% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.08) 60%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity 0.35s;
}

/* Suppression du style de la fenêtre modale projet */
.project-modal, .modal-close, .modal-content, .modal-images, .modal-text, .modal-text h2, .modal-text p {
  display: none !important;
}
/* Fenêtre modale projet */
.project-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background: #fff;
  border: 2px solid #111;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  width: calc(100vw - 20px);
  min-width: 540px;
  max-height: calc(100vh - 20px);
  min-height: 380px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Space Grotesk', 'Noto Sans', Arial, sans-serif;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #111;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #e00;
}

.modal-content {
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding: 38px 38px 28px 38px;
  align-items: flex-start;
}
.modal-images {
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-images img {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid #1112;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.modal-text {
  flex: 1;
  min-width: 180px;
}
.modal-text h2 {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}
.modal-text p {
  font-size: 1.08rem;
  color: #222;
  margin: 0;
}
* {
  font-family: 'Space Grotesk', 'Noto Sans', Arial, sans-serif !important;
}

.intro-hack {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 10; /* sous les images centrées */
  background: rgba(255,255,255,0.85);
  padding: 18px 32px;
  border-radius: 0px;
  font-family: 'Space Grotesk', 'Noto Sans', Arial, sans-serif;
  font-size: 1.2rem;
  color: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
  min-width: 320px;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.5;
}

:root{
  --pad: 18px;
  --bg-color: #fff;
  --text-color: #111;
  --border-color: #111;
  --menu-bg: rgba(255, 255, 255, 0.9);
  --hover-bg: rgba(255, 255, 255, 0);
  --bg-line-color: rgba(0, 0, 0, 0.1);
  --dot-color: rgb(0, 0, 0);
  --shadow: rgba(0,0,0,.18);
  /* Defaults for cursor gradient */
  --gx: 50%;
  --gy: 50%;
  --c1: rgba(255, 0, 150, 0.20);
  --c2: rgba(0, 150, 255, 0.16);
}

html,body{
  margin:0;
  height:100%;
  background:var(--bg-color);
  overflow:hidden;
  font-family: 'Space Grotesk', 'Noto Sans', Arial, sans-serif;
  cursor: none; /* hide default cursor to use custom dot */
}
#cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 10000; /* above loader panels and overlays */
  transform: translate(-9999px, -9999px);
  transform-origin: 50% 50%;
  will-change: transform;
}
/* Trailing blobs for a gooey fluid cursor effect */
.cursor-trail {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  pointer-events: none;
  z-index: 9998;
  filter: blur(4px);
  opacity: 0.22;
  transform: translate(-9999px, -9999px);
  transform-origin: 50% 50%;
  will-change: transform;
}
canvas{ position:fixed; inset:0; display:block; }

body.dark {
  --bg-color: #000;
  --text-color: #fff;
  --border-color: #fff;
  --menu-bg: #111;
  --hover-bg: rgba(0, 0, 0, 0);
  --bg-line-color: rgba(255, 255, 255, 0.1);
  --dot-color: #fff;
  --shadow: rgba(255,255,255,.18);
}

.frame{
  position:fixed;
  inset:var(--pad);
  border:1px solid var(--border-color);
  pointer-events:none;
  z-index:10;
  box-sizing:border-box;
  opacity: 0;
}



.project-texte{

    padding: 25px 6%;
    z-index: 20;
    font-family: Arial, sans-serif;  font-size: 16px;
    text-align:justify;

}


.menu-card{
  position: fixed;
  top: 150px;
  left: 40px;
  width: 15%;
  height: 80%;
  border: 1px solid var(--border-color);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: var(--menu-bg);
  overflow: hidden; /* pour que la ligne suive l'arrondi */
  font-family: Arial, Helvetica, sans-serif;
  z-index: 20;
  color: var(--text-color);
  padding: 20px;
  box-sizing: border-box;
}


.description{
    padding-top: 2px;
    padding-left: 10px;
    overflow-y: auto;
    max-height: calc(100% - 300px);
    font-size: 0.9rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.description::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


.menu-title{
  padding: 12px 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.menu-sep{
  height: 1px;
  background: var(--border-color);
}

.menu-links{
  padding: 18px 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-links a{
  text-decoration: none;
  color: var(--text-color);
  letter-spacing: 1px;
}

.menu-links a:hover{
  text-decoration: underline;
}

.menu-brackets{
  text-align: center;
  padding: 6px 0 14px;

  letter-spacing: 1px;
  font-size: 1.18em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.wave-holder {
  display: inline-flex;
  align-items: center;
  height: 1em;
  width: 2.5em;
  margin: 0 0.1em;
  pointer-events: none;
}
.wave-svg {
  display: block;
  height: 1em;
  width: 100%;
  min-width: 40px;
  max-width: 60px;
}



.descriptions p  {
display: block;
  color: #111;
  margin: 5px 0;
  text-align: center;
}




.name-box {
  position: fixed;
  top: 30px;
  left: 40px;
  width: 14.5%;
  padding: 10px;
  z-index: 20;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-color);
}

.bg-line {
  position: fixed;
  background: var(--bg-line-color);
  z-index: 5;
}

.bg-line.vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.bg-line.horizontal {
  left: 0;
  right: 0;
  height: 1px;
}

.bg-line.v1 { left: 25%; }
.bg-line.v2 { left: 75%; }
.bg-line.h1 { top: 25%; }
.bg-line.h2 { top: 75%; }

.bg-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--dot-color);
  border-radius: 50%;
  z-index: 50;
}

.v1-top { top: 15px; left: 25%; }
.v1-bottom { bottom: 15px; left: 25%; }
.v2-top { top: 15px; left: 75%; }
.v2-bottom { bottom: 15px; left: 75%; }
.h1-left { top: 25%; left: 15px; }
.h1-right { top: 25%; right: 15px; }
.h2-left { top: 75%; left: 15px; }
.h2-right { top: 75%; right: 15px; }

.hover-title {
  position: fixed;
  background: var(--hover-bg);
  padding: 10px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: bold;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  color: var(--text-color);
}

.hover-title.visible {
  opacity: 1;
}




@media (max-width: 768px) {
  .menu-card {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 15px 30px;
    font-size: 16px;
  }
  .menu-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0;
  }
  .menu-links a {
    font-size: 16px;
    margin: 0;
  }
  .name-box {
    left: 10px;
    padding: 5px;
    font-size: 16px;
  }
  .bg-line.v1 { left: 33.33%; }
  .bg-line.v2 { left: 66.66%; }
  .bg-line.h1 { top: 33.33%; }
  .bg-line.h2 { top: 66.66%; }
  .v1-top, .v1-bottom { left: 33.33%; }
  .v2-top, .v2-bottom { left: 66.66%; }
  .h1-left, .h1-right { top: 33.33%; }
  .h2-left, .h2-right { top: 66.66%; }
}

/* Caret clignotant pendant la frappe dans le menu description */
#project-description #desc-text.typing::after {
  content: '▌';
  display: inline-block;
  margin-left: 2px;
  animation: caretBlink 0.9s steps(1, end) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
/* Cursor gradient overlay (elegant color halo following mouse) */
#cursor-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9; /* below menu/frame, above canvas */
  background: radial-gradient(
    circle 220px at var(--gx, 50%) var(--gy, 50%),
    var(--c1, rgba(255,0,150,0.20)) 0%,
    var(--c2, rgba(0,150,255,0.16)) 48%,
    rgba(0,0,0,0) 78%
  );
  mix-blend-mode: normal;
  opacity: 5;
  transition: background 80ms linear, opacity 0.9s ease;
  will-change: background;
}

/* Hide native cursor across interactive elements */
a, button, canvas, .carousel-arrow, .menu-links a, #hover-title {
  cursor: none !important;
}

/* Bottom-right fixed GIF decoration */
.corner-gif {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 200px;
  height: auto;
  z-index: 8; /* above background lines, below menu and cursor */
  pointer-events: auto; /* clickable to control audio */
}

/* Frozen snapshot canvas shown when audio paused */
.corner-gif-freeze {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 200px; /* will be overridden inline to match GIF */
  height: auto;
  z-index: 8;
  filter: grayscale(100%);
  opacity: 0.75;
  pointer-events: auto; /* clickable to toggle audio */
}

/* Right-side vertical auto carousel */
#right-carousel {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 22vw;
  max-width: 420px;
  min-width: 260px;
  height: 66vh;
  min-height: 420px;
  z-index: 15; /* below menu-card */
}
#right-carousel .rc-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden; /* we control scroll programmatically */
  border: 1px solid #ffffff00;
  background: var(--menu-bg);
  border-radius: 12px;
}
#right-carousel .rc-track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 16px 18px 16px;
  will-change: transform;
}
#right-carousel .rc-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligner vers la gauche */
  text-align: left;        /* texte vers la gauche */
}
#right-carousel .rc-item img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 0px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  border: 1px solid #1112;
}
#right-carousel .rc-caption {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--text-color);
  text-transform: uppercase; /* titres en capitales */
  text-align: left;          /* centrés vers la gauche */
  width: 100%;
}
#right-carousel .rc-fade {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
}
#right-carousel .rc-fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.6), rgba(255,255,255,0.0));
}
#right-carousel .rc-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0.6), rgba(255,255,255,0.0));
}
body.dark #right-carousel .rc-fade-top {
  background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.6), rgba(0,0,0,0.0));
}
body.dark #right-carousel .rc-fade-bottom {
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.6), rgba(0,0,0,0.0));
}

/* ==================== MÉMOIRE PAGE STYLES ==================== */

#memoire-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 20000;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  color: var(--text-color);
  cursor: auto;
  pointer-events: auto;
}

/* Force text visibility in memoire overlay */
#memoire-overlay,
#memoire-overlay * {
  color: inherit !important;
}

#memoire-overlay p,
#memoire-overlay h1,
#memoire-overlay h2,
#memoire-overlay h3,
#memoire-overlay span,
#memoire-overlay div {
  color: var(--text-color) !important;
}

/* Ensure content is visible by default (GSAP animations will override) */
.mem-hero-label,
.mem-hero-title,
.mem-hero-subtitle,
.mem-hero-meta,
.mem-section-label,
.mem-section-title,
.mem-section-text,
.mem-quote {
  opacity: 1 !important;
  transform: none !important;
}

.mem-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent-color, #111);
  z-index: 21000;
  transition: width 0.1s ease;
}

.mem-back {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 21000;
  width: 48px;
  height: 48px;
  border: 2px solid var(--text-color);
  background: transparent;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mem-back:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: rotate(90deg);
}

.mem-content-wrapper {
  max-width: 100%;
  padding: 0;
  color: var(--text-color);
}

/* Hero Section */
.mem-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark .mem-hero {
  border-bottom-color: rgba(255,255,255,0.1);
}

.mem-hero-content {
  max-width: 900px;
  text-align: center;
}

.mem-hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  opacity: 0.7;
  color: var(--text-color);
}

.mem-hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-color);
}

.mem-hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 48px;
  opacity: 0.8;
  color: var(--text-color);
}

.mem-hero-meta {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.mem-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-color);
}

.mem-hero-meta-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  color: var(--text-color);
}

/* Content Sections */
.mem-section {
  padding: 80px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.dark .mem-section {
  border-bottom-color: rgba(255,255,255,0.08);
}

.mem-section-alt {
  background: rgba(0,0,0,0.02);
}

body.dark .mem-section-alt {
  background: rgba(255,255,255,0.02);
}

.mem-container {
  max-width: 1200px;
  margin: 0 auto;
}

.mem-container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.mem-section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.6;
  font-weight: 600;
  color: var(--text-color);
}

.mem-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.2;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-color);
}

.mem-section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  opacity: 0.9;
  color: var(--text-color);
  text-align: justify;
  max-width: 100%;
}

.mem-quote {
  border-left: 4px solid var(--text-color);
  padding-left: 32px;
  margin: 48px 0;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-color);
}

.mem-quote-author {
  margin-top: 16px;
  font-size: 1rem;
  font-style: normal;
  opacity: 0.7;
  color: var(--text-color);
}

.mem-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .mem-two-column {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mem-hero {
    min-height: 80vh;
    padding: 60px 20px;
  }

  .mem-section {
    padding: 60px 20px;
  }

  .mem-back {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .mem-hero-meta {
    gap: 24px;
  }
}