/*
Theme Name: Horizon Médical
Theme URI: https://cliniquedirect.fr
Author: Horizon Médical
Author URI: https://cliniquedirect.fr
Description: Thème WordPress premium pour Clinique Direct — Secrétariat Médical Premium. Design "Clinical Concierge" avec compatibilité Elementor complète.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://cliniquedirect.fr/license
Text Domain: horizon-medical
Tags: elementor, medical, healthcare, one-page, custom-colors, custom-fonts, custom-logo
*/

/* ============================================================
   1. CSS CUSTOM PROPERTIES — Design System "Clinical Concierge"
   ============================================================ */
:root {
  /* ── Palette ── */
  --hm-primary:                  #b8972a;
  --hm-primary-container:        #d4b554;
  --hm-primary-fixed:            #f1e6bc;
  --hm-primary-fixed-dim:        #b8972a;
  --hm-on-primary:               #ffffff;
  --hm-on-primary-container:     #ffffff;
  --hm-on-primary-fixed:         #241d04;

  --hm-secondary:                #4a5f80;
  --hm-secondary-container:      #c3d8ff;
  --hm-secondary-fixed:          #d5e3ff;
  --hm-on-secondary:             #ffffff;
  --hm-on-secondary-container:   #495e7f;
  --hm-on-secondary-fixed:       #021c39;

  --hm-tertiary:                 #b8972a;
  --hm-tertiary-container:       #baae00;
  --hm-tertiary-fixed:           #f5e600;
  --hm-on-tertiary:              #ffffff;
  --hm-on-tertiary-container:    #454100;

  --hm-surface:                  #f9f9ff;
  --hm-surface-bright:           #f9f9ff;
  --hm-surface-dim:              #c7dbff;
  --hm-surface-variant:          #d5e3ff;
  --hm-surface-container-lowest: #ffffff;
  --hm-surface-container-low:    #f0f3ff;
  --hm-surface-container:        #e7eeff;
  --hm-surface-container-high:   #dee8ff;
  --hm-surface-container-highest:#d5e3ff;

  --hm-background:               #f9f9ff;
  --hm-on-background:            #021c39;
  --hm-on-surface:               #021c39;
  --hm-on-surface-variant:       #434653;
  --hm-inverse-surface:          #1b314f;
  --hm-inverse-on-surface:       #ebf1ff;
  --hm-inverse-primary:          #f1e6bc;

  --hm-outline:                  #737784;
  --hm-outline-variant:          #c3c6d5;

  --hm-error:                    #ba1a1a;
  --hm-error-container:          #ffdad6;
  --hm-on-error:                 #ffffff;
  --hm-on-error-container:       #93000a;

  --hm-surface-tint:             #b8972a;

  /* ── Signature gradient ── */
  --hm-gradient:        linear-gradient(135deg, #b8972a 0%, #d4b554 100%);
  --hm-gradient-hero:   linear-gradient(135deg, #b8972a 0%, #d4b554 100%);

  /* ── Typography ── */
  --hm-font-headline:  'Manrope', sans-serif;
  --hm-font-body:      'Inter', sans-serif;

  /* ── Spacing ── */
  --hm-space-4:   1rem;
  --hm-space-8:   2rem;
  --hm-space-10:  2.5rem;
  --hm-space-16:  4rem;
  --hm-space-20:  5rem;
  --hm-space-24:  6rem;

  /* ── Radii ── */
  --hm-radius-sm:   0.5rem;
  --hm-radius-md:   0.75rem;
  --hm-radius-lg:   1rem;
  --hm-radius-xl:   1.5rem;
  --hm-radius-2xl:  2rem;
  --hm-radius-3xl:  3rem;

  /* ── Shadows ── */
  --hm-shadow-card:  0 10px 30px rgba(2, 28, 57, 0.08);
  --hm-shadow-hover: 0 20px 40px rgba(2, 28, 57, 0.12);
  --hm-shadow-float: 0 20px 40px rgba(2, 28, 57, 0.06);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--hm-background);
  color: var(--hm-on-surface);
  font-family: var(--hm-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--hm-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--hm-primary-container); }

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
.hm-display-lg {
  font-family: var(--hm-font-headline);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hm-headline-lg {
  font-family: var(--hm-font-headline);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.hm-headline-md {
  font-family: var(--hm-font-headline);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}
.hm-title-lg {
  font-family: var(--hm-font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}
.hm-body-lg {
  font-family: var(--hm-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}
.hm-body-sm {
  font-family: var(--hm-font-body);
  font-size: 0.875rem;
  line-height: 1.5;
}
.hm-label-sm {
  font-family: var(--hm-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--hm-radius-md);
  font-family: var(--hm-font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  outline: none;
  text-decoration: none;
  line-height: 1;
}
.hm-btn-primary {
  background: var(--hm-gradient);
  color: var(--hm-on-primary);
  box-shadow: 0 8px 24px rgba(184, 151, 42, 0.35);
}
.hm-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: var(--hm-on-primary);
}
.hm-btn-outline-white {
  background: rgba(0,0,0,0.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.40);
  backdrop-filter: blur(8px);
}
.hm-btn-outline-white:hover {
  background: rgba(255,255,255,0.20);
  color: #fff;
}
.hm-btn-ghost {
  background: transparent;
  color: var(--hm-primary);
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
}
.hm-btn-ghost:hover { text-decoration: underline; color: var(--hm-primary); }

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.hm-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.hm-nav.scrolled {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(2, 28, 57, 0.08);
}
.hm-nav.scrolled .hm-nav__logo,
.hm-nav.scrolled .hm-nav__link { color: var(--hm-on-surface); }
.hm-nav.scrolled .hm-nav__link:hover { color: var(--hm-primary); }

.hm-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}
.hm-nav__logo {
  font-family: var(--hm-font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: color 0.3s;
}
.hm-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hm-nav__link {
  font-family: var(--hm-font-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  transition: color 0.25s;
  position: relative;
}
.hm-nav__link:hover,
.hm-nav__link.current { color: #fff; }
.hm-nav__link.current::after {
  content: '';
  display: block;
  height: 2px;
  background: #fff;
  margin-top: 2px;
}
.hm-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hm-nav__espace {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--hm-font-body);
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}
.hm-nav__espace:hover { opacity: 0.75; }

/* Mobile burger */
.hm-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hm-nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hm-nav.scrolled .hm-nav__burger span { background: var(--hm-on-surface); }

@media (max-width: 900px) {
  .hm-nav__links { display: none; }
  .hm-nav__espace { display: none; }
  .hm-nav__burger { display: flex; }
  .hm-nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(2,28,57,0.12);
  }
  .hm-nav__links.open .hm-nav__link { color: var(--hm-on-surface); }
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hm-hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem 12rem;
  overflow: hidden;
}
.hm-hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #ffcc33;
  overflow: hidden;
}
#hm-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hm-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
  pointer-events: none;
}
.hm-hero__content {
  position: relative;
  z-index: 2;
  max-width: 88rem;
  margin: 0 auto;
  width: 100%;
}
.hm-hero__eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--hm-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hm-hero__title {
  font-family: var(--hm-font-headline);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.20);
  max-width: 56rem;
}
.hm-hero__title .accent { color: var(--hm-primary-fixed); }
.hm-hero__body {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}
.hm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hm-hero__social-proof {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hm-hero__avatars {
  display: flex;
}
.hm-hero__avatars img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -0.75rem;
}
.hm-hero__avatars img:first-child { margin-left: 0; }
.hm-hero__proof-text {
  font-size: 0.875rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.20);
}

/* ============================================================
   7. SERVICE CARDS (overlapping)
   ============================================================ */
.hm-services {
  position: relative;
  z-index: 20;
  padding: 0 2rem;
  margin-top: -6.25rem;
}
.hm-services__grid {
  max-width: 88rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.hm-service-card {
  background: #fff;
  border-radius: var(--hm-radius-sm);
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--hm-shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  min-height: 500px;
}
.hm-service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hm-shadow-hover);
}
.hm-service-card__icon {
  margin-bottom: 2.5rem;
  font-size: 3.75rem;
  color: var(--hm-on-surface);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}
