
/* ÉQUANITÉ — shared styles
   Replace image placeholders with real URLs in the HTML data/images.
*/
:root{
  --ivory:#f8f6f1;
  --paper:#fffdf9;
  --sand:#e7dfd3;
  --sand-2:#d8ccbd;
  --sage:#6c8168;
  --sage-dark:#40563f;
  --sage-soft:#e7eee5;
  --ink:#22372b;
  --muted:#697069;
  --line:#ddd8ce;
  --white:#fff;
  --radius:18px;
  --shadow:0 12px 35px rgba(48,56,45,.08);
  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ivory);color:var(--ink);font-family:var(--sans);line-height:1.6}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,.button{font:inherit}
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,253,249,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(221,216,206,.7)}
.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.logo{font-family:var(--serif);font-size:30px;letter-spacing:.12em;line-height:1}
.logo small{display:block;font-family:var(--sans);font-size:8px;letter-spacing:.14em;margin-top:5px}
.nav-links{display:flex;align-items:center;gap:26px;font-size:13px}
.nav-links a{position:relative;padding:28px 0}
.nav-links a:hover,.nav-links a.active{color:var(--sage-dark)}
.nav-links a.active:after{content:"";position:absolute;left:0;right:0;bottom:18px;height:1px;background:var(--sage-dark)}
.nav-toggle{display:none;border:0;background:none;font-size:24px;color:var(--ink);}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--sage-dark);border-radius:8px;padding:12px 18px;cursor:pointer;transition:.25s ease;font-weight:600;font-size:12px;letter-spacing:.02em}
.button-primary{background:var(--sage-dark);color:#fff;border-color:var(--sage-dark)}
.button-primary:hover{background:#314431;transform:translateY(-1px)}
.button-outline{background:transparent;color:var(--sage-dark)}
.button-outline:hover{background:var(--sage-soft)}
.button-light{border-color:#fff;color:#fff;background:transparent}
.button-light:hover{background:rgba(255,255,255,.12)}
.eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--sage-dark);font-weight:700}
h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.05;margin:0}
h1{font-size:clamp(48px,6vw,78px)}
h2{font-size:clamp(38px,4vw,58px)}
h3{font-size:28px}
.lead{font-size:18px;color:var(--muted);max-width:680px}
.muted{color:var(--muted)}
.section{padding:90px 0}
.section-sm{padding:55px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:34px}
.placeholder{
  position:relative;overflow:hidden;background:
    linear-gradient(135deg,#ddd6ca 0%,#eee9e1 45%,#d1c8bb 100%);
}
.placeholder:after{
  content:"IMAGE PLACEHOLDER";position:absolute;inset:auto 0 18px;text-align:center;
  color:rgba(38,48,40,.42);font-size:10px;letter-spacing:.18em;font-weight:700
}
.hero{min-height:590px;display:grid;place-items:center;position:relative;overflow:hidden}
.hero-media{position:absolute;inset:0}
.hero-media img,.hero-media video{width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(28,35,27,.68),rgba(28,35,27,.18) 70%)}
.hero-content{position:relative;z-index:1;color:#fff;width:min(calc(100% - 40px),var(--max));padding:90px 0}
.hero-content p{max-width:560px;color:rgba(255,255,255,.9);font-size:18px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.value-strip{background:var(--paper);box-shadow:var(--shadow);position:relative;margin:-45px auto 0;z-index:3;border-radius:16px;padding:30px}
.values{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.value{text-align:center;padding:10px}
.value-icon{font-size:25px;color:var(--sage-dark);margin-bottom:10px}
.value h3{font-family:var(--sans);font-size:15px;font-weight:600}
.value p{font-size:12px;color:var(--muted);margin:7px auto 0;max-width:210px}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.service-card{min-height:350px;border-radius:16px;overflow:hidden;position:relative;color:#fff;box-shadow:var(--shadow)}
.service-card .media{position:absolute;inset:0}
.service-card .media img{width:100%;height:100%;object-fit:cover}
.service-card .shade{position:absolute;inset:0;background:linear-gradient(transparent 25%,rgba(20,28,21,.8))}
.service-card .content{position:absolute;left:22px;right:22px;bottom:22px}
.service-card h3{font-family:var(--sans);font-size:15px;letter-spacing:.08em;text-transform:uppercase}
.service-card p{font-size:13px;margin:7px 0 12px;color:rgba(255,255,255,.88)}
.service-card .link{font-size:12px;font-weight:700}
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.team-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.25s ease}
.team-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.team-card .portrait{aspect-ratio:1/1;overflow:hidden}
.team-card .portrait img{width:100%;height:100%;object-fit:cover}
.team-body{padding:18px}
.team-body h3{font-size:27px}
.role{color:var(--sage-dark);font-size:13px;font-weight:600;margin:2px 0 12px}
.tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
.tag{font-size:11px;border:1px solid var(--line);padding:5px 8px;border-radius:99px;color:var(--muted)}
.card-actions{display:flex;flex-direction:column;gap:9px}
.card-actions .button{width:100%}
.split{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.image-large{border-radius:18px;overflow:hidden;aspect-ratio:4/3}
.image-large img{width:100%;height:100%;object-fit:cover}
.soft-panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:28px}
.cta-band{border-radius:20px;overflow:hidden;position:relative;min-height:250px;display:grid;place-items:center;text-align:center;color:#fff}
.cta-band .media{position:absolute;inset:0}.cta-band .media img{width:100%;height:100%;object-fit:cover}
.cta-band .shade{position:absolute;inset:0;background:rgba(43,59,42,.62)}
.cta-band .content{position:relative;z-index:1;padding:50px}
.breadcrumbs{font-size:12px;color:var(--muted);padding:25px 0}
.page-hero{text-align:center;padding:65px 0 40px}
.page-hero p{max-width:650px;margin:16px auto 0;color:var(--muted)}
.service-layout{display:grid;grid-template-columns:240px 1fr;gap:35px}
.service-nav{position:sticky;top:105px;height:max-content;display:flex;flex-direction:column;gap:8px}
.service-tab{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:15px;text-align:left;cursor:pointer;font-weight:600;color:var(--ink)}
.service-tab.active{background:var(--sage-dark);color:#fff;border-color:var(--sage-dark)}
.service-detail{display:grid;grid-template-columns:1fr 1fr;gap:30px;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px}
.service-detail-media{min-height:500px;border-radius:14px;overflow:hidden}
.service-detail-media img{width:100%;height:100%;object-fit:cover}
.service-detail-copy{padding:25px 15px;display:flex;flex-direction:column;justify-content:flex-start}
.service-detail-copy h2{font-size:52px}
.bullets{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:22px 0}
.bullet{font-size:13px;color:var(--muted);display:flex;gap:9px}
.bullet:before{content:"✓";color:var(--sage-dark);font-weight:800}
.practitioner-mini{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid var(--line);border-radius:12px;margin:22px 0;background:#fbfaf6}
.practitioner-mini img{width:58px;height:58px;border-radius:50%;object-fit:cover}
.practitioner-mini strong{display:block}.practitioner-mini span{font-size:12px;color:var(--muted)}
.service-actions{display:flex;flex-wrap:wrap;gap:10px}
.profile-top{display:grid;grid-template-columns:.85fr 1.15fr;gap:60px;align-items:center}
.profile-photo{aspect-ratio:4/4.7;border-radius:18px;overflow:hidden}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-copy h1{font-size:clamp(52px,6vw,82px)}
.profile-copy .role{font-size:17px;margin:8px 0 18px}
.profile-list{list-style:none;padding:0;margin:24px 0}
.profile-list li{display:flex;gap:10px;margin:10px 0;font-size:14px}
.profile-list li:before{content:"○";color:var(--sage-dark)}
.profile-actions{display:flex;flex-wrap:wrap;gap:10px}
.detail-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:35px}
.stack{display:grid;gap:18px}
.info-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.info-list li{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.conditions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}
.condition{background:var(--ivory);border:1px solid var(--line);padding:13px;border-radius:10px;font-size:13px}
.sticky-booking{position:sticky;bottom:16px;z-index:20;margin:35px auto 0;width:min(calc(100% - 40px),800px);background:var(--sage-dark);color:#fff;border-radius:14px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;box-shadow:0 15px 35px rgba(39,54,38,.22)}
.sticky-booking small{display:block;color:rgba(255,255,255,.75)}
.site-footer{margin-top:90px;background:var(--ink);color:#fff;padding:55px 0 25px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}
.site-footer a{color:rgba(255,255,255,.78)}.site-footer p{color:rgba(255,255,255,.65);font-size:13px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:35px;padding-top:20px;font-size:11px;color:rgba(255,255,255,.55)}
.fade-in{animation:fadeIn .5s ease both}
/* Hide inactive service panels */
[hidden] {
  display: none !important;
}
.service-full-width {
  grid-column: 1 / -1;
  width: 100%;
}
.service-practitioners {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin-top: 0;
}
.service-practitioners .practitioner-mini {
  margin: 0;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-dark);
}

.contact-icon svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-text small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-text strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-item:hover .contact-text strong {
  color: var(--sage-dark);
}


/* Social links */

.social-links {
  display: grid;
  grid-template-columns: auto repeat(3, auto);
  align-items: center;
  justify-content: start;
  column-gap: 14px;
  row-gap: 8px;

  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.social-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.social-links a {
  font-size: 11px;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
  white-space: nowrap;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Starting with the 4th social link, use the second line */
.social-links a:nth-of-type(4) {
  grid-column: 2;
}
@keyframes fadeIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:900px){
  .nav-links{display:none;position:absolute;top:78px;left:0;right:0;background:var(--paper);padding:15px 20px;flex-direction:column;align-items:stretch;border-bottom:1px solid var(--line)}
  .nav-links.open{display:flex}.nav-links a{padding:12px}.nav-links a.active:after{display:none}.nav-toggle{display:block;color:var(--ink)}
  .values,.service-grid,.team-grid{grid-template-columns:repeat(2,1fr)}
  .split,.profile-top,.detail-grid,.service-detail{grid-template-columns:1fr;gap:30px}
  .service-layout{grid-template-columns:1fr}.service-nav{position:static;display:grid;grid-template-columns:repeat(2,1fr)}
  .service-detail-media{min-height:360px}.footer-grid{grid-template-columns:1fr 1fr}
  .service-full-width {
    grid-column: 1;
  }
   .service-practitioners {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .detail-grid {
    display: flex;
    flex-direction: column;
  }

  /* Allow the contents of the aside to participate in the main order */
  .detail-grid > aside {
    display: contents;
  }

  /* Contact panel first */
  .detail-grid > aside > section:first-child {
    order: 1;
  }

  /* Main À propos content after contact */
  .detail-main {
    display: contents;
  }

  .detail-main > section {
    order: 2;
  }

  /* Remaining aside content */
  .detail-grid > aside > section:nth-child(2) {
    order: 3;
  }

  .detail-grid > aside > .image-large {
    order: 4;
  }
}
@media(max-width:560px){
  .container{width:min(calc(100% - 28px),var(--max))}
  .nav{min-height:68px}.logo{font-size:25px}.nav-links{top:68px}
  .hero{min-height:520px}.hero-content{padding:60px 0}.hero-content p{font-size:16px}
  .value-strip{margin:-25px 14px 0;padding:18px}.values,.service-grid,.team-grid{grid-template-columns:1fr}
  .section{padding:65px 0}.section-head{display:block}.section-head .button{margin-top:18px}
  .bullets,.conditions,.footer-grid{grid-template-columns:1fr}
  .service-nav{grid-template-columns:1fr}
  .service-detail-copy h2{font-size:43px}
  .sticky-booking{width:calc(100% - 28px);padding:12px}.sticky-booking .button{padding:10px 12px}
  .service-practitioners {
    gap: 12px;
  }
}


/* === Added pages: About + Contact === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.map-embed {
  overflow: hidden;
  border-radius: var(--radius, 18px);
  min-height: 450px;
}

.map-embed iframe {
  display: block;
  width: 100%;
}

/* Practitioner detail: explicit classes for responsive ordering */
@media (max-width: 900px) {
  .detail-grid > .practitioner-sidebar {
    display: contents;
  }

  .detail-main {
    display: contents;
  }

  .practitioner-contact {
    order: 1;
  }

  .detail-main > section {
    order: 2;
  }

  .practitioner-education {
    order: 3;
  }

  .detail-grid > .practitioner-sidebar > .image-large {
    order: 4;
  }

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

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .map-embed {
    min-height: 360px;
  }

  .map-embed iframe {
    height: 360px;
  }
}


/* === Official Équanité branding + clinic media === */
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand { color: inherit; }
.brand-name {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .12em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .14em;
  margin-top: 5px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.footer-brand .brand-mark {
  width: 54px;
  height: 54px;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 560px) {
  .brand-name { font-size: 23px; }
  .brand-mark { width: 38px; height: 38px; }
}


/* === September brand consistency update === */
.footer-logo-link {
  display: inline-block;
  max-width: 300px;
}

.footer-logo-white {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

.hero-location {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(255,255,255,.92);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,46,31,.28);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(5px);
}

.hero-location-icon {
  font-size: 16px;
  line-height: 1;
}

.contact-booking-section {
  padding: 0 0 70px;
}

.contact-booking-inner {
  background: var(--sage-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}

.contact-booking-inner h2 {
  margin-top: 6px;
}

.contact-booking-inner p {
  max-width: 720px;
  color: var(--muted);
}

.contact-booking-inner .button-primary {
  margin-top: 8px;
}

.service-card .media img,
.service-detail-media img {
  object-position: center;
}

@media (max-width: 560px) {
  .footer-logo-white {
    width: 220px;
  }

  .hero-location {
    font-size: 12px;
    border-radius: 14px;
    align-items: flex-start;
  }

  .contact-booking-inner {
    padding: 24px 20px;
  }
}


/* === Video, footer compaction, long service content === */
.about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand-row .footer-logo-link {
  flex: 0 0 180px;
}

.footer-brand-row .footer-logo-white {
  width: 180px;
  max-width: 100%;
}

.footer-brand-row p {
  margin: 0;
  max-width: 330px;
}

.site-footer {
  padding-top: 38px;
}

.service-content {
  display: grid;
  gap: 28px;
  padding-top: 10px;
}

.service-content section {
  max-width: 920px;
}

.service-content h3 {
  margin-bottom: 10px;
}

.service-content p {
  color: var(--muted);
}

.service-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-list li + li {
  margin-top: 6px;
}

.profile-link,
.useful-links a {
  color: var(--sage-dark);
  font-weight: 700;
}

.contact-booking-section {
  padding: 0 0 70px;
}

.contact-booking-inner {
  background: var(--sage-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}

@media (max-width: 760px) {
  .footer-brand-row {
    align-items: flex-start;
  }

  .footer-brand-row .footer-logo-link {
    flex-basis: 135px;
  }

  .footer-brand-row .footer-logo-white {
    width: 135px;
  }
}

@media (max-width: 560px) {
  .footer-brand-row {
    gap: 14px;
  }

  .footer-brand-row .footer-logo-link {
    flex-basis: 110px;
  }

  .footer-brand-row .footer-logo-white {
    width: 110px;
  }

  .footer-brand-row p {
    font-size: 12px;
  }

  .contact-booking-inner {
    padding: 24px 20px;
  }
}


/* === Footer horizontal logo + portrait About video correction === */
.about-video {
  width: min(100%, 430px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border-radius: 18px;
}
.about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The supplied footer artwork is already a horizontal logo/wordmark. */
.footer-brand-row {
  display: block;
}
.footer-brand-row .footer-logo-link {
  display: block;
  width: min(100%, 330px);
  max-width: 330px;
}
.footer-brand-row .footer-logo-white {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.footer-grid {
  align-items: center;
}
@media (max-width: 760px) {
  .about-video { width: min(88vw, 390px); }
  .footer-brand-row .footer-logo-link { width: min(100%, 280px); }
}

/* Team profile refinements */
.team-card a.team-card-link{display:block;color:inherit;text-decoration:none}
.team-card .card-actions a{position:relative;z-index:2}
.profile-summary{font-size:16px;line-height:1.75;color:var(--ink-soft)}
.profile-meta{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.profile-meta .tag{margin:0}
.profile-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile-contact-grid a{overflow-wrap:anywhere}
@media(max-width:640px){.profile-contact-grid{grid-template-columns:1fr}}


/* === Consistent site header brand === */
.site-brand {
  display:inline-flex; align-items:center; gap:12px;
  text-decoration:none; color:var(--sage-dark); flex:0 0 auto;
}
.site-brand-mark {
  width:46px; height:46px; object-fit:contain; display:block;
}
.site-brand-text {
  display:flex; flex-direction:column; line-height:1;
}
.site-brand-text strong {
  font-family:var(--serif); font-size:18px; font-weight:500; letter-spacing:.22em;
}
.site-brand-text small {
  margin-top:7px; font-family:var(--sans); font-size:8px; font-weight:600; letter-spacing:.30em;
}
@media(max-width:560px) {
  .site-brand{gap:9px}
  .site-brand-mark{width:38px;height:38px}
  .site-brand-text strong{font-size:15px}
  .site-brand-text small{font-size:7px;letter-spacing:.24em;margin-top:5px}
}


/* === V7 homepage hero + clear service practitioners === */
.hero-media img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

.service-practitioners-block {
  margin-top:8px;
  padding-top:22px;
  border-top:1px solid var(--line);
}

.service-practitioners-block h3 {
  margin:6px 0 18px;
}

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

.service-practitioner-card {
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:14px;
  background:var(--ivory);
  border:1px solid var(--line);
  border-radius:14px;
}

.service-practitioner-photo {
  width:72px;
  height:72px;
  border-radius:50%;
  overflow:hidden;
  display:block;
}

.service-practitioner-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.service-practitioner-info {
  min-width:0;
}

.service-practitioner-info strong,
.service-practitioner-info span {
  display:block;
}

.service-practitioner-info strong {
  font-family:var(--serif);
  font-size:19px;
  line-height:1.1;
}

.service-practitioner-info span {
  margin-top:3px;
  font-size:12px;
  color:var(--muted);
}

.service-practitioner-actions {
  margin-top:10px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
}

.service-profile-link {
  color:var(--sage-dark);
  font-size:12px;
  font-weight:700;
}

.service-booking-link {
  padding:8px 10px;
  font-size:11px;
}

@media(max-width:1000px) {
  .service-practitioners-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px) {
  .service-practitioners-grid {
    grid-template-columns:1fr;
  }

  .service-practitioner-card {
    grid-template-columns:60px minmax(0,1fr);
  }

  .service-practitioner-photo {
    width:60px;
    height:60px;
  }
}


/* === GoRendezvous widget integration in service practitioner cards === */
.service-practitioner-actions .gorendezvous-button {
  margin:0;
  max-width:100%;
}

.service-practitioner-actions .gorendezvous-button a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
}

.service-practitioner-actions script {
  display:none;
}


/* === V11 GoRendezvous responsive layout === */
.appointment-widget,
.gorendezvous-button {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  overflow:visible;
}

.appointment-widget > a,
.gorendezvous-button > a {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  white-space:normal !important;
  text-align:center !important;
}

/* Service practitioner cards:
   identity on top, profile + appointment actions use the full card width. */
.service-practitioner-card {
  grid-template-columns:72px minmax(0,1fr);
  align-items:start;
}

.service-practitioner-info {
  display:contents;
}

.service-practitioner-info > strong,
.service-practitioner-info > span {
  grid-column:2;
}

.service-practitioner-actions {
  grid-column:1 / -1;
  width:100%;
  margin-top:8px;
  display:grid;
  gap:8px;
  align-items:stretch;
}

.service-practitioner-actions .service-profile-link {
  justify-self:start;
}

.service-practitioner-actions .gorendezvous-button,
.service-practitioner-actions .appointment-widget {
  grid-column:1 / -1;
  width:100% !important;
}

/* Team cards */
.team-card .card-actions {
  display:grid;
  gap:8px;
  width:100%;
}

.team-card .card-actions .gorendezvous-button,
.team-card .card-actions .appointment-widget {
  width:100% !important;
}

.team-card .card-actions .button-outline {
  width:100%;
  box-sizing:border-box;
  text-align:center;
}

/* Practitioner detail hero */
.profile-actions {
  width:min(100%, 360px);
}

.profile-actions .gorendezvous-button,
.profile-actions .appointment-widget {
  width:100% !important;
}

/* Third-party GoRendezvous-generated controls sometimes receive inline widths. */
.gorendezvous-button * {
  max-width:100% !important;
  box-sizing:border-box !important;
}

@media(max-width:600px) {
  .service-practitioner-card {
    grid-template-columns:60px minmax(0,1fr);
  }
}


/* === V12 Team card actions aligned to bottom === */
.team-card {
  display:flex;
  flex-direction:column;
  height:100%;
}

.team-card .card-actions {
  margin-top:auto;
  padding-top:16px;
  width:100%;
}

/* Keep GDV appointment + profile controls together at the bottom */
.team-card .card-actions .gorendezvous-button,
.team-card .card-actions .appointment-widget,
.team-card .card-actions .button-outline {
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}


/* === V13 Service practitioner card cleanup === */
.service-practitioner-card {
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:12px 14px;
  align-items:center;
  padding:14px;
  min-height:0;
}

.service-practitioner-photo {
  width:64px;
  height:64px;
  align-self:start;
}

.service-practitioner-info {
  display:grid;
  grid-template-columns:1fr;
  gap:3px;
  align-content:start;
}

.service-practitioner-info strong {
  margin:0;
  line-height:1.15;
}

.service-practitioner-info span {
  margin:0;
  line-height:1.25;
}

.service-practitioner-actions {
  grid-column:1 / -1;
  margin-top:4px;
  display:grid;
  gap:8px;
  width:100%;
}

.service-practitioner-actions .service-profile-link {
  width:100%;
  box-sizing:border-box;
  text-align:center;
  justify-content:center;
}

.service-practitioner-actions .gorendezvous-button,
.service-practitioner-actions .appointment-widget {
  width:100% !important;
  max-width:100% !important;
}

@media(max-width:600px) {
  .service-practitioner-card {
    grid-template-columns:56px minmax(0,1fr);
    gap:10px 12px;
    padding:12px;
  }

  .service-practitioner-photo {
    width:56px;
    height:56px;
  }
}


/* =========================================================
   V14 FINAL CARD LAYOUT FIXES
   ========================================================= */

/* SERVICE PRACTITIONER CARDS */
.service-practitioner-card {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 14px !important;
  row-gap: 10px !important;
  align-items: center !important;
  padding: 14px !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.service-practitioner-photo {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 64px !important;
  height: 64px !important;
  align-self: start !important;
}

.service-practitioner-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: stretch !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.service-practitioner-info strong {
  margin: 0 !important;
  line-height: 1.15 !important;
}

.service-practitioner-info span {
  margin: 0 !important;
  line-height: 1.25 !important;
}

.service-practitioner-actions {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.service-practitioner-actions .service-profile-link,
.service-practitioner-actions .gorendezvous-button,
.service-practitioner-actions .appointment-widget {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.service-practitioner-actions .service-profile-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.service-practitioner-actions .gorendezvous-button > a,
.service-practitioner-actions .appointment-widget > a {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* TEAM CARDS — actions always aligned at the bottom */
.team-grid {
  align-items: stretch !important;
}

.team-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100% !important;
}

.team-card-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.team-card .team-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.team-card .card-actions {
  margin-top: auto !important;
  padding-top: 16px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

.team-card .card-actions .gorendezvous-button,
.team-card .card-actions .appointment-widget,
.team-card .card-actions .button-outline {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.team-card .card-actions .gorendezvous-button > a,
.team-card .card-actions .appointment-widget > a,
.team-card .card-actions .button-outline {
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

@media (max-width: 600px) {
  .service-practitioner-card {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    padding: 12px !important;
    column-gap: 12px !important;
  }

  .service-practitioner-photo {
    width: 56px !important;
    height: 56px !important;
  }
}


/* =========================================================
   V15 TEAM + SERVICE ALIGNMENT REPAIR
   ========================================================= */

/* TEAM: every card in a row has the same height, actions stay at bottom */
.team-grid {
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
}

.team-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

.team-card-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.team-card .team-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.team-card .profile-summary {
  margin-bottom: 0 !important;
}

.team-card .card-actions {
  margin-top: auto !important;
  padding: 16px 18px 18px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.team-card .card-actions .gorendezvous-button,
.team-card .card-actions .appointment-widget,
.team-card .card-actions .button-outline,
.team-card .card-actions .gorendezvous-button > a,
.team-card .card-actions .appointment-widget > a {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* SERVICES: keep identity compact and actions sitting at the bottom of each card */
.service-practitioner-card {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr auto !important;
  column-gap: 14px !important;
  row-gap: 8px !important;
  align-items: start !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 14px !important;
}

.service-practitioner-photo {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.service-practitioner-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.service-practitioner-actions {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  align-self: end !important;
  margin-top: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

.service-practitioner-actions .service-profile-link,
.service-practitioner-actions .gorendezvous-button,
.service-practitioner-actions .appointment-widget,
.service-practitioner-actions .gorendezvous-button > a,
.service-practitioner-actions .appointment-widget > a {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Prevent GoRendezvous 75px widgets from leaving phantom empty space */
.service-practitioner-actions .gorendezvous-button,
.team-card .gorendezvous-button {
  height: auto !important;
  min-height: 0 !important;
}

@media (max-width: 600px) {
  .service-practitioner-card {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }
}


/* =========================================================
   V16 TEAM SHOWCASE HERO
   Based on the approved Team Showcase composition
   ========================================================= */
.team-showcase-hero {
  position:relative;
  min-height:360px;
  overflow:hidden;
  isolation:isolate;
}
.team-showcase-hero-bg {
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:url("images/clinic-waiting-room-01.jpeg");
  background-size:cover;
  background-position:center 52%;
  transform:scale(1.02);
}
.team-showcase-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(32,35,28,.68),rgba(42,45,36,.50) 55%,rgba(42,45,36,.62));
}
.team-showcase-overlay {
  min-height:360px;
  display:grid;
  place-items:center;
  text-align:center;
}
.team-showcase-copy {
  color:#fff;
  padding:62px 24px 92px;
}
.team-showcase-copy .eyebrow {
  color:rgba(255,255,255,.78);
}
.team-showcase-copy h1 {
  color:#fff;
  margin:8px 0 10px;
  font-size:clamp(44px,5vw,68px);
}
.team-hero-rule,
.team-list-rule {
  display:block;
  width:34px;
  height:1px;
  background:var(--sage);
  margin:14px auto 18px;
}
.team-showcase-copy p {
  margin:0 auto;
  max-width:620px;
  font-size:clamp(17px,2vw,23px);
  line-height:1.55;
  color:rgba(255,255,255,.94);
}
.team-values-overlap {
  position:relative;
  z-index:3;
  margin-top:-52px;
  padding:0 0 24px;
}
.team-values-panel {
  background:rgba(252,250,245,.98);
  border:1px solid rgba(54,75,54,.08);
  border-radius:18px;
  box-shadow:0 18px 44px rgba(45,44,38,.12);
  padding:28px 24px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}
.team-values-panel .value {
  padding:8px 24px;
  text-align:center;
  border-right:1px solid rgba(54,75,54,.10);
}
.team-values-panel .value:last-child {
  border-right:0;
}
.team-values-panel .value-icon {
  width:40px;
  height:40px;
  margin:0 auto 10px;
  display:grid;
  place-items:center;
  color:var(--sage-dark);
  font-size:28px;
}
.team-values-panel .value h3 {
  margin:0 0 7px;
  font-size:18px;
}
.team-values-panel .value p {
  margin:0;
  font-size:12px;
  line-height:1.55;
  color:var(--muted);
}
.team-list-heading {
  width:100%;
  text-align:center;
  margin:0 auto 8px;
}
.team-list-heading .eyebrow {
  display:none;
}
.team-list-heading h2 {
  margin-bottom:0;
}
.team-grid {
  margin-top:20px;
}
@media(max-width:900px) {
  .team-values-panel {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 0;
  }
  .team-values-panel .value:nth-child(2) { border-right:0; }
  .team-values-panel .value:nth-child(3),
  .team-values-panel .value:nth-child(4) { border-top:1px solid rgba(54,75,54,.10); padding-top:24px; }
}
@media(max-width:600px) {
  .team-showcase-hero,
  .team-showcase-overlay { min-height:330px; }
  .team-showcase-copy { padding:52px 20px 82px; }
  .team-showcase-copy h1 { font-size:44px; }
  .team-values-overlap { margin-top:-42px; }
  .team-values-panel {
    grid-template-columns:1fr;
    padding:18px;
  }
  .team-values-panel .value {
    border-right:0 !important;
    border-top:1px solid rgba(54,75,54,.10);
    padding:18px 8px;
  }
  .team-values-panel .value:first-child { border-top:0; }
}

/* v17 — consistent line icons for Équanité values */
.value-icon svg{
  width:28px;
  height:28px;
  display:block;
  margin:0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.value-icon svg .icon-fill{
  fill:currentColor;
  stroke:none;
}


/* === V18 values panel repair === */
.values {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
}

.values .value {
  min-width:0;
}

.value-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
}

.value-icon svg {
  width:28px;
  height:28px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.value-icon svg .icon-fill {
  fill:currentColor;
  stroke:none;
}

@media (max-width: 850px) {
  .values {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 520px) {
  .values {
    grid-template-columns:1fr;
  }
}

/* === V19 transparent header mark === */
.site-brand-mark {
  background: transparent;
  object-fit: contain;
  object-position: center;
}


/* MINI dynamic bundle additions */
.legal-content{max-width:900px}
.legal-content>section{padding:24px 0;border-top:1px solid var(--line)}
.legal-content>section:first-of-type{margin-top:28px}
.legal-content h2{font-size:32px;margin-bottom:10px}
.error-page{min-height:62vh;display:flex;align-items:center}
.error-content{max-width:760px;text-align:center}
.error-code{display:block;font-family:var(--serif);font-size:92px;line-height:1;color:var(--sage-dark);opacity:.22}
.error-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px}


/* === Dynamic bundle corrections === */

/* Footer: compact 3-column layout with complete horizontal logo on the left */
.site-footer .footer-grid {
  display:grid;
  grid-template-columns:minmax(220px,1.2fr) minmax(150px,.65fr) minmax(240px,1fr);
  gap:34px;
  align-items:center;
}
.site-footer .footer-brand-row {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
}
.site-footer .footer-logo-link {
  display:block;
  width:min(300px,100%);
  max-width:100%;
}
.site-footer .footer-logo-white {
  display:block;
  width:100%;
  height:auto;
  max-width:300px;
  object-fit:contain;
  object-position:left center;
}

/* Team hero: image is a background layer, never an intrinsically sized <img> */
.team-showcase-hero {
  position:relative;
  min-height:360px;
  overflow:hidden;
  isolation:isolate;
}
.team-showcase-hero-bg {
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:url("../images/clinic-waiting-room-01.jpeg");
  background-size:cover;
  background-position:center 52%;
  transform:scale(1.02);
}
.team-showcase-hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(32,35,28,.68),rgba(42,45,36,.50) 55%,rgba(42,45,36,.62));
}
.team-showcase-overlay {
  min-height:360px;
  display:grid;
  place-items:center;
  text-align:center;
}

@media(max-width:900px) {
  .site-footer .footer-grid {
    grid-template-columns:1fr 1fr;
  }
  .site-footer .footer-brand-row {
    grid-column:1 / -1;
  }
}

@media(max-width:600px) {
  .site-footer .footer-grid {
    grid-template-columns:1fr;
  }
  .site-footer .footer-brand-row {
    grid-column:auto;
  }
  .team-showcase-hero,
  .team-showcase-overlay {
    min-height:330px;
  }
}


/* === Footer/profile visual restoration === */
.site-footer .footer-grid {
  grid-template-columns:1.5fr 1fr 1fr !important;
  gap:40px !important;
  align-items:center !important;
}
.site-footer .footer-brand-row {
  display:block !important;
}
.site-footer .footer-logo-link {
  display:block !important;
  width:min(100%,330px) !important;
  max-width:330px !important;
}
.site-footer .footer-logo-white {
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:left center !important;
}

.interests-panel h3 {
  margin:6px 0 16px;
}
.interests-panel .conditions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.interests-panel .condition {
  display:block;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--ink);
  background:rgba(255,255,255,.28);
}

@media(max-width:900px) {
  .site-footer .footer-grid {
    grid-template-columns:1fr 1fr !important;
  }
  .site-footer .footer-brand-row {
    grid-column:1 / -1;
  }
}
@media(max-width:600px) {
  .site-footer .footer-grid {
    grid-template-columns:1fr !important;
  }
  .site-footer .footer-brand-row {
    grid-column:auto;
  }
  .site-footer .footer-logo-link {
    width:min(100%,280px) !important;
  }
  .interests-panel .conditions {
    grid-template-columns:1fr;
  }
}


/* Footer social media icons */
.footer-social-links {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:14px;
}
.footer-social-links a {
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  color:#fff;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.footer-social-links a:hover {
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.55);
  transform:translateY(-1px);
}
.footer-social-links svg {
  width:18px;
  height:18px;
  fill:currentColor;
  stroke:currentColor;
  stroke-width:1.5;
}
.footer-social-links svg rect,
.footer-social-links svg circle:not(.footer-social-dot) { fill:none; }
.footer-social-links .footer-social-dot { fill:currentColor; stroke:none; }
/* Language switch */
.language-switch{font-weight:700;letter-spacing:.08em}.lang-long{display:none}
@media(max-width:900px){.language-switch{margin-top:8px;padding-top:14px!important;border-top:1px solid rgba(0,0,0,.08)}.lang-short{display:none}.lang-long{display:inline}}

/* Marie-Noëlle: keep the top of her portrait visible on team cards and profile pages. */
.team-card .portrait img[src*="marie-noelle-poirier"],
.profile-photo img[src*="marie-noelle-poirier"] { object-position: center top !important; }
