/**
 * Cabinet – Widget-specific styles
 */

/* ═══════════════════════════════════════════════════════════
   INFOS PRATIQUES – FOOTER CTA
   Reprend le traitement de l'encart « Nous recrutons
   actuellement » de la page Équipe (.cabinet-recruitment, plus
   bas dans ce fichier) : carte turquoise arrondie posée sur le
   fond de page, titre Lora marine, texte gris, bouton corail.
   Le bouton passe par .btn.btn-primary — la classe partagée,
   comme sur l'encart Équipe — d'où l'absence de règle dédiée.
   ═══════════════════════════════════════════════════════════ */
.cabinet-footer__cta {
  background: var(--color-bg);
  padding: var(--space-10) var(--site-padding);
}

.cabinet-footer__cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-8);
  border-radius: var(--radius-lg, 16px);
  background: var(--color-teal-light, #e6f7f7);
  text-align: center;
}

.cabinet-footer__cta-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  color: var(--color-navy);
}

/* Le jaune se lisait sur le bandeau marine, pas sur le turquoise clair :
   la mise en relief de « demande de soin » tient à l'italique seul. */
.cabinet-footer__cta-title span {
  color: inherit;
  font-style: italic;
}

.cabinet-footer__cta-text {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  color: var(--color-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .cabinet-footer__cta {
    padding: var(--space-8) var(--site-padding);
  }

  .cabinet-footer__cta-inner {
    padding: var(--space-6) var(--space-5);
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.cabinet-hero {
  background: linear-gradient(135deg, #ebf8f8 0%, #f0faf5 60%, #fff8f0 100%);
  padding: 70px 60px 60px;
  position: relative;
  overflow: hidden;
}
.cabinet-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 191, 191, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cabinet-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-10);
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
}

.cabinet-hero__tag {
  display: inline-block;
  background: rgba(58, 191, 191, 0.15);
  color: var(--color-teal-dark);
  font-size: 0.75rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.cabinet-hero__title {
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-navy);
  margin-bottom: var(--space-5);
}
.cabinet-hero__title strong {
  color: var(--color-teal-dark);
  font-style: italic;
}

.cabinet-hero__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 46ch;
}

/* ── Encart d'information du hero ───────────────────────────────────────
   Une annonce ponctuelle posée entre le sous-titre et les boutons. Teintée
   comme le badge du hero, elle se détache du panneau clair sans lui voler la
   vedette. Elle occupe toute la largeur du bloc de texte. */
.cabinet-hero__notice {
  background: var(--color-teal-light);
  border: 1px solid rgba(58, 191, 191, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  /* Le sous-titre garde sa marge basse : l'encart s'intercale en la reprenant
     sous lui, pour la même respiration de part et d'autre. Pas de marge haute
     négative ici — sans sous-titre, elle collerait l'encart au titre. */
  margin: 0 0 var(--space-8);
}

.cabinet-hero__notice-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin: 0;
}

.cabinet-hero__notice-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--color-teal-dark);
}

.cabinet-hero__notice-text {
  color: var(--color-muted);
  line-height: 1.6;
  margin: var(--space-2) 0 0;
}

/* Sans titre, le texte seul n'a pas d'icône pour le décaler : il reste aligné
   sur le bord de l'encart. */
.cabinet-hero__notice-title + .cabinet-hero__notice-text {
  padding-left: calc(20px + var(--space-2));
}

/* Wraps the one or two CTA buttons. */
.cabinet-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Le cadre de la photo. Il masque le débordement : quel que soit le format de
   l'image d'origine, elle le remplit jusqu'aux bords. */
.cabinet-hero__illustration-bg {
  overflow: hidden;
}
.cabinet-hero__illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hero à photo : la photo en fond, le texte posé dessus ──────────────
   Dès qu'une photo est choisie, elle tapisse tout le hero — pleine largeur,
   pleine hauteur — et le texte se pose dessus dans un panneau clair calé à
   gauche, sur la grille du site. */
.cabinet-hero--overlay {
  padding: 0;
  display: flex;
  align-items: center;
  /* La photo n'a pas de hauteur propre (elle est en position absolue) : c'est
     le hero qui la lui donne, sans jamais dépasser la hauteur de l'écran. */
  min-height: clamp(460px, 64vh, 640px);
  /* Visible seulement en mobile, sous la photo, derrière le texte. */
  background: linear-gradient(135deg, #f4fbfb 0%, #f8fcf8 55%, #fffaf2 100%);
}
/* La pastille décorative disparaissait sous la photo. */
.cabinet-hero--overlay::before {
  display: none;
}

.cabinet-hero--overlay .cabinet-hero__illustration {
  position: absolute;
  inset: 0;
  display: block;
}

/* Plus de cadre teinté ni d'angles arrondis : la photo est le fond du hero. */
.cabinet-hero--overlay .cabinet-hero__illustration-bg {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: var(--color-teal-light);
}
/* La photo seule (sans carrousel) tapisse le cadre comme le fait le carrousel :
   posée dans le flux, sa hauteur dépendrait d'un pourcentage que le cadre — dont
   la hauteur vient d'un rapport d'image en mobile — ne résout pas toujours. */
.cabinet-hero--overlay .cabinet-hero__illustration-bg > img {
  position: absolute;
  inset: 0;
}

/* Le texte n'a plus de colonne à lui : une seule zone, calée sur la grille du
   site, au-dessus de la photo. */
.cabinet-hero--overlay .cabinet-hero__inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: var(--space-12) var(--site-padding);
}

/* Le panneau clair : assez opaque pour que le texte se lise quelle que soit la
   photo derrière, assez étroit pour en laisser voir la moitié droite. */
.cabinet-hero--overlay .cabinet-hero__text {
  max-width: 560px;
  background: rgba(255, 255, 255, 0.93);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

/* ── Carrousel du hero ──────────────────────────────────────────────────
   Deux photos qui alternent seules en fondu, sans commandes (monté par
   src/js/navigation.js). Les slides se superposent : toute la chaîne doit
   porter la hauteur du cadre. */
.cabinet-hero-splide .splide__track,
.cabinet-hero-splide .splide__list,
.cabinet-hero-splide .splide__slide {
  width: 100%;
  height: 100%;
}
/* Le carrousel tapisse son cadre : posé dans le flux, sa hauteur dépendrait
   d'un pourcentage que le cadre — dont la hauteur vient d'un rapport d'image en
   mobile — ne sait pas toujours résoudre.
   Splide masque par ailleurs son conteneur jusqu'au montage ; le hero est ce
   qu'on voit en premier, donc si le script tombe la première photo doit rester
   là (la piste masque le débordement, la seconde reste hors champ). */
.cabinet-hero-splide {
  position: absolute;
  inset: 0;
  visibility: visible;
}
/* Le carrousel des services réserve de la place à ses puces sous la piste ;
   celui du hero n'en a pas, la photo va jusqu'en bas. */
.cabinet-hero-splide .splide__track {
  padding-bottom: 0;
}

.cabinet-hero--centered .cabinet-hero__inner {
  grid-template-columns: 1fr;
}
.cabinet-hero--centered .cabinet-hero__text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.cabinet-hero--centered .cabinet-hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}
.cabinet-hero--centered .cabinet-hero__actions {
  justify-content: center;
}
/* Hero centré : le titre de l'encart se centre avec le reste, et son texte
   repasse sous l'icône plutôt que décalé à sa droite. */
.cabinet-hero--centered .cabinet-hero__notice-title {
  justify-content: center;
}
.cabinet-hero--centered .cabinet-hero__notice-title + .cabinet-hero__notice-text {
  padding-left: 0;
}

