/* ==========================================================================
   Emilie LATIL-DEVEY — Ostéopathe D.O.
   Design System v2 — Inspired by Humaan / MFPLB / Deep-Dive / Koox
   ========================================================================== */

/* ==========================================================================
   1. FONT FACE
   ========================================================================== */

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Colors */
  --color-primary:       #2B6B5E;
  --color-primary-light: #3D8B7A;
  --color-primary-dark:  #1E4D43;
  --color-accent:        #D4A853;
  --color-accent-light:  #F0DCA8;
  --color-bg:            #FAFAF7;
  --color-bg-alt:        #F0EDE6;
  --color-text:          #2D2D2D;
  --color-text-light:    #6B6B6B;
  --color-white:         #FFFFFF;
  --color-cta:           #0596DE;
  --color-cta-hover:     #0480c2;
  --color-dark:          #1A2E28;
  --color-dark-text:     #E8E8E4;
  --color-dark-muted:    #A3B0AC;

  /* Typography */
  --font-heading: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

  --fs-display: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  --fs-h1:      clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-h3:      clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-xs:      0.8125rem;

  --lh-body:    1.75;
  --lh-heading: 1.15;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(3.5rem, 3rem + 4vw, 6rem);

  /* Layout */
  --container-max:     1200px;
  --container-narrow:  800px;
  --container-padding: 1.5rem;
  --nav-height: 60px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 100vh;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px rgba(43,107,94,0.08);
  --shadow-card-hover: 0 16px 40px rgba(43,107,94,0.15);
  --shadow-nav:  0 4px 24px rgba(0,0,0,0.08);

  /* Transitions */
  --ease-out:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.86, 0, 0.07, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p + p { margin-top: var(--space-md); }

ul, ol {
  padding-left: var(--space-lg);
}

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   4. LAYOUT — Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: 1400px;
}

/* ==========================================================================
   5. NAVIGATION — Floating Pill (Humaan-style)
   ========================================================================== */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 24px;
  max-width: 940px;
  width: calc(100% - 32px);
  transition: background var(--transition-base),
              box-shadow var(--transition-base);
}

.nav--scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-nav);
}

/* Logo */
.nav__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
  line-height: 1.15;
}

.nav__logo-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.nav__logo-sub {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.6875rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* Links */
.nav__list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast),
              background var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  background: rgba(43,107,94,0.06);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-toggle svg,
.nav__dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  transition: opacity var(--transition-fast),
              transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown-menu--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast),
              color var(--transition-fast);
}

.nav__dropdown-menu a:hover {
  background: rgba(43,107,94,0.06);
  color: var(--color-primary);
}

/* Nav CTA button */
.nav__cta {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-cta);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast),
              transform var(--transition-fast);
  flex-shrink: 0;
}

.nav__cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
  transform: scale(1.03);
}

/* Desktop nav */
@media (min-width: 1024px) {
  body {
    padding-top: 92px;
  }

  .nav__list {
    display: flex;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  body {
    padding-top: 92px;
  }

  .nav {
    padding: 6px 6px 6px 16px;
  }

  .nav__list {
    display: flex;
  }

  .nav__link {
    font-size: 0.8125rem;
    padding: 8px 10px;
  }

  .nav__cta {
    font-size: 0.75rem;
    padding: 8px 14px;
  }
}

/* ==========================================================================
   6. MOBILE TAB BAR (Humaan-style bottom nav)
   ========================================================================== */

.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.tab-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
}

.tab-bar__item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-bar__item--active {
  color: var(--color-primary);
}

.tab-bar__item--cta {
  color: var(--color-cta);
}

.tab-bar__item--cta svg {
  stroke: var(--color-cta);
}

@media (min-width: 768px) {
  .tab-bar {
    display: none;
  }
}

/* Mobile: hide desktop nav links, add body padding for tab bar */
@media (max-width: 767px) {
  body {
    padding-top: 80px;
    padding-bottom: 68px;
  }

  .nav {
    padding: 6px 6px 6px 16px;
    top: 8px;
    width: calc(100% - 16px);
  }

  .nav__list {
    display: none;
  }

  .nav__cta {
    font-size: 0.75rem;
    padding: 8px 16px;
  }
}

/* Bottom Sheet for Spécialités */
.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bottom-sheet--open {
  pointer-events: auto;
  opacity: 1;
}

