/* =========================
   GLOBAL FIX (DARK MODE)
========================= */

body {
  color: #f1f1f1;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #121212;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin-bottom: 0.6em;
}

p {
  color: #e0e0e0;
  margin-bottom: 1em;
}

a {
  color: #4cafef;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   SECTION SPACING
========================= */

section {
  margin: 40px 0;
  padding: 0 12px;
}

.project-header {
  margin-bottom: 40px;
}

.project-meta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.project-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   CAROUSEL
========================= */

.carousel {
  position: relative;
  max-width: 980px;
  margin: 20px auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img,
.carousel-slide video {
  max-width: 100%;
  max-height: 420px;
  border-radius: 6px;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 2;
  transition: background 0.25s;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* Thumbnails */
.carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.carousel-thumb {
  width: 90px;
  height: 64px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  border-radius: 4px;
  flex-shrink: 0;
}

.carousel-thumb.active {
  opacity: 1;
  border-color: var(--primary-color, #4cafef);
}

/* =========================
   PARTENAIRES
========================= */

.partner-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
  margin-top: 16px;
}

.partner-list img {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;

}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.partner-item img { max-width:100px; max-height:60px; object-fit:contain; display:block; }

.language-name {
  font-size: 0.9rem;
  color: #e0e0e0;
  text-align: center;
}

/* =========================
   INTERVENANTS
========================= */

.service-list {
  display: block;
  margin-top: 50px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e1e1e;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.25s;
}

.service-item:hover {
  background: #2a2a2a;
}

.service-item img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* =========================
   BUTTONS
========================= */

.form-btn {
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.form-btn:hover {
  background: #2a2a2a;
  border-color: #4cafef;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .carousel-slide img,
  .carousel-slide video {
    max-height: 360px;
  }
}

@media (max-width: 768px) {
  section {
    margin: 32px 0;
    padding: 0 8px;
  }

  .carousel-track {
    height: 260px;
  }

  .carousel-slide img,
  .carousel-slide video {
    max-height: 240px;
  }

  .service-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .partner-list {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .carousel-thumb {
    width: 64px;
    height: 48px;
  }

  .service-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}
/* TEAM SCROLL */

.team-scroll-container {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-scroll-row {
  display: flex;
  gap: 12px;
  animation: scrollX 25s linear infinite;
}

.team-scroll-container.paused .team-scroll-row {
  animation-play-state: paused;
}

.team-visual {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

/* animation */
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}