/* ---------- Slideshow ---------- */
.slideshow{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Version compacte, sous la liste « En bref » */
.slideshow--mini{
  margin-top: 18px;
  border-radius: var(--radius-sm);
}

.slideshow--mini .slide-nav{
  width: 26px;
  height: 26px;
  font-size: 16px;
}
.slideshow--mini .slide-nav--prev{ left: 8px; }
.slideshow--mini .slide-nav--next{ right: 8px; }
.slideshow--mini .slide-dots{ bottom: 8px; }
.slideshow--mini .slide-dot{ width: 6px; height: 6px; }

.slideshow-track{
  position: relative;
  aspect-ratio: 1254 / 925;
}

.slide{
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.slide.is-active{
  opacity: 1;
  visibility: visible;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.slide-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10,10,12,0.6);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.slide-nav:hover{
  border-color: var(--green);
  background: rgba(10,10,12,0.85);
}

.slide-nav--prev{ left: 16px; }
.slide-nav--next{ right: 16px; }

.slide-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slide-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}

.slide-dot.is-active{
  background: var(--green);
  transform: scale(1.2);
}

/* ---------- Page de détail projet ---------- */

.back-link{
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 0.18s ease;
}
.back-link:hover{ color: var(--green); }

.project-hero{
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.project-category{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.project-hero-title{
  font-size: clamp(28px, 4vw, 42px);
  max-width: 20ch;
}

.project-hero-lede{
  margin-top: 18px;
  max-width: 56ch;
  font-size: 17px;
}

.project-body{ padding: 72px 0 100px; }

.project-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.project-section + .project-section{ margin-top: 44px; }

.project-section h2{
  font-size: 21px;
  margin-bottom: 14px;
}

.project-section p{ font-size: 15.5px; max-width: 62ch; }

.project-feature-list{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-feature-list h3{
  font-size: 16px;
  margin-bottom: 6px;
}

.project-feature-list p{ font-size: 14.5px; }

.project-feature-list p a{
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-feature-list p a:hover{ text-decoration-thickness: 2px; }

.project-side{
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-side-card{
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.project-side-card h3{
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.stack-badges--compact li{
  padding: 7px 14px;
  font-size: 13px;
}

.project-facts{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-facts li{
  font-size: 14px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.project-facts li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.project-side-cta{
  width: 100%;
  text-align: center;
}

@media (max-width: 860px){
  .project-grid{ grid-template-columns: 1fr; }
  .project-side{ position: static; }
}
