/* layout.css — header sticky + nav + footer */

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr-med), box-shadow var(--tr-med), background var(--tr-med);
  display: flex;
  align-items: center;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--text) 8%, transparent);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo__picto { flex-shrink: 0; }
.header-logo__name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.header-logo__name span {
  display: block;
  font-size: 0.68rem;
  font-family: var(--ff-ui);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 1px;
}

/* Nav desktop */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.header-nav a {
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--tr-base), background var(--tr-base);
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* CTA header */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}
.header-cta .btn { padding: 10px 20px; font-size: 0.9rem; }

/* Dot "ouvert/fermé" discret */
.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #ccc;
  flex-shrink: 0;
  transition: background var(--tr-base);
}
.open-dot.is-open { background: #22c55e; }
.open-dot.is-closed { background: #ef4444; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--text);
  color: #fff;
  padding: 48px 0 28px;
  margin-top: 0; /* PIÈGE #12 — jamais de margin-top */
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .footer-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--tr-base);
}
.footer-contact a:hover { color: #fff; }

.footer-col h4 {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-col ul li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  padding: 3px 0;
  line-height: 1.5;
}
.footer-col ul li span { color: rgba(255,255,255,0.9); }

.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  transition: color var(--tr-base);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.9); }

/* FAB mobile — bouton Appeler fixe en bas */
.fab-call {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-header);
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 50%, #000);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
  white-space: nowrap;
}
.fab-call:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 28px color-mix(in srgb, var(--accent) 60%, #000);
}

/* Mentions légales modal */
#ml-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ml-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.ml-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.ml-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background var(--tr-base);
}
.ml-close:hover { background: color-mix(in srgb, var(--text) 15%, transparent); }
.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-right: 40px;
}
.ml-box p, .ml-box li {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 10px;
}
.ml-box strong { color: var(--text); font-weight: 600; }