.bottom-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.bottom-sheet__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-xl) var(--space-lg);
  padding-bottom: max(var(--space-xl), calc(env(safe-area-inset-bottom) + var(--space-lg)));
  transform: translateY(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bottom-sheet--open .bottom-sheet__content {
  transform: translateY(0);
}

.bottom-sheet__content::before {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  margin: 0 auto var(--space-sm);
}

.bottom-sheet__content a {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.bottom-sheet__content a:hover {
  background: var(--color-bg-alt);
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: var(--space-3xl) var(--container-padding);
  color: var(--color-white);
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 85vh;
  }
}

/* ==========================================================================
   8. TRUST BAR (Koox-style scrolling credentials)
   ========================================================================== */

.trust-bar {
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: var(--space-md) 0;
  background: var(--color-white);
}

.trust-bar__track {
  display: flex;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.trust-bar__item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   9. SECTIONS
   ========================================================================== */

.section {
  padding-block: var(--space-section);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-dark-text);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-dark-muted);
}

.section--dark a {
  color: var(--color-accent);
}

.section--dark a:hover {
  color: var(--color-accent-light);
}

/* Section headers — Koox-style centered title with side rules */
.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  font-size: var(--fs-h2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section__title::before,
.section__title::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--color-accent);
}

.section--dark .section__title::before,
.section--dark .section__title::after {
  background: var(--color-accent);
  opacity: 0.5;
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-light);
  margin-top: var(--space-md);
  max-width: 600px;
  margin-inline: auto;
}

.section--dark .section__subtitle {
  color: var(--color-dark-muted);
}

/* ==========================================================================
   10. SPLIT SECTIONS (MFPLB-style 50/50)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.split__media {
  overflow: hidden;
  min-height: 280px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--container-padding);
}

.split__content h2 {
  margin-bottom: var(--space-md);
}

.split__content p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.split__content p:last-of-type {
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split__media {
    min-height: 450px;
  }

  .split__content {
    padding: var(--space-3xl) clamp(2rem, 4vw, 4rem);
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--reverse .split__content {
    order: 1;
  }
}

/* ==========================================================================
   11. GRIDS
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   12. SERVICE CARDS (Deep-Dive style — teal background, elevation hover)
   ========================================================================== */

.service-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  color: var(--color-white);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-white);
}

.service-card__text {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  flex: 1;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.4);
  background: transparent;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast),
              padding var(--transition-fast),
              border-color var(--transition-fast);
  align-self: flex-start;
  text-decoration: none;
}

.service-card__cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  padding-inline: 28px;
  color: var(--color-white);
}

.service-card__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__cta svg {
  transform: translateX(3px);
}