@media (max-width: 900px) {
  .cabinet-hero__inner {
    grid-template-columns: 1fr;
  }
  /* Sur un écran étroit, le texte ne se pose plus sur la photo : elle serait
     trop réduite pour qu'il reste quelque chose à voir derrière le panneau.
     La photo ouvre le hero, le texte la suit sur le fond clair de la section. */
  .cabinet-hero--overlay {
    display: block;
    min-height: 0;
  }
  .cabinet-hero--overlay .cabinet-hero__illustration {
    position: static;
  }
  .cabinet-hero--overlay .cabinet-hero__illustration-bg {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  /* Le recadrage en 3:2 garde le point choisi dans l'éditeur (« Cadrage en
     mobile »), posé sur chaque photo par template-parts/sections/hero.php. */
  .cabinet-hero--overlay .cabinet-hero__illustration img {
    object-position: var(--hero-focal, 50% 50%);
    transform: scale(var(--hero-zoom, 1));
    transform-origin: var(--hero-focal, 50% 50%);
  }
  .cabinet-hero--overlay .cabinet-hero__inner {
    padding: var(--space-10) var(--site-padding) var(--space-12);
  }
  .cabinet-hero--overlay .cabinet-hero__text {
    max-width: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .cabinet-hero__title {
    font-size: 1.9rem;
  }
  .cabinet-hero__text .btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .cabinet-hero {
    padding: var(--space-12) var(--site-padding);
  }
  /* La photo touche encore les bords : seule la colonne de texte se resserre. */
  .cabinet-hero--overlay {
    padding: 0;
  }
  .cabinet-hero__title {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO À BULLES
   Variante du hero : le logo découpé en zones remplace l'illustration. Le
   dessin lui-même est celui de la carte de l'équipe (.cabinet-team-map__*,
   plus bas) — ici, seulement ce qui change quand il tient dans un hero et que
   chaque zone est un lien.
   ═══════════════════════════════════════════════════════════ */
.cabinet-hero__bulles {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cabinet-hero-bulles-map {
  width: 100%;
  max-width: 460px;
}

/* Le dessin est seul dans sa colonne : rien en dessous dont il faille
   s'écarter. */
.cabinet-hero--bulles .cabinet-team-map__figure {
  max-width: none;
  margin-bottom: 0;
}

.cabinet-hero--bulles .cabinet-team-map__link {
  cursor: pointer;
}

.cabinet-hero--bulles .cabinet-team-map__link:focus {
  outline: none;
}

.cabinet-hero--bulles .cabinet-team-map__link:focus-visible {
  outline: 2px solid var(--color-teal-dark);
  outline-offset: 2px;
}

/* Le nom du service mène au même endroit que sa zone : il prend donc les clics,
   au contraire des libellés de la carte de l'équipe.
   Sa taille suit celle du dessin (%, pas px) : les repères sont posés en % du
   cadre, un libellé de largeur fixe finirait par recouvrir son voisin dès que le
   logo rétrécit. */
.cabinet-hero--bulles .cabinet-team-map__label--link {
  display: block;
  width: 27%;
  font-size: clamp(0.62rem, 1.05vw, 0.82rem);
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.cabinet-hero--bulles .cabinet-team-map__label.is-active {
  transform: translate(-50%, -50%) scale(1.06);
}

@media (max-width: 900px) {
  /* Le hero classique fait passer son image devant le texte ; ici le dessin est
     la navigation vers les services, il reste dessous — on lit d'abord ce que
     fait le cabinet, on choisit ensuite. */
  .cabinet-hero--bulles .cabinet-hero__bulles {
    margin-top: var(--space-8);
  }

  .cabinet-hero-bulles-map {
    max-width: 360px;
  }

  .cabinet-hero--bulles .cabinet-team-map__label--link {
    font-size: 0.6rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   SERVICES (Carousel)
   ═══════════════════════════════════════════════════════════ */

.cabinet-service-card {
  flex: 0 0 280px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 14px 12px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition:
    border-color var(--transition-normal),
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}
.cabinet-service-card:hover {
  transform: translateY(-4px);
}

.cabinet-service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cabinet-service-card__icon svg,
.cabinet-service-card__icon .dashicons {
  width: 26px;
  height: 26px;
  font-size: 26px;
  color: var(--color-teal);
}

/* Thumbnail fallback (if service has a featured image) */
.cabinet-service-card__thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-teal-light);
  flex-shrink: 0;
}
.cabinet-service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cabinet-service-card__body p {
  margin: 0;
}

.cabinet-service-card__title {
  font-size: 0.98rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  line-height: 1.3;
  margin: 0;
  margin-bottom: 12px;
}
.cabinet-service-card__excerpt {
  font-size: 0.84rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.cabinet-service-card__space {
  flex: 1;
}
.cabinet-service-card__link {
  font-size: 0.83rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition:
    gap var(--transition-fast),
    color var(--transition-fast);
  margin-top: 12px;
}
.cabinet-service-card:hover .cabinet-service-card__link {
  gap: 8px;
}
.cabinet-services-splide .cabinet-service-card {
  flex: 1;
  height: 100%;
  margin: 14px 0;
}

/* Splide: make slides full height so cards stretch evenly */
.splide__slide {
  height: auto;
}
.splide__track {
  padding-bottom: 28px;
}

/* Splide: arrow buttons */
.splide__arrow {
  background: var(--color-white);
  border: 2px solid var(--color-teal-light);
  box-shadow: var(--shadow-md);
  border-radius: 100%;
  width: 42px;
  height: 42px;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 54px;
  position: absolute;
  margin: 0 -21px;
  top: calc(50% - 54px);
  z-index: 1;
}
.splide__arrow:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  cursor: pointer;
}
.splide__arrow:disabled {
  display: none;
}
.splide__arrow svg {
  fill: var(--color-teal-dark);
  width: 16px;
  height: 16px;
}
.splide__arrow:hover svg {
  fill: var(--color-white);
}

.splide__arrow--prev {
  transform: rotate(180deg);
}

.splide__arrow--next {
  right: 0px;
}

/* Splide: pagination dots */
.splide__pagination {
  bottom: -1.5rem;
  gap: 7px;
}
.splide__pagination__page {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e0;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    width 0.2s;
  padding: 0;
  transition:
    background var(--transition-fast),
    width var(--transition-normal);
}
.splide__pagination__page.is-active {
  background: var(--color-teal);
  transform: none;
  width: 24px;
  border-radius: 4px;
}

/* Extra bottom padding to make room for dots */
.cabinet-services-splide {
  padding-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════
   VALUES
   ═══════════════════════════════════════════════════════════ */
.cabinet-values {
  background: linear-gradient(135deg, #ebf8f8 0%, #f5fdfd 100%);
}

.cabinet-values__title,
.cabinet-team__title {
  text-align: center;
  font-family: var(--font-family-heading);
  font-size: 1.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.cabinet-values__subtitle,
.cabinet-team__subtitle {
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-muted);
  margin: auto;
  margin-bottom: var(--space-10);
  max-width: 60ch;
  line-height: var(--line-height-normal);
}

.cabinet-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: var(--space-8);
}

.cabinet-value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal);
}
.cabinet-value-card:hover {
  transform: translateY(-4px);
}

.cabinet-value-card__circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cabinet-value-card__circle svg,
.cabinet-value-card__circle .dashicons {
  width: 32px;
  height: 32px;
  font-size: 32px;
  color: currentColor;
}

.cabinet-value-card__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  margin: 0;
}

.cabinet-value-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: var(--line-height-normal);
  margin: var(--space-2) 0 0;
}

.cabinet-values__tagline {
  text-align: center;
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}
.cabinet-values__tagline em {
  color: var(--color-teal-dark);
  font-style: italic;
}

/* Legacy: formula text fallback */
.cabinet-values__formula {
  text-align: center;
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.cabinet-values__cta {
  text-align: center;
}

@media (max-width: 768px) {
  .cabinet-values__grid {
    grid-template-columns: 1fr;
  }
  .cabinet-values {
    padding-bottom: calc(var(--space-12) + 12px);
  }
}

/* ═══════════════════════════════════════════════════════════
   TEAM GRID
   ═══════════════════════════════════════════════════════════ */
.cabinet-team {
  background: var(--bg);
}

/* ── Carousel layout (homepage) ───────────────────────────── */
.cabinet-team__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: end;
  margin-bottom: var(--space-8);
}
.cabinet-team__left .cabinet-section-title {
  margin-bottom: var(--space-2);
}
.cabinet-team__left .cabinet-section-subtitle {
  margin-bottom: var(--space-6);
}

.cabinet-section-title {
  margin-bottom: var(--space-2);
}

.cabinet-section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  margin-bottom: var(--space-10);
  line-height: var(--line-height-normal);
}

.cabinet-team__synergy {
  margin-bottom: var(--space-8);
}

.cabinet-team__synergy-text {
  margin: 0 auto var(--space-6);
  color: var(--color-muted);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  text-align: center;
}

/* Le reste de la section est centré — titre, bulles, paire fiche + paquet.
   Les boutons de fin suivent, sinon ils décrochent seuls à gauche. */
.cabinet-team__outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-8);
}

