/* ============================= */
/* TITLE */
/* ============================= */

.project-title-chevron {
  color: var(--accent);
  opacity: 0.6;
  font-size: 1.1em;
  margin-right: 0.18em;
  font-family: "Space Mono", monospace;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .project-title-row {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }
}

/* ============================= */
/* HERO */
/* ============================= */

.project-hero,
.project-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.project-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-top: 60px;
  margin-bottom: 40px;
}

.project-hero-content {
  flex: 1 1 320px;
}

.project-title {
  font-size: 2.3rem;
  font-family: "Space Mono", monospace;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.project-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-color);
  border: 1px solid var(--tag-border);
  border-radius: 16px;
  padding: 0.3em 1em;
  font-size: 0.95em;
  font-family: "Space Mono", monospace;
}

.project-hero-img {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.project-hero-img img {
  width: 100%;
  max-width: 480px;
}

/* ============================= */
/* SECTION */
/* ============================= */

.project-section {
  margin-bottom: 48px;
}

.project-section h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: "Space Mono", monospace;
}

.project-section p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ============================= */
/* CAROUSEL */
/* ============================= */

.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 50px;
}

.carousel-images {
  position: relative;
  width: 600px;
  max-width: 96vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* background: var(--bg-elevated); */
}

/* Images empilées */
.carousel-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Image active visible */
.carousel-images img.active {
  opacity: 1;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.carousel-btn {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--accent); /* flèche violette */
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff; /* flèche blanche */
}

/* ============================= */
/* DESKTOP OVERLAY ARROWS */
/* ============================= */

@media (min-width: 701px) {
  .carousel-controls-mobile {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 100px;
    pointer-events: none;
  }

  .carousel-btn {
    pointer-events: all;
  }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .carousel-images {
    width: 95vw;
  }
}

@media (max-width: 700px) {
  .project-hero {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .carousel-images {
    width: 95vw;
  }

  .carousel-controls-mobile {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 10px;
  }
}
