/* layout.css — header, footer, nav, menu mobile */

/* HEADER STICKY */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-mobile);
  gap: 16px;
}
@media (min-width: 768px) {
  .header-inner { height: var(--header-h); }
}

/* BRAND / LOGO — picto metier + nom display */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-radius: 50%;
  padding: 7px;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent-2);
  margin-top: 4px;
}
@media (max-width: 480px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
}

/* NAV DESKTOP */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: .92rem;
  color: var(--text-2);
  font-weight: 500;
  transition: color var(--t-fast);
}
.nav-desktop a:hover { color: var(--accent); }

.header-cta-wrap {
  display: none;
  gap: 10px;
  align-items: center;
}
@media (min-width: 1000px) {
  .nav-desktop { display: flex; }
  .header-cta-wrap { display: inline-flex; }
}

/* BURGER — fixed top-right, z-index > menu */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: var(--z-burger);
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform var(--t-base), opacity var(--t-fast), background var(--t-fast);
}
.burger span::before { position: absolute; top: -7px; left: 0; }
.burger span::after { position: absolute; top: 7px; left: 0; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); background: var(--text); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); background: var(--text); }
@media (min-width: 1000px) {
  .burger { display: none; }
}

/* MENU MOBILE — enfant direct du body, fixed full-screen */
.menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  z-index: var(--z-menu);
  padding: calc(var(--header-h-mobile) + 28px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  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 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.menu-mobile a:last-of-type { border-bottom: 0; }
.menu-mobile a.btn {
  justify-content: center;
  gap: 10px;
  padding: 1rem 1.6rem;
  min-height: 56px;
  border-bottom: 0;
  margin-top: 22px;
  font-size: 1rem;
  font-family: var(--ff-ui);
  font-weight: 500;
}
.menu-mobile a.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.menu-mobile a.btn-wa { color: #fff; }
.menu-mobile .menu-meta {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--ff-ui);
  font-size: .85rem;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-mobile .menu-meta strong { color: var(--text); font-weight: 500; }
@media (min-width: 1000px) {
  .menu-mobile { display: none; }
}

/* FOOTER */
.site-footer {
  background: #1F1A14;
  color: var(--on-dark);
  margin-top: 0;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand .brand-tag { color: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.footer-brand .brand-mark { background: rgba(255,255,255,0.07); color: var(--accent-soft); }
.footer-about {
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--on-dark-mute);
  max-width: 38ch;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--on-dark-mute);
  line-height: 1.5;
}
.footer-col ul li a { color: var(--on-dark-mute); transition: color var(--t-fast); }
.footer-col ul li a:hover { color: var(--accent-soft); }
.footer-col ul li strong { color: var(--on-dark); font-weight: 500; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: .8rem;
  color: var(--on-dark-mute);
}
.footer-bar .ml-trigger {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
}
@media (min-width: 768px) {
  .footer-bar { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* FAB Appeler — flotte en bas a droite sur mobile */
.fab-call {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  z-index: 950;
  box-shadow: 0 10px 24px rgba(46, 40, 32, 0.28);
  transition: transform var(--t-fast), background var(--t-fast);
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  pointer-events: none;
}
.fab-call.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.fab-call:hover { background: var(--accent-deep); }
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 1000px) {
  .fab-call { display: none; }
}
