body {
  background: black;
  color: #ff66cc;
  font-family: "Comic Sans MS", Arial;
  text-align: center;
  margin: 0;
  padding: 0;
}

marquee {
  background: #111;
  color: #00ffff;
  padding: 10px;
}

header, footer {
  position: sticky;
  top: 0;
  background: #111;
  padding: 10px;
  z-index: 10;
}

#search {
  margin-top: 5px;
  padding: 5px;
  width: 80%;
  font-family: "Comic Sans MS";
}

main {
  padding: 20px;
}

#slider {
  width: 90%;
  margin: auto;
  overflow: hidden;
  border: 4px solid hotpink;
}

.slide {
  display: none;
}

.slide img, .slide video {
  width: 100%;
  max-height: 300px;
}

.slide.active {
  display: block;
}

#profiles {
  margin-top: 30px;
}

.profile {
  display: inline-block;
  margin: 10px;
  cursor: pointer;
}

.profile img {
  width: 100px;
  border: 3px solid #ff00ff;
}

footer {
  margin-top: 50px;
}

footer button {
  padding: 10px 20px;
  margin: 5px;
  background: hotpink;
  border: none;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.profile-box, .journal, .photos {
  border: 3px dotted #ff66cc;
  margin: 15px;
  padding: 15px;
  background: #111;
}// Slider automatique
let slides = document.querySelectorAll('.slide');
let current = 0;

function showSlide(index) {
  slides.forEach((s, i) => {
    s.classList.remove('active');
    if(i === index) s.classList.add('active');
  });
}

function nextSlide() {
  current++;
  if(current >= slides.length) current = 0;
  showSlide(current);
}

setInterval(nextSlide, 3000); // toutes les 3 secondes

// Profils cliquables
function goToProfile(url) {
  window.location.href = url;
}

// Recherche simple
function searchProfiles() {
  let input = document.getElementById('search').value.toLowerCase();
  let profiles = document.querySelectorAll('#profiles .profile p');

  profiles.forEach(p => {
    if(p.textContent.toLowerCase().includes(input)) {
      p.parentElement.style.display = 'inline-block';
    } else {
      p.parentElement.style.display = 'none';
    }
  });
}