/* ============ PAGES LÉGALES (mentions légales, confidentialité) ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
}

html { overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  padding-bottom: 40vh;
  line-height: 1.6;
}

.page-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: #ffffff;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.nav__logo { text-decoration: none; display: flex; align-items: center; }
.nav__logo-img { height: 44px; width: auto; display: block; object-fit: contain; }
.nav__links { display: flex; gap: 40px; list-style: none; }

.nav__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--black);
  text-transform: capitalize;
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}

.nav__link:hover::after { width: 100%; }

/* ============ CONTENU LÉGAL ============ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 32px 120px;
}

.legal__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.legal__updated {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6f6f6f;
  margin-bottom: 40px;
}

.legal__toc {
  border-top: 1px solid rgba(10, 10, 10, 0.12);
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  padding: 20px 0;
  margin-bottom: 48px;
}

.legal__toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 8px;
}

.legal__toc li { counter-increment: toc; }

.legal__toc a {
  font-size: 13.5px;
  color: #555;
  text-decoration: none;
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: #8a8a8a; }
.legal__toc a:hover { color: var(--black); }

.legal h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 52px 0 14px;
  scroll-margin-top: 100px;
}

.legal h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin: 30px 0 10px;
}

.legal p,
.legal li {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #2a2a2a;
}

.legal p { margin-bottom: 14px; }

.legal ul,
.legal ol.legal__list { margin: 0 0 16px 1.3em; }
.legal li { margin-bottom: 8px; }

.legal a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong { font-weight: 600; }

.legal__box {
  background: #f6f5f3;
  border-left: 2px solid var(--black);
  padding: 18px 22px;
  margin: 22px 0;
}
.legal__box p:last-child { margin-bottom: 0; }

/* Champs à renseigner par l'éditeur avant mise en ligne */
.todo {
  background: #fdf3d0;
  border-bottom: 1px dashed #c9a227;
  padding: 0 3px;
  font-weight: 400;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
}
.legal__back:hover { opacity: 0.55; }

/* ============ FOOTER ============ */
.footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; z-index: 0;
  background: #0f0f0f;
  overflow: hidden;
  padding: 0 0 60px;
  display: flex;
  flex-direction: column;
  height: 40vh;
}

.footer__main { display: inline-block; align-self: flex-start; margin-right: -3.5vw; }

.footer__logo {
  font-family: var(--font-serif);
  font-size: 11.5vw;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 0.82;
  color: #fff;
  display: block;
  -webkit-font-smoothing: antialiased;
}

.footer__phone {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
  margin-top: 4px;
  display: block;
  text-decoration: none;
}

.footer__bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  position: relative;
  z-index: 1;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__socials { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }

.footer__social-link {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  text-transform: capitalize;
}

.footer__nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  text-transform: capitalize;
  transition: opacity 0.2s;
}
.footer__nav-link:hover { opacity: 0.6; }

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/cat-mariages.jpg) center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.06) brightness(0.82);
  z-index: 0;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.34) 0%, rgba(10,10,10,0.66) 55%, rgba(10,10,10,0.8) 100%);
  z-index: 0;
}
.footer__main { position: relative; z-index: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav__links { gap: 16px; }
  .nav__link { font-size: 12px; }
  .legal { padding: 120px 22px 90px; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 24px 22px 0; }
  .footer__nav { justify-content: center; }
  .footer__phone { text-align: center; }
}

@media (max-width: 480px) {
  .nav { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .nav__logo-img { height: 34px; }
  .nav__link { font-size: 11px; letter-spacing: 0.04em; }
}
