/* Cabinet Dr. Ilias El Mrabet — premium green & gold color system */

:root {
  --primary-green: #174A43;
  --deep-green: #0F3531;
  --medium-green: #28665D;
  --soft-green: #E8F0ED;

  --gold: #B5965A;
  --gold-light: #D2B879;
  --gold-dark: #8C6B32;

  --cream: #F7F3EA;
  --warm-white: #FCFBF8;
  --white: #FFFFFF;

  --text-dark: #20302D;
  --text-muted: #6E7B77;
  --footer-muted: #C8D5D1;

  --border: #DDE4E0;
  --danger: #9A4D3C;

  /* Aliases used by existing components */
  --primary: var(--primary-green);
  --primary-dark: var(--deep-green);
  --surface: var(--cream);
  --surface-light: var(--warm-white);
  --text: var(--text-dark);
  --accent: var(--gold);
  --accent-text: var(--gold-dark);

  --font-serif: "DM Serif Display", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, sans-serif;

  --fs-display: clamp(2.6rem, 7.2vw, 6.4rem);
  --fs-h1: clamp(2.2rem, 4.8vw, 4.4rem);
  --fs-h2: clamp(1.7rem, 3vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.65rem);
  --fs-body: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
  --fs-small: 0.72rem;

  --space-1: clamp(0.5rem, 1vw, 0.8rem);
  --space-2: clamp(1rem, 2vw, 1.75rem);
  --space-3: clamp(2rem, 5vw, 4.5rem);
  --space-4: clamp(3.25rem, 9vw, 8.5rem);

  --header-h: 4.75rem;
  --radius: 1.35rem;
  --radius-sm: 0.7rem;
  --shadow: 0 10px 30px rgba(15, 53, 49, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--surface-light);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

body.is-ready {
  animation: page-in 0.55s var(--ease);
}

body.is-leaving {
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--deep-green);
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
}

p {
  max-width: 42rem;
}

h1, h2, h3, h4,
.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--deep-green);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -90px;
  z-index: 5000;
  background: var(--deep-green);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus { top: 0.75rem; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 5000;
  pointer-events: none;
}

