/* ================================================================
   NOTRE ÉQUIPE | Team page
   Desktop base, max-width queries step down: 1279 / 1023 / 767 / 479
================================================================ */

.eq-label {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-widest);
  line-height: var(--line-height-normal);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin: 0 0 var(--space-3);
}


/* ================================================================
   HERO | Split: content left, the four portraits fill the right half.
   Each portrait is a link to that person's profile further down.
================================================================ */
.eq-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.eq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 640px;
}

.eq-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16);
  padding-left: max(var(--space-16), calc((100vw - var(--container-xl)) / 2 + var(--space-16)));
}

.eq-hero .breadcrumb {
  margin-bottom: var(--space-6);
}

.eq-hero-eyebrow {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.eq-hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.75rem;
  height: 1px;
  background: var(--color-accent);
}

.eq-hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-5);
}

.eq-hero-title em {
  font-style: italic;
  font-weight: var(--font-weight-normal);
  color: var(--color-accent-muted);
}

.eq-hero-rule {
  width: 3rem;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.35;
  margin-bottom: var(--space-5);
}

.eq-hero-lead {
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 0 var(--space-8);
}

.eq-hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.eq-hero-actions .btn-primary {
  padding: var(--space-4) var(--space-10);
}

.eq-hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.eq-hero-trust-item {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.eq-hero-trust-sep {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

/* ---- The wall of portraits ---- */
.eq-wall {
  display: flex;
  gap: 3px;
  min-width: 0;
  background: var(--color-bg);
}

.eq-strip {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--color-accent-light);
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: flex-grow var(--transition-enter) var(--ease-silk);
  animation: eq-strip-in 1000ms var(--ease-silk) both;
}

.eq-strip:nth-child(2) { animation-delay: 90ms; }
.eq-strip:nth-child(3) { animation-delay: 180ms; }
.eq-strip:nth-child(4) { animation-delay: 270ms; }

.eq-strip:hover,
.eq-strip:focus-visible {
  flex-grow: 1.6;
}

.eq-strip:focus-visible {
  outline: 2px solid var(--color-bg);
  outline-offset: -6px;
}

.eq-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: filter var(--transition-slow) var(--ease-silk);
  animation: eq-photo-in 1400ms var(--ease-silk) both;
}

.eq-wall:hover .eq-strip:not(:hover) img {
  filter: saturate(0.7) brightness(0.9);
}

.eq-strip-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-20) var(--space-5) var(--space-6);
  background: linear-gradient(to top, var(--overlay-dark-heavy) 0%, var(--overlay-dark) 38%, transparent 100%);
}

@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .eq-strip-tag {
    background: linear-gradient(
      to top,
      color-mix(in srgb, var(--color-bg-dark) 92%, transparent) 0%,
      color-mix(in srgb, var(--color-bg-dark) 70%, transparent) 42%,
      transparent 100%
    );
  }
}

.eq-strip-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
}

.eq-strip-role {
  font-size: var(--text-xs);
  line-height: var(--line-height-snug);
  opacity: 0.86;
}

/* "Voir le profil" slides in under the name on hover */
.eq-strip-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
  transition:
    max-height var(--transition-slow) var(--ease-silk),
    opacity var(--transition-base) var(--ease-out),
    margin-top var(--transition-slow) var(--ease-silk);
}

.eq-strip-more svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.eq-strip:hover .eq-strip-more,
.eq-strip:focus-visible .eq-strip-more {
  max-height: 2rem;
  margin-top: var(--space-3);
  opacity: 1;
}

@keyframes eq-strip-in {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes eq-photo-in {
  from { transform: scale(1.14); }
  to   { transform: none; }
}


/* ================================================================
   PRACTITIONERS | Two profiles, photo and text side by side,
   the second one mirrored.
================================================================ */
.eq-doctors {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.eq-doctors .section-header-centered {
  margin-bottom: var(--space-16);
}

.eq-profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-20);
  scroll-margin-top: 110px;
}

.eq-profile + .eq-profile {
  margin-top: var(--space-24);
}

.eq-profile--flip {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.eq-profile--flip .eq-profile-media {
  order: 2;
}

/* Photo, with a thin frame set back behind it */
.eq-profile-media {
  position: relative;
  z-index: 0;
}

.eq-profile-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-3xl);
  transform: translate(-18px, 18px);
}

