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

/* === HEADER === */
.header{
  position:sticky;
  top:0;
  z-index:var(--z-header);
  background:rgba(244,236,221,.86);
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color var(--t-med),background var(--t-med);
}
.header.is-scrolled{
  border-bottom-color:var(--border);
  background:rgba(244,236,221,.95);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:var(--header-h-mobile);
  padding:0 20px;
}
@media (min-width:768px){
  .header__inner{height:var(--header-h);padding:0 32px;max-width:var(--container);margin:0 auto}
}

/* Brand */
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
}
.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-name{
  font-family:var(--ff-display);
  font-weight:600;
  font-size:1.15rem;
  line-height:1;
  letter-spacing:.005em;
}
.brand-tag{
  display:none;
  font-family:var(--ff-ui);
  font-size:.65rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--text-2);
  margin-top:3px;
}
@media (min-width:540px){
  .brand-tag{display:block}
  .brand-text{display:flex;flex-direction:column}
}

/* Nav desktop */
.nav-desktop{display:none}
@media (min-width:768px){
  .nav-desktop{
    display:flex;
    align-items:center;
    gap:28px;
  }
  .nav-desktop a{
    font-family:var(--ff-ui);
    font-size:.95rem;
    color:var(--text);
    position:relative;
    transition:color var(--t-fast);
  }
  .nav-desktop a:hover{color:var(--accent-deep)}
  .nav-desktop a::after{
    content:"";
    position:absolute;
    left:0;right:0;bottom:-4px;
    height:1px;
    background:var(--accent);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform var(--t-fast);
  }
  .nav-desktop a:hover::after{transform:scaleX(1)}
  .header-cta{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--text);
    color:var(--bg);
    padding:10px 18px;
    border-radius:var(--r-md);
    font-family:var(--ff-ui);
    font-size:.9rem;
    font-weight:500;
    transition:background var(--t-fast);
  }
  .header-cta:hover{background:var(--accent-deep)}
}

/* Header CTA hidden on mobile */
.header .header-cta{display:none}
@media (min-width:1024px){.header .header-cta{display:inline-flex !important}}

/* === BURGER (enfant direct du body, position fixed top-right) === */
.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;
  z-index:1101;
}
.burger span{
  position:relative;
  display:block;
  width:22px;
  height:1.5px;
  background:var(--text);
  border-radius:2px;
  transition:background .2s,transform .2s;
}
.burger span::before,
.burger span::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:1.5px;
  background:var(--text);
  border-radius:2px;
  transition:transform .25s ease,top .2s ease .05s,bottom .2s ease .05s;
}
.burger span::before{top:-7px}
.burger span::after{bottom:-7px}
.burger.is-open span{background:transparent}
.burger.is-open span::before{top:0;transform:rotate(45deg)}
.burger.is-open span::after{bottom:0;transform:rotate(-45deg)}
@media (min-width:768px){.burger{display:none}}

/* === MENU MOBILE (enfant direct 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.6rem;
  font-weight:500;
  color:var(--text);
  padding:14px 0;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.menu-mobile > a::after{
  content:"\2192";
  font-family:var(--ff-body);
  font-size:1.2rem;
  color:var(--accent);
  opacity:.7;
}
.menu-mobile__cta{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:24px;
}
.menu-mobile__cta .btn{
  width:100%;
  justify-content:center;
  padding:14px 18px;
  font-size:.95rem;
  border-bottom:0;
}
.menu-mobile__cta .btn::after{display:none}
.menu-mobile__meta{
  margin-top:auto;
  padding-top:24px;
  font-family:var(--ff-ui);
  font-size:.85rem;
  color:var(--text-2);
  line-height:1.6;
}
.menu-mobile__meta strong{color:var(--text);display:block;margin-bottom:4px}

@media (min-width:768px){.menu-mobile{display:none}}

/* === FOOTER === */
.footer{
  background:var(--primary);
  color:#E6DAC2;
  padding:48px 0 24px;
  margin-top:48px;
}
@media (min-width:768px){.footer{padding:64px 0 28px}}
.footer h4{color:#F4ECDD;font-family:var(--ff-display);margin-bottom:14px;font-size:1.1rem}
.footer p,.footer a,.footer li{color:#D9CCB1;font-size:.92rem;line-height:1.7}
.footer a:hover{color:var(--accent-2)}
.footer__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
}
@media (min-width:768px){
  .footer__grid{grid-template-columns:1.4fr 1fr 1fr;gap:48px}
}
.footer__brand{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.footer__brand .brand-mark{color:var(--accent-2)}
.footer__brand .brand-name{color:#F4ECDD;font-size:1.25rem}
.footer__bottom{
  margin-top:36px;
  padding-top:20px;
  border-top:1px solid rgba(217,204,177,.18);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  font-size:.82rem;
  color:#B5A282;
}
.footer__bottom a{text-decoration:underline;text-decoration-color:rgba(193,148,103,.4)}
.footer__bottom a:hover{color:var(--accent-2)}

/* === FAB mobile === */
.fab{
  position:fixed;
  bottom:18px;
  right:18px;
  z-index:var(--z-fab);
  width:60px;
  height:60px;
  border-radius:50%;
  background:var(--accent-deep);
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 8px 24px rgba(110,74,38,.35);
  opacity:0;
  transform:translateY(20px);
  pointer-events:none;
  transition:opacity .3s,transform .3s;
}
.fab.is-visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.fab svg{width:26px;height:26px}
@media (min-width:768px){.fab{display:none}}
