/* =========================================================
   Salon William Anthony — Landing page
   Valeurs issues de la maquette Figma (frame 1920 px)
   ========================================================= */

:root {
  /* Couleurs */
  --c-black: #000;
  --c-white: #fff;
  --c-gray-bg: #e5e7ea;
  --c-about-bg: #e7ebf0;
  --c-team-bg: #dadada;
  --c-card-dark: #111;
  --c-quote: #9ca3af;
  --c-muted: rgba(0, 0, 0, 0.4);
  --c-text-80: rgba(0, 0, 0, 0.8);
  --c-line: rgba(0, 0, 0, 0.2);
  --c-line-light: rgba(255, 255, 255, 0.26);
  --c-white-80: rgba(255, 255, 255, 0.8);
  --c-white-64: rgba(255, 255, 255, 0.64);
  --c-white-30: rgba(255, 255, 255, 0.3);
  --c-white-20: rgba(255, 255, 255, 0.2);

  /* Typographies */
  --f-display: "Gloock", Georgia, serif;
  --f-label: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Mise en page */
  --container: 1512px;
  --pad-x: clamp(16px, 4vw, 48px);
  --section-y: 64px;
  --header-h: 100px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 20px; background: var(--c-white); color: var(--c-black);
  font-weight: 500; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container {
  width: min(var(--container), 100% - 2 * var(--pad-x));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section-gray { background: var(--c-gray-bg); }
.section-dark { background: var(--c-black); color: var(--c-white); }

/* ---------- Titres de section ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}
.section-head--narrow { max-width: 728px; gap: 8px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-label);
  font-size: 16px;
  line-height: 16.5px;
  letter-spacing: 3.85px;
  text-transform: uppercase;
  color: var(--c-muted);
}
.eyebrow-line {
  flex: none;
  width: 48px;
  height: 1px;
  background: var(--c-line);
}
.eyebrow--light { font-weight: 700; color: var(--c-white-30); }
.eyebrow--light .eyebrow-line { background: var(--c-line-light); }

.h2 {
  font-family: var(--f-display);
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -1.4px;
}

.body-text { font-size: 16px; line-height: 28.8px; }
.body-text strong { font-weight: 700; }
.body-text p + p { margin-top: 28.8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 16px 32px;
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn img { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover img[src*="arrow"] { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-white { background: var(--c-white); color: var(--c-black); }
.btn-white:hover { background: #ececec; }

.btn-black { background: var(--c-black); color: var(--c-white); }
.btn-black:hover { background: #222; }

.btn-ghost-light {
  background: var(--c-white-20);
  border-color: var(--c-white);
  color: var(--c-white);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.32); }

.btn-outline-dark { border-color: var(--c-black); color: var(--c-black); }
.btn-outline-dark:hover { background: rgba(0, 0, 0, 0.06); }

.btn-icon { min-height: 44px; padding: 10px 16px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-group--center { justify-content: center; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--c-black);
  color: var(--c-white);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1507px;
}

.brand { display: flex; align-items: center; gap: 9.356px; flex: none; }
.brand-mark { width: 79.36px; height: 49.6px; }
.brand-wordmark { width: 269.28px; height: 37.31px; }

.main-nav ul { display: flex; gap: 20px; }
.main-nav a {
  position: relative;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-indent: 1.5px; /* compense l’espacement final pour centrer le texte */
  color: var(--c-white);
  border: 1px solid var(--c-white-20);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }

.btn-header-phone {
  min-height: 56px;
  padding: 10px 24px;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-body);
  font-size: 18.543px;
  line-height: 23.18px;
  letter-spacing: 0.4056px;
}
.btn-header-phone img { width: 18.543px; height: 18.543px; }
.btn-header-phone:hover { background: #ececec; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-white);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: rgba(19, 60, 102, 0.1);
  color: var(--c-white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Ellipse noire floutée qui assombrit le bas de l'image (Figma : Ellipse 41) */
.hero-ellipse {
  position: absolute;
  left: 48.46%;
  top: 92.9%;
  width: 128.74%;
  height: 204.28%;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 47px;
  max-width: 1218px;
  padding-bottom: 82px;
  text-align: center;
}
.hero-kicker {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--c-white-80);
}
.hero-title {
  max-width: 1010px;
  margin-inline: auto;
  font-family: var(--f-display);
  font-size: 60px;
  line-height: 73px;
  letter-spacing: -1.4px;
}
.hero .btn-group { justify-content: center; }

/* =========================================================
   À PROPOS
   ========================================================= */
.about-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.about-media {
  flex: 0 1 697px;
  aspect-ratio: 697 / 751;
  background: var(--c-about-bg);
  overflow: hidden;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 29px;
}
.about-content .section-head { gap: 18px; margin-bottom: 0; }

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px; /* 24 px + séparateur + 24 px */
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.service-media {
  width: 100%;
  aspect-ratio: 470.667 / 280;
  overflow: hidden;
  background: var(--c-white);
  margin-bottom: -6px; /* 18px entre image et contenu, comme dans Figma */
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.service-card:hover .service-media img,
.service-card:focus-within .service-media img { transform: scale(1.04); filter: grayscale(0); }

/* Bouton flèche qui s’ouvre en « Prenez rendez-vous » au survol de la carte */
.service-card .btn-icon { gap: 0; transition: gap 0.45s var(--ease), padding 0.45s var(--ease), background-color 0.25s var(--ease); }
.btn-label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.45s var(--ease), opacity 0.3s var(--ease);
}
.service-card:hover .btn-icon,
.service-card:focus-within .btn-icon { gap: 8px; }
.service-card:hover .btn-label,
.service-card:focus-within .btn-label { max-width: 220px; opacity: 1; transition-delay: 0s, 0.1s; }

.service-body { display: flex; flex-direction: column; width: 100%; }
.service-num {
  font-family: var(--f-label);
  font-size: 14px;
  line-height: 16.5px;
  letter-spacing: 3.85px;
  text-transform: uppercase;
  color: var(--c-muted);
}
.service-title {
  margin-top: 8px;
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
}
.service-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 24px;
}
.service-desc--spaced { margin-bottom: 24px; }