/* Posé seul par le bloc « boutons contact + lien équipe » : la section qui le
   porte donne déjà l'espace au-dessus. */
.cabinet-team__outro--standalone {
  margin-top: 0;
}

.cabinet-team__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  /* Sur mobile la paire passe à la ligne : sans cela, chaque bouton se cale
     à gauche d'un conteneur qui, lui, occupe toute la largeur. */
  justify-content: center;
  margin-bottom: var(--space-5);
}

/* Le lien de renvoi : « Voir toute l'équipe », « Voir toutes les prestations »,
   et l'accroche qui préfère un lien à un bouton.
   La flèche est une boîte à elle (.cabinet-arrow) qui glisse au survol. Elle
   glisse par `transform`, pas en ouvrant l'écart : un écart qui s'ouvre
   élargit le lien, et dans une rangée centrée (la paire sous la carte de
   l'accueil) tout le reste de la rangée se décalait avec lui. */
.cabinet-see-all-link {
  font-size: 0.88rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.cabinet-see-all-link .cabinet-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}
.cabinet-see-all-link:hover .cabinet-arrow,
.cabinet-see-all-link:focus-visible .cabinet-arrow {
  transform: translateX(4px);
}

.cabinet-team-map {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  /* overflow-x: hidden; */

  /* Teinte du service sélectionné : navigation.js écrit `data-active-slot` sur
     ce conteneur, la fiche et le deck en héritent. Les couleurs restent ici,
     avec celles des bulles, et pas dupliquées côté PHP. */
  --service-tint: var(--color-teal-light, #e6f7f7);
  --service-ink: var(--color-navy);
}

/* Le même vestiaire, servi de deux façons : `data-active-slot` suit la bulle
   qu'on vient de cliquer sur l'accueil (le script en change à chaque
   sélection), `data-service-slot` est posé une fois pour toutes par le rendu
   quand la teinte appartient au service et non à une sélection — c'est le cas
   de chaque ligne de « Nos services », qui les montre tous à la fois.
   Une seule table pour les deux : la couleur d'un service est la même partout
   sur le site, et elle ne se règle qu'ici. */
[data-active-slot="green"],
[data-service-slot="green"]  { --service-tint: #c9eadd; --service-ink: #486c53; }
[data-active-slot="purple"],
[data-service-slot="purple"] { --service-tint: #dcc7e8; --service-ink: #735596; }
[data-active-slot="coral"],
[data-service-slot="coral"]  { --service-tint: #fbcec4; --service-ink: #bd5f4e; }
[data-active-slot="orange"],
[data-service-slot="orange"] { --service-tint: #fce39d; --service-ink: #b96c10; }

/* Sous-zones : la teinte est l'aplat déclaré côté PHP, prise dans les couleurs
   du logo — aucune couleur nouvelle n'entre dans la charte. */
[data-active-slot="centre"],
[data-service-slot="centre"]      { --service-tint: #bf96cc; --service-ink: #6d4f80; }
[data-active-slot="halo-orange"],
[data-service-slot="halo-orange"] { --service-tint: #f8a790; --service-ink: #a9523a; }

.cabinet-team-logo-demo {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin: var(--space-8) auto 0;
}

.cabinet-team-logo-demo__svg {
  display: block;
  width: clamp(150px, 18vw, 220px);
  aspect-ratio: 43.228878 / 37.369198;
}

.cabinet-team-logo-demo figcaption {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-align: center;
}

.cabinet-team-map__figure {
  position: relative;
  max-width: 620px;
  margin: 0 auto var(--space-8);
}

.cabinet-team__bottom {
  display: grid;
  /* La fiche et le paquet forment une paire. La colonne de droite se règle sur
     la largeur du paquet — sinon elle s'étire sur toute la page et le paquet
     flotte au milieu d'un vide. L'ensemble se centre sur le même axe que les
     bulles du dessus, au lieu d'être plaqué contre les bords. */
  grid-template-columns: minmax(0, 1fr) min(320px, 100%);
  gap: clamp(24px, 4vw, 48px);
  /* Les deux colonnes montent à la même hauteur : c'est ce qui permet à leurs
     liens de pied de tomber sur la même ligne. */
  align-items: stretch;
  max-width: 880px;
  margin-inline: auto;
}
.cabinet-team__bottom > * {
  min-width: 0;
}

.cabinet-team-map__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.cabinet-team-map.has-selection .cabinet-team-map__svg {
  z-index: 5;
}

/* Le logo est découpé en régions — une par intersection de bulles — et non en
   bulles : navigation.js calcule la couleur de chaque tracé à partir des
   bulles qui la recouvrent, y compris l'assombrissement au survol. Pas de
   `filter` ni de `transform` ici : ils placeraient le tracé dans son propre
   contexte de rendu et feraient réapparaître les filets blancs. */
.cabinet-team-map__region {
  cursor: pointer;
  /* Chaque région est un tracé distinct : son bord se fond avec la page et
     laisse un filet blanc le long de la région voisine. Un contour fin de la
     couleur du remplissage (posé par le script) recouvre ce filet. */
  stroke-width: 0.09;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition:
    fill var(--transition-normal),
    stroke var(--transition-normal),
    opacity var(--transition-normal);
}

/* Plus aucune bulle au-dessus : la région disparaît et ne prend plus les
   clics. C'est ce qui masque une bulle à laquelle aucun service n'est
   associé. */
.cabinet-team-map__region.is-off {
  opacity: 0;
  pointer-events: none;
}

/* Chrome dessine son propre liseré sur un tracé SVG focusable dès le clic, pas
   seulement au clavier : on le coupe et on ne garde que le nôtre. */
.cabinet-team-map__region:focus {
  outline: none;
}

.cabinet-team-map__region:focus-visible {
  outline: 2px solid var(--color-teal-dark);
  outline-offset: 2px;
}

/* Couche anti-jointures reconstruite par le script : un seul tracé par
   couleur, sous les régions. */
.cabinet-team-map__seams path {
  stroke-width: 0.09;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Repère provisoire : le libellé est centré sur la zone pleine de sa bulle
   (--label-x / --label-y, en % du cadre), la position fine reste à caler. */
.cabinet-team-map__label {
  position: absolute;
  left: var(--label-x);
  top: var(--label-y);
  z-index: 4;
  width: 180px;
  padding: 0;
  border: 0;
  color: var(--color-navy);
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  line-height: var(--line-height-snug);
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

/* Chaque bulle associée à un service porte son nom, sélectionnée ou non : au
   z-index 3 les libellés passaient sous le SVG (z-index 5 en sélection) et
   seul celui du service actif restait lisible. */
.cabinet-team-map.has-selection .cabinet-team-map__label {
  opacity: 1;
  visibility: visible;
  z-index: 6;
}

.cabinet-team-map__label--green {
  color: #486c53;
}

.cabinet-team-map__label--purple {
  color: #735596;
}

.cabinet-team-map__label--coral {
  color: #bd5f4e;
}

.cabinet-team-map__label--orange {
  color: #b96c10;
}

/* Les deux sous-zones sont posées sur des recouvrements, aux couleurs
   moyennes et changeantes (rose, violet, vert d'eau, corail vif) : à la
   teinte de leur bulle, leurs noms se fondaient dans le fond. Une encre bien
   plus sombre les détache. */
.cabinet-team-map__label--centre {
  color: #43294f;
}

.cabinet-team-map__label--halo-orange {
  color: #6e2a17;
}

.cabinet-team-map.has-selection .cabinet-team-map__label.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 7;
  transform: translate(-50%, -50%) scale(1.04);
}

.cabinet-team-service-panel,
.cabinet-team__deck-column {
  /* Les deux colonnes montent à la hauteur de la plus haute, et chacune y
     centre son contenu : la fiche de la prestation et le paquet des
     thérapeutes se font face, milieu contre milieu, quelle que soit la
     longueur de la fiche. Chacune porte sous sa carte une rangée de
     commandes de même hauteur (flèches des prestations, points et flèches du
     paquet) : centrer « carte + commandes » centre aussi les cartes. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cabinet-team-service-card {
  display: none;
  position: relative;
  padding: 28px 28px 26px 32px;
  border: 1px solid rgba(30, 74, 92, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, var(--service-tint) -55%, rgba(255, 255, 255, 0) 48%),
    var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: background var(--transition-normal);
}

/* Le filet reprend la couleur de la bulle cliquée : c'est le fil qui relie la
   sélection à la fiche. */
.cabinet-team-service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--service-tint);
  transition: background var(--transition-normal);
}

.cabinet-team-service-card.is-active {
  display: block;
}

.cabinet-team-service-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: var(--space-4);
  border-radius: 18px;
  background: var(--service-tint);
  color: var(--service-ink);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cabinet-team-service-card__icon svg,
.cabinet-team-service-card__icon .dashicons {
  width: 30px;
  height: 30px;
  font-size: 30px;
}

.cabinet-team-service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-team-service-card__eyebrow {
  margin: 0;
  color: var(--service-ink);
  font-size: 0.68rem;
  font-weight: var(--font-weight-black);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cabinet-team-service-card__title {
  margin: 4px 0 var(--space-2);
  color: var(--color-navy);
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  line-height: var(--line-height-tight);
}

.cabinet-team-service-card__excerpt {
  margin: 0 0 var(--space-5);
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: var(--line-height-normal);
}

.cabinet-team-service-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.cabinet-team-service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: var(--font-weight-extrabold);
  text-decoration: none;
  transition:
    background var(--transition-fast),
    gap var(--transition-fast);
}

.cabinet-team-service-card__cta:hover,
.cabinet-team-service-card__cta:focus {
  background: var(--color-teal-dark);
  color: var(--color-white);
  gap: 12px;
}

.cabinet-team-service-card__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: var(--font-weight-extrabold);
}

/* ── Prise en charge et tarif ──────────────────────────────
   Les deux encarts d'une prestation, partagés par la fiche dépliée de « Nos
   prestations » et la carte de l'accueil. Ils reprennent la teinte de la
   prestation (--service-tint, posée par la bulle du logo) pour appartenir à
   leur fiche sans l'alourdir, et se rangent côte à côte tant qu'il y a la
   place. */
.cabinet-service-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.cabinet-service-panel {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--service-tint);
  border-radius: var(--radius-lg);
  /* Le fond est la teinte de la prestation, très diluée : l'encart se détache
     de la carte blanche sans rivaliser avec elle. */
  background: linear-gradient(140deg, var(--service-tint) -120%, rgba(255, 255, 255, 0) 70%);
}

.cabinet-service-panel__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: 0.72rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--service-ink);
}

.cabinet-service-panel__icon {
  flex: none;
  width: 17px;
  height: 17px;
}

.cabinet-service-panel__lead {
  margin: 0;
  font-size: 0.98rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  color: var(--color-navy);
}

/* Le montant porte la réponse : il se lit avant le reste de l'encart. */
.cabinet-service-panel__lead--price {
  font-size: 1.12rem;
  font-weight: var(--font-weight-extrabold);
}

.cabinet-service-panel__note {
  margin: var(--space-2) 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ── La variante de la carte de l'accueil ──────────────────
   Une carte qu'on parcourt, pas une fiche qu'on lit : l'encart y perd son
   cadre — une boîte dans une boîte alourdirait une carte déjà teintée — et
   se contente d'un filet pour se détacher de l'accroche. */
.cabinet-service-panels--compact {
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
}

.cabinet-service-panels--compact .cabinet-service-panel {
  padding: var(--space-4) 0 0;
  border: 0;
  border-top: 1px solid rgba(30, 74, 92, 0.1);
  border-radius: 0;
  background: none;
}

.cabinet-service-panels--compact .cabinet-service-panel__lead {
  font-size: 0.94rem;
}

.cabinet-service-panels--compact .cabinet-service-panel__note {
  font-size: 0.84rem;
}

/* ── Commandes de la fiche service ─────────────────────────
   Le même vocabulaire que les commandes du deck, en plus discret : ce sont
   deux pas dans la même liste, pas deux objets différents. */
.cabinet-team-service-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  /* Collées sous la fiche : la colonne centre l'ensemble (voir plus haut). */
  padding-top: var(--space-4);
}

/* Un seul service : rien à parcourir. Les commandes s'effacent sans quitter le
   flux, sinon la hauteur du bloc dépendrait du nombre de services. */
.cabinet-team-service-nav.is-idle {
  visibility: hidden;
  pointer-events: none;
}

.cabinet-team-service-nav__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--color-teal-light);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.cabinet-team-service-nav__btn svg {
  width: 15px;
  height: 15px;
}

.cabinet-team-service-nav__btn:hover,
.cabinet-team-service-nav__btn:focus-visible {
  border-color: var(--color-teal);
  transform: translateY(-2px);
}

.cabinet-team-service-nav__position {
  margin: 0;
  min-width: 9ch;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: var(--font-weight-extrabold);
  text-align: center;
}

/* Les deux renvois, sur une seule ligne au milieu de la paire. Centré chacun
   sous sa colonne, ils se retrouvaient aux deux bouts de la section — l'un
   sous la fiche, l'autre sous le paquet, à une demi-largeur l'un de l'autre.
   La rangée traverse les deux colonnes de la grille. */
.cabinet-team__links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-10);
  margin-top: var(--space-8);
}

