/***** RESET & BASE *****/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/***** STARFIELD *****/
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000;
}

/***** NAVIGATION *****/
nav {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}
nav a:hover {
  color: #4a9eff;
}

/***** SECTION & TITRES *****/
section {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
h1, h2, h3 {
  margin-bottom: 1rem;
}

/***** CARROUSEL & ITEMS *****/
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
  overflow: visible;
  position: relative;
  padding: 2rem 0;
}
section > .carousel {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.carousel-track {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 320px;
  height: 100%;
  margin: 0 auto;
  display: block;
  overflow: visible;
}

.carousel-item {
  width: 270px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(1);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(.33,1.44,.81,1);
  background: transparent;
  border-radius: 8px;
  padding: 0 0 10px 0;
  box-shadow: none;
  text-align: center;
  overflow: visible;
}
.carousel-vertical .carousel-item {
  width: 180px;
  margin: 0 8px;
}
.carousel-vertical .carousel-track {
  min-height: 400px;
}

.carousel-item.prev-center,
.carousel-item.active,
.carousel-item.next-center {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}
.carousel-item.far-left {
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, black 50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
}
.carousel-item.far-right {
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to left, transparent 0%, black 50%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 50%);
}

/***** BOUTONS CARROUSEL *****/
.carousel-btn {
  background: rgba(35, 35, 41, 0.8);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 2em;
  padding: 0 0.5em;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, color 0.15s, transform 0.2s;
  align-self: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(4px);
}
.carousel-btn:hover {
  background: #fff;
  color: #222;
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/***** PRÉVIEW BLOC VIDÉO + ZOOM *****/
.carousel-preview {
  border-radius: 12px;
  background: rgba(32,32,32,0.96);
  transition: transform 0.22s cubic-bezier(.18,.95,.73,1.16);
  will-change: transform;
  box-shadow: none;
  position: relative;
  overflow: visible;
}
.carousel-preview:hover,
.carousel-preview:focus-within {
  transform: scale(1.08);
  z-index: 12;
}

/***** VIDEO CONTAINER *****/
.carousel-video {
  width: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: none;
  outline: none;
  box-shadow: none !important;
  border: none !important;
  z-index: 1;
}
.carousel-horizontal .carousel-video {
  aspect-ratio: 16/9;
  min-height: 150px;
}
.carousel-horizontal .carousel-item { width: 270px; }
.carousel-vertical .carousel-video {
  aspect-ratio: 9/16;
  max-height: 360px;
  min-height: 280px;
}
.carousel-video iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  margin: 0;
  outline: none;
  box-shadow: none !important;
  background: #111;
}

/* SUPPRESSION ENCADREMENT BLANC */
.carousel-preview,
.carousel-video,
.carousel-video iframe {
  border: none !important;
  box-shadow: none !important;
  background-clip: padding-box;
}

/***** ZONE TITRE *****/
.carousel-preview h3 {
  background: rgba(50,50,50,0.56);
  margin: 0;
  padding: 10px 0 8px 0;
  font-size: 0.95rem;
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-align: center;
  transition: none;
  text-shadow: none;
  user-select: auto;
  z-index: 2;
}

/***** SUPPRESSION BADGE SHORT *****/
.badge-short { display: none !important; }

/* OVERLAY ZOOM */
.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  opacity: 0;
  transition: opacity 0.22s;
  cursor: pointer;
  will-change: opacity;
  z-index: 4;
  border: none !important;
  outline: none !important;
}
.zoom-overlay::before { content: ""; display: none !important; }
.carousel-video:hover .zoom-overlay,
.carousel-video:focus .zoom-overlay {
  opacity: 1;
}
.zoom-trigger { display:none !important; }

/* MODALE ZOOM VIDÉO */
#zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#zoom-modal.active { display: flex; }
.zoom-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  background: rgba(25,25,30,0.9);
  border-radius: 10px;
  padding: 1rem;
}
.zoom-modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.zoom-modal-video iframe { width: 100%; height: 100%; border: none; }
.zoom-modal-title {
  margin-top: 1rem;
  font-size: 1.2rem;
  text-align: center;
  color: #fff;
}
.zoom-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.zoom-close:hover { transform: scale(1.1); }

/***** RESPONSIVE *****/
@media (max-width: 800px) {
  .carousel-track {
    width: 100vw;
    min-height: unset;
    height: auto;
  }
  .carousel-item,
  .carousel-horizontal .carousel-item,
  .carousel-vertical .carousel-item {
    width: 90vw !important;
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    margin-bottom: 1rem;
  }
  .carousel-btn { font-size: 1.5em; padding: 0 0.4em;}
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  section { padding: 1rem; }
  nav { padding: 1rem; flex-direction: column; gap: 0.5rem; }
}
@media (max-width: 768px) {
  .carousel-horizontal .carousel-item { width: 220px; }
  .carousel-horizontal .carousel-video { min-height: 115px; }
  .carousel-vertical .carousel-video { max-height: 300px; }
}

/***** CONTACT *****/
.contact-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(25,25,30,0.8);
  border-radius: 10px;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s;
}
.social-link:hover {
  background: rgba(255,255,255,0.2);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  background: rgba(90,90,90,0.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; /* très arrondi */
  padding: 0.6em 1.4em;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s;
  margin: 0.2em;
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.10);
  cursor: pointer;
}
.btn-contact:hover,
.btn-contact:focus {
  background: rgba(160,160,160,0.33);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 12px 0 rgba(120,120,120,0.30);
  text-decoration: none;
}

/***** UTILS *****/
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
a { color: #fff; transition: color 0.22s; }
a:hover { color: #ededed; }
