/* dark.css : thème sombre */

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  color: white;
  background: radial-gradient(circle at center, #000 0%, #222 100%);
  background-size: 200% 200%;
  animation: pulseBg 20s ease-in-out infinite;
  overflow-x: hidden;
  transition: background 1s, color 1s;
}

@keyframes pulseBg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

header {
  padding: 100px 20px 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
}

.logo-svg {
  position: fixed;
  top: 20px;
  left: 20px;
  width: clamp(30px, 5vw, 60px);
  height: auto;
  z-index: 1000;
}

.logo-svg svg {
  width: 100%;
  height: auto;
  display: block;
  fill: white;
}

.mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.preview-wrapper {
  overflow: hidden;
  position: relative;
  margin: 40px auto;
  width: 80%;
}

.preview-slider {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.preview-item {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid white;
  border-radius: 8px;
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.preview-item a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.preview-nav-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.preview-nav-buttons button {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 20px;
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
  padding: 100px 20px;
  max-width: 800px;
  margin: auto;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h1, h2 {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  font-size: 1.2em;
  line-height: 1.8;
}

.art-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.art-container img {
  max-width: 300px;
  width: 100%;
  border: 2px solid white;
  border-radius: 5px;
}