.dash-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.dash-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 24px;
}
.dash-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background: var(--c-black);
}
.service-card .btn-icon { margin-top: auto; }
/* Séparateur vertical (Figma : Vector 1750, noir 6 %) */
.service-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -24.5px;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
}

/* =========================================================
   CLINIQUE CAPILLAIRE
   ========================================================= */
.clinic { position: relative; overflow: hidden; }
.clinic-inner {
  display: grid;
  grid-template-columns: minmax(0, 920px) clamp(480px, 36.25vw, 696px);
  justify-content: space-between;
  gap: 70px;
  padding-left: max(var(--pad-x), (100% - var(--container)) / 2);
  padding-right: clamp(16px, 1.354vw, 26px);
}
.clinic-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}
.clinic-content .section-head { margin-bottom: 0; }
.clinic-body { display: flex; flex-direction: column; gap: 24px; }

.clinic-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.clinic-list { display: flex; flex-direction: column; }
.clinic-list li {
  position: relative;
  padding-inline: 24px;
}
.clinic-list li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line-light);
}
.clinic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 2px;
  background: var(--c-white);
}
.clinic-list li + li::before { top: 26px; }
.clinic-list h3 {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 18px;
  line-height: 28.8px;
}
.clinic-list p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 24px;
  color: var(--c-white-80);
}

/* Mosaïque d'images en débord (positions Figma) */
.clinic-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-block: calc(-1 * var(--section-y));
  align-items: start;
  contain: size; /* la mosaïque n'agrandit pas la section : elle est rognée comme dans Figma */
}
.mosaic-col { display: flex; flex-direction: column; gap: 24px; }
.mosaic-col img { width: 100%; object-fit: cover; }
.mosaic-col--a { margin-top: 61px; }
.mosaic-col--a img:first-child { aspect-ratio: 339 / 535; }
.mosaic-col--a img:last-child { aspect-ratio: 339 / 518; }
.mosaic-col--b { margin-top: -1px; }
.mosaic-col--b img { aspect-ratio: 339 / 517; }

/* =========================================================
   AVANTAGES
   ========================================================= */
/* Grille : 3 items | séparateur pleine largeur | 3 items (enfants 1-3, 4 = séparateur, 5-7) */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.adv-sep { grid-column: 1 / -1; height: 1px; background: var(--c-line); }
.adv-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: 24px;
}
.adv-item:is(:nth-child(2), :nth-child(3), :nth-child(6), :nth-child(7)) {
  padding-left: 24px;
  border-left: 1px solid var(--c-line);
}
.adv-item h3 {
  margin-bottom: -12px; /* 8px entre titre et texte */
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
}
.adv-item p { font-size: 14px; line-height: 24px; color: var(--c-text-80); }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-black);
}
.icon-box img { width: 24px; height: auto; }

