/* =============================================
   EDENN — EN-TÊTE ET PIED INTÉGRÉS AUX PAGES (widgets edenn_site_header / edenn_site_footer)
   Couleurs et polices : variables de la direction de la page (body.dir-*).
   ============================================= */
.edenn-hf {
  --hf-gutter: clamp(16px, 5vw, 48px);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text, #343434);
}
.edenn-hf__in {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--hf-gutter);
}
.edenn-hf a { color: inherit; text-decoration: none; }
.edenn-hf ul { list-style: none; margin: 0; padding: 0; }
.edenn-hf__name {
  font-family: 'Cormorant Garamond 700', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text, #343434);
}
body.dir-cabinet .edenn-hf__name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ========== EN-TÊTE ========== */
.edenn-hf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg, #FAF9F6) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}
.admin-bar .edenn-hf-header { top: 32px; }
.edenn-hf-header .edenn-hf__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.edenn-hf__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.edenn-hf__logo-img { display: block; max-height: 48px; width: auto; }
.edenn-hf__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.edenn-hf__menu { display: flex; gap: 24px; }
.edenn-hf__menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light, #5E5E57);
  transition: color 200ms ease;
}
.edenn-hf__menu a:hover,
.edenn-hf__menu .current-menu-item > a { color: var(--accent, #667863); }
.edenn-hf__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--accent, #667863);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms ease, transform 200ms ease;
}
.edenn-hf__cta:hover { background: var(--accent-deep, #56684F); transform: translateY(-1px); }
body.dir-cabinet .edenn-hf__cta { border-radius: 8px; }
.edenn-hf__tools { display: flex; align-items: center; gap: 4px; }
.edenn-hf__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text, #343434);
  cursor: pointer;
}
.edenn-hf__icon:hover { background: var(--border, rgba(0, 0, 0, 0.06)); }
.edenn-hf__icon:focus-visible,
.edenn-hf a:focus-visible { outline: 2px solid var(--accent, #667863); outline-offset: 2px; }
.edenn-hf__burger { display: none; }
.edenn-hf__burger span { display: block; width: 20px; height: 2px; margin: 2px 0; background: currentColor; border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }

@media (max-width: 900px) {
  .edenn-hf__burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
  .edenn-hf__tools { margin-left: auto; }
  .edenn-hf__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 16px var(--hf-gutter) 24px;
    background: var(--bg, #FAF9F6);
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
    box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.3);
  }
  .edenn-hf.is-open .edenn-hf__nav { display: flex; }
  .edenn-hf__menu { flex-direction: column; gap: 0; }
  .edenn-hf__menu a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06)); }
  .edenn-hf__cta { justify-content: center; }
  .edenn-hf.is-open .edenn-hf__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .edenn-hf.is-open .edenn-hf__burger span:nth-child(2) { opacity: 0; }
  .edenn-hf.is-open .edenn-hf__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 782px) { .admin-bar .edenn-hf-header { top: 46px; } }

/* ========== PIED DE PAGE ========== */
.edenn-hf-footer {
  background: var(--footer, #2c3e50);
  color: var(--footer-text, #C3C3BA);
  padding-top: clamp(48px, 6vw, 72px);
}
.edenn-hf-footer .edenn-hf__name { color: #fff; }
.edenn-hf__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.edenn-hf__cols p { margin: 12px 0 0; max-width: 40ch; line-height: 1.6; color: inherit; }
.edenn-hf__h {
  margin: 0 0 14px;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
}
.edenn-hf__links { display: grid; gap: 8px; line-height: 1.5; }
.edenn-hf-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.edenn-hf__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .edenn-hf__cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .edenn-hf *, .edenn-hf *::before { transition: none !important; }
}