.eq-profile--flip .eq-profile-media::before {
  transform: translate(18px, 18px);
}

.eq-profile-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: var(--color-accent-light);
}

.eq-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-silk);
}

.eq-profile:hover .eq-profile-photo img {
  transform: scale(1.03);
}

.eq-profile-role {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-widest);
  line-height: var(--line-height-normal);
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin: 0 0 var(--space-3);
}

.eq-profile-name {
  font-size: var(--text-5xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.eq-profile-rule {
  width: 40px;
  height: 1px;
  background: var(--color-gold-deep);
  margin: var(--space-6) 0;
}

.eq-profile-text {
  font-size: 1.0625rem;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin: 0;
}

.eq-profile-text + .eq-profile-text {
  margin-top: var(--space-4);
}

.eq-profile-block {
  margin-top: var(--space-8);
}

/* Diplomas and training, read top to bottom along a line */
.eq-creds {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.eq-creds li {
  position: relative;
  padding-left: var(--space-6);
}

.eq-creds li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-gold-deep);
  border-radius: 50%;
  background: var(--color-bg);
}

.eq-creds li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: calc(0.5em + 13px);
  bottom: calc(var(--space-4) * -1 - 0.5em + 4px);
  width: 1px;
  background: var(--color-border);
}

.eq-cred-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

.eq-cred-sub {
  display: block;
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
  color: var(--color-text-muted);
}

/* Links to the care pages */
.eq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.eq-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  text-decoration: none;
  transition:
    background var(--transition-base) var(--ease-out),
    border-color var(--transition-base) var(--ease-out),
    color var(--transition-base) var(--ease-out);
}

a.eq-chip:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-dark);
}

/* A care with no page of its own: a label, not a link */
.eq-chip--plain {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.eq-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-decoration: none;
}

.eq-link svg {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base) var(--ease-brand);
}

.eq-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eq-link:hover svg {
  transform: translateX(4px);
}


/* ================================================================
   RECEPTION AND CHAIRSIDE | Two cards, photo beside the text
================================================================ */
.eq-support {
  padding: var(--space-24) 0;
  background: var(--color-bg-alt);
}

.eq-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.eq-card {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl);
  scroll-margin-top: 110px;
  transition:
    transform var(--transition-slow) var(--ease-silk),
    box-shadow var(--transition-slow) var(--ease-silk);
}

.eq-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.eq-card-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-accent-light);
}

.eq-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transform: scale(1.16);
  transform-origin: 50% 30%;
  transition: transform 1200ms var(--ease-silk);
}

.eq-card:hover .eq-card-photo img {
  transform: scale(1.2);
}

.eq-card-body {
  padding: var(--space-4) var(--space-6) var(--space-4) 0;
}

.eq-card-name {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  margin: 0;
}

.eq-card .eq-profile-rule {
  margin: var(--space-4) 0;
}

.eq-card-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

.eq-card .eq-creds {
  gap: var(--space-2);
}

.eq-card .eq-creds li:not(:last-child)::after {
  bottom: calc(var(--space-2) * -1 - 0.5em + 4px);
}


/* ================================================================
   VISIT | Four steps, who does what
================================================================ */
.eq-visit {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.eq-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.eq-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition:
    transform var(--transition-slow) var(--ease-silk),
    box-shadow var(--transition-slow) var(--ease-silk);
}

/* A line draws across the top of the step under the pointer */
.eq-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-enter) var(--ease-silk);
}

.eq-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.eq-step:hover::before {
  transform: scaleX(1);
}

.eq-step-num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-light);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text-light);
  margin: 0 0 var(--space-5);
}

.eq-step-title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-3);
}

.eq-step-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

.eq-step-who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.eq-faces {
  display: flex;
  flex: none;
}

.eq-faces img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-accent-light);
}

.eq-faces img + img {
  margin-left: -12px;
}

.eq-step-names {
  display: flex;
  align-items: center;
  min-height: 2.75em;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  color: var(--color-text);
}