/* ── Deck de thérapeutes ──────────────────────────────────
   Un paquet de cartes : celle de devant est droite, les suivantes descendent,
   rétrécissent et s'inclinent. On la fait glisser sur le côté et elle repasse
   au fond du paquet — rien ne sort du jeu. */
.cabinet-team-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cabinet-team-deck__pile {
  position: relative;
  width: min(320px, 100%);
  /* `pan-y` laisse la page défiler au doigt : seul l'horizontal nous revient. */
  touch-action: pan-y;
}

/* Sans JS, les cartes restent dans le flux : une liste verticale lisible.
   `is-ready` fait basculer la pile, une fois le script en place. */
.cabinet-team-deck.is-ready .cabinet-team-deck__pile {
  height: 372px;
}

/* Le socle `.cabinet-member-card` est déclaré plus bas dans ce fichier : à
   spécificité égale il gagnerait. D'où le conteneur en préfixe. */
.cabinet-team-deck .cabinet-member-card--deck {
  margin: 0;
  min-height: 372px;
  align-items: center;
  /* La pile a une hauteur fixe : un nom très long ne doit pas déborder du
     carton arrondi. */
  overflow: hidden;
  /* Trame fixe : la photo se cale sous le padding haut, le corps occupe le
     reste et pousse le lien au ras du bas. D'une carte à l'autre, la photo et
     le lien tombent donc toujours au même endroit, quelle qu'en soit la
     hauteur du contenu. */
  justify-content: flex-start;
  padding: 32px 24px 26px;
  border-color: rgba(30, 74, 92, 0.07);
  border-radius: 20px;
  /* Un lavis de la couleur du service en haut de carte : c'est ce qui rattache
     le thérapeute à la bulle qu'on vient de cliquer. Le dégradé démarre hors
     cadre : la couleur pleine n'entre jamais dans la carte, seule sa fin. */
  background:
    linear-gradient(170deg, var(--service-tint) -60%, rgba(255, 255, 255, 0) 45%),
    var(--color-white);
  /* Un glissement sélectionnerait le texte de la carte sans ceci. */
  user-select: none;
  -webkit-user-select: none;
}

