/* Layout : header sticky, footer */

.site-header{
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), background var(--t-mid);
}
.site-header.is-scrolled{
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.site-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-mobile);
  gap: 12px;
}
@media (min-width: 768px){
  .site-header__inner{ height: var(--header-h); }
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover{ color: var(--accent); }
.brand-mark{
  width: 36px;
  height: 36px;
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg{ width: 100%; height: 100%; }
.brand-text{ display: flex; flex-direction: column; line-height: 1; }
.brand-name{
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.005em;
  color: var(--text);
}
.brand-tag{
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 3px;
}

/* Nav desktop */
.nav-desktop{ display: none; }
@media (min-width: 980px){
  .nav-desktop{
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-desktop a{
    font-family: var(--ff-ui);
    font-size: 0.93rem;
    color: var(--text-2);
    letter-spacing: 0.01em;
    position: relative;
    padding: 4px 0;
  }
  .nav-desktop a::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-mid);
  }
  .nav-desktop a:hover{ color: var(--accent); }
  .nav-desktop a:hover::after{ transform: scaleX(1); }
}

.header-cta{ display: none; }
@media (min-width: 980px){
  .header-cta{ display: inline-flex; }
}

/* Burger */
.burger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  z-index: calc(var(--z-header) + 1);
}
.burger span,
.burger span::before,
.burger span::after{
  content: "";
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-mid), top var(--t-mid), background var(--t-mid);
}
.burger span{ position: relative; }
.burger span::before{ top: -7px; }
.burger span::after{ top: 7px; }
.burger.is-open span{ background: transparent; }
.burger.is-open span::before{ top: 0; transform: rotate(45deg); }
.burger.is-open span::after{ top: 0; transform: rotate(-45deg); }
@media (min-width: 980px){ .burger{ display: none; } }

/* Menu mobile (enfant direct de body, jamais imbrique) */
.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) + 24px) 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:not(.btn){
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.005em;
}
.menu-mobile a:not(.btn):hover{ color: var(--accent); }
.menu-mobile__cta-wrap{
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 980px){
  .menu-mobile{ display: none; }
}

/* Footer */
.site-footer{
  background: var(--text);
  color: #E8E5DC;
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}
.footer-brand .brand-mark{ color: var(--accent-2); }
.footer-brand .brand-name{ color: #F5F1E8; }
.footer-brand .brand-tag{ color: #B5B0A4; }
.footer-brand p{
  color: #C4BFB2;
  margin-top: 14px;
  font-size: 0.93rem;
  max-width: 32ch;
}
.footer-col h4{
  color: #F5F1E8;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul{ list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col li{
  color: #C4BFB2;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-col a:hover{ color: var(--accent-2); }
.footer-contact-line{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.footer-contact-line svg{ width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }
.footer-bottom{
  border-top: 1px solid color-mix(in srgb, #C4BFB2 25%, transparent);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
  color: #9D998D;
  font-size: 0.82rem;
}
.footer-bottom button{
  color: #C4BFB2;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.82rem;
  padding: 0;
}
.footer-bottom button:hover{ color: var(--accent-2); }
@media (min-width: 768px){
  .footer-bottom{ flex-direction: row; align-items: center; }
}

/* FAB Appeler mobile */
.fab-call{
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(58, 74, 64, 0.32), 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.fab-call svg{ width: 18px; height: 18px; }
.fab-call.is-visible{ opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 980px){
  .fab-call{ display: none; }
}