.container-xl,
.container {
  width: min(1180px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(740px, calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Buttons */
.btn,
.btn-primary,
.btn-dark-site,
.btn-ghost,
.btn-ghost-site,
.btn-light,
.btn-light-site,
.btn-outline-rdv,
.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.92rem 1.45rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-color: var(--deep-green);
  --bs-btn-hover-border-color: var(--gold);
  --bs-btn-active-bg: var(--gold);
  --bs-btn-active-color: var(--deep-green);
  --bs-btn-active-border-color: var(--gold);
  --bs-btn-focus-shadow-rgb: 181, 150, 90;
}

.btn i,
.btn-primary i,
.btn-dark-site i,
.btn-ghost i,
.btn-ghost-site i,
.btn-light i,
.btn-light-site i,
.btn-outline-rdv i,
.btn--primary i,
.btn svg,
.btn-dark-site svg,
.btn-ghost-site svg,
.btn-light-site svg,
.btn-outline-rdv svg,
.btn--primary svg {
  font-size: 0.9rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.btn:hover i,
.btn:focus-visible i,
.btn-primary:hover i,
.btn-primary:focus-visible i,
.btn-dark-site:hover i,
.btn-dark-site:focus-visible i,
.btn-ghost:hover i,
.btn-ghost:focus-visible i,
.btn-ghost-site:hover i,
.btn-ghost-site:focus-visible i,
.btn-light:hover i,
.btn-light:focus-visible i,
.btn-light-site:hover i,
.btn-light-site:focus-visible i,
.btn-outline-rdv:hover i,
.btn-outline-rdv:focus-visible i,
.btn--primary:hover i,
.btn--primary:focus-visible i,
.btn:hover svg,
.btn:focus-visible svg,
.btn-dark-site:hover svg,
.btn-ghost-site:hover svg,
.btn-light-site:hover svg,
.btn-outline-rdv:hover svg,
.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.btn,
.btn-primary,
.btn-dark-site,
.btn-ghost,
.btn-ghost-site,
.btn-light,
.btn-light-site,
.btn-outline-rdv,
.btn--primary {
  background-color: transparent;
  color: var(--deep-green);
  border-color: var(--deep-green);
}

.btn:hover,
.btn:focus-visible,
.btn:active,
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-dark-site:hover,
.btn-dark-site:focus-visible,
.btn-dark-site:active,
.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-ghost:active,
.btn-ghost-site:hover,
.btn-ghost-site:focus-visible,
.btn-ghost-site:active,
.btn-light:hover,
.btn-light:focus-visible,
.btn-light:active,
.btn-light-site:hover,
.btn-light-site:focus-visible,
.btn-light-site:active,
.btn-outline-rdv:hover,
.btn-outline-rdv:focus-visible,
.btn-outline-rdv:active,
.btn--primary:hover,
.btn--primary:focus-visible,
.btn--primary:active {
  background-color: var(--gold) !important;
  color: var(--deep-green) !important;
  border-color: var(--gold) !important;
  transform: translateY(-1px);
}

.doctor-cine .btn,
.doctor-cine .btn-dark-site,
.doctor-cine .btn-ghost-site,
.doctor-cine .btn-light-site,
.doctor-cine .btn-outline-rdv,
.doctor-split .btn,
.doctor-split .btn-dark-site,
.doctor-split .btn-ghost-site,
.doctor-split .btn-light-site,
.modal-content .btn,
.modal-content .btn-light-site,
.modal-content .btn-dark-site {
  background-color: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn--full { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-green);
  position: relative;
  transition: color 0.25s ease;
}

.link-more::after {
  content: "";
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.link-more:hover,
.link-more:focus-visible { color: var(--gold); }
.link-more:hover::after,
.link-more:focus-visible::after { width: 1.8rem; }

/* Header */
.infobar {
  background: var(--deep-green);
  color: var(--footer-muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0;
}

.infobar a { color: var(--white); }
.infobar a:hover { color: var(--gold); }

.infobar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.infobar-links { display: flex; gap: 1.4rem; align-items: center; }

.infobar-phones { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: var(--white);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.site-header .navbar { padding: 0; }

.header-shell,
.site-header .container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.navbar-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.logo-mark,
.brand__mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.logo-kicker,
.brand__kicker {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.logo-name,
.brand__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--deep-green);
  line-height: 1.15;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.navbar-nav .nav-link {
  color: var(--deep-green);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.8rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold-dark); }

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--deep-green);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.25s ease;
}

.nav-toggle:hover span,
.nav-toggle:focus-visible span {
  background-color: var(--gold);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--deep-green);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 1.5rem 2.4rem;
  transform: translateY(-110%);
  transition: transform 0.55s var(--ease);
}

.mobile-nav.is-open { transform: none; }

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.1rem);
  color: var(--white);
  padding: 0.2rem 0;
  opacity: 0;
  transform: translateY(18px);
}

.mobile-nav.is-open a {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 1) * 55ms);
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav a span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.mobile-nav .btn-dark-site,
.mobile-nav .btn-primary,
.mobile-nav .mobile-nav__cta {
  margin-top: 1.8rem;
  background-color: transparent;
  color: var(--cream);
  border-color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
}

.mobile-nav .btn-dark-site:hover,
.mobile-nav .btn-dark-site:focus-visible,
.mobile-nav .mobile-nav__cta:hover,
.mobile-nav .mobile-nav__cta:focus-visible {
  background-color: var(--gold) !important;
  color: var(--deep-green) !important;
  border-color: var(--gold) !important;
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.lead-muted,
.lead {
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  max-width: 38rem;
  line-height: 1.7;
}

.section-index {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--gold-dark);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

/* Hero */
.hero {
  background: var(--cream);
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.hero__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.35rem;
}

.hero__logo {
  display: block;
  width: min(100%, 280px);
  max-width: 280px;
  height: auto;
  object-fit: contain;
  background: transparent;
  margin-bottom: 1.15rem;
}

.hero__welcome .eyebrow {
  margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
  .hero__logo {
    max-width: 190px;
    width: min(100%, 190px);
  }

  .doctor-cine__logo {
    max-width: 160px;
    width: min(100%, 160px);
  }
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 0.92;
  margin: 0.2rem 0 1.3rem;
}

.hero h1 em {
  font-style: italic;
  color: inherit;
}

.hero .name-gold {
  color: var(--gold-dark);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
  min-height: min(78vh, 760px);
  border-radius: 0 0 0 5rem;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: min(78vh, 760px);
  object-fit: cover;
  object-position: center 16%;
  will-change: transform;
  transition: transform 0.6s var(--ease);
}

.hero-panel,
.hero__card {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: var(--deep-green);
  color: var(--cream);
  padding: 1.2rem 1.35rem 1.3rem;
  max-width: 240px;
  border-radius: var(--radius-sm);
  border-top: 2px solid var(--gold);
}

.hero-panel strong,
.hero__card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
}