.advantages .btn-group { margin-top: 24px; }

/* =========================================================
   ÉQUIPE
   ========================================================= */
.team-inner {
  display: flex;
  align-items: center;
  gap: 78px;
}
.team-intro {
  flex: 0 1 506px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.team-intro .eyebrow { margin-bottom: 8px; }
.team-intro .body-text { margin-bottom: 28.8px; }
.team-cards {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  gap: 24px;
}
.team-card {
  position: relative;
  flex: 0 1 450px;
  aspect-ratio: 450 / 562;
  overflow: hidden;
  background: var(--c-team-bg);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
}
/* Seconde photo affichée au survol (fondu enchaîné) */
.team-card .team-img-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.team-card:hover img,
.team-card:focus-visible img { transform: scale(1.03); }
.team-card:hover .team-img-alt,
.team-card:focus-visible .team-img-alt { opacity: 1; }
.team-card:focus-visible { outline: 2px solid var(--c-black); outline-offset: 4px; }
.team-card figcaption {
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: calc(100% - 41px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 85px;
  padding: 16px;
  background: var(--c-white);
}
.team-name {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
}
/* Biographie dévoilée au survol (grille 0fr → 1fr) */
.team-bio {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: -8px;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.35s var(--ease), margin-top 0.55s var(--ease);
}
.team-bio > span {
  min-height: 0;
  overflow: hidden;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 21px;
  color: #222;
}
.team-bio > span::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.15);
}
.team-card:hover .team-bio,
.team-card:focus-visible .team-bio { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; transition-delay: 0s, 0.12s, 0s; }
@media (hover: none) {
  .team-bio { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; }
  .service-card .btn-icon { gap: 8px; }
  .btn-label { max-width: 220px; opacity: 1; }
  .service-media img { filter: none; }
}
.team-role {
  margin-top: -8px;
  font-family: var(--f-label);
  font-size: 14px;
  line-height: 16.5px;
  letter-spacing: 3.85px;
  color: var(--c-muted);
}

/* =========================================================
   BANDE RENDEZ-VOUS
   ========================================================= */
.booking { padding-block: var(--section-y); }
.booking-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.booking-text { max-width: 722px; display: flex; flex-direction: column; gap: 8px; }
.booking-title {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -1.4px;
}
.booking-text p { font-size: 16px; line-height: 16.5px; color: var(--c-white-64); }

/* =========================================================
   MARQUES PARTENAIRES
   ========================================================= */
.brands .h2 { white-space: nowrap; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.brand-card { display: flex; flex-direction: column; gap: 24px; }
.brand-card + .brand-card { border-left: 1px solid var(--c-line); padding-left: 24px; }
.brand-media { aspect-ratio: 731.5 / 220; overflow: hidden; }
.brand-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.brand-card:hover .brand-media img { transform: scale(1.03); }
.brand-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: 24px;
}
.brand-body h3 {
  margin-bottom: -12px;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 22px;
  line-height: 32px;
}
.brand-body p { font-size: 14px; line-height: 24px; color: var(--c-text-80); }

/* =========================================================
   TÉMOIGNAGES
   ========================================================= */
.testimonials .container { max-width: 1506px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  min-height: 333px;
  padding: 24px;
  background: var(--c-card-dark);
  transition: transform 0.35s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); }
.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}
.stars { display: flex; gap: 2px; }
.stars img { width: 14px; height: 14px; }
.google { width: 18px; height: 18px; opacity: 0.5; }
.testimonial-quote {
  flex: 1 1 auto;
  padding-bottom: 24px;
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-quote);
}
.testimonial-author {
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-weight: 600;
  font-size: 13px;
  line-height: 19.5px;
  color: var(--c-white);
}

/* =========================================================
   GALERIE
   ========================================================= */
.gallery { overflow: hidden; }
.gallery .section-head { gap: 8px; }
.gallery-strip {
  margin-bottom: 48px;
  overflow: hidden;
}
.gallery-track {
  --item-w: clamp(220px, 19vw, 364.8px);
  --gap: 24px;
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: gallery-scroll 50s linear infinite;
}
.gallery-strip:hover .gallery-track { animation-play-state: paused; }
.gallery-track li {
  flex: none;
  width: var(--item-w);
  aspect-ratio: 364.8 / 583;
  overflow: hidden;
  background: var(--c-white);
}
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }

