/* Styles communs aux pages légales SeamComp */

:root {
  --ink: #0B1B33;
  --ink-soft: #2A3F5F;
  --paper: #FFF8EE;
  --paper-2: #FBEFD9;
  --primary: #1F4E79;
  --primary-2: #163A5C;
  --accent: #F39A2C;
  --accent-2: #E87A1B;
  --line: #E8DBC2;
  --white: #FFFFFF;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --maxw: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Navigation simple */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-back:hover { color: var(--ink); }

/* Hero page */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}
.page-hero p.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}
.update-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
  padding: 0.5rem 0.85rem;
  background: var(--paper-2);
  border-radius: 999px;
  display: inline-block;
}

/* Content */
main.content {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.content h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-block: 2.5rem 1rem;
  color: var(--primary);
  scroll-margin-top: 5rem;
}
.content h2:first-of-type { margin-top: 0; }
.content h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-block: 1.75rem 0.75rem;
  color: var(--ink);
}
.content p { margin: 0 0 1rem; }
.content ul, .content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.content li { margin-bottom: 0.4rem; }
.content strong { color: var(--ink); font-weight: 600; }

/* Boxes */
.info-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.accent { border-left-color: var(--accent); }
.info-box p:last-child { margin-bottom: 0; }
.info-box h3 { margin-top: 0; }

/* Definition list (identité) */
dl.def {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}
@media (min-width: 580px) {
  dl.def { grid-template-columns: max-content 1fr; }
}
dl.def dt {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
dl.def dd {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}
@media (min-width: 580px) {
  dl.def dt, dl.def dd {
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--line);
  }
  dl.def dt:last-of-type, dl.def dd:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Table of contents */
.toc {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2) !important;
  font-family: var(--body) !important;
  font-weight: 700 !important;
}
.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 1;
}
@media (min-width: 580px) {
  .toc ol { columns: 2; column-gap: 2rem; }
}
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-2); text-decoration: underline; }

/* Footer */
footer {
  background: var(--ink);
  color: rgba(255, 248, 238, 0.6);
  padding-block: 2rem;
  border-top: 1px solid rgba(255, 248, 238, 0.08);
  font-size: 0.85rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255, 248, 238, 0.6);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--accent); }