.hero-panel span,
.hero__card span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.ticker,
.marquee {
  background: var(--deep-green);
  color: var(--cream);
  overflow: hidden;
  padding: 0.95rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  padding: 0 1.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: var(--space-4) 0;
}

.section-cream { background: var(--cream); }
.section-paper { background: var(--warm-white); }

.section-dark {
  background: var(--cream);
  color: var(--text-muted);
}

.section-dark h2,
.section-dark h3,
.section-dark .font-serif { color: var(--deep-green); }

.section-dark a { color: var(--deep-green); }
.section-dark a:hover { color: var(--gold-dark); }

.section-dark .eyebrow { color: var(--gold-dark); }
.section-dark .eyebrow::before { background: var(--gold); }

.section-dark .contact-dl dt { color: var(--deep-green); }

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}

.media-frame img,
.media-zoom img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.media-frame:hover img,
.media-zoom:hover img { transform: scale(1.05); }

.media-portrait { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 16 / 10; }
.media-square { aspect-ratio: 1; }

.media-consultation {
  aspect-ratio: 1080 / 1523;
  width: min(100%, calc(min(80vh, 740px) * 1080 / 1523));
  max-height: min(80vh, 740px);
  margin-inline: auto;
}

.media-consultation img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.offset-frame {
  position: relative;
}

.offset-frame::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}

/* Doctor */
.doctor-cine,
.doctor-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 86vh;
  background: var(--deep-green);
}

.doctor-cine__media,
.doctor-split__media {
  overflow: hidden;
  min-height: 520px;
}

.doctor-cine__media img,
.doctor-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.doctor-cine__body,
.doctor-split__body {
  padding: clamp(2.4rem, 5vw, 5rem) clamp(1.4rem, 4vw, 3.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--footer-muted);
}

.doctor-cine__body h1,
.doctor-cine__body h2,
.doctor-split__body h1,
.doctor-split__body h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  color: var(--white);
}

.doctor-cine__body .eyebrow,
.doctor-split__body .eyebrow {
  color: var(--gold);
}

.doctor-cine__body .eyebrow::before,
.doctor-split__body .eyebrow::before {
  background: var(--gold);
}

.doctor-cine__body .lead-muted,
.doctor-split__body .lead-muted {
  color: var(--gold);
}

.doctor-cine__logo {
  display: block;
  width: min(100%, 220px);
  max-width: 220px;
  height: auto;
  object-fit: contain;
  background: transparent;
  margin: 2.2rem auto 0;
}

.meta-line {
  border-top: 1px solid var(--border);
  padding: 1.15rem 0;
}

.meta-line h3 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.meta-line p {
  margin: 0;
  color: var(--text-muted);
}

.doctor-cine .meta-line,
.section-dark .meta-line {
  border-top-color: color-mix(in srgb, var(--gold) 28%, transparent);
}

.doctor-cine .meta-line h3 {
  color: var(--gold);
}

.doctor-cine .meta-line p {
  color: var(--footer-muted);
}

.section-dark .meta-line p {
  color: var(--text-muted);
}

/* Services */
.services-stage {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.service-preview {
  position: sticky;
  top: calc(var(--header-h) + 1.4rem);
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
}

.service-preview img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: opacity 0.4s var(--ease), transform 0.7s var(--ease);
}