@keyframes gallery-scroll {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

/* Galerie : vignettes cliquables */
.gallery-strip:focus-within .gallery-track { animation-play-state: paused; }
.gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-item img { transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 3px solid var(--c-black); outline-offset: -3px; }

/* Popup photo */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.97);
  color: var(--c-white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lightbox-in 0.3s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
html.lightbox-open { overflow: hidden; }

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(92vw, 900px);
  padding: 72px 16px 24px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.lightbox-img.is-loaded { opacity: 1; transform: none; }
.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-white-80);
}
.lightbox-count { flex: none; font-family: var(--f-label); letter-spacing: 1px; }

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  font-size: 36px;
  line-height: 1;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-white-20);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-btn:focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }
.lightbox-close { top: 16px; right: 16px; font-size: 32px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  .lightbox-figure { padding: 72px 12px 96px; }
  .lightbox-img { max-height: calc(100dvh - 200px); }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 20px; transform: none; width: 48px; height: 48px; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
  .lightbox-caption { font-size: 13px; }
}

/* Avis Google (Elfsight) */
.reviews-widget { min-height: 200px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.8);
}
.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1506px;
}
.contact-text {
  max-width: 728px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.site-footer {
  padding-block: var(--section-y);
  background: var(--c-black);
  color: var(--c-white);
}
.site-footer .container { max-width: 1507px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  min-height: 284.5px;
}
.footer-about {
  flex: 0 1 374px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-about > img { width: 117px; height: 73.125px; }
.social img { width: 16px; height: 16px; }
.footer-about p { font-size: 13px; line-height: 21.125px; color: var(--c-white-80); }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-white-20);
  transition: background-color 0.25s;
}
.social:hover { background: rgba(255, 255, 255, 0.35); }

.footer-cols {
  flex: 0 1 976px;
  display: grid;
  grid-template-columns: 370px 201px minmax(0, 1fr);
  gap: 57px;
}
.footer-heading {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.footer-col a,
.footer-col dd {
  font-size: 13px;
  line-height: 19.5px;
  color: var(--c-white-80);
}
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--c-white); }
.footer-col li + li { margin-top: 12.5px; }

.footer-nav-lists { display: flex; gap: 19px; padding-top: 23px; }
.footer-nav-lists ul:first-child { width: 136px; }
.footer-col--services ul { padding-top: 20px; }

.footer-col--contact dl { padding-top: 20px; }
.footer-col--contact dt {
  padding-bottom: 4px;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.footer-col--contact dt:not(:first-child) { padding-top: 16px; }
.footer-col--contact dd { padding-top: 2px; line-height: 21.5px; overflow-wrap: anywhere; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 33px;
  border-top: 1px solid var(--c-white-20);
}
.footer-bottom img { width: 67.04px; height: 21.67px; }
.footer-bottom p { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.7); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Grands écrans < 1600 px */
@media (max-width: 1599px) {
  .footer-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
  .team-inner { gap: 56px; }
}

/* 1280–1535 px : en-tête compact pour que menu + langue + téléphone tiennent sur une ligne */
@media (min-width: 1280px) and (max-width: 1535px) {
  .header-inner { gap: 16px; }
  .brand-mark { width: 64px; height: 40px; }
  .brand-wordmark { width: 216px; height: 30px; }
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 15px; }
  .header-actions { gap: 10px; }
  .btn-header-phone { padding: 10px 16px; font-size: 16px; }
}