.cabinet-team-deck.is-ready .cabinet-member-card--deck {
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: grab;
  /* La place dans la pile vient de --k (0 = devant), posée par le script. */
  transform:
    translateY(calc(var(--k, 0) * 14px))
    scale(calc(1 - var(--k, 0) * 0.05))
    rotate(calc(var(--k, 0) * 1.6deg));
  transition:
    transform 420ms cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 320ms ease,
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* Le survol ne soulève pas une carte que l'on peut saisir : le geste, lui,
   déplace la carte pour de bon. */
.cabinet-team-deck.is-ready .cabinet-member-card--deck:hover {
  transform:
    translateY(calc(var(--k, 0) * 14px))
    scale(calc(1 - var(--k, 0) * 0.05))
    rotate(calc(var(--k, 0) * 1.6deg));
}

/* Au-delà de trois cartes visibles la pile devient une bouillie : les suivantes
   attendent, invisibles, à la place de la troisième. */
.cabinet-team-deck.is-ready .cabinet-member-card--deck.is-buried {
  opacity: 0;
  pointer-events: none;
}

.cabinet-team-deck.is-ready .cabinet-member-card--deck:not(.is-front) {
  pointer-events: none;
}

.cabinet-team-deck .cabinet-member-card--deck.is-dragging {
  transition: none;
  cursor: grabbing;
}

.cabinet-team-deck .cabinet-member-card--deck.is-gone {
  transition:
    transform 340ms ease,
    opacity 340ms ease;
  opacity: 0;
}

/* Un thérapeute d'un autre service n'est pas dans le paquet. */
.cabinet-member-card--deck.is-out {
  display: none;
}

/* Le paquet de l'accueil donne le gabarit ; la grille de la page Équipe le
   reprend (voir plus bas), pour que la même carte se présente pareil aux deux
   endroits. */
.cabinet-member-card--deck .cabinet-member-card__photo {
  margin: 0 0 var(--space-4);
}

.cabinet-member-card--deck .cabinet-member-card__name {
  margin-bottom: var(--space-2);
}

/* Le badge d'arrivée tient la place du lien de la fiche : même ancrage. */
.cabinet-member-card__arrival {
  margin-top: auto;
}

.cabinet-member-card--deck .cabinet-member-card__arrival {
  align-self: stretch;
  /* C'est un `p` : sans cette remise à zéro, la marge globale des paragraphes
     le remonte de 11 px par rapport au lien du profil qu'il remplace. */
  margin-bottom: 0;
  padding: 6px 12px;
}

/* Le portrait manque : les bulles du cabinet en filigrane, cerclées de la
   couleur du service, tiennent l'emplacement. Une silhouette y lisait
   « personne inconnue » ; le logo lit « un membre de l'équipe, à venir ». */
.cabinet-member-card__avatar-logo {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-white);
  /* La teinte du service n'existe que sous la carte des bulles, sur l'accueil.
     Sans repli, la déclaration entière serait invalide sur la page Équipe et
     la pastille y perdrait son cerclage. */
  box-shadow: inset 0 0 0 2px var(--service-tint, var(--color-teal-light, #e6f7f7));
}

.cabinet-member-card__avatar-logo img {
  width: 62px;
  height: auto;
  /* Atténué : le logo tient la place d'un portrait, il ne doit pas peser plus
     que le nom du thérapeute juste en dessous. */
  opacity: 0.5;
}


.cabinet-member-card--deck .cabinet-member-card__body {
  flex: 1 1 auto;
  width: 100%;
  justify-content: flex-start;
}

/* Deux lignes réservées au nom : sans cela, les badges d'un nom court
   remontent et sautent d'une carte à l'autre pendant le défilement. */
.cabinet-member-card--deck .cabinet-member-card__name {
  min-height: calc(2em * var(--line-height-tight));
}

/* Toute la carte mène au profil ; un clic qui suit un glissement est annulé
   par le script. */
.cabinet-team-deck.is-ready .cabinet-member-card--deck .cabinet-member-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Les badges restent lisibles au-dessus du lien étiré sans capter le pointeur :
   le geste doit pouvoir démarrer n'importe où sur la carte. */
.cabinet-member-card--deck .cabinet-member-card__services {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* ── Commandes du deck ───────────────────────────────────── */
.cabinet-team-deck__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Un seul thérapeute : la carte se suffit, il n'y a rien à faire défiler. Les
   commandes disparaissent sans quitter le flux — les retirer ferait remonter
   la suite de la page à chaque changement de service. */
.cabinet-team-deck__nav.is-idle {
  visibility: hidden;
  pointer-events: none;
}

/* Même gabarit que les commandes de la fiche prestation
   (.cabinet-team-service-nav__btn) : les deux colonnes portent le même geste,
   elles n'ont pas à le dire sur deux tailles. */
.cabinet-team-deck__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--color-teal-light);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast),
    background var(--transition-fast);
}

.cabinet-team-deck__btn svg {
  width: 15px;
  height: 15px;
}

.cabinet-team-deck__btn:hover,
.cabinet-team-deck__btn:focus-visible {
  border-color: var(--color-teal);
  transform: translateY(-2px);
}

.cabinet-team-deck__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cabinet-team-deck__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-border, #e5e7eb);
  cursor: pointer;
  transition:
    background var(--transition-normal),
    transform var(--transition-normal);
}

.cabinet-team-deck__dot.is-on {
  background: var(--service-tint);
  box-shadow: inset 0 0 0 1.5px var(--service-ink);
  transform: scale(1.4);
}

/* Le message occupe la pile plutôt que de s'y substituer : la hauteur du bloc
   ne dépend pas du service sélectionné. */
.cabinet-team-deck__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 var(--space-6);
  color: var(--color-muted);
  text-align: center;
}

.cabinet-team-deck__empty[hidden] {
  display: none;
}

/* Member card (deck & grille) */
.cabinet-member-card {
  width: 100%;
  min-height: 220px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}
.cabinet-member-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-teal);
  cursor: pointer;
}

.cabinet-member-card__photo {
  width: 104px;
  height: 104px;
  margin: 0 32px var(--space-4);
}

.cabinet-member-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}
/* La bulle découpe la photo ; le point et le zoom choisis sous l'image à la
   une (inc/member-photo.php) placent le visage au centre. */
.cabinet-member-photo {
  display: block;
  overflow: hidden;
}
.cabinet-member-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focal, 50% 50%);
  transform: scale(var(--photo-zoom, 1));
  transform-origin: var(--photo-focal, 50% 50%);
}
.cabinet-member-card__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 12px rgba(58, 191, 191, 0.2);
}
.cabinet-member-card__avatar-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-light), #d0efef);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 12px rgba(58, 191, 191, 0.2);
}
.cabinet-member-card__avatar-placeholder .dashicons {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  color: var(--color-teal);
}
/* Le niveau de titre suit le plan de la page — h3 dans la grille, h4 dans le
   paquet, où la section a déjà ses h3. La typographie, elle, ne doit pas en
   dépendre : sans ces lignes, le nom prend le style de titre du thème parent
   propre au niveau retenu, et sort différemment d'une page à l'autre. */
.cabinet-member-card__name {
  font-family: var(--font-family-heading);
  font-size: 1.3rem;
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-navy);
  margin-bottom: 4px;
}
.cabinet-member-card__service {
  font-size: 0.76rem;
  color: var(--color-muted);
}

/* ── Service badges ───────────────────────────────────────── */
.cabinet-member-card__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cabinet-service-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-teal-light, #e6f7f7);
  color: var(--color-teal-dark);
  font-size: 0.7rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.4;
}

