/* ============================================================
   Fresh Detailing 95 — layout.css
   Header/nav, footer, hero, page banners, structural grids
   ============================================================ */

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-sm);
  transition: padding var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { padding-block: var(--space-2xs); border-bottom-color: var(--c-border); }

/* The scrolled blur/tint lives on a pseudo-element, not on .site-header
   itself. backdrop-filter (like filter/transform) makes the element that
   carries it a new containing block for ITS OWN position:fixed descendants
   — and .nav-list (the full-screen mobile menu, position:fixed; inset:0)
   is exactly such a descendant. With backdrop-filter on .site-header
   directly, .nav-list stopped covering the viewport and instead sized
   itself to .site-header's own ~80px box the moment .is-scrolled landed —
   the mobile menu links rendered squeezed into a thin strip instead of a
   full-screen overlay. Moving the effect to ::before sidesteps this
   entirely: the pseudo-element still paints the same blurred bar, but it
   isn't itself a fixed-position ancestor of .nav-list. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.brand img { width: 42px; height: 42px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-sm), 1.4vw, var(--space-md));
}
.nav-list a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-soft);
  padding-block: 0.3em;
  white-space: nowrap; /* « À propos » se coupait en deux une fois les icônes ajoutées */
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gradient-gold);
  transition: right var(--dur-fast) var(--ease-out);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--c-text); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }

/* Un filet sépare les liens des icônes plutôt qu'un simple espace, pour que
   ce ne soit pas lu comme un huitième lien de nav. */
.nav-list__socials {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding-left: var(--space-sm);
  margin-left: var(--space-2xs);
  border-left: 1px solid var(--c-border);
}
.nav-list__socials a {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  color: var(--c-text-soft);
}
.nav-list__socials a:hover { border-color: var(--c-gold-300); color: var(--c-gold-300); }
.nav-list__socials svg { width: 13px; height: 13px; }

.header-cta { display: flex; align-items: center; gap: var(--space-sm); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--c-text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-nav) - 1);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    background: var(--c-bg);
    transform: translateY(-100%);
    transition: transform var(--dur-med) var(--ease-in-out);
  }
  .nav-open .nav-list { transform: translateY(0); }
  .nav-list a { font-size: var(--fs-xl); font-family: var(--font-display); text-transform: uppercase; }
  .header-cta .btn-ghost { display: none; }

  /* Dans la colonne du menu plein écran, le filet passe de vertical à
     horizontal et les cibles grandissent pour le doigt. */
  .nav-list__socials {
    padding-left: 0;
    margin-left: 0;
    padding-top: var(--space-lg);
    border-left: none;
    border-top: 1px solid var(--c-border);
  }
  .nav-list__socials a { width: 40px; height: 40px; }
  .nav-list__socials svg { width: 16px; height: 16px; }
}

@media (max-width: 420px) {
  /* Keep the logo mark but drop the wordmark — on narrow phones (iPhone
     SE and similar) brand + "Réserver" + hamburger no longer fit on one
     row otherwise, and the toggle button was overflowing the viewport. */
  .brand span { display: none; }
  .site-header__inner { gap: var(--space-sm); }
  .header-cta { gap: var(--space-xs); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--c-bg) 0%, rgba(8,8,10,0.35) 46%, rgba(8,8,10,0.55) 100%),
    linear-gradient(to right, rgba(8,8,10,0.5) 0%, transparent 40%);
}
.hero__content {
  width: 100%;
  padding-block: var(--space-2xl) var(--space-xl);
}
.hero__kicker { margin-bottom: var(--space-sm); }
.hero__title {
  font-size: var(--fs-4xl);
  max-width: 16ch;
  margin-bottom: var(--space-sm);
}
.hero__lede {
  max-width: 42ch;
  font-size: var(--fs-md);
  margin-bottom: var(--space-lg);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.hero__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}
.hero__scroll-cue svg { width: 14px; height: 14px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue svg { animation: none; }
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  position: relative;
  padding-block: calc(var(--space-3xl) + 2rem) var(--space-xl);
  overflow: hidden;
}
.page-banner__title { font-size: var(--fs-3xl); max-width: 22ch; }
.page-banner__lede { max-width: 50ch; margin-top: var(--space-sm); font-size: var(--fs-md); }
.breadcrumb {
  display: flex;
  gap: 0.5em;
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breadcrumb a:hover { color: var(--c-text); }

/* ---------- Structural grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--c-border);
  padding-block: var(--space-xl) var(--space-md);
  background: var(--c-bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.footer-col h5 {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: var(--space-sm);
}
.footer-col a, .footer-col p { font-size: var(--fs-sm); color: var(--c-text-soft); }
.footer-col li + li { margin-top: 0.6em; }
.footer-col a:hover { color: var(--c-gold-300); }
.footer-brand p { margin-top: var(--space-sm); max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
}
.footer-bottom .legal-links { display: flex; gap: var(--space-md); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ---------- Mobile call FAB ---------- */
.mobile-call-fab {
  display: none;
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: var(--z-nav);
  width: 54px; height: 54px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  color: #1a1206;
  box-shadow: var(--shadow-gold);
}
@media (max-width: 900px) {
  .mobile-call-fab { display: flex; }
}