/* < 1280 px : menu mobile, mosaïque sous le texte */
@media (max-width: 1279px) {
  :root { --header-h: 80px; }

  .brand-mark { width: 64px; height: 40px; }
  .brand-wordmark { width: 216px; height: 30px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .header-actions { margin-left: auto; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--c-black);
    border-top: 1px solid var(--c-white-20);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: min(var(--container), 100% - 2 * var(--pad-x));
    margin-inline: auto;
    padding-block: 16px 24px;
  }
  .main-nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .main-nav a { display: block; padding: 14px 0; font-size: 18px; }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { padding-left: 16px; box-shadow: inset 2px 0 0 currentColor; }

  .hero { min-height: 720px; }
  .hero-title { font-size: 52px; line-height: 64px; }

  .clinic-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-inline: 0;
    width: min(var(--container), 100% - 2 * var(--pad-x));
    margin-inline: auto;
  }
  .clinic-mosaic { margin-block: 0; contain: none; }
  .mosaic-col--a { margin-top: 0; }
  .mosaic-col--b { margin-top: 48px; }
  .clinic { padding-bottom: 0; }
  .clinic-mosaic { margin-bottom: -64px; }

  .team-inner { flex-direction: column; align-items: stretch; gap: 48px; }
  .team-intro { flex-basis: auto; max-width: 728px; }

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

  .brands .h2 { white-space: normal; }

  .footer-top { flex-direction: column; }
  .footer-about { flex-basis: auto; max-width: 420px; }
  .footer-cols { flex-basis: auto; }
}

/* < 1024 px : tablette */
@media (max-width: 1023px) {
  :root { --section-y: 56px; }

  .about-inner { flex-direction: column; align-items: stretch; }
  .about-media { flex-basis: auto; aspect-ratio: 4 / 3; order: 2; }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .service-card::after { display: none; }

  /* 2 colonnes : items 1,2 | 3,5 | 6,7 (le séparateur, enfant 4, est masqué) */
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .adv-sep { display: none; }
  .adv-grid .adv-item { border-left: 0; padding-left: 0; }
  .adv-grid .adv-item:is(:nth-child(2), :nth-child(5), :nth-child(7)) {
    padding-left: 24px;
    border-left: 1px solid var(--c-line);
  }
  .adv-grid .adv-item:is(:nth-child(3), :nth-child(5), :nth-child(6), :nth-child(7)) {
    border-top: 1px solid var(--c-line);
  }

  .booking-inner,
  .contact-inner { flex-direction: column; align-items: flex-start; }

  .brand-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .brand-card + .brand-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-line); padding-top: 24px; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--nav { grid-column: 1 / -1; }
}

