/* =========================================================
   CSS — PHJ Mobile Menu (Patrick Hernalsteens Jardin)
   Version épurée — fond blanc
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;600;700&display=swap");

:root {
  --phj-bg:        #FFFFFF;
  --phj-text:      #1F2D1E;
  --phj-muted:     rgba(31,45,30,.55);
  --phj-line:      rgba(31,45,30,.10);
  --phj-accent:    #2D4A2B;   /* vert foncé : titres + boutons */
  --phj-soft:      #7AB87B;   /* vert clair : icônes + accents */
  --phj-card:      #F7F7F5;   /* fond très léger pour les cartes */
}

/* Trigger Elementor : neutralise le <a href="#"> interne */
#menu { cursor: pointer !important; }
#menu a { pointer-events: none !important; }

/* Lock "soft" */
body.phj-lock { overflow: hidden; touch-action: none; }
.phj-menu { overscroll-behavior: contain; }

/* ── Wrapper ── */
.phj-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.phj-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Background blanc forcé ── */
.phj-panel {
  position: absolute; inset: 0;
  background: #ffffff !important;
}

/* ── Click-outside ── */
.phj-outside { position: absolute; inset: 0; }

/* ── Top bar ── */
.phj-top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 18px; right: 18px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 5;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .25s ease, transform .4s cubic-bezier(.16,.9,.2,1) .1s;
}
.phj-menu.is-open .phj-top { opacity: 1; transform: translateY(0); }

.phj-brand {
  color: var(--phj-muted);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
}

/* ── Close button ── */
.phj-close,
.phj-close:hover, .phj-close:active, .phj-close:focus, .phj-close:focus-visible {
  width: 44px !important; height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid var(--phj-line) !important;
  background-color: #fff !important;
  background-image: none !important;
  color: var(--phj-text) !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer !important;
  display: grid !important; place-items: center !important;
  font-size: 16px !important; line-height: 1 !important;
  transition: background .15s ease, color .15s ease !important;
  -webkit-appearance: none !important; appearance: none !important;
  padding: 0 !important; margin: 0 !important; outline: none !important;
}
.phj-close:hover  { background: var(--phj-accent) !important; color: #fff !important; }

/* ── Contenu ── */
.phj-content {
  position: relative;
  height: 100%;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 78px 18px 24px;
  z-index: 4;
  overflow-y: auto;
}
.phj-inner { width: min(520px, 92vw); display: grid; gap: 28px; }

@keyframes phjFadeIn { to { opacity: 1; transform: translateY(0); } }

/* ── Nav (liens hardcodés) ── */
.phj-nav { display: grid; gap: 0; }

.phj-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 4px;
  text-decoration: none;
  color: var(--phj-text);
  border-bottom: 1px solid var(--phj-line);
  opacity: 0; transform: translateY(10px);
  transition: padding-left .18s ease;
}
.phj-nav > :nth-child(1) { --d: 0ms; }
.phj-nav > :nth-child(2) { --d: 60ms; }
.phj-nav > :nth-child(3) { --d: 120ms; }
.phj-nav > :nth-child(4) { --d: 180ms; }
.phj-nav > :nth-child(5) { --d: 240ms; }
.phj-nav > :nth-child(6) { --d: 300ms; }

.phj-menu.is-open .phj-item {
  animation: phjItemIn .5s cubic-bezier(.16,.9,.2,1) forwards;
  animation-delay: calc(120ms + var(--d));
}
@keyframes phjItemIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.phj-item:hover { padding-left: 8px; }
.phj-item:hover .phj-arrow { background: var(--phj-soft); transform: translateX(3px); }

.phj-label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(20px, 4.4vw, 24px);
  line-height: 1.1;
  color: var(--phj-accent);
}
.phj-arrow {
  width: 9px; height: 9px;
  background: var(--phj-text);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: .6;
  transition: background .18s ease, transform .18s ease;
}

/* ── Footer : CTA + appel direct + WhatsApp ── */
.phj-foot {
  display: grid;
  gap: 10px;
  opacity: 0; transform: translateY(8px);
}
.phj-menu.is-open .phj-foot {
  animation: phjFadeIn .45s cubic-bezier(.16,.9,.2,1) .55s forwards;
}

.phj-foot-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  background: var(--phj-accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.phj-foot-cta:hover {
  filter: brightness(1.18);
  box-shadow: 0 8px 22px rgba(45,74,43,.25);
  transform: translateY(-1px);
}
.phj-foot-arrow { transition: transform .18s ease; }
.phj-foot-cta:hover .phj-foot-arrow { transform: translateX(4px); }

.phj-foot-direct { display: flex; gap: 8px; }
.phj-foot-link {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600; font-size: 13px;
  background: #fff;
  color: var(--phj-accent);
  border: 1px solid var(--phj-line);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.phj-foot-link svg { width: 16px; height: 16px; }
.phj-foot-link--call:hover { background: var(--phj-accent); color: #fff; }
.phj-foot-link--wa { flex: 0 0 52px; }
.phj-foot-link--wa:hover { background: #25D366; color: #fff; border-color: #25D366; }

/* ── Responsive : masquer sur desktop ── */
@media (min-width: 1025px) {
  .phj-menu { display: none; }
}
