/* ==========================================================================
   Pages secondaires — Mentions légales & confidentialité
   (s'appuie sur les couleurs, polices et tailles définies dans style.css)
   ========================================================================== */

html { scroll-behavior: smooth; }

/* En-tête simple */
.lnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px var(--gutter);
  background: rgba(216, 203, 184, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 44, 44, 0.1);
  color: var(--onyx);
}
.lnav__right { display: flex; align-items: center; gap: 24px; }

/* Bandeau titre */
.lhero {
  padding: clamp(64px, 9vw, 130px) 0 clamp(48px, 6vw, 84px);
  background: var(--marine-deep);
  color: var(--parchment);
}
.lhero .caption { color: var(--stone); }
.lhero .title { margin: 22px 0 28px; }
.lhero__lead { max-width: 54ch; font-size: var(--fs-lead); line-height: 1.45; color: var(--stone); }
.lhero__date { display: block; margin-top: 30px; }

/* Mise en page : sommaire + contenu */
.legal {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.legal__toc { position: sticky; top: 104px; align-self: start; }
.legal__toc .caption { color: var(--walnut); }
.legal__toc ol { margin-top: 18px; border-top: 1px solid var(--stone); counter-reset: toc; }
.legal__toc li { counter-increment: toc; border-bottom: 1px solid var(--stone); }
.legal__toc a {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  font-size: var(--fs-ui);
  color: var(--espresso);
  transition: color 0.3s var(--ease), transform 0.5s var(--ease-out);
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  padding-top: 2px;
  font-size: var(--fs-label);
  color: var(--walnut);
  transition: color 0.3s var(--ease);
}
.legal__toc a:hover, .legal__toc a.is-active { color: var(--onyx); transform: translateX(6px); }
.legal__toc a.is-active::before { color: var(--saffron); }

/* Rubriques */
.lsec {
  margin-bottom: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--stone);
  scroll-margin-top: 110px;
}
.lsec:last-child { margin-bottom: 0; border-bottom: 0; }
.lsec__num { font-size: var(--fs-label); font-weight: 500; color: var(--saffron); }
.lsec__title {
  margin: 10px 0 26px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.lsec p { max-width: 70ch; color: var(--espresso); }
.lsec p + p, .lsec p + .llist, .lsec .llist + p, .lsec .ldl + p { margin-top: 18px; }
.lsec a:not(.btn) { color: var(--marine); text-decoration: underline; text-underline-offset: 3px; }
.lsec h3 {
  margin: 30px 0 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--onyx);
}

.ldl { margin-top: 18px; border-top: 1px solid var(--stone); }
.ldl div {
  display: grid;
  grid-template-columns: minmax(170px, 270px) minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--stone);
}
.ldl dt { padding-top: 3px; font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; color: var(--walnut); }
.ldl dd { margin: 0; color: var(--onyx); }

.llist { margin-top: 14px; }
.llist li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid rgba(182, 171, 156, 0.6);
  color: var(--espresso);
}
.llist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 10px;
  height: 1px;
  background: var(--saffron);
}
.llist strong { font-weight: 600; color: var(--onyx); }

/* Informations à compléter : bien visibles */
.todo {
  display: inline-block;
  padding: 3px 10px;
  border: 1px dashed var(--saffron);
  border-radius: var(--radius);
  font-size: calc(var(--fs-small) - 1px);
  font-style: italic;
  color: var(--terracotta);
}

/* Pied de page */
.lfoot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 28px var(--gutter);
  background: var(--marine-deep);
  color: var(--stone);
  font-size: var(--fs-label);
  text-transform: uppercase;
}
.lfoot a { color: var(--parchment); }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .ldl div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .lnav .nav__logo span { display: none; }
  .lnav__right { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