/* ================================================================
   1279px and below
================================================================ */
@media (max-width: 1279px) {
  .eq-hero-grid { min-height: 580px; }
  .eq-hero-content { padding: var(--space-12) var(--space-12) var(--space-12) var(--space-10); }
  .eq-hero-title { font-size: var(--text-5xl); }
  .eq-hero-lead { font-size: var(--text-base); }
  .eq-strip-tag { padding: var(--space-16) var(--space-3) var(--space-5); }
  .eq-strip-name { font-size: var(--text-lg); }
  .eq-strip-role,
  .eq-strip-more { display: none; }

  .eq-doctors,
  .eq-support,
  .eq-visit { padding: var(--space-20) 0; }
  .eq-profile { gap: var(--space-12); }
  .eq-profile + .eq-profile { margin-top: var(--space-20); }
  .eq-profile-name { font-size: var(--text-4xl); }

  .eq-support-grid { gap: var(--space-5); }
  .eq-card { gap: var(--space-5); }
  .eq-card-body { padding-right: var(--space-4); }
  .eq-card-name { font-size: var(--text-2xl); }

  .eq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================
   1023px and below: the portraits sit above the text
================================================================ */
@media (max-width: 1023px) {
  .eq-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .eq-wall {
    order: -1;
    height: clamp(280px, 56vw, 460px);
  }
  .eq-hero-content { padding: var(--space-12) var(--space-10) var(--space-14); }
  .eq-hero-lead { font-size: var(--text-lg); max-width: 56ch; }
  .eq-strip-role { display: block; }
  .eq-strip:hover,
  .eq-strip:focus-visible { flex-grow: 1; }

  .eq-profile,
  .eq-profile--flip {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
    align-items: start;
    gap: var(--space-10);
  }
  .eq-profile-media::before { display: none; }

  .eq-support-grid { grid-template-columns: minmax(0, 1fr); }
  .eq-card { grid-template-columns: 220px minmax(0, 1fr); }
}

/* ================================================================
   767px and below: one column
================================================================ */
@media (max-width: 767px) {
  .eq-hero-content { padding: var(--space-8) var(--space-5) var(--space-12); }
  .eq-hero .breadcrumb { margin-bottom: var(--space-4); }
  .eq-hero-title { font-size: var(--text-4xl); }
  .eq-hero-lead { font-size: var(--text-base); margin-bottom: var(--space-6); }
  .eq-hero-actions { flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
  .eq-hero-actions .btn { justify-content: center; width: 100%; }
  .eq-hero-trust { gap: var(--space-3); padding-top: var(--space-5); }
  .eq-strip-tag { padding: var(--space-12) var(--space-3) var(--space-4); }
  .eq-strip-name { font-size: var(--text-base); }
  .eq-strip-role { display: none; }

  .eq-doctors,
  .eq-support,
  .eq-visit { padding: var(--space-14) 0; }
  .eq-doctors .section-header-centered { margin-bottom: var(--space-10); }

  .eq-profile,
  .eq-profile--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .eq-profile--flip .eq-profile-media { order: 0; }
  .eq-profile + .eq-profile { margin-top: var(--space-16); }
  .eq-profile-photo { border-radius: var(--radius-2xl); }
  .eq-profile-name { font-size: var(--text-4xl); }
  .eq-profile-rule { margin: var(--space-5) 0; }
  .eq-profile-text { font-size: var(--text-base); }
  .eq-chip { min-height: 44px; }
  .eq-link { min-height: 44px; margin-top: var(--space-6); }

  .eq-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-radius: var(--radius-2xl);
  }
  .eq-card-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); }
  .eq-card-photo img { object-position: 50% 18%; }
  .eq-card-body { padding: var(--space-6) var(--space-3) var(--space-4); }

  .eq-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .eq-step { padding: var(--space-6) var(--space-5) var(--space-5); }
  .eq-step-num { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
}

/* ================================================================
   479px and below
================================================================ */
@media (max-width: 479px) {
  .eq-wall { height: 68vw; gap: 2px; }
  .eq-hero-trust { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .eq-hero-trust-sep { display: none; }
  .eq-hero-title { font-size: 2rem; }
  .eq-strip-tag { padding: var(--space-10) var(--space-2) var(--space-3); }
  .eq-strip-name { font-size: 0.8125rem; }
  .eq-profile-name { font-size: var(--text-3xl); }
}
