﻿.carousel-projets {
  position: relative;
  min-height: 100dvh;
  padding: var(--header-height) var(--page-padding) 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
  user-select: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.carousel-slide.active {
  opacity: 1;
  animation: carousel-kenburns 9s ease-out forwards;
}

@keyframes carousel-kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.carousel-scrim {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.carousel-scrim--top {
  top: 0;
  height: min(320px, 55%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.carousel-scrim--bottom {
  bottom: 0;
  height: min(280px, 50%);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.carousel-hero-text {
  position: absolute;
  left: var(--page-padding);
  right: var(--page-padding);
  top: calc(var(--header-height) + clamp(18px, 4vw, 48px));
  z-index: 3;
  max-width: min(34ch, 640px);
  --text-color: #fff;
}

.carousel-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 10px;
}

.carousel-hero-heading {
  font-family: "Fraunces", serif;
  color: var(--text-color, #fff);
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
  font-weight: 600;
  line-height: 1.28;
}

.carousel-bottom-bar {
  position: absolute;
  left: var(--page-padding);
  right: var(--page-padding);
  bottom: 30px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.carousel-project-info {
  max-width: min(60%, 420px);
  --text-color: #fff;
}

.carousel-project-location {
  margin-top: 4px;
}

.carousel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 14px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.carousel-cta:hover,
.carousel-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  outline: none;
}

.carousel-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.carousel-arrows {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.55);
  outline: none;
}

.carousel-pagination {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.carousel-dot.active {
  background: white;
  opacity: 1;
  transform: scale(1.16);
}

.carousel-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}
