/*
 * LAYOUT.CSS — Header, Footer, Navigation, Mobile sticky
 * Camier Avocat — dépend de charte.css
 */

/* ════════════════════════════
   HEADER
════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: 68px;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}

#site-header .hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 52px;
}

/* État scrolled — fond marine semi-transparent */
#site-header.scrolled {
  background: rgba(26, 31, 46, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}

/* Pages intérieures — header toujours marine plein, sans transparence */
body:not(.home) #site-header {
  background: rgba(26, 31, 46, 1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}

/* ── Logo ── */
.hdr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Logo WP custom (the_custom_logo) */
.hdr-logo .custom-logo-link {
  display: flex;
  align-items: center;
}
.hdr-logo .custom-logo {
  height: 46px;
  width: auto;
  mix-blend-mode: screen;
  opacity: .92;
}

/* Logo fallback texte */
.logo-fallback {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.1;
}
.logo-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--y-mid);
}

/* ── Navigation ── */
#main-nav {}

ul.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

ul.nav a {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  position: relative;
  transition: color .2s;
}
ul.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s;
}
ul.nav a:hover,
ul.nav li.current-menu-item > a {
  color: #fff;
}
ul.nav a:hover::after,
ul.nav li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* ── Actions header ── */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}
.burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════
   NAVIGATION MOBILE (ouverte)
════════════════════════════ */
@media (max-width: 860px) {
  #site-header .hdr-inner {
    padding: 0 24px;
  }

  .burger { display: flex; }

  ul.nav {
    display: none; /* caché par défaut, ouvert par JS */
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: rgba(26, 31, 46, .97);
    backdrop-filter: blur(14px);
    padding: 28px 32px;
    gap: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    z-index: calc(var(--z-header) - 1);
  }
  ul.nav.nav-open { display: flex; }

  .hdr-tel { display: none; }
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
  background: var(--ink);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  margin-bottom: 30px;
}

.f-brand-n {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 3px;
}
.f-brand-r {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--y);
  margin-bottom: 14px;
}
.f-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, .35);
  line-height: 1.72;
  max-width: 270px;
  margin-bottom: 18px;
}
.f-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, .42);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.f-contact a { color: inherit; }
.f-contact strong { color: rgba(255, 255, 255, .72); font-weight: 500; }

.f-col-h {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 18px;
}
.f-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, .48);
  transition: color .2s;
}
.f-links a:hover { color: #fff; }

.footer-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, .22);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-leg {
  display: flex;
  gap: 22px;
}
.footer-leg a {
  color: rgba(255, 255, 255, .3);
  transition: color .2s;
}
.footer-leg a:hover { color: rgba(255, 255, 255, .6); }

/* ════════════════════════════
   MOBILE STICKY CTA
════════════════════════════ */
.mob-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 10px 14px;
  gap: 10px;
}

.mob-sticky-call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: background .2s;
}
.mob-sticky-call:hover { background: rgba(255, 255, 255, .1); }

.mob-sticky-rdv {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--y);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: background .2s;
}
.mob-sticky-rdv:hover { background: var(--y-deep); }

/* ════════════════════════════
   RESPONSIVE FOOTER
════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .footer { padding: 48px 0 100px; } /* 100px = espace pour mob-sticky */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mob-sticky { display: flex; }
  .footer-bot { flex-direction: column; gap: 8px; }
}
