/* Styles des pages légales (mentions légales, CGV) — reprend la charte du site */
:root {
  --epinette: #10241C;
  --tangerine: #FF7A18;
  --tangerine-dark: #E0650A;
  --latte: #FFF8E7;
  --latte-2: #FBF0D9;
  --muted: #55645D;
  --line: #E8DDC4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); color: var(--epinette); background: var(--latte); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,248,231,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--epinette); color: var(--latte); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.back { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--epinette); }
.btn { display: inline-flex; padding: 10px 18px; border-radius: 999px; background: var(--tangerine); color: var(--epinette); font-weight: 500; font-size: .88rem; text-decoration: none; }

/* Bandeau titre */
.page-hero { background: var(--epinette); color: var(--latte); padding: 64px 0 56px; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tangerine); margin: 0; }
.page-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.015em; line-height: 1.1; margin: 12px 0 10px; }
.page-hero p { margin: 0; color: rgba(255,248,231,.75); }

/* Corps */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; padding: 64px 20px 96px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: .85rem; }
.toc p { font-weight: 600; margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--epinette); border-color: var(--tangerine); }

.content { max-width: 760px; }
.content section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.content section:last-child { border-bottom: 0; }
.content h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.25; margin: 0 0 14px; }
.content h2 span { color: var(--tangerine); margin-right: 8px; }
.content h3 { font-size: 1rem; font-weight: 600; margin: 22px 0 6px; }
.content p, .content li { color: #2E3E37; font-size: .95rem; }
.content p { margin: 0 0 12px; }
.content ul { margin: 0 0 12px; padding-left: 20px; }
.content li { margin-bottom: 4px; }
.content dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; margin: 0; font-size: .95rem; }
.content dt { font-weight: 600; }
.content dd { margin: 0; color: #2E3E37; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--latte-2); font-weight: 600; font-size: .8rem; }
tr:last-child td { border-bottom: 0; }

/* Champs à compléter avant publication */
.todo { background: #FFE3CB; color: var(--tangerine-dark); padding: 1px 6px; border-radius: 4px; font-weight: 500; font-size: .92em; }
.notice { background: #fff; border: 1.5px solid var(--tangerine); border-radius: 12px; padding: 16px 18px; font-size: .88rem; margin-bottom: 40px; }
.updated { font-size: .85rem; color: var(--muted); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .82rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--epinette); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .toc { position: static; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
  .content dl { grid-template-columns: 1fr; gap: 2px; }
  .content dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .nav .btn { display: none; }
  .brand-name { font-size: 1rem; }
}
@media print {
  .site-header, .toc, .site-footer, .notice { display: none; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .layout { display: block; padding: 0; }
}