.cabinet-service-badge--more {
  background: var(--color-border, #e5e7eb);
  color: var(--color-muted);
}

/* Badge du service actif (pétale sélectionnée ou onglet de filtre) : c'est lui
   qui explique la mise en avant de la carte. */
.cabinet-service-badge.is-priority {
  /* Un aplati teal foncé serait sous les 4,5:1 avec du blanc à cette taille :
     on marque le badge par un cerclage plutôt que par un remplissage. */
  box-shadow: inset 0 0 0 1.5px var(--color-teal-dark);
}

/* `display: inline-flex` bat la règle UA de [hidden] : sans ceci, le compteur
   « +N » resterait visible (pastille vide) quand il n'y a rien à replier. */
.cabinet-service-badge[hidden] {
  display: none;
}

/* Au-delà de 2 badges, le reste est replié — et révélé au survol (desktop). */
.cabinet-service-badge.is-collapsed {
  display: none;
}

@media (hover: hover) {
  .cabinet-member-card:hover .cabinet-service-badge.is-collapsed,
  .cabinet-member-card:focus-within .cabinet-service-badge.is-collapsed {
    display: inline-flex;
  }
  .cabinet-member-card:hover .cabinet-service-badge--more,
  .cabinet-member-card:focus-within .cabinet-service-badge--more {
    display: none;
  }
}

/* ── Arrivée à venir (profil pas encore publié) ───────────── */
.cabinet-member-card__arrival {
  align-self: stretch;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-butter, #fdf3d8);
  color: var(--color-navy);
  font-size: 0.7rem;
  font-weight: var(--font-weight-extrabold);
  text-align: center;
}

.cabinet-member-card__cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* C'est un <button> — la fiche s'ouvre en modale, il n'y a pas de page à
   atteindre : on le dépouille de son habillage natif pour le rendre au lien
   discret qu'il était sur l'accueil.

   `margin-top: auto` l'ancre au bas du corps : les cartes d'une rangée ayant la
   même hauteur, les liens tombent sur la même ligne, quelle que soit la place
   prise par le nom et les badges au-dessus. */
.cabinet-member-card__cta {
  display: inline-flex;
  margin-top: auto;
  padding: var(--space-4) 0 0;
  border: 0;
  background: none;
  color: var(--color-teal-dark);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: var(--font-weight-extrabold);
  cursor: pointer;
  transition: color var(--transition-fast);
}

/* Pas de `transform` ici, si tentant soit-il : un élément transformé devient le
   bloc conteneur de ses descendants positionnés — donc de son propre ::after.
   Le lien étiré se rétracterait sur le bouton au premier survol, et la carte
   cesserait d'être cliquable ailleurs que sur le lien. Le retour de survol est
   porté par la carte (elle se soulève et se cercle de turquoise). */
.cabinet-member-card__cta:hover,
.cabinet-member-card__cta:focus {
  color: var(--color-navy);
  outline: none;
}

/* ── Grid layout (equipe page) ────────────────────────────── */
/* Flexbox et non grid : une dernière rangée incomplète se centre d'elle-même,
   là où `grid-template-columns` la laisserait calée à gauche. Le nombre de
   colonnes est fixe par palier (4 sur desktop) plutôt que déduit d'un
   `auto-fill`, pour que la rangée soit toujours celle attendue. */
.cabinet-team__grid {
  --team-columns: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}
.cabinet-member-card--grid {
  flex: 0 1 calc(
    (100% - (var(--team-columns) - 1) * var(--space-6)) / var(--team-columns)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6);
  gap: var(--space-4);
  background: var(--color-white);
  position: relative;
}

/* Toute la carte est cliquable : le lien du bouton est étiré sur la carte. */
.cabinet-member-card--grid .cabinet-member-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

@media (max-width: 1080px) {
  .cabinet-team__grid {
    --team-columns: 3;
  }
}
@media (max-width: 768px) {
  .cabinet-team__grid {
    --team-columns: 2;
  }
}
@media (max-width: 480px) {
  .cabinet-team__grid {
    --team-columns: 1;
  }
}

.cabinet-member-card--grid:hover {
  border-color: var(--color-teal);
}

/* Les badges restent au-dessus du lien étiré pour rester lisibles dépliés,
   mais ne captent pas le pointeur : le survol se joue sur la carte entière et
   un clic sur un badge suit le lien du profil comme partout ailleurs. */
.cabinet-member-card--grid .cabinet-member-card__services {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.cabinet-member-card--grid .cabinet-member-card__service {
  font-size: var(--font-size-sm);
}

/* ── Mise en avant du recrutement (bas de la page Équipe) ─── */
.cabinet-recruitment {
  margin-top: var(--space-10);
  padding: var(--space-8);
  border-radius: var(--radius-lg, 16px);
  background: var(--color-teal-light, #e6f7f7);
  text-align: center;
}

.cabinet-recruitment__title {
  font-family: "Lora", serif;
  font-size: 1.4rem;
  color: var(--color-navy);
  margin: 0 0 var(--space-3);
}

.cabinet-recruitment__text {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  color: var(--color-muted);
  line-height: 1.6;
}

/* Legacy actions below grid */
.cabinet-team__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
  justify-content: center;
}
.cabinet-team__see-all {
  text-align: center;
  margin-top: var(--space-6);
}

@media (max-width: 1080px) {
  .cabinet-team__synergy {
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 900px) {
  .cabinet-team-map__figure {
    max-width: 420px;
  }

  /* Une colonne unique : la paire se déplie en une seule pile. Les deux
     colonnes s'effacent comme boîtes (`display: contents`) pour que leur
     contenu devienne directement les éléments de la grille — c'est ce qui
     permet de les intercaler.
     L'ordre de lecture devient : la fiche, le paquet, puis les deux
     commandes et les deux liens ensemble au pied. Côte à côte, chaque
     colonne fermait sur son lien ; empilées, deux jeux de commandes au
     milieu couperaient la fiche de ses thérapeutes. */
  .cabinet-team-service-panel,
  .cabinet-team__deck-column {
    display: contents;
  }

  .cabinet-team__bottom {
    grid-template-columns: 1fr;
    /* Chaque élément porte désormais son propre écart : un interstice de
       grille s'ajouterait aux marges ci-dessous. */
    gap: 0;
  }

  /* La rangée des liens s'efface elle aussi : ses deux liens redeviennent des
     éléments de la pile et s'y rangent chacun à sa place. */
  .cabinet-team__links {
    display: contents;
  }

  /* Chaque colonne garde son monde : la fiche, ses commandes et son lien, puis
     le paquet et le sien. Empilées, les deux blocs se lisent l'un après
     l'autre — c'est l'ordre du balisage, à ceci près que le lien des
     prestations doit remonter devant le paquet, la rangée commune l'ayant
     emmené à la fin. */
  .cabinet-team-service-card.is-active {
    order: 1;
  }
  .cabinet-team-service-nav {
    order: 2;
    margin-top: var(--space-4);
    padding-top: 0;
  }
  .cabinet-team__link--services {
    order: 3;
    justify-content: center;
    margin-top: var(--space-4);
  }
  .cabinet-team-deck {
    order: 4;
    margin-top: var(--space-10);
  }
  .cabinet-team__link--team {
    order: 5;
    justify-content: center;
    margin-top: var(--space-6);
  }

  /* Sans thérapeute, la pile garde sa hauteur pour que la section ne saute pas
     d'une prestation à l'autre — un luxe de grand écran, où la colonne voisine
     tient de toute façon la hauteur. Empilée, cette hauteur vide repousse
     « Voir toute l'équipe » loin sous le message. Le message reprend donc sa
     place dans le flux et la pile se règle sur lui.
     `:has()` plutôt qu'une classe posée par le script : c'est l'attribut
     `hidden` du message, déjà tenu à jour (voir src/js/navigation.js), qui dit
     si la prestation a des thérapeutes. */
  .cabinet-team-deck.is-ready:has(.cabinet-team-deck__empty:not([hidden])) .cabinet-team-deck__pile {
    height: auto;
  }
  .cabinet-team-deck:has(.cabinet-team-deck__empty:not([hidden])) .cabinet-team-deck__empty {
    position: static;
    padding: var(--space-8) var(--space-6);
  }
  /* Les commandes du paquet s'effacent sans quitter le flux pour que la
     hauteur ne dépende pas de la prestation choisie. Sur une pile vide, cette
     précaution n'a plus d'objet : il n'y a plus de hauteur à tenir. */
  .cabinet-team-deck:has(.cabinet-team-deck__empty:not([hidden])) .cabinet-team-deck__nav {
    display: none;
  }

  /* Repère mobile, plus écarté du centre (template-parts/sections/bubble-map.php).
     L'espacement des lettres suit aussi la dernière lettre de chaque ligne :
     le texte centré penchait à gauche, le retrait de gauche le recentre. */
  .cabinet-team-map__label {
    position: absolute;
    left: var(--label-x-m, var(--label-x));
    top: var(--label-y-m, var(--label-y));
    width: min(142px, 38vw);
    padding-left: 0.2em;
    font-size: 0.74rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .cabinet-team-map__label.is-active {
    transform: translate(-50%, -50%) scale(1.04);
  }

  .cabinet-team__top {
    grid-template-columns: 1fr;
  }
  .cabinet-team__nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-team-map__region,
  .cabinet-team-map__label,
  .cabinet-leaf-intro-overlay {
    animation: none;
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   ACCUEIL — ACCROCHES
   Une bande, deux cartes côte à côte : « est-ce que ça me concerne ? » et
   « comment ça se passe ? ». Empilées, elles creusaient un trou au pied de la
   page — chacune avait trop peu à dire pour occuper toute la largeur.
   ═══════════════════════════════════════════════════════════ */
.cabinet-home-teaser {
  padding-top: var(--space-10);
  padding-bottom: var(--space-12);
}

/* Deux fonds au choix, réglés depuis l'éditeur — et pas de blanc : les cartes
   le sont, elles y disparaîtraient. Par défaut la bande laisse passer le fond
   de la page, qui les détache déjà. */
.cabinet-home-teaser--page {
  background: transparent;
}

.cabinet-home-teaser--tinted {
  background: linear-gradient(135deg, #ebf8f8 0%, #f5fdfd 100%);
}

/* `auto-fit` plutôt que deux colonnes figées : une troisième carte ajoutée
   depuis l'éditeur se range d'elle-même, et sous 640px la paire s'empile. */
.cabinet-home-teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}

.cabinet-home-teaser__card {
  display: flex;
  flex-direction: column;
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

/* La carte mise en avant prend un souffle de la teinte du cabinet, en haut à
   gauche, comme les fiches de prestation. */
.cabinet-home-teaser__card--tinted {
  background: linear-gradient(145deg, #eaf7f2 -20%, #ffffff 55%);
}

.cabinet-home-teaser__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.72rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
}

.cabinet-home-teaser__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-navy);
}

.cabinet-home-teaser__text {
  margin: 0 0 var(--space-5);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* ── Les mots-clés en pastilles ────────────────────────────
   Les couleurs des bulles du logo, dans leur ordre, reprises en boucle : la
   liste appartient visuellement à la marque sans qu'on ait à lui choisir une
   teinte entrée par entrée.

   Trois par ligne, de largeur égale : à se ranger sur la longueur des mots,
   les pastilles laissaient une dernière ligne dépareillée et un bord droit en
   dents de scie. La grille en fait un pavé. */
.cabinet-home-teaser__pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.cabinet-home-teaser__pill {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: var(--font-weight-extrabold);
  text-align: center;
  color: #2c4a57;
  background: #c9eadd;
}
.cabinet-home-teaser__pill:nth-child(4n + 2) { background: #dcc7e8; }
.cabinet-home-teaser__pill:nth-child(4n + 3) { background: #fbcec4; }
.cabinet-home-teaser__pill:nth-child(4n)     { background: #fce39d; }

/* ── Les étapes numérotées ─────────────────────────────────
   Un aperçu du parcours détaillé sur « Nos prestations ». Le même vocabulaire
   que les commandes du site : une pastille turquoise, un chiffre. */
.cabinet-home-teaser__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.cabinet-home-teaser__step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}

.cabinet-home-teaser__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-size: 0.76rem;
  font-weight: var(--font-weight-extrabold);
}

/* Le bouton ferme la carte : d'une carte à l'autre, il tombe au même endroit,
   quelle que soit la longueur de la liste au-dessus. */
.cabinet-home-teaser__foot {
  margin: auto 0 0;
}

/* Sur un écran étroit, trois colonnes couperaient les mots les plus longs en
   deux lignes. Deux suffisent, les pastilles restent d'un bloc. */
@media (max-width: 480px) {
  .cabinet-home-teaser__pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   L'onglet « FAQ » d'Infos pratiques, cible du bouton FAQ de l'accueil.
   <details> natifs : le navigateur sait les ouvrir, le clavier les parcourt,
   et la recherche de page trouve les réponses repliées.
   ═══════════════════════════════════════════════════════════ */
.cabinet-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
}

.cabinet-faq__item {
  border: 1px solid rgba(30, 74, 92, 0.1);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  padding: var(--space-4) var(--space-5);
}

.cabinet-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  cursor: pointer;
  /* Le triangle par défaut ne se place pas d'un navigateur à l'autre : on le
     remplace par un chevron dessiné dans ::after, qui pivote à l'ouverture. */
  list-style: none;
}
.cabinet-faq__question::-webkit-details-marker {
  display: none;
}
.cabinet-faq__question::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-teal);
  border-bottom: 2px solid var(--color-teal);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition-fast);
}
.cabinet-faq__item[open] .cabinet-faq__question::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.cabinet-faq__answer {
  margin-top: var(--space-3);
  color: var(--color-muted);
  line-height: 1.7;
}
.cabinet-faq__answer p {
  margin: 0 0 var(--space-3);
}
.cabinet-faq__answer > :last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════ */
.cabinet-stats-bar {
  padding: var(--space-10) var(--site-padding);
}
.cabinet-stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
}
.cabinet-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.cabinet-stat__number {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-teal);
  line-height: 1;
}
.cabinet-stat__label {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  font-weight: var(--font-weight-semibold);
}
.cabinet-stat__divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  opacity: 0.6;
}
@media (max-width: 600px) {
  .cabinet-stat__divider {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   CARE REQUEST COLUMNS
   ═══════════════════════════════════════════════════════════ */
.cabinet-care-request__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}
.cabinet-care-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal);
}
.cabinet-care-col:hover {
  transform: translateY(-4px);
}
.cabinet-care-col__icon .dashicons {
  font-size: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-teal);
}
.cabinet-care-col__role {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
}
.cabinet-care-col__tagline {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  flex: 1;
}
.cabinet-care-col__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   INFOS PRATIQUES
   ═══════════════════════════════════════════════════════════ */