.service-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0.2rem;
  border-top: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.service-row:last-child { border-bottom: 1px solid var(--border); }

.service-row__num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-dark);
}

.service-row h2,
.service-row h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  margin: 0;
}

.service-row p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  color: var(--text-muted);
  max-width: none;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease);
}

.service-row__arrow,
.service-row .link-more {
  align-self: center;
  white-space: nowrap;
}

.service-row:hover,
.service-row.is-open {
  background: var(--soft-green);
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius-sm);
}

.service-row:hover p,
.service-row.is-open p {
  max-height: 9rem;
  opacity: 1;
  margin-top: 0.55rem;
}

.service-list-static .service-row p {
  max-height: none;
  opacity: 1;
  margin-top: 0.55rem;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.bento__cell,
.timeline-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 2rem);
  min-height: 140px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.bento__cell:hover,
.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: var(--soft-green);
  border-color: color-mix(in srgb, var(--medium-green) 22%, var(--border));
}

.bento__cell .num,
.timeline-step .num {
  font-family: var(--font-serif);
  color: var(--gold-dark);
  display: block;
  margin-bottom: 0.55rem;
}

.bento__lg { grid-column: span 6; min-height: 220px; }
.bento__md { grid-column: span 4; }
.bento__sm { grid-column: span 3; }
.bento__wide { grid-column: span 8; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.timeline::before { display: none; }

.timeline-step { padding: 1.4rem 1.5rem 1.6rem; }

/* Gallery */
.gallery-board {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.7rem;
  min-height: 540px;
}

.gallery-board button {
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  display: block;
  height: 100%;
  border-radius: var(--radius);
}

.gallery-board button:first-child { grid-row: 1 / 3; }

.gallery-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-board button:hover img { transform: scale(1.05); }

.modal-content {
  border: 0;
  border-radius: var(--radius);
  background: var(--deep-green);
  color: var(--cream);
  overflow: hidden;
}

.modal-body img { width: 100%; }
.gallery-nav { gap: 0.6rem; }
.gallery-nav .btn,
.gallery-nav .btn-light-site { border-radius: 999px; }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top-color: var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--text);
}

.form-card h2,
.form-card h3,
.form-card .font-serif {
  color: var(--primary-dark);
}

.form-control,
.form-select {
  border: 1px solid var(--soft-green);
  border-radius: 0.7rem;
  background: var(--white);
  padding: 0.85rem 1rem;
  min-height: 52px;
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 28%, transparent);
  border-color: var(--gold);
  background: var(--white);
}

.form-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--deep-green);
}

.form-status {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--medium-green);
  border-top: 1px solid var(--gold);
  padding-top: 1.2rem;
}

.form-status.is-visible { display: block; }

.form-status.is-error {
  color: var(--danger);
  border-top-color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: var(--danger);
}

.map-box {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  background: var(--white);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  max-width: 240px;
}

/* Journal */
.journal-feat,
.journal-side,
.article-card {
  overflow: hidden;
}

.journal-feat img,
.journal-side img,
.article-card img,
.article-hero img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.7s var(--ease);
}

.journal-feat:hover img,
.journal-side:hover img,
.article-card:hover img { transform: scale(1.04); }

.journal-feat h3,
.journal-side h3,
.article-card h3 {
  color: var(--deep-green);
  transition: color 0.3s var(--ease);
}

.journal-feat:hover h3,
.journal-side:hover h3,
.article-card:hover h3 {
  color: var(--gold-dark);
}

.text-muted {
  color: var(--text-muted) !important;
}

.journal-feat img { aspect-ratio: 4 / 5; }
.journal-side img,
.article-card img { aspect-ratio: 16 / 10; }
.article-hero img { aspect-ratio: 16 / 8; margin-bottom: 1.6rem; }

.article-meta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.article-meta .cat { color: var(--gold-dark); }

.page-hero,
.page-intro {
  background: var(--cream);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-dark); }

.blog-layout {
  display: grid;
  grid-template-columns: 1.65fr 0.7fr;
  gap: 3.2rem;
}

.blog-main-grid .article-card {
  margin-bottom: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}

