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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.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);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .site-header__inner {
    height: var(--header-h);
    padding: 0 32px;
  }
}

/* Brand (picto SVG metier + nom display) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1;
}
.brand-tag {
  display: none;
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}
@media (min-width: 768px) {
  .brand-name { font-size: 1.32rem; }
  .brand-text { display: flex; flex-direction: column; }
  .brand-tag { display: block; }
}

/* Nav desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  font-family: var(--ff-ui);
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav-desktop a:hover::after { transform: scaleX(1); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
}

.header-cta {
  display: none;
}
@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid var(--text);
    border-radius: var(--r-md);
    color: var(--text);
    background: transparent;
    font-family: var(--ff-ui);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast);
  }
  .header-cta:hover {
    background: var(--text);
    color: var(--bg);
  }
  .header-cta svg { width: 16px; height: 16px; }
}

/* Burger */
.burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  position: relative;
}
.burger span,
.burger::before,
.burger::after {
  content: "";
  display: block;
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--t-med), opacity var(--t-fast), top var(--t-med);
}
.burger::before { top: 14px; }
.burger span    { top: 21px; }
.burger::after  { top: 28px; }
.burger.is-open::before {
  top: 21px;
  transform: rotate(45deg);
}
.burger.is-open span { opacity: 0; }
.burger.is-open::after {
  top: 21px;
  transform: rotate(-45deg);
}
@media (min-width: 900px) {
  .burger { display: none; }
}

/* ============ MENU MOBILE (pattern obligatoire) ============ */
.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) + 32px) 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  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-style: italic;
  font-size: 1.8rem;
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.menu-mobile a:not(.btn):hover { color: var(--accent); }
.menu-mobile .menu-mobile__cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-mobile .btn-primary { color: #fff; }
.menu-mobile .btn-wa { color: #fff; }

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

/* ============ MAIN ============ */
main { display: block; }

section {
  padding: var(--section-pad-y) 0;
  position: relative;
}
@media (min-width: 768px) {
  section { padding: var(--section-pad-y-d) 0; }
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 56px; }
}
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--primary);
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  padding: 56px 0 28px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.site-footer a { color: color-mix(in srgb, var(--bg) 88%, transparent); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand .brand-mark { color: var(--accent); }
.footer-brand .brand-name { color: color-mix(in srgb, var(--bg) 96%, transparent); }
.footer-baseline {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  max-width: 32ch;
  margin-top: 8px;
}
.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col p, .footer-col ul { margin: 0 0 8px; color: color-mix(in srgb, var(--bg) 80%, transparent); font-size: 0.95rem; line-height: 1.55; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 6px; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--bg) 64%, transparent);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-bottom button.ml-link {
  background: none;
  border: 0;
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--ff-ui);
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0;
}
.footer-bottom button.ml-link:hover { color: var(--accent); }

/* ============ FAB mobile Appeler ============ */
.fab-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(46, 40, 32, 0.28);
  z-index: 950;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
  text-decoration: none;
}
.fab-call.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-call svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .fab-call { display: none; } }
