/**
 * Overrides Elementor header/footer — après post-*.css (charte Lovable OKLCH).
 */

.elementor-kit-5,
.elementor-kit-5.elementor-kit {
  --e-global-color-primary: var(--exh-primary);
  --e-global-color-secondary: var(--exh-secondary);
  --e-global-color-text: var(--exh-foreground);
  --e-global-color-accent: var(--exh-accent);
  --e-global-color-f3cf42f: var(--exh-primary-fg);
  --e-global-color-05fbc6d: var(--exh-primary-subtle);
  --e-global-color-bd51a1b: var(--exh-primary);
}

/* Barre du haut — navy secondary */
.elementor-location-header .elementor-element-792dfe9d:not(.elementor-motion-effects-element-type-background),
.elementor-location-header .elementor-element-792dfe9d > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: var(--exh-secondary) !important;
}

.elementor-location-header .elementor-element-792dfe9d,
.elementor-location-header .elementor-element-792dfe9d .elementor-widget,
.elementor-location-header .elementor-element-792dfe9d .elementor-icon-list-text,
.elementor-location-header .elementor-element-792dfe9d .elementor-icon-list-icon i {
  color: var(--exh-secondary-fg) !important;
  fill: var(--exh-secondary-fg) !important;
}

/* Menu principal + mobile */
.elementor-location-header .elementor-nav-menu--main .elementor-item,
.elementor-location-header .elementor-nav-menu--dropdown a,
.elementor-location-header .elementor-menu-toggle {
  color: var(--exh-secondary) !important;
  fill: var(--exh-secondary) !important;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted,
.elementor-location-header .elementor-nav-menu--main .elementor-item:focus,
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--dropdown a:hover,
.elementor-location-header .elementor-nav-menu--dropdown a:focus,
.elementor-location-header .elementor-nav-menu--dropdown a.elementor-item-active,
.elementor-location-header .elementor-nav-menu--dropdown a.highlighted,
.elementor-location-header .elementor-menu-toggle:hover,
.elementor-location-header .elementor-menu-toggle:focus {
  color: var(--exh-primary) !important;
  fill: var(--exh-primary) !important;
}

.elementor-location-header .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item.elementor-item-active:after,
.elementor-location-header .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item:hover:after {
  background-color: var(--exh-primary) !important;
}

/* CTA header — bleu primary (maquette) */
.elementor-location-header .elementor-button.elementor-button-link,
.elementor-location-header .elementor-button.elementor-size-md {
  background-color: var(--exh-primary) !important;
  color: var(--exh-primary-fg) !important;
  border-color: var(--exh-primary) !important;
}

.elementor-location-header .elementor-button.elementor-button-link:hover {
  background-color: color-mix(in oklch, var(--exh-primary) 88%, black) !important;
  color: var(--exh-primary-fg) !important;
}

/* Footer — navy secondary */
.elementor-location-footer .elementor-element-320b3a64:not(.elementor-motion-effects-element-type-background),
.elementor-location-footer .elementor-element-320b3a64 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: var(--exh-secondary) !important;
}

.elementor-location-footer .elementor-element-320b3a64,
.elementor-location-footer .elementor-element-320b3a64 .elementor-heading-title,
.elementor-location-footer .elementor-element-320b3a64 .elementor-icon-list-text,
.elementor-location-footer .elementor-element-320b3a64 p,
.elementor-location-footer .elementor-element-320b3a64 a {
  color: var(--exh-secondary-fg) !important;
}

.elementor-location-footer .elementor-element-320b3a64 a:hover {
  color: var(--exh-primary-glow) !important;
}

.elementor-location-footer .elementor-button.elementor-button-link {
  background-color: var(--exh-primary) !important;
  color: var(--exh-primary-fg) !important;
  border-color: var(--exh-primary) !important;
}