.cabinet-infos__location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
.cabinet-infos__details address {
  font-style: normal;
  margin-bottom: var(--space-4);
  line-height: var(--line-height-normal);
}
.cabinet-infos__details p {
  margin-bottom: var(--space-6);
  color: var(--color-muted);
}
.cabinet-directions {
  padding-left: var(--space-6);
  line-height: var(--line-height-normal);
}
.cabinet-directions li {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
@media (max-width: 768px) {
  .cabinet-infos__location {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   FICHE DU THÉRAPEUTE (modale)
   ═══════════════════════════════════════════════════════════ */
/* Un thérapeute n'a pas de page : sa fiche est rendue dans sa carte, repliée,
   et recopiée dans cette modale à l'ouverture (src/js/member-modal.js). */

.cabinet-member-detail[hidden] {
  display: none;
}

.cabinet-member-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 35, 45, 0.6);
  backdrop-filter: blur(4px);
}

.cabinet-member-modal[hidden] {
  display: none;
}

/* Le cadre ne défile pas lui-même : une barre de défilement posée sur la boîte
   arrondie occupe son bord droit et en carre les deux coins. Le défilement est
   confié au seul bloc du bas (voir `__body`), et `overflow: hidden` fait
   retailler sa barre par l'arrondi du cadre. */
.cabinet-member-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 620px;
  /* La fiche peut être longue : c'est elle qui défile, pas la page derrière. */
  max-height: min(84vh, 760px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: cabinet-modal-in 0.3s ease;
}

/* La chaîne cadre → contenu → fiche est une seule colonne flex : sans
   `min-height: 0` à chaque étage, le bloc défilant du bas prendrait sa hauteur
   naturelle et pousserait la modale au-delà du cadre au lieu de défiler. */
.cabinet-member-modal__content,
.cabinet-member-modal__content .cabinet-member-detail {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-member-modal__dialog {
    animation: none;
  }
}

/* Posé sur le cadre, pas dans le contenu : il reste en haut à droite pendant
   que la fiche défile dessous. */
.cabinet-member-modal__close {
  position: absolute;
  z-index: 1;
  top: var(--space-4);
  right: var(--space-4);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-teal-light, #e6f7f7);
  color: var(--color-navy);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cabinet-member-modal__close svg {
  width: 18px;
  height: 18px;
}

.cabinet-member-modal__close:hover,
.cabinet-member-modal__close:focus-visible {
  background: var(--color-teal);
  color: var(--color-white);
}

/* ── Contenu de la fiche ─────────────────────────────────── */

/* En-tête figé : le padding vit ici et sur `__body`, plus sur le cadre, pour
   que la barre de défilement du corps longe le bord de la modale — sinon elle
   flotterait à l'intérieur de la marge. */
.cabinet-member-detail__header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--space-6);
  padding: var(--space-10) var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.cabinet-member-detail__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 var(--space-8) var(--space-8);
}