/* Light variant for non-teal cards */
.service-card--light {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.service-card--light .service-card__icon svg {
  stroke: var(--color-primary);
}

.service-card--light .service-card__title {
  color: var(--color-text);
}

.service-card--light .service-card__text {
  color: var(--color-text-light);
}

.service-card--light .service-card__cta {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.service-card--light .service-card__cta:hover {
  background: rgba(43,107,94,0.06);
}

.service-card--light:hover {
  color: var(--color-text);
}

/* ==========================================================================
   13. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast),
              padding var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-white);
}

.btn-cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Ghost / Outline — Deep-Dive style */
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-ghost:hover {
  background: rgba(43,107,94,0.06);
  padding-inline: 34px;
  color: var(--color-primary);
}

.btn-ghost--white {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost--white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: var(--color-white);
}

.btn-ghost--accent {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-ghost--accent:hover {
  background: rgba(212,168,83,0.08);
  color: var(--color-accent);
}

/* Phone button */
.btn-phone {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-phone:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
}

/* Small variant */
.btn--sm {
  font-size: var(--fs-xs);
  padding: 10px 20px;
}

/* Large variant */
.btn--lg {
  font-size: var(--fs-body);
  padding: 18px 36px;
}

/* ==========================================================================
   14. PRICING CARDS
   ========================================================================== */

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

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

.pricing-card--featured {
  border: 2px solid var(--color-primary);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.pricing-card__price sup {
  font-size: 0.5em;
  vertical-align: super;
}

.pricing-card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  text-align: left;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-bg-alt);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-card__features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Dark section variant */
.section--dark .pricing-card {
  background: rgba(255,255,255,0.05);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.1);
}

.section--dark .pricing-card__title {
  color: var(--color-white);
}

.section--dark .pricing-card__desc {
  color: var(--color-dark-muted);
}

.section--dark .pricing-card__features li {
  color: var(--color-dark-muted);
  border-color: rgba(255,255,255,0.08);
}

.section--dark .pricing-card--featured {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.08);
}

/* ==========================================================================
   15. FAQ ACCORDION
   ========================================================================== */

.faq {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform var(--transition-base);
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq summary:hover {
  color: var(--color-primary);
}

.faq details > div,
.faq details > p {
  padding: 0 0 var(--space-lg);
  color: var(--color-text-light);
  line-height: var(--lh-body);
}

.section--dark .faq details {
  border-color: rgba(255,255,255,0.1);
}

.section--dark .faq summary {
  color: var(--color-white);
}

.section--dark .faq details > div,
.section--dark .faq details > p {
  color: var(--color-dark-muted);
}

/* ==========================================================================
   16. BREADCRUMB
   ========================================================================== */

.breadcrumb {
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: var(--space-xs);
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb [aria-current] {
  color: var(--color-text);
  font-weight: 500;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.footer {
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding-block: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.footer__brand {
  font-family: var(--font-heading);
}

.footer__name {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.footer__title {
  font-size: var(--fs-small);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.footer h4 {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  padding: 4px 0;
}

.footer a {
  color: var(--color-dark-muted);
  font-size: var(--fs-small);
}

.footer a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  font-size: var(--fs-xs);
  color: var(--color-dark-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ==========================================================================
   18. PAGE HEADER (sub-pages)
   ========================================================================== */

.page-header {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.page-header h1 {
  font-size: var(--fs-h1);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  color: var(--color-dark-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* ==========================================================================
   19. CONTACT BLOCK
   ========================================================================== */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info__item svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__item a {
  font-weight: 500;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-bg-alt);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   20. GALLERY
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

/* 1 large + 2 small masonry variant */
.gallery--masonry {
  grid-template-rows: auto auto;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery--masonry {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .gallery--masonry .gallery__item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }
}

/* ==========================================================================
   21. TIMELINE
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.timeline__step {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline__step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 5px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}

.timeline__step h3 {
  margin-bottom: var(--space-xs);
}

.timeline__step p {
  color: var(--color-text-light);
  font-size: var(--fs-small);
}

/* ==========================================================================
   22. CONTENT LISTS (pathology lists, etc.)
   ========================================================================== */

.content-list {
  list-style: none;
  padding: 0;
  column-count: 1;
  column-gap: var(--space-2xl);
}

.content-list li {
  padding: 8px 0;
  padding-left: var(--space-lg);
  position: relative;
  font-size: var(--fs-small);
  break-inside: avoid;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
}

@media (min-width: 640px) {
  .content-list {
    column-count: 2;
  }
}

.section--dark .content-list li {
  color: var(--color-dark-muted);
}

.section--dark .content-list li::before {
  background: var(--color-accent);
}

/* ==========================================================================
   23. SCROLL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ==========================================================================
   24. UTILITIES
   ========================================================================== */

.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;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.color-primary { color: var(--color-primary); }
.color-accent  { color: var(--color-accent); }
.color-muted   { color: var(--color-text-light); }

.font-heading { font-family: var(--font-heading); }

/* Inline list (tags, badges) */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
}

.tag-list li {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(43,107,94,0.08);
  color: var(--color-primary);
}

.section--dark .tag-list li {
  background: rgba(255,255,255,0.08);
  color: var(--color-dark-text);
}

/* ==========================================================================
   25. TESTIMONIALS
   ========================================================================== */

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.section--alt .testimonial-card {
  background: #fff;
}

.testimonial-card__stars {
  color: #F4B400;
  font-size: var(--fs-md);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-text-light);
  flex: 1;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin-top: auto;
}

.testimonials__source {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

.testimonials__source a {
  color: var(--color-primary);
}

/* ==========================================================================
   26. PRINT
   ========================================================================== */

@media print {
  .nav,
  .tab-bar,
  .bottom-sheet,
  .hero__bg,
  .trust-bar,
  .btn-cta,
  .footer {
    display: none !important;
  }

  body {
    padding: 0;
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--color-text, #2D2D2D);
  color: var(--color-white, #fff);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
}

#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 400px;
  margin: 0;
}

.cookie-banner__link {
  color: var(--color-accent-light, #F0DCA8);
  text-decoration: underline;
}

.cookie-banner__link:hover {
  color: var(--color-accent, #D4A853);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.55em 1.4em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}

.cookie-banner__btn--accept {
  background: var(--color-primary, #2B6B5E);
  color: var(--color-white, #fff);
  border: 2px solid var(--color-primary, #2B6B5E);
}

.cookie-banner__btn--accept:hover {
  background: var(--color-primary-light, #3D8B7A);
  border-color: var(--color-primary-light, #3D8B7A);
}

.cookie-banner__btn--refuse {
  background: transparent;
  color: var(--color-white, #fff);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cookie-banner__btn--refuse:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner__btn {
    flex: 1;
  }
}
