.gallery-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 64px);
  background: #eef8f9;
}

.gallery-section .section-heading-row {
  width: 100%;
  max-width: none;
  display: block;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
}

.gallery-section .section-heading-row > div {
  max-width: 760px;
  margin-inline: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform var(--hover-duration) var(--ease), box-shadow var(--hover-duration) var(--ease), border-color var(--hover-duration) var(--ease);
}

.gallery-card:hover {
  border-color: rgba(24, 168, 198, 0.36);
  box-shadow: 0 18px 42px rgba(6, 44, 54, 0.16);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.58s var(--ease);
}

.gallery-card div {
  padding: 16px;
}

.gallery-card h3 {
  margin: 0 0 4px;
  color: var(--blue-dark);
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-card .gallery-description {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.95rem;
}

.gallery-toggle-wrap {
  display: none;
  justify-content: center;
  margin-top: 22px;
}

.gallery-toggle {
  min-width: 170px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 1440px;
  margin: 0 auto;
  animation: fadeUp 0.65s var(--ease) both;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.72s var(--ease);
}

.carousel-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  flex: 0 0 100%;
  width: 100%;
  min-height: 420px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.carousel-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  text-align: center;
  color: var(--ink);
  background: white;
}

.carousel-caption p {
  margin: 0 0 8px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.carousel-caption h3 {
  margin: 0;
  color: var(--blue-dark);
  max-width: 15ch;
  font-size: clamp(1.65rem, 2.6vw, 2.55rem);
  line-height: 1.05;
}

.carousel-caption span {
  display: block;
  margin-top: 14px;
  max-width: 560px;
  color: var(--muted);
  text-align: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(24, 168, 198, 0.88);
  color: white;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  transform: translateY(-50%);
}

.carousel-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-control.prev {
  left: 18px;
}

.carousel-control.next {
  right: 18px;
  left: auto;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 56, 71, 0.32);
  cursor: pointer;
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--blue);
}

.carousel-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Copyright RZU Informatique */
