/* Pierre et Jardins — layout.css — header, nav, footer, structure */

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.header.is-scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--text) 7%, transparent);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(6px);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo / Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand-mark--pill {
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 7px;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  white-space: nowrap;
}

/* Nav desktop */
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  margin-left: auto;
}
.header__nav a {
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast);
}
.header__nav a:hover { color: var(--accent); text-decoration: none; }

.header__cta { margin-left: 16px; flex-shrink: 0; }

/* ── BURGER (enfant direct du body) ── */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px;
  height: 44px;
  display: none; /* activé en mobile via responsive.css */
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1150; /* > z-header (1100) > z-menu (1000) */
  padding: 0;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .32s ease, opacity .32s ease;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before { top: -7px; }
.burger span::after  { top:  7px; }

.burger.is-open span        { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ── MENU MOBILE (enfant direct du body) ── */
.menu-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh; /* dvh, jamais vh */
  background: var(--bg);
  z-index: var(--z-menu); /* 1000 */
  padding: calc(var(--header-h-mobile) + 28px) 28px 48px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s ease, opacity .35s ease;
}
.menu-mobile a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--t-fast);
}
.menu-mobile a:hover { color: var(--accent); text-decoration: none; }
.menu-mobile a:last-child { border-bottom: 0; }

/* Fix bouton WhatsApp dans le menu (jouvet pattern obligatoire) */
.menu-mobile a.btn {
  justify-content: center;
  gap: 10px;
  padding: .95rem 1.6rem;
  min-height: 52px;
  border-bottom: 0;
  margin-top: .5rem;
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 600;
}
.menu-mobile a.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Texte blanc sur boutons colorés dans le menu */
.menu-mobile a.btn-wa,
.menu-mobile a.btn-primary { color: #fff; }

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: .75rem 0;
}

/* ── FOOTER ── */
.footer {
  background: oklch(28% 0.08 145);
  color: #fff;
  padding-block: clamp(40px, 6vw, 64px);
  margin-top: 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.footer h3 {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer p,
.footer address,
.footer a {
  font-size: .9rem;
  color: var(--on-dark-2);
  font-style: normal;
  line-height: 1.7;
}
.footer a { color: var(--accent-2); }
.footer a:hover { color: #fff; text-decoration: underline; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer__brand-icon { color: var(--accent-2); width: 28px; height: 28px; flex-shrink: 0; }
.footer__brand-icon svg { width: 100%; height: 100%; display: block; }
.footer__brand-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,.5); }
.footer__bottom a { font-size: .8rem; color: rgba(255,255,255,.55); }
.footer__bottom a:hover { color: #fff; }