.cabinet-member-detail__avatar {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-card);
}

.cabinet-member-detail__name {
  margin: 0 0 var(--space-2);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

/* La fiche montre tous les services, sans repli ni compteur « +N » : c'est ici
   que l'on vient chercher la liste complète. */
.cabinet-member-detail__services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cabinet-member-detail__section {
  margin-top: var(--space-6);
}

.cabinet-member-detail__heading {
  margin: 0 0 var(--space-3);
  font-family: var(--font-family-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

.cabinet-member-detail__about {
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

.cabinet-member-detail__about > :first-child {
  margin-top: 0;
}

.cabinet-member-detail__about > :last-child {
  margin-bottom: 0;
}

.cabinet-member-detail__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cabinet-member-detail__list li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

/* Une pastille plutôt qu'une puce : les entrées tiennent souvent sur deux
   lignes, et le repère doit rester aligné sur la première. */
.cabinet-member-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-teal);
}

@media (max-width: 600px) {
  .cabinet-member-detail__header {
    padding: var(--space-10) var(--space-5) var(--space-5);
  }
  .cabinet-member-detail__body {
    padding: 0 var(--space-5) var(--space-6);
  }
  .cabinet-member-detail__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO – DEMANDE DE SOIN
   ═══════════════════════════════════════════════════════════ */
.cabinet-page-hero {
  background: linear-gradient(135deg, #EBF8F8 0%, #F0FAF5 60%, #FFF8F0 100%);
  padding: var(--space-16) var(--site-padding) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cabinet-page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,191,191,.10) 0%, transparent 70%);
  pointer-events: none;
}
.cabinet-page-hero__tag {
  display: inline-block;
  background: rgba(58,191,191,.15);
  color: var(--color-teal-dark);
  font-size: 0.75rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.cabinet-page-hero__title {
  font-family: var(--font-family-heading);
  font-size: 2.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}
.cabinet-page-hero__title em {
  color: var(--color-teal-dark);
  font-style: italic;
}
.cabinet-page-hero__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: var(--line-height-normal);
}
@media (max-width: 720px) {
  .cabinet-page-hero__title { font-size: 1.65rem; }
}

/* ═══════════════════════════════════════════════════════════
   PROFILE CARD
   ═══════════════════════════════════════════════════════════ */
.cabinet-profile-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 24px 20px;
  margin: 18px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 2.5px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  box-sizing: border-box;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}
.cabinet-profile-card:hover {
  box-shadow: 0 8px 32px rgba(30,74,92,.13);
  transform: translateY(-2px);
}

/* Left accent bar */
.cabinet-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.cabinet-profile-card[data-color="teal"]::before   { background: var(--color-teal); }
.cabinet-profile-card[data-color="coral"]::before  { background: var(--color-coral); }
.cabinet-profile-card[data-color="navy"]::before   { background: var(--color-navy); }
.cabinet-profile-card[data-color="yellow"]::before { background: var(--color-yellow); }

/* ── Selected state ── */
.cabinet-profile-card.is-selected {
  box-shadow: 0 6px 28px rgba(58,191,191,.20);
}
.cabinet-profile-card.is-selected::before { opacity: 1; }

.cabinet-profile-card[data-color="teal"].is-selected   { border-color: var(--color-teal);   box-shadow: 0 6px 28px rgba(58,191,191,.20); }
.cabinet-profile-card[data-color="coral"].is-selected  { border-color: var(--color-coral);  box-shadow: 0 6px 28px rgba(240,130,106,.20); }
.cabinet-profile-card[data-color="navy"].is-selected   { border-color: var(--color-navy);   box-shadow: 0 6px 28px rgba(30,74,92,.20); }
.cabinet-profile-card[data-color="yellow"].is-selected { border-color: var(--color-yellow); box-shadow: 0 6px 28px rgba(245,200,66,.20); }

/* ── Radio button (top-right) ── */
.cabinet-profile-card__radio {
  position: absolute;
  top: 18px; right: 18px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #C8D8DF;
  background: var(--color-white);
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}
.cabinet-profile-card__radio::after {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  margin: auto;
  position: absolute;
  inset: 0;
  transition: background var(--transition-fast);
}
.cabinet-profile-card[data-color="teal"].is-selected   .cabinet-profile-card__radio { border-color: var(--color-teal); }
.cabinet-profile-card[data-color="teal"].is-selected   .cabinet-profile-card__radio::after { background: var(--color-teal); }
.cabinet-profile-card[data-color="coral"].is-selected  .cabinet-profile-card__radio { border-color: var(--color-coral); }
.cabinet-profile-card[data-color="coral"].is-selected  .cabinet-profile-card__radio::after { background: var(--color-coral); }
.cabinet-profile-card[data-color="navy"].is-selected   .cabinet-profile-card__radio { border-color: var(--color-navy); }
.cabinet-profile-card[data-color="navy"].is-selected   .cabinet-profile-card__radio::after { background: var(--color-navy); }
.cabinet-profile-card[data-color="yellow"].is-selected .cabinet-profile-card__radio { border-color: #B89300; }
.cabinet-profile-card[data-color="yellow"].is-selected .cabinet-profile-card__radio::after { background: #B89300; }

/* ── Icon wrap ── */
.cabinet-profile-card__icon-wrap {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.cabinet-profile-card:hover .cabinet-profile-card__icon-wrap { transform: scale(1.05); }
.cabinet-profile-card__icon-wrap svg { width: 28px; height: 28px; }

.cabinet-profile-card[data-color="teal"]   .cabinet-profile-card__icon-wrap { background: linear-gradient(135deg, #E6F7F7, #C8EDED); color: var(--color-teal-dark); }
.cabinet-profile-card[data-color="coral"]  .cabinet-profile-card__icon-wrap { background: linear-gradient(135deg, #FFF0ED, #F9D0C4); color: var(--color-coral-dark); }
.cabinet-profile-card[data-color="navy"]   .cabinet-profile-card__icon-wrap { background: linear-gradient(135deg, #E0EEF4, #BDD4DF); color: var(--color-navy); }
.cabinet-profile-card[data-color="yellow"] .cabinet-profile-card__icon-wrap { background: linear-gradient(135deg, #FEF8E0, #FAEAB8); color: #B89300; }

/* ── Content ── */
.cabinet-profile-card__content {
  flex: 1;
  padding-right: 24px; /* avoid overlap with radio */
}
.cabinet-profile-card__label {
  font-size: 0.68rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.cabinet-profile-card__title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  margin-bottom: 5px;
}
.cabinet-profile-card__subtitle {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: var(--line-height-normal);
}

/* ═══════════════════════════════════════════════════════════
   ENCART CTA — cabinet/cta-panel
   Shared light two-action panel (/nos-valeurs, /nos-services).
   Lives here rather than in a page stylesheet so the block can be
   dropped on any page.
   ═══════════════════════════════════════════════════════════ */
.cabinet-cta-panel {
  /* Full-bleed band: opt out of the editor flow gap
     (:where(.is-layout-constrained) > * { margin-block-start: 1.2rem }),
     which would otherwise show the page background between this section and
     the one above it. .cabinet-section does the same in global.css. */
  margin-block-start: 0;
  padding: 60px var(--space-8) 70px;
  background: var(--color-white);
}

.cabinet-cta-panel__box {
  max-width: 1060px;
  margin: 0 auto;
  padding: 42px var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(135deg, #ebf8f8 0%, #f0faf5 60%, #fff8f0 100%);
  box-shadow: var(--shadow-card);
}

.cabinet-cta-panel__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-family-heading);
  font-size: 1.6rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

.cabinet-cta-panel__text {
  max-width: 520px;
  margin: 0 auto var(--space-6);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.cabinet-cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

@media (max-width: 540px) {
  .cabinet-cta-panel {
    padding: 46px var(--space-5) 54px;
  }
  .cabinet-cta-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL — src/js/reveal.js
   The hidden state is only applied once the script has flagged the
   document — without JS the sections stay visible.
   ═══════════════════════════════════════════════════════════ */
.cabinet-anim .cabinet-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.cabinet-anim .cabinet-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-anim .cabinet-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
