/* ===================== PAGE NOS EXPERTS ===================== */

.team-section {
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
  background: var(--beige);
}

.experts-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.experts-intro h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--sapin);
  margin-bottom: 16px;
}

.experts-intro p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--sapin-weak);
  line-height: 1.6;
}

.expert-band {
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(48px, 8vw, 96px);
}

.expert-band:last-of-type {
  margin-bottom: 0;
}

.expert-band.reverse {
  flex-direction: row-reverse;
}

.domain-panel {
  --accent: var(--sapin);
  --accent-soft: rgba(18, 51, 47, 0.08);
  flex: 0 0 clamp(260px, 28vw, 320px);
  background: var(--accent-soft);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  color: color-mix(in srgb, var(--accent) 70%, black 8%);
  box-shadow: 0 22px 45px rgba(13, 35, 32, 0.14);
}

.domain-panel::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 84px;
  height: 84px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  opacity: 0.65;
  transform: rotate(14deg);
}

.expert-band.reverse .domain-panel {
  align-items: flex-end;
  text-align: right;
}

.domain-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.expert-band.reverse .domain-panel__tag {
  align-self: flex-end;
}

.domain-panel h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  margin: 0;
}

.domain-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--accent) 68%, black 12%);
}

.domain-panel__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.domain-panel__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 40%, transparent);
}

.domain-panel__cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.expert-band.reverse .domain-panel__cta {
  align-self: flex-end;
}

.expert-carousel {
  --accent: var(--sapin);
  flex: 1;
  background: #fff;
  border-radius: 32px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 24px 48px rgba(13, 35, 32, 0.12);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, white 84%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  transition: height 0.4s ease;
}

.expert-card {
  --accent: var(--sapin);
  display: flex;
  gap: clamp(18px, 4vw, 40px);
  align-items: flex-start;
  width: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.expert-card.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.expert-avatar {
  flex: 0 0 clamp(76px, 8vw, 120px);
  height: clamp(76px, 8vw, 120px);
  border-radius: 28px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 88%, black 8%), color-mix(in srgb, var(--accent) 55%, white 25%));
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 28%, transparent);
}

.expert-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expert-heading h4 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  color: var(--sapin);
  margin: 0 0 4px;
}

.expert-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 70%, black 10%);
}

.expert-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sapin-weak);
}

.expert-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.expert-highlights li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sapin);
}

.expert-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.expert-quote {
  margin: 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, #fff 88%);
  font-style: italic;
  color: color-mix(in srgb, var(--accent) 72%, black 8%);
  line-height: 1.6;
}

.carousel-dots {
  display: flex;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 32px);
}

.carousel-dots.is-hidden {
  display: none;
}

.carousel-dot {
  flex: 0 0 34px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: #d7dce0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.is-active {
  background: var(--accent);
  transform: scaleX(1.35);
}

.carousel-dot:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, white 65%);
  outline-offset: 2px;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  margin-top: clamp(16px, 3vw, 28px);
  justify-content: flex-end;
}

.carousel-control {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, white 76%);
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(13, 35, 32, 0.12);
}

.carousel-control:hover {
  transform: translateY(-2px);
}

.carousel-control:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 25%, white 75%);
  outline-offset: 2px;
}

.carousel-control[hidden] {
  display: none;
}

/* Domain color variables */
.domain-panel.domain-reglementation,
.expert-carousel.domain-reglementation,
.expert-card.domain-reglementation {
  --accent: #2e7d32;
  --accent-soft: #e8f5e9;
}

.domain-panel.domain-competences,
.expert-carousel.domain-competences,
.expert-card.domain-competences {
  --accent: #e65100;
  --accent-soft: #fff3e0;
}

.domain-panel.domain-esg,
.expert-carousel.domain-esg,
.expert-card.domain-esg {
  --accent: #c2185b;
  --accent-soft: #fce4ec;
}

.domain-panel.domain-pedagogie,
.expert-carousel.domain-pedagogie,
.expert-card.domain-pedagogie {
  --accent: #1565c0;
  --accent-soft: #e3f2fd;
}

.domain-panel.domain-digital,
.expert-carousel.domain-digital,
.expert-card.domain-digital {
  --accent: #6a1b9a;
  --accent-soft: #f3e5f5;
}

/* Layout adjustments for reverse bands */
.expert-band.reverse .carousel-dots,
.expert-band.reverse .carousel-controls {
  justify-content: flex-start;
}

/* Responsive */
@media (max-width: 1100px) {
  .expert-band {
    flex-direction: column;
  }

  .expert-band.reverse {
    flex-direction: column;
  }

  .domain-panel {
    flex: 1;
  }

  .expert-band.reverse .domain-panel {
    align-items: flex-start;
    text-align: left;
  }

  .expert-band.reverse .domain-panel__tag,
  .expert-band.reverse .domain-panel__note {
    align-self: flex-start;
  }

  .expert-band.reverse .carousel-dots,
  .expert-band.reverse .carousel-controls {
    justify-content: flex-end;
  }
}

@media (max-width: 780px) {
  .expert-card {
    flex-direction: column;
  }

  .expert-avatar {
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }

  .carousel-controls {
    justify-content: center;
  }

  .carousel-dots {
    justify-content: center;
  }
}