/* < 768 px : mobile */
@media (max-width: 767px) {
  :root { --section-y: 48px; --header-h: 72px; }

  .brand-mark { width: 51px; height: 32px; }
  .brand-wordmark { width: 158px; height: 22px; }
  .btn-header-phone { display: none; }
  .lang-switch { width: 44px; height: 44px; font-size: 15px; }
  /* En-tête compact : le logo rétrécit pour éviter tout défilement horizontal (dès 280 px) */
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .brand { min-width: 0; }
  .brand-wordmark { width: clamp(92px, calc(100vw - 196px), 158px); height: auto; }

  .hero { min-height: clamp(560px, calc(100svh - var(--header-h)), 760px); }
  .hero-ellipse { width: 260%; height: 150%; top: 100%; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 35%, rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
  }
  .hero-content { gap: 32px; padding-bottom: 48px; }
  .hero-kicker { font-size: 16px; }
  .hero-title { font-size: 36px; line-height: 44px; letter-spacing: -1px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
  .hero-kicker { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

  .h2 { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .booking-title { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .booking-text p { line-height: 24px; }

  .eyebrow { font-size: 13px; letter-spacing: 3px; }
  .eyebrow-line { width: 32px; }
  .section-head { margin-bottom: 32px; }

  .btn-group { flex-direction: column; align-items: stretch; width: 100%; }
  .about-content > .btn,
  .team-intro > .btn,
  .clinic-content > .btn { width: 100%; }

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

  .clinic-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .clinic-cols .clinic-list + .clinic-list li:first-child {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid var(--c-line-light);
  }
  .clinic-cols .clinic-list + .clinic-list li:first-child::before { top: 26px; }
  .mosaic-col { gap: 12px; }
  .clinic-mosaic { gap: 12px; }
  .mosaic-col--b { margin-top: 32px; }

  .adv-grid { grid-template-columns: minmax(0, 1fr); }
  .adv-grid .adv-item:is(:nth-child(n)) { padding-left: 0; border-left: 0; border-top: 1px solid var(--c-line); }
  .adv-grid .adv-item:first-child { border-top: 0; }

  .team-cards { flex-direction: column; }
  .team-card { flex-basis: auto; width: 100%; }
  .team-role { letter-spacing: 2.5px; }

  .testimonial-grid { grid-template-columns: minmax(0, 1fr); }
  .testimonial { min-height: 0; }

  .gallery-track { --gap: 12px; --item-w: 62vw; }
  .gallery-strip { margin-bottom: 32px; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-top { padding-bottom: 40px; }
  .footer-col--contact dd { line-height: 26px; }
  .footer-col--contact dt:not(:first-child) { padding-top: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 359px) {
  .brand-mark { width: 44px; height: 27.5px; }
  .lang-switch { width: 40px; height: 40px; font-size: 14px; }
}

/* Cartes équipe : image au-dessus, texte en dessous (mobile, tablette, écrans tactiles) */
@media (max-width: 1023px), (hover: none) {
  .team-card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-line);
  }
  .team-card img { height: auto; aspect-ratio: 450 / 562; }
  .team-card:hover img { transform: none; }
  .team-card .team-img-alt { display: none; }
  .team-card figcaption {
    position: static;
    width: 100%;
    min-height: 0;
    transform: none;
    padding: 20px;
  }
  .team-bio { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; }
}

/* =========================================================
   PIED DE PAGE : liens légaux
   ========================================================= */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer-legal a,
.link-button {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.link-button { padding: 0; background: none; border: 0; font-family: inherit; cursor: pointer; }
.footer-legal a:hover,
.link-button:hover { color: var(--c-white); }
@media (max-width: 767px) { .footer-legal { margin-left: 0; } }

/* =========================================================
   BANNIÈRE COOKIES
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  background: var(--c-black);
  color: var(--c-white);
  border: 1px solid var(--c-white-20);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-title { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 30px; margin-bottom: 8px; }
.cookie-title:focus { outline: none; }
.cookie-desc { font-size: 14px; line-height: 22px; color: var(--c-white-80); }
.cookie-desc a { color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }
.cookie-prefs { display: grid; gap: 12px; margin-top: 16px; }
.cookie-prefs[hidden] { display: none; }
.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--c-white-80);
  border: 1px solid var(--c-white-20);
  cursor: pointer;
}
.cookie-option strong { display: block; color: var(--c-white); font-size: 14px; }
.cookie-option input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-white); }
.cookie-option:has(input:disabled) { cursor: default; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cookie-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 16px;
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 16px;
  color: var(--c-white);
  background: transparent;
  border: 1px solid var(--c-white);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cookie-btn[hidden] { display: none; }
.cookie-btn:hover { background: rgba(255, 255, 255, 0.12); }
.cookie-btn--primary { background: var(--c-white); color: var(--c-black); }
.cookie-btn--primary:hover { background: #ececec; }
.cookie-btn:focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }
@media (max-width: 767px) {
  .cookie-banner { left: 16px; bottom: 16px; padding: 20px; }
  .cookie-actions { flex-direction: column; }
}

/* =========================================================
   PAGE POLITIQUE DE CONFIDENTIALITÉ
   ========================================================= */
.legal-hero { padding: 72px 0 56px; background: var(--c-black); color: var(--c-white); }
.legal-hero .eyebrow { margin-bottom: 16px; }
.legal-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; letter-spacing: -1.5px; }
.legal-updated { margin-top: 16px; font-size: 15px; color: var(--c-white-80); }
.legal-body { padding-block: var(--section-y); }
.legal-content { max-width: 820px; }
.legal-content h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content p,
.legal-content li,
.legal-content dd { font-size: 16px; line-height: 26px; color: #222; }
.legal-content p + p,
.legal-content ul + p,
.legal-content p + ul { margin-top: 12px; }
.legal-content ul { margin-top: 12px; }
.legal-content li { position: relative; padding-left: 28px; }
.legal-content li + li { margin-top: 6px; }
.legal-content li::before { content: "—"; position: absolute; left: 0; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-content dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 12px; }
.legal-content dt { font-weight: 600; font-size: 16px; line-height: 26px; }
.legal-content .placeholder { padding: 0 4px; background: #fff3c4; font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }
@media (max-width: 767px) {
  .legal-hero { padding: 48px 0 40px; }
  .legal-content h2 { font-size: 24px; line-height: 30px; margin-top: 36px; padding-top: 24px; }
  .legal-content dl { grid-template-columns: 1fr; gap: 0; }
  .legal-content dd + dt { margin-top: 8px; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gallery-track { animation: none; }
  .gallery-strip { overflow-x: auto; }
}

/* Bouton-lien sur fond clair (page légale) */
.link-button--dark { font-size: inherit; line-height: inherit; color: var(--c-black); }
.link-button--dark:hover { color: #444; }
