:root { --cyan: #00f3ff; --red: #ff0055; --bg: #050505; --void: #000000; }

body { margin: 0; background: var(--bg); color: #fff; font-family: 'Space Mono', monospace; overflow-x: hidden; }

#canvas-container { position: fixed; inset: 0; z-index: -1; opacity: 0.6; }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 900; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); background-size: 100% 2px, 3px 100%; }

/* --- SPLASH SCREEN --- */
#splash-screen { position: fixed; inset: 0; background: #000; z-index: 9999; display: flex; justify-content: center; align-items: center; animation: killSplash 1s ease-out 2.5s forwards; }
@keyframes killSplash { 0% { opacity: 1; } 99% { opacity: 0; pointer-events: none; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }

.logo-container { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.rgb-bars { display: flex; gap: 15px; filter: blur(2px) contrast(1.2); animation: global-glitch 3s infinite; }
.bar { width: 25px; height: 100px; border-radius: 2px; background: #fff; mix-blend-mode: screen; animation: bar-pulse 0.1s infinite alternate; }
.bar-red { background: #f00; box-shadow: 0 0 20px #f00; animation-delay: 0s; }
.bar-green { background: #0f0; box-shadow: 0 0 20px #0f0; animation-delay: 0.03s; }
.bar-blue { background: #00f; box-shadow: 0 0 20px #00f; animation-delay: 0.06s; }
.logo-text { font-family: 'Helvetica', sans-serif; letter-spacing: 8px; font-weight: bold; opacity: 0.8; }
@keyframes bar-pulse { 0% { transform: scaleY(1); } 100% { transform: scaleY(1.1); } }
@keyframes global-glitch { 40% { filter: blur(2px); transform: translate(0); } 41% { filter: blur(0); transform: translate(-5px); } 42% { filter: blur(5px); transform: translate(5px); } 43% { filter: blur(2px); transform: translate(0); } }

/* --- INTRO --- */
#intro-overlay { position: fixed; inset: 0; background: #000; z-index: 1000; display: flex; justify-content: center; align-items: center; transition: opacity 1s; }
.cyber-frame { border: 1px solid #333; padding: 60px; background: rgba(10, 10, 10, 0.95); text-align: center; box-shadow: 0 0 30px rgba(0, 243, 255, 0.1); position: relative; }
.cyber-frame::before { content: ''; position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.cyber-frame::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 20px; height: 20px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.header-status { font-size: 0.7rem; color: #555; margin-bottom: 20px; letter-spacing: 2px; }
.glitch-title { font-size: 2.5rem; color: #fff; text-transform: uppercase; letter-spacing: 5px; margin: 0 0 40px 0; text-shadow: 2px 0 var(--red), -2px 0 var(--cyan); }
.neon-btn { background: transparent; border: 1px solid #555; color: #fff; padding: 15px 40px; margin: 10px; font-family: 'Space Mono', monospace; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-weight: bold; }
.btn-red:hover { border-color: var(--red); box-shadow: 0 0 20px var(--red); text-shadow: 0 0 5px var(--red); }
.btn-cyan:hover { border-color: var(--cyan); box-shadow: 0 0 20px var(--cyan); text-shadow: 0 0 5px var(--cyan); }
.access-link { background: none; border: none; color: #444; margin-top: 30px; cursor: pointer; font-family: inherit; font-size: 0.7rem; }
.access-link:hover { color: #888; }

/* --- MAIN --- */
header { padding: 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #111; }
.top-logo { font-size: 1.2rem; font-weight: bold; letter-spacing: 3px; }
.blink { animation: blink 1s infinite; } @keyframes blink { 50% { opacity: 0; } }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 40px; max-width: 1400px; margin: 0 auto; }
.project-card { border: 1px solid #222; position: relative; cursor: pointer; transition: 0.3s; background: #000; }
.project-card:hover { border-color: var(--cyan); transform: translateY(-5px); z-index: 10; box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
.card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(100%) contrast(1.2); transition: filter 0.3s; display: block; }
.project-card:hover .card-img { filter: grayscale(0%) contrast(1.1); }
.card-info { padding: 15px; background: rgba(0, 0, 0, 0.8); border-top: 1px solid #222; }
.card-info h3 { margin: 0 0 5px 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }
.card-artist { margin: 0; font-size: 0.8rem; color: #999; }
.card-type { margin: 5px 0 0 0; font-size: 0.7rem; color: #666; }

/* --- VIDEO ROOM --- */
#lynch-room { position: fixed; inset: 0; background: var(--void); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 1s; perspective: 1200px; overflow: hidden; }
#lynch-room.active { opacity: 1; pointer-events: all; }
.void-bg { position: absolute; inset: 0; background: radial-gradient(circle at center, #111 0%, #000 70%); }
.floor { position: absolute; bottom: -30%; left: -50%; width: 200%; height: 80%; background-image: linear-gradient(45deg, #111 25%, transparent 25%), linear-gradient(-45deg, #111 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #111 75%), linear-gradient(-45deg, transparent 75%, #111 75%); background-size: 80px 80px; background-color: #050505; transform: rotateX(75deg); mask-image: linear-gradient(to top, black 10%, transparent 90%); opacity: 0.5; }

.video-frame-container { position: relative; z-index: 10; background: #000; animation: float 8s ease-in-out infinite; height: 80vh; max-width: 90vw; margin: 0 auto; }
.video-frame-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-12-15 { aspect-ratio: 12 / 15; }

.glitch-border-white { border: 3px solid rgba(240, 248, 255, 0.8); box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); animation: whiteStaticGlitch 2s infinite steps(5) alternate; }
@keyframes whiteStaticGlitch { 0% { border-color: rgba(255,255,255,0.9); } 25% { border-color: rgba(200,220,255,0.6); box-shadow: 0 0 40px rgba(255,255,255,0.7); } 50% { border-color: rgba(255,250,240,0.8); transform: skewX(0.5deg); } 100% { border-color: rgba(255,255,255,1); transform: skewX(-0.5deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

#exit-lynch { position: absolute; bottom: 40px; background: #000; border: 1px solid #555; color: #fff; padding: 10px 30px; font-family: 'Space Mono', monospace; cursor: pointer; z-index: 9999; text-transform: uppercase; letter-spacing: 3px; }
#exit-lynch:hover { background: #fff; color: #000; }

body.mode-access { background: #fff; color: #000; font-family: Arial; }
body.mode-access #canvas-container, body.mode-access .scanlines, body.mode-access #splash-screen { display: none; }
body.mode-access .project-card, body.mode-access .card-info { background: #fff; color: #000; border-color: #ccc; }
body.mode-access .card-artist, body.mode-access .card-type { color: #333; }

/* --- ACCUEIL BIENVEILLANT (BIO BOX) --- */
.content {
    padding: 20px;
    text-align: center;
}

.bio-box {
    background: rgba(10, 10, 10, 0.85);
    border-left: 4px solid var(--cyan);
    padding: 25px 40px;
    margin: 0 auto 40px auto;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.05);
    backdrop-filter: blur(5px);
}

.typewriter {
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 0;
}

.highlight {
    color: var(--cyan);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    display: inline-block;
    margin-top: 15px;
}

/* --- SUBTLE VOLUME CONTROL --- */
.cyber-volume-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9998; /* Juste en dessous de la Lynch Room */
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.cyber-volume-container:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

#volume-icon {
    color: var(--cyan);
    font-size: 1rem;
    cursor: default;
}

/* Stylisation Cyberpunk de la barre (Range Input) */

#global-volume-slider {
    -webkit-appearance: none;
    width: 80px;
    background: transparent;
    cursor: pointer;
}

#global-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: #333;
    border-radius: 2px;
}

#global-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 8px;
    background: var(--cyan);
    margin-top: -4px;
    box-shadow: 0 0 5px var(--cyan);
}

#global-volume-slider:focus {
    outline: none;
}

/* =========================================
   --- SECTEUR 02 : CARROUSELS PHOTOS ---
========================================= */

.carousel-wrapper {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1400px;
}

.carousel-title {
    color: var(--cyan);
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    letter-spacing: 3px;
    font-weight: bold;
}

/* Le conteneur qui défile */
.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Force l'arrêt sur les images */
    padding-bottom: 20px;
    
    /* Personnalisation de la barre de défilement (Chrome/Safari) */
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) #111;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}
.carousel::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}
.carousel::-webkit-scrollbar-thumb {
    background-color: var(--cyan);
    border-radius: 4px;
}

/* Les cartes photos */
.carousel-item {
    flex: 0 0 auto;
    width: 280px; /* Largeur de chaque photo */
    scroll-snap-align: start; /* Aimante la carte sur le bord gauche */
    border: 1px solid #222;
    background: #000;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.carousel-item:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    z-index: 10;
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 3 / 4; /* Format portrait classique (ou 1/1 pour carré) */
    object-fit: cover;
    display: block;
    transition: filter 0.4s;
}

/* Effets spécifiques N&B et Couleur */
.carousel-item.bw img {
    filter: grayscale(100%) contrast(1.2);
}
.carousel-item.bw:hover img {
    filter: grayscale(100%) contrast(1.5); /* Fait "popper" le contraste au survol */
}

.carousel-item.color img {
    filter: grayscale(40%) contrast(1.1); /* Légèrement désaturé de base pour le style */
}
.carousel-item.color:hover img {
    filter: grayscale(0%) contrast(1.2); /* Révèle les couleurs au survol */
}

#photo-room {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(10px); /* Floute le site en arrière-plan */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#photo-room.active {
    opacity: 1;
    pointer-events: all;
}

.photo-container {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    /* On réutilise ton animation de lévitation existante */
    animation: float 8s ease-in-out infinite; 
}

.photo-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain; /* S'assure que la photo n'est jamais coupée */
    display: block;
}

#exit-photo {
    position: absolute;
    bottom: 40px;
    background: #000;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 10px 30px;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    z-index: 9999;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.3s;
}

#exit-photo:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 15px var(--cyan);
}

#secteur-autiste-redding {
  text-align: center;
  padding: 50px 20px;
  background-color: #111; /* Ambiance sombre pour faire ressortir la télé */
  color: #fff;
}

.tv-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  /* Plus tard, tu pourras mettre ton image de télé en background ici : */
  /* background: url('chemin/vers/image-tele-transparente.png') center/cover no-repeat; */
  background-color: #2a2a2a; 
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.tv-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* Format vieille télé */
  background-color: #000;
  border-radius: 10px; /* Légère courbure de l'écran */
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}

#tv-video {
  width: 100%;
  height: 100%;
  border: none;
}

/* Les fameuses couches transparentes */
.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; /* MAGIQUE : On clique à travers ! */
}

/* Effet petites lignes horizontales */
.tv-scanlines {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 10;
}

/* Effet neige quand on zappe */
.tv-static {
  /* Trouve un petit gif de grésillement télé sur le web et mets-le ici */
  background: url('chemin/vers/ton/bruit-blanc.gif') center/cover;
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 20;
}

.tv-static.zapping {
  opacity: 0.9;
}

/* Boutons */
.tv-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
}

.zap-btn {
  padding: 10px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  background-color: #444;
  color: #fff;
  border: 2px solid #222;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.zap-btn:hover { background-color: #666; }
.zap-btn:active { transform: scale(0.95); }

/* --- SALLE 4 : LE FOOTER ABSURDE --- */
.conclusion-clinique {
  background-color: #000000; /* Noir absolu, le vide total */
  color: #ffffff;
  min-height: 100vh; /* Prend tout l'écran */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.sav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5vh; /* Espace vertical qui s'adapte à l'écran */
}

.sav-texte {
  font-family: 'Times New Roman', Times, serif; /* La typo de l'administration, très sérieuse */
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0.7; /* Légèrement grisé pour contraster avec le numéro */
}

.numero-titanesque {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Typo sans-serif ultra basique et brutale */
  font-weight: 900; /* Gras maximum */
  color: #ffffff;
  text-decoration: none;
  /* La magie est ici : mini 3rem, idéal 12vw (12% de la largeur de l'écran), max 15rem */
  font-size: clamp(3rem, 12vw, 15rem); 
  line-height: 1;
  letter-spacing: -0.05em; /* On resserre les chiffres pour un effet "bloc" */
  transition: all 0.3s ease;
}

/* L'interaction punk au survol */
.numero-titanesque:hover {
  color: #ff0000; /* Un rouge urgence qui agresse bien */
  transform: scale(1.02) rotate(-1deg); /* Léger coup de pression */
  text-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
}

.mail-discret {
  font-family: 'Times New Roman', Times, serif;
  color: #ffffff;
  opacity: 0.5;
  text-decoration: underline;
  margin-top: -2vh;
  transition: opacity 0.3s;
}

.mail-discret:hover {
  opacity: 1;
}