:root {
  color: #20312d;
  background: #f5f2ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f5f2ea; }
body { margin: 0; min-width: 320px; background: #f5f2ea; color: #24332e; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { color: #f7f2e9; background: #355248; }
.legal-skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #24332e; color: #fff; text-decoration: none; }
.legal-skip:focus { top: 12px; }
.legal-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(45,58,53,.11); background: rgba(249,249,245,.97); backdrop-filter: blur(10px); }
.legal-header-inner { width: min(1240px, calc(100% - 48px)); height: 64px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.legal-brand { display: inline-flex; align-items: center; gap: 9px; color: #24332e; text-decoration: none; }
.legal-brand img { width: 40px; height: 40px; }
.legal-brand span { font-family: Georgia, 'Times New Roman', serif; font-size: 27px; letter-spacing: -.04em; }
.legal-main-nav { display: flex; gap: 27px; align-items: center; }
.legal-main-nav a, .legal-footer nav a { color: #31413b; text-decoration: none; font-size: 13px; font-weight: 650; }
.legal-main-nav a:hover, .legal-footer nav a:hover { opacity: .62; }
.legal-launch { justify-self: end; min-height: 42px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #faf8f3; background: #748a7e; text-decoration: none; font-size: 13px; font-weight: 750; box-shadow: 0 7px 18px rgba(67,88,78,.1); }
.legal-page-intro { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 20px; }
.legal-eyebrow { margin: 0; color: #778f82; font-size: 11px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
.legal-page-intro h1, .legal-not-found h1 { margin: 9px 0 0; max-width: 1080px; color: #20312d; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.25rem, 4.1vw, 3.55rem); line-height: 1.03; font-weight: 400; letter-spacing: -.035em; }
.legal-description { margin: 8px 0 0; max-width: 900px; color: #65766f; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.45; }
.legal-version { margin: 9px 0 0; color: #87928c; font-size: 11px; }
.legal-layout { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 42px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.legal-toc { position: sticky; top: 82px; }
.legal-toc nav { padding: 17px 18px; border: 1px solid rgba(73,96,85,.13); border-radius: 14px; background: rgba(252,251,247,.8); }
.legal-toc p { margin: 0 0 8px; color: #74877e; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.legal-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 7px; padding: 6px 0; color: #4c6057; text-decoration: none; font-size: 12px; line-height: 1.3; }
.legal-toc a span { color: #9aa69f; font-variant-numeric: tabular-nums; }
.legal-document { min-width: 0; }
.legal-section { scroll-margin-top: 82px; padding: 18px 20px; border: 1px solid rgba(73,96,85,.13); border-radius: 13px; background: rgba(252,251,247,.88); }
.legal-section + .legal-section { margin-top: 8px; }
.legal-section h2 { margin: 0 0 8px; display: flex; gap: 11px; align-items: baseline; color: #263832; font-family: Georgia, 'Times New Roman', serif; font-size: 21px; line-height: 1.15; font-weight: 400; }
.legal-section-number { color: #94a39b; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.legal-section p, .legal-section li, .legal-section dd { color: #5f7169; font-size: 13.5px; line-height: 1.5; }
.legal-section p { margin: 7px 0 0; }
.legal-section p:first-of-type { margin-top: 0; }
.legal-section ul { margin: 8px 0 0; padding-left: 20px; }
.legal-section li + li { margin-top: 5px; }
.legal-section a { color: #436457; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(73,96,85,.12); border-radius: 10px; background: rgba(73,96,85,.12); }
.legal-facts div { padding: 9px 12px; background: #fbfaf5; }
.legal-facts div:last-child { grid-column: 1 / -1; }
.legal-facts dt { color: #809087; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-facts dd { margin: 3px 0 0; color: #3d5148; font-size: 12.5px; line-height: 1.35; }
.legal-price-grid { margin-top: 2px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.legal-price-card { padding: 15px 16px; border: 1px solid rgba(73,96,85,.13); border-radius: 12px; background: linear-gradient(145deg, rgba(229,235,217,.62), rgba(250,249,243,.92)); }
.legal-price-card .legal-plan { margin: 0; color: #51685e; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.legal-price-card .legal-price { margin: 5px 0 0; display: flex; gap: 6px; align-items: baseline; color: #253a32; }
.legal-price-card .legal-price strong { font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: 400; }
.legal-price-card .legal-price span { color: #708078; font-size: 12px; }
.legal-price-card p:last-child { margin-top: 6px; font-size: 12px; }
.legal-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.legal-contact-grid article { padding: 14px; border: 1px solid rgba(73,96,85,.12); border-radius: 11px; background: #fbfaf5; }
.legal-contact-grid h3 { margin: 0; color: #2b3f37; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; font-weight: 400; }
.legal-contact-grid p { margin-top: 5px; font-size: 12px; }
.legal-contact-list { margin: 0; display: grid; gap: 4px; }
.legal-contact-list div { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 12px; align-items: baseline; }
.legal-contact-list dt { color: #667b71; font-size: 12.5px; }
.legal-contact-list dd { margin: 0; color: #455950; font-size: 12.5px; line-height: 1.4; }
.legal-mediator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .85fr); gap: 18px; align-items: start; }
.legal-mediator > p { margin: 0; }
.legal-mediator dl { margin: 0; padding-left: 18px; border-left: 1px solid rgba(73,96,85,.14); display: grid; gap: 4px; }
.legal-mediator dl div { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 8px; }
.legal-mediator dt { color: #71847a; font-size: 11px; font-weight: 750; }
.legal-mediator dd { margin: 0; color: #455950; font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }
.legal-back-to-top { margin: 12px 0 0; width: fit-content; display: inline-block; color: #5a7166; font-size: 11.5px; font-weight: 700; text-decoration: none; }
.legal-footer { border-top: 1px solid rgba(68,91,80,.1); background: #e9eee6; }
.legal-footer-inner { width: min(1240px, calc(100% - 48px)); min-height: 80px; margin: 0 auto; padding: 13px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 12px 30px; align-items: center; }
.legal-footer .legal-brand img { width: 32px; height: 32px; }
.legal-footer .legal-brand span { font-size: 23px; }
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 18px; }
.legal-footer p { margin: 0; color: #7c8982; font-size: 10.5px; text-align: right; }
.legal-not-found { width: min(760px, calc(100% - 48px)); min-height: calc(100svh - 144px); margin: 0 auto; padding: 90px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.legal-not-found p:not(.legal-eyebrow) { color: #667870; font-size: 16px; line-height: 1.55; }
.legal-not-found .legal-launch { justify-self: auto; margin-top: 16px; }
.legal-header a:focus-visible, .legal-section a:focus-visible, .legal-footer a:focus-visible { outline: 2px solid #42574d; outline-offset: 4px; }
@media (max-width: 940px) {
  .legal-header-inner { width: min(100% - 30px, 820px); gap: 18px; }
  .legal-main-nav { display: none; }
  .legal-page-intro, .legal-layout, .legal-footer-inner { width: min(100% - 32px, 760px); }
  .legal-layout { grid-template-columns: 1fr; gap: 14px; }
  .legal-toc { position: static; }
  .legal-toc nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  .legal-toc p { grid-column: 1 / -1; }
  .legal-mediator { grid-template-columns: 1fr; }
  .legal-mediator dl { padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(73,96,85,.14); }
  .legal-footer-inner { grid-template-columns: auto 1fr; }
  .legal-footer p { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 640px) {
  .legal-header-inner { height: 60px; width: calc(100% - 22px); }
  .legal-brand img { width: 36px; height: 36px; }
  .legal-brand span { font-size: 24px; }
  .legal-launch { min-height: 38px; padding: 0 13px; font-size: 12px; }
  .legal-page-intro { width: calc(100% - 24px); padding: 26px 0 16px; }
  .legal-page-intro h1 { font-size: clamp(2rem, 11vw, 2.65rem); }
  .legal-layout, .legal-footer-inner { width: calc(100% - 24px); }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-section { padding: 15px 15px; }
  .legal-section h2 { font-size: 19px; }
  .legal-facts, .legal-price-grid, .legal-contact-grid { grid-template-columns: 1fr; }
  .legal-facts div:last-child { grid-column: auto; }
  .legal-contact-list div, .legal-mediator dl div { grid-template-columns: 1fr; gap: 1px; }
  .legal-footer-inner { grid-template-columns: 1fr; align-items: start; }
  .legal-footer nav { justify-content: flex-start; }
  .legal-footer p { text-align: left; }
}
@media print {
  .legal-header, .legal-footer, .legal-toc, .legal-back-to-top, .legal-skip { display: none !important; }
  .legal-page-intro, .legal-layout { width: 100%; padding: 0; }
  .legal-layout { display: block; }
  .legal-section { break-inside: avoid; border: 0 !important; border-top: 1px solid #ccc !important; border-radius: 0 !important; padding: 18px 0; background: #fff; }
  body { background: #fff; }
}


/* === Atlas legal final typography pass === */

:root {
  --atlas-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --atlas-serif: Georgia, "Times New Roman", serif;
  font-family: var(--atlas-sans);
}

body {
  font-family: var(--atlas-sans);
  color: #2f4039;
}

.legal-brand span,
.legal-page-intro h1,
.legal-not-found h1,
.legal-section h2,
.legal-contact-grid h3,
.legal-mediator strong,
.legal-price-card .legal-price strong {
  font-family: var(--atlas-serif);
}

/* Header plus proche de la landing */
.legal-header-inner {
  height: 72px;
}

.legal-main-nav {
  gap: 28px;
}

.legal-main-nav a {
  color: #34463f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.legal-launch {
  min-height: 46px;
  padding-inline: 21px;
  font-weight: 700;
  box-shadow: none;
}

/* Lecture */
.legal-section > p,
.legal-section > ul,
.legal-section > ol {
  max-width: 76ch;
}

.legal-section p,
.legal-section li,
.legal-section dd {
  color: #52665d;
  font-size: 14.5px;
  line-height: 1.56;
}

.legal-section h2 {
  color: #273a33;
  font-size: 21px;
  line-height: 1.18;
}

.legal-description {
  color: #596d64;
}

.legal-version {
  color: #77877f;
}

/* Cartes : relief très discret */
.legal-section {
  background: rgba(253, 252, 248, .96);
  border-color: rgba(72, 94, 84, .12) !important;
  box-shadow: 0 7px 22px rgba(41, 60, 51, .035);
}

/* Sommaire des longues pages */
.legal-toc nav {
  max-height: calc(100svh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 106, 95, .28) transparent;
}

.legal-toc nav::-webkit-scrollbar {
  width: 5px;
}

.legal-toc nav::-webkit-scrollbar-thumb {
  background: rgba(83, 106, 95, .24);
  border-radius: 999px;
}

.legal-toc a {
  font-weight: 520;
}

/* Ne jamais exposer les notes de travail */
.legal-draft,
.legal-note {
  display: none !important;
}

/* Contact : lignes cohérentes avec les autres pages */
.legal-contact-grid {
  grid-template-columns: 1fr;
  gap: 7px;
}

.legal-contact-grid article {
  display: grid;
  grid-template-columns: minmax(135px, 170px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 22px;
  row-gap: 1px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(251, 250, 245, .9);
}

.legal-contact-grid h3 {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 18px;
}

.legal-contact-grid p {
  grid-column: 2;
  margin: 0;
  max-width: 68ch;
}

.legal-contact-grid p + p {
  margin-top: 1px;
}

.legal-mediator {
  max-width: 76ch;
  background: #f5f6ef;
}

/* Footer regroupé */
.legal-footer nav {
  align-items: center;
  gap: 8px 26px;
}

.legal-footer-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 18px;
}

.legal-footer-group + .legal-footer-group {
  padding-left: 26px;
  border-left: 1px solid rgba(68, 91, 80, .16);
}

.legal-footer nav a {
  font-weight: 580;
}

.legal-facts dd {
  color: #4c6158;
  font-size: 13.5px;
}

@media (max-width: 940px) {
  .legal-toc nav {
    max-height: none;
    overflow: visible;
  }

  .legal-footer-group + .legal-footer-group {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .legal-section p,
  .legal-section li,
  .legal-section dd {
    font-size: 14px;
    line-height: 1.55;
  }

  .legal-contact-grid article {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 3px;
  }

  .legal-contact-grid h3,
  .legal-contact-grid p {
    grid-column: 1;
    grid-row: auto;
  }

  .legal-contact-grid h3 {
    font-size: 17px;
  }

  .legal-footer-group {
    display: flex;
    width: 100%;
  }
}
