/* Accueil public · styles shell légers (header, footer, cookies).
   Polices système uniquement (pas de Google Fonts) pour un affichage rapide
   sur mobile et navigateurs in-app (TikTok, Instagram, etc.). */

:root {
  color-scheme: light;
  --cherry: #943338;
  --cherry-dark: #5b191c;
  --burgundy-ink: #0f0f10;
  --cream: #ffffff;
  --cream-deep: #f4f4f4;
  --cream-paper: #ffffff;
  --text-on-cream: #0f0f10;
  --text-muted: #565656;
  --font-editorial: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-condensed: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --surface-white: #ffffff;
  --surface-cream: #fafafa;
  --line-soft: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 10px 24px rgba(0, 0, 0, 0.08);
  --text-body: var(--text-on-cream);
  --text-strong: var(--burgundy-ink);
  --ink: var(--burgundy-ink);
  --mt-accent: var(--cherry);
  --site-layout-max: 1320px;
  --site-layout-pad: 94%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-on-cream);
  background-color: var(--cream-paper);
}

a {
  color: #161616;
}

a:hover {
  color: var(--cherry);
}

::selection {
  color: #ffffff;
  background: var(--cherry);
}

body > main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: none;
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  width: min(var(--site-layout-max), var(--site-layout-pad));
  margin: 0 auto;
  padding: 0.55rem 0;
  min-height: 3rem;
}

.site-header__brand-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__brand {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--burgundy-ink);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  width: max-content;
  max-width: 100%;
}

.site-header__brand:hover {
  color: var(--cherry);
}

.site-header__logo-img {
  display: block;
  height: 1.4rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease;
}

.site-header__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--cherry);
  -webkit-mask: url("../assets/lavocatier-logo.png") no-repeat center center / contain;
  mask: url("../assets/lavocatier-logo.png") no-repeat center center / contain;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.site-header__brand:hover::after,
.site-header__brand:focus-visible::after {
  opacity: 1;
}

.site-header__brand--text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.site-header__brand--text em {
  font-style: normal;
  color: var(--cherry-dark);
}

.site-header__brand--text::after {
  display: none;
}

@media (max-width: 720px) {
  .site-header__logo-img {
    height: 1.1rem;
  }
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgba(16, 16, 16, 0.12);
  background-color: rgba(247, 241, 235, 0.85);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: min(var(--site-layout-max), var(--site-layout-pad));
  margin: 0 auto;
  padding: 0.85rem 0 1rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
}

.site-footer__link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--cherry);
}

.site-footer__meta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.9;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 1rem);
  z-index: 9999;
  width: min(880px, calc(100% - 1.5rem));
  background: rgba(255, 252, 247, 0.42);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  color: var(--text-on-cream, #0f0f10);
  border: 1px solid rgba(15, 15, 16, 0.06);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 15, 16, 0.08);
  font-family: var(--font-ui, system-ui, sans-serif);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.26s ease;
}

.cookie-banner--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem 0.8rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted, #4f4f4f);
}

.cookie-banner__link {
  color: var(--burgundy-ink, #0f0f10);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: var(--cherry, #943338);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  appearance: none;
  border: 1px solid var(--burgundy-ink, #0f0f10);
  background: transparent;
  color: var(--burgundy-ink, #0f0f10);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cookie-banner__btn:hover {
  transform: translateY(-1px);
}

.cookie-banner__btn--ghost:hover {
  background: rgba(15, 15, 16, 0.05);
}

.cookie-banner__btn--primary {
  background: var(--burgundy-ink, #0f0f10);
  color: var(--cream-paper, #ffffff);
}

.cookie-banner__btn--primary:hover {
  background: #1f1f22;
  border-color: #1f1f22;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--cherry, #943338);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0.55rem 0.85rem 0.55rem 1.4rem;
  }

  .cookie-banner__text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cookie-banner__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cookie-banner {
    background: rgba(255, 252, 247, 0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: opacity 0.01s ease;
    transform: translate(-50%, 0);
  }

  .cookie-banner__btn:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem 1rem;
    padding: 1rem 1rem 1.1rem;
  }

  .site-footer__nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
  }

  .site-footer__link {
    font-size: 0.82rem;
  }
}

/* Critical above-the-fold (landing-page.css charge en différé) */
.landing-page {
  width: min(var(--site-layout-max), var(--site-layout-pad));
  margin: 0 auto;
  padding: 0 0 5rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: clamp(1.5rem, 5vw, 5.5rem) 0 clamp(1.5rem, 4vw, 4rem);
}

.landing-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-hero__title {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4.8rem);
  line-height: 0.94;
  color: var(--burgundy-ink);
}

.landing-hero__lead {
  margin: 0 0 1.4rem;
  max-width: 36rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.landing-cta--primary {
  background: var(--burgundy-ink);
  color: #ffffff;
}

@media (min-width: 881px) {
  .landing-hero {
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}