.hm-service-card__title {
  font-family: var(--hm-font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hm-on-background);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.hm-service-card__body {
  color: var(--hm-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

/* ============================================================
   8. VALUE PROPOSITION / SPLIT SECTION
   ============================================================ */
.hm-value-section {
  padding: var(--hm-space-24) 2rem;
  max-width: 88rem;
  margin: 0 auto;
}
.hm-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.hm-value-image-wrap {
  position: relative;
}
.hm-value-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(184, 151, 42, 0.10);
  border-radius: var(--hm-radius-3xl);
  transform: translate(1rem, 1rem);
  z-index: -1;
}
.hm-value-image {
  border-radius: var(--hm-radius-3xl);
  width: 100%;
  object-fit: cover;
  box-shadow: 0 32px 64px rgba(2, 28, 57, 0.15);
}
.hm-value-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--hm-primary);
  margin-bottom: 1rem;
}
.hm-value-title {
  font-family: var(--hm-font-headline);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--hm-on-background);
  margin-bottom: 2rem;
  line-height: 1.2;
}
.hm-value-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.hm-value-item { display: flex; gap: 1.5rem; }
.hm-value-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(184, 151, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-primary);
}
.hm-value-item-title {
  font-family: var(--hm-font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hm-value-item-body { color: var(--hm-secondary); font-size: 0.9375rem; }

/* ============================================================
   9. STATS BAR
   ============================================================ */
.hm-stats {
  padding: 5rem 2rem;
  background: var(--hm-inverse-surface);
  color: var(--hm-on-primary);
}
.hm-stats__grid {
  max-width: 88rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}
.hm-stats__value {
  font-family: var(--hm-font-headline);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--hm-primary);
  margin-bottom: 0.5rem;
}
.hm-stats__label {
  color: rgba(255,255,255,0.60);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   10. CONTACT FORM SECTION
   ============================================================ */
.hm-cta-form-section {
  padding: var(--hm-space-24) 2rem;
  max-width: 88rem;
  margin: 0 auto;
}
.hm-cta-form {
  background: var(--hm-surface-container-lowest);
  border-radius: var(--hm-radius-3xl);
  box-shadow: 0 32px 80px rgba(2, 28, 57, 0.10);
  overflow: hidden;
  display: grid;
  grid-template-columns: 2fr 3fr;
}
.hm-cta-form__aside {
  background: var(--hm-gradient);
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--hm-on-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hm-cta-form__aside-title {
  font-family: var(--hm-font-headline);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hm-cta-form__aside-body {
  color: rgba(255,255,255,0.80);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.hm-cta-form__contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.hm-cta-form__contact-item { display: flex; align-items: center; gap: 1rem; font-size: 0.9375rem; }
.hm-cta-form__body {
  padding: clamp(2rem, 5vw, 5rem);
}
.hm-form { display: flex; flex-direction: column; gap: 1.5rem; }
.hm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hm-form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.hm-form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hm-secondary);
}
.hm-form-input,
.hm-form-select,
.hm-form-textarea {
  width: 100%;
  background: var(--hm-surface-container-low);
  border: none;
  border-radius: var(--hm-radius-md);
  padding: 1rem 1.25rem;
  font-family: var(--hm-font-body);
  font-size: 0.9375rem;
  color: var(--hm-on-surface);
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
  appearance: none;
}
.hm-form-input:focus,
.hm-form-select:focus,
.hm-form-textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(184, 151, 42, 0.40);
}
.hm-form-textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   11. PRICING SECTION
   ============================================================ */
.hm-pricing { padding: var(--hm-space-24) 2rem; }
.hm-pricing__inner { max-width: 88rem; margin: 0 auto; }
.hm-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.hm-pricing-card {
  background: var(--hm-surface-container-lowest);
  border-radius: var(--hm-radius-2xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--hm-shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hm-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hm-shadow-hover);
}
.hm-pricing-card--featured {
  background: var(--hm-inverse-surface);
  color: var(--hm-inverse-on-surface);
  transform: scale(1.03);
}
.hm-pricing-card--featured:hover { transform: scale(1.03) translateY(-6px); }
.hm-pricing-card__badge {
  display: inline-block;
  background: var(--hm-gradient);
  color: var(--hm-on-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.hm-pricing-card__name {
  font-family: var(--hm-font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hm-pricing-card__desc { font-size: 0.875rem; opacity: 0.75; margin-bottom: 2rem; line-height: 1.6; }
.hm-pricing-card__price {
  font-family: var(--hm-font-headline);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hm-pricing-card__price sub {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: bottom;
  margin-bottom: 0.25rem;
}
.hm-pricing-card__billing { font-size: 0.8125rem; opacity: 0.65; margin-bottom: 2rem; }
.hm-pricing-card__features { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.hm-pricing-card__feature { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; line-height: 1.5; }
.hm-pricing-card__check { color: var(--hm-primary); flex-shrink: 0; font-size: 1.1rem; margin-top: 1px; }

/* ============================================================
   12. FOOTER
   ============================================================ */
.hm-footer {
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.hm-footer__grid {
  max-width: 88rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
}
.hm-footer__brand { display: flex; flex-direction: column; gap: 1.5rem; }
.hm-footer__logo {
  font-family: var(--hm-font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hm-primary);
}
.hm-footer__tagline { font-size: 0.875rem; color: #64748b; line-height: 1.6; }
.hm-footer__socials { display: flex; gap: 0.75rem; }
.hm-footer__social-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--hm-radius-sm);
  background: var(--hm-surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-primary);
  font-size: 1rem;
  transition: background 0.2s;
  cursor: pointer;
}
.hm-footer__social-btn:hover { background: var(--hm-surface-container-high); }
.hm-footer__col-title {
  font-family: var(--hm-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hm-primary);
  margin-bottom: 1.5rem;
}
.hm-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.hm-footer__link { font-size: 0.875rem; color: #64748b; transition: color 0.2s; }
.hm-footer__link:hover { color: var(--hm-primary); text-decoration: underline; }
.hm-footer__newsletter-text { font-size: 0.75rem; color: #64748b; margin-bottom: 1rem; line-height: 1.5; }
.hm-footer__newsletter-form { display: flex; }
.hm-footer__newsletter-input {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: var(--hm-radius-sm) 0 0 var(--hm-radius-sm);
  padding: 0.625rem 1rem;
  font-family: var(--hm-font-body);
  font-size: 0.875rem;
  outline: none;
}
.hm-footer__newsletter-btn {
  background: var(--hm-primary);
  color: var(--hm-on-primary);
  border: none;
  border-radius: 0 var(--hm-radius-sm) var(--hm-radius-sm) 0;
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: filter 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-footer__newsletter-btn:hover { filter: brightness(1.1); }
.hm-footer__bottom {
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* ============================================================
   13. HERO GRADIENT VARIANT (pages internes)
   ============================================================ */
.hm-hero-gradient {
  background: linear-gradient(135deg, #b8972a 0%, #d4b554 50%, #c9a82e 100%);
}
.hm-hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   14. GLASS CARD
   ============================================================ */
.hm-glass {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--hm-radius-lg);
}

/* ============================================================
   15. SECTION UTILITIES
   ============================================================ */
.hm-section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hm-primary);
  margin-bottom: 1rem;
}
.hm-section-title {
  font-family: var(--hm-font-headline);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--hm-on-background);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hm-section-lead {
  font-size: 1.0625rem;
  color: var(--hm-secondary);
  line-height: 1.7;
  max-width: 44rem;
}

.hm-surface-container-low { background: var(--hm-surface-container-low); }
.hm-surface-inverse { background: var(--hm-inverse-surface); }

/* ============================================================
   16. ANIMATED GRADIENT (tarifs CTA)
   ============================================================ */
@keyframes hm-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hm-animated-gradient {
  background: linear-gradient(270deg, #b8972a, #d4b554, #c9a82e, #a8811c);
  background-size: 400% 400%;
  animation: hm-gradient-shift 8s ease infinite;
}

/* ============================================================
   17. RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 1024px) {
  .hm-services__grid { grid-template-columns: 1fr 1fr; }
  .hm-value-grid { grid-template-columns: 1fr; }
  .hm-value-image-wrap { order: 1; }
  .hm-value-section > .hm-value-grid > *:first-child { order: 2; }
  .hm-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hm-pricing__grid { grid-template-columns: 1fr; }
  .hm-pricing-card--featured { transform: none; }
  .hm-cta-form { grid-template-columns: 1fr; }
  .hm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hm-services { margin-top: -3rem; }
  .hm-services__grid { grid-template-columns: 1fr; }
  .hm-hero { padding: 5rem 1.25rem 8rem; }
  .hm-hero__cta { flex-direction: column; }
  .hm-btn { width: 100%; justify-content: center; }
  .hm-form-row { grid-template-columns: 1fr; }
  .hm-footer__grid { grid-template-columns: 1fr; }
  .hm-stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   18. ELEMENTOR INTEGRATION OVERRIDES
   ============================================================ */
.elementor-section,
.elementor-widget-wrap { position: static; }
.elementor-widget-container > .hm-hero { margin: 0; }

/* WordPress body classes */
.admin-bar .hm-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .hm-nav { top: 46px; }
}
/* ================================================================
   MEGA MENU PATCH — à coller à la FIN de style.css
   Compatible avec le thème Horizon Médical existant
   ================================================================ */

/* ── 1. NAVBAR : transparente au départ, blanche au scroll ─────── */

/* État initial : transparent (déjà dans le thème, on renforce) */
.hm-nav {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Au scroll : fond blanc (le thème utilise .scrolled sans préfixe) */
.hm-nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 0 rgba(2,28,57,0.07), 0 8px 32px rgba(2,28,57,0.06) !important;
}

/* Quand le mega est ouvert : fond blanc opaque immédiat */
.hm-nav.hm-nav--mega-open {
    background: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* ── 2. LIENS blancs par défaut, foncés au scroll ──────────────── */
.hm-nav__link {
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
    cursor: pointer;
}

.hm-nav__link:hover { color: #ffffff !important; }

.hm-nav.scrolled .hm-nav__link,
.hm-nav.hm-nav--mega-open .hm-nav__link {
    color: rgba(2, 28, 57, 0.70) !important;
}

.hm-nav.scrolled .hm-nav__link:hover,
.hm-nav.hm-nav--mega-open .hm-nav__link:hover,
.hm-nav__item--open > .hm-nav__link {
    color: #2357ba !important;
}

/* Lien actif */
.hm-nav.scrolled .hm-nav__link.current,
.hm-nav.hm-nav--mega-open .hm-nav__link.current {
    color: #2357ba !important;
    font-weight: 700;
}

/* ── 3. LOGO : blanc par défaut, normal au scroll ──────────────── */
.hm-nav__logo { transition: filter 0.3s ease; }

.hm-nav.scrolled .hm-nav__logo img,
.hm-nav.hm-nav--mega-open .hm-nav__logo img {
    filter: none;
}

/* ── 4. CHEVRON flèche dropdown ────────────────────────────────── */
.hm-nav__chevron {
    font-family: 'Material Symbols Outlined';
    font-size: 1.1rem;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    transition: transform 0.22s ease;
    vertical-align: middle;
    margin-left: -0.1rem;
}

.hm-nav__item--open > .hm-nav__link .hm-nav__chevron {
    transform: rotate(180deg);
}

/* ── 5. ITEM wrapper ───────────────────────────────────────────── */
.hm-nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── 6. DROPDOWN CLASSIQUE (items sans .mega) ──────────────────── */
.hm-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 240px;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 48px rgba(2,28,57,0.12), 0 2px 8px rgba(2,28,57,0.06);
    border: 1px solid rgba(195,198,213,0.2);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 10001;
    list-style: none;
    margin: 0;
}

.hm-nav__item--open > .hm-dropdown {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* Tous les liens du dropdown, tous niveaux confondus — flat design */
.hm-dropdown li,
.hm-dropdown li li,
.hm-dropdown li li li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Masquer les sous-ul natifs WordPress — on les aplatit */
.hm-dropdown ul {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.875rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #021c39 !important;
    text-decoration: none !important;
    border-radius: 0.5rem;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
    /* Annuler toute indentation héritée */
    padding-left: 0.875rem !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

.hm-dropdown a:hover {
    background: #f0f3ff !important;
    color: #2357ba !important;
}

/* Séparateur visuel entre groupes (item de niveau 1) */
.hm-dropdown > li + li > a {
    border-top: 1px solid rgba(195,198,213,0.25);
    margin-top: 0.125rem;
    padding-top: 0.75rem !important;
}

/* Sous-items (niveau 2+) : puce dorée + couleur atténuée */
.hm-dropdown li li a {
    color: #4a5f80 !important;
    font-size: 0.8375rem !important;
    font-weight: 400 !important;
    padding-left: 1rem !important;
}

.hm-dropdown li li a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b8972a;
    flex-shrink: 0;
}

.hm-dropdown li li a:hover {
    color: #2357ba !important;
    background: #f0f3ff !important;
}

/* ── 7. MEGA MENU ──────────────────────────────────────────────── */
.hm-mega {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: none;
    border-radius: 0;
    padding: 0;
    padding-top: 5rem; /* = hauteur navbar */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    z-index: 9998;
    box-shadow: 0 20px 60px rgba(2,28,57,0.10);
}

.hm-nav__item--open > .hm-mega {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.hm-mega__inner {
    display: flex;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
}

.hm-mega__col {
    flex: 1;
    padding: 0 1.25rem;
    border-right: 1px solid rgba(195,198,213,0.3);
}

.hm-mega__col:first-child { padding-left: 0; }
.hm-mega__col:last-child  { padding-right: 0; border-right: none; }

.hm-mega__col-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #676000;
    margin: 0 0 0.875rem;
    padding: 0 0.5rem;
}

.hm-mega__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.hm-mega__item { display: block; }

.hm-mega__link {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem !important;
    border-radius: 0.5rem;
    text-decoration: none !important;
    transition: background 0.15s ease;
    color: inherit !important;
}

.hm-mega__link:hover { background: #f0f3ff; }
.hm-mega__link:hover .hm-mega__title { color: #2357ba; }

.hm-mega__icon {
    font-family: 'Material Symbols Outlined';
    font-size: 1.375rem;
    color: #2357ba;
    flex-shrink: 0;
    margin-top: 1px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    transition: font-variation-settings 0.15s ease;
    line-height: 1;
}

.hm-mega__link:hover .hm-mega__icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hm-mega__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hm-mega__title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #021c39;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.hm-mega__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #4a5f80;
    line-height: 1.45;
}

.hm-mega__badge {
    background: linear-gradient(135deg, #2357ba 0%, #4370d5 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
    line-height: 1.4;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.hm-mega__item--active .hm-mega__link { background: #f0f3ff; }
.hm-mega__item--active .hm-mega__title { color: #2357ba; font-weight: 700; }

/* ── 8. OVERLAY ────────────────────────────────────────────────── */
.hm-nav-overlay {
    position: fixed;
    inset: 0;
    top: 4.5rem;
    background: rgba(2, 28, 57, 0.15);
    backdrop-filter: blur(2px);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.hm-nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── 9. MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hm-mega,
    .hm-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: #f0f3ff !important;
        display: none;
        transition: none !important;
    }

    .hm-nav__item--open > .hm-mega,
    .hm-nav__item--open > .hm-dropdown {
        display: block;
    }

    .hm-mega__inner {
        flex-direction: column;
        padding: 0.5rem 0;
        max-width: 100%;
    }

    .hm-mega__col {
        border-right: none;
        padding: 0;
    }

    .hm-mega__link {
        padding: 0.625rem 1.5rem !important;
        border-radius: 0 !important;
    }

    .hm-dropdown a {
        padding: 0.625rem 1.5rem !important;
        border-radius: 0 !important;
        white-space: normal !important;
    }

    .hm-dropdown > li + li > a {
        border-top: none;
        padding-top: 0.625rem !important;
    }

    .hm-dropdown li li a {
        padding-left: 2rem !important;
    }

    .hm-nav-overlay { display: none !important; }
}