.article-body h2 { margin: 2.2rem 0 0.9rem; font-size: 1.8rem; }
.article-body ul { padding-left: 1.15rem; }
.article-body li + li { margin-top: 0.35rem; }

.article-end {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar-block {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-cta {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.4rem;
}

.sidebar-list a { color: var(--deep-green); }
.sidebar-list a:hover { color: var(--gold-dark); }
.sidebar-list li + li { margin-top: 0.55rem; }

.legal-body h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--deep-green);
  color: var(--footer-muted);
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
}

.site-footer a,
.site-footer h3 { color: var(--white); }

.site-footer a:hover { color: var(--gold); }

.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-cta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 0.95;
  color: var(--white);
}

.footer-cta i {
  font-size: 0.4em;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}

.footer-cta:hover,
.footer-cta:focus-visible { color: var(--gold); }

.footer-cta:hover i,
.footer-cta:focus-visible i { transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  margin-top: 2.5rem;
  padding: 1.15rem 0 1.4rem;
  font-size: 0.82rem;
}

.footer-social {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-social-link i {
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--gold);
}

.footer-social-link:hover i,
.footer-social-link:focus-visible i {
  transform: translateY(-2px);
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer .logo-kicker,
.site-footer .brand__kicker { color: var(--gold); }

.site-footer .logo-name,
.site-footer .brand__name { color: var(--white); }

.back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 5.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--deep-green);
  background: transparent;
  color: var(--deep-green);
  opacity: 0;
  pointer-events: none;
  z-index: 1400;
  transition:
    opacity 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top i {
  transition: transform 0.25s ease, color 0.25s ease;
}

.back-top:hover,
.back-top:focus-visible {
  transform: translateY(-1px);
  background-color: var(--gold);
  color: var(--deep-green);
  border-color: var(--gold);
}

.back-top:hover i,
.back-top:focus-visible i {
  transform: translateY(-2px);
}

.mobile-bar { display: none; }

.hours { width: 100%; }
.hours th,
.hours td {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.hours th {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
}

.hours td {
  text-align: right;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.contact-dl dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.contact-dl dd {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 1.15rem;
  line-height: 1.25;
}

.facts li {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.facts li::before {
  content: "— ";
  color: var(--accent);
}

.rdv-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.section:has(.rdv-layout),
.section:has(.form-card) {
  background: var(--cream);
}

/* Pourquoi nous choisir */
.why-section {
  background: var(--cream);
}

.why-section__intro {
  max-width: 22ch;
  margin-bottom: clamp(2.2rem, 5vw, 4.2rem);
}

.why-section__intro h2 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.92;
  margin: 0;
}

.why-media {
  position: sticky;
  top: calc(var(--header-h) + 1.4rem);
  overflow: hidden;
  border-radius: 1.4rem 1.4rem 1.4rem 4.2rem;
  min-height: min(68vh, 640px);
  isolation: isolate;
}

.why-media img {
  width: 100%;
  height: 100%;
  min-height: min(68vh, 640px);
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  clip-path: inset(12% 10% 12% 10%);
  transition: transform 0.9s var(--ease), clip-path 1s var(--ease);
}

.why-media.is-in img,
.why-media.reveal.is-in img {
  clip-path: inset(0);
}

.why-media__card {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  max-width: 220px;
  background: var(--deep-green);
  color: var(--cream);
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 0.7rem;
  border-top: 2px solid var(--gold);
}

.why-media__card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.why-media__card span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.why-list {
  padding-top: 0.2rem;
}

.why-row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 1.6rem;
  gap: 0.8rem;
  align-items: center;
  padding: 1.35rem 0.25rem;
  border-top: 1px solid var(--soft-green);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.why-section .why-row.reveal {
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease),
    background 0.35s var(--ease),
    padding 0.35s var(--ease);
  transition-delay: calc(var(--i, 1) * 80ms), calc(var(--i, 1) * 80ms), 0s, 0s;
}

.why-section .why-row.reveal.is-in {
  transition-delay: 0s;
}

.why-row:last-child {
  border-bottom: 1px solid var(--soft-green);
}

.why-row__num {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--gold-dark);
  line-height: 1;
  transition: color 0.35s var(--ease);
}

