/* layout.css — header, nav, footer, containers */

/* ── Container ── */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Header sticky ── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h-mobile);
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px color-mix(in srgb, var(--text) 10%, transparent); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0 20px;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--accent);
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name strong { font-weight: 500; font-size: .92rem; }
.brand-name small {
  font-family: var(--ff-ui);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  display: none;
}
@media (min-width: 480px) { .brand-name small { display: block; } }

/* Nav desktop */
.header-nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.header-nav a {
  font-family: var(--ff-ui);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--text-2);
  transition: color .2s;
}
.header-nav a:hover { color: var(--accent); }

/* CTA header (desktop seulement) */
.header-cta {
  display: none;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  transition: background .2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-deep); }

@media (min-width: 768px) {
  .site-header { height: var(--header-h); }
  .header-inner { padding: 0 32px; }
  .header-nav { display: flex; }
  .header-cta { display: inline-flex; align-items: center; gap: 6px; }
}

/* ── Footer ── */
.site-footer {
  background: var(--surface-deep);
  color: var(--on-dark);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand-col .brand { color: var(--on-dark); }
.footer-brand-col .brand-mark { color: var(--accent-2); }
.footer-brand-col .brand-name small { color: var(--on-dark-2); display: block; }
.footer-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: .95rem;
  color: var(--on-dark-2);
  margin-top: 12px;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li {
  font-family: var(--ff-ui);
  font-size: .86rem;
  color: var(--on-dark-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-col .hor-row { display: flex; justify-content: space-between; gap: 12px; }
.footer-col .hor-closed { color: var(--text-mute); font-style: italic; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-family: var(--ff-ui);
  font-size: .76rem;
  color: var(--on-dark-2);
  opacity: .7;
}
.footer-bottom a { text-decoration: underline; opacity: .8; }
.footer-bottom a:hover { opacity: 1; color: var(--accent-2); }

/* ── FAB mobile ── */
.fab-call {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: calc(var(--z-header) - 10);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: .84rem;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(100px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease), background .2s;
}
.fab-call.visible { transform: none; opacity: 1; }
.fab-call:hover { background: var(--accent-deep); }
.fab-call svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (min-width: 768px) { .fab-call { display: none; } }
