/* ===== Section Réalisations — Carrousel photo ===== */

.realisations {
  background: #0F1B2B;
  padding: 96px 0;
  color: #F2F4F7;
}

.realisations .container {
  max-width: 1100px;
}

.realisations-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.realisations-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.realisations-header p {
  color: #9AA5B4;
  margin: 8px 0 0;
  max-width: 40ch;
}

.realisations-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.realisations-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2C3B50;
  background: transparent;
  color: #F2F4F7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.realisations-nav button:hover {
  background: #E8A33D;
  border-color: #E8A33D;
  color: #0F1B2B;
}

.realisations-nav button:focus-visible {
  outline: 2px solid #E8A33D;
  outline-offset: 2px;
}

.realisations-nav button svg {
  width: 18px;
  height: 18px;
}

.realisations-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #2C3B50;
  background: transparent;
  color: #F2F4F7;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  border-color: #E8A33D;
}

.filter-btn.active {
  background: #E8A33D;
  border-color: #E8A33D;
  color: #0F1B2B;
}

.filter-btn:focus-visible {
  outline: 2px solid #E8A33D;
  outline-offset: 2px;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

@media (min-width: 720px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(33.3333% - 11px);
  }
}

.carousel-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #16243A;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.carousel-caption .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #E8A33D;
  margin-bottom: 4px;
  cursor: pointer;
}

.carousel-caption .tag:hover,
.carousel-caption .tag:focus-visible {
  text-decoration: underline;
}

.carousel-caption p {
  margin: 0;
  font-size: 0.95rem;
  color: #F2F4F7;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #2C3B50;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.carousel-dots button.active {
  background: #E8A33D;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .realisations {
    padding: 64px 0;
  }

  .realisations-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}