.why-row h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.12;
  color: var(--deep-green);
}

.why-row__arrow {
  color: var(--accent);
  font-size: 1.15rem;
  justify-self: end;
  transition: transform 0.35s var(--ease);
}

.why-row:hover,
.why-row:focus-within {
  background: color-mix(in srgb, var(--gold) 9%, var(--warm-white));
  padding-left: 0.9rem;
  padding-right: 0.75rem;
}

.why-row:hover .why-row__num,
.why-row:focus-within .why-row__num {
  color: var(--gold-dark);
}

.why-row:hover .why-row__arrow,
.why-row:focus-within .why-row__arrow {
  transform: translateX(6px);
}

@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }

  .hero__grid,
  .services-stage,
  .doctor-cine,
  .doctor-split,
  .blog-layout,
  .rdv-layout {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 58vh;
    border-radius: 0 0 2.4rem 2.4rem;
  }

  .doctor-cine__body,
  .doctor-split__body { padding: 2.6rem 1.25rem 3.4rem; }

  .gallery-board {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .gallery-board button:first-child { grid-row: auto; }
  .gallery-board img { min-height: 220px; }

  .bento__lg,
  .bento__md,
  .bento__sm,
  .bento__wide { grid-column: span 12; }

  .timeline { grid-template-columns: 1fr; }

  .why-media {
    position: relative;
    top: auto;
    min-height: 0;
    border-radius: 1.2rem 1.2rem 1.2rem 2.6rem;
    margin-bottom: 0.4rem;
  }

  .why-media img {
    min-height: 46vh;
    aspect-ratio: 4 / 5;
  }

  .why-row {
    grid-template-columns: 3.2rem minmax(0, 1fr) 1.4rem;
    padding: 1.2rem 0.1rem;
    min-height: 4.4rem;
  }

  .mobile-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: auto;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 1300;
    width: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .mobile-bar a {
    flex: none;
    width: 52px;
    height: 52px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 26px;
    letter-spacing: 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    transform: translateY(0);
    transition: color 0.25s ease, transform 0.25s ease;
  }

  .mobile-bar i {
    display: block;
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(15, 53, 49, 0.22));
  }

  .mobile-bar__call,
  .mobile-bar__wa {
    background: transparent;
    color: var(--gold);
  }

  .mobile-bar a:hover,
  .mobile-bar a:focus-visible {
    background: transparent;
    color: var(--gold-dark);
    transform: translateY(-2px);
  }

  .mobile-bar a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  .mobile-bar a:active {
    transform: scale(0.96);
  }

  body { padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
  .back-top {
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 132px);
  }
}

@media (max-width: 575.98px) {
  .service-row { grid-template-columns: 2.6rem 1fr; }
  .service-row .link-more { grid-column: 2; }
  .offset-frame::after { display: none; }
  .hero__meta { gap: 0.7rem 1rem; }
}

/* Le Cabinet — 01 Accueil slider */
.cabinet-slider {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  outline: none;
}

.cabinet-slider:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.cabinet-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--deep-green);
}

.cabinet-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  pointer-events: none;
}

.cabinet-slider__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  pointer-events: auto;
}

.cabinet-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cabinet-slider__nav {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.9rem;
  pointer-events: none;
}

.cabinet-slider__btn {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  color: var(--deep-green);
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: var(--shadow);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.cabinet-slider__btn:hover,
.cabinet-slider__btn:focus-visible {
  background: var(--gold);
  color: var(--deep-green);
  transform: translateY(-1px);
}

.cabinet-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.cabinet-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 70%, var(--soft-green));
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.cabinet-slider__dots button.is-active {
  background: var(--gold);
  transform: scale(1.2);
}

.cabinet-slider__dots button:hover,
.cabinet-slider__dots button:focus-visible {
  background: var(--gold);
}

@media (max-width: 991.98px) {
  .cabinet-slider__viewport { aspect-ratio: 4 / 3; }
}

@media (max-width: 575.98px) {
  .cabinet-slider__viewport { aspect-ratio: 5 / 4; }
  .cabinet-slider__btn {
    width: 44px;
    height: 44px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
