/* Polices Manrope hébergées localement (licence SIL OFL, voir fonts/OFL.txt) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-page: #FBFFFE;
  --bg-soft: #F1F7F6;
  --main: #001514;
  --main-soft: #0A2826;
  --action: #00c594;
  --action-hover: #00ab80;
  --text-primary: #001514;
  --text-secondary: #4A6361;
  --border: #DFECEA;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Pages internes (mentions, confidentialité, CGV, assistance) ===== */
.legal-header {
  background: var(--main);
  padding: 20px 24px;
}

.legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header img {
  height: 30px;
  width: auto;
  display: block;
}

.legal-header a.back {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.85;
}

.legal-header a.back:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.legal-main h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal-main h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 12px;
  padding-top: 8px;
  letter-spacing: -0.01em;
}

.legal-main h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.legal-main p,
.legal-main li {
  font-size: 16px;
  color: #12302e;
}

.legal-main p {
  margin-bottom: 12px;
}

.legal-main ul,
.legal-main ol {
  margin: 0 0 16px 22px;
}

.legal-main li {
  margin-bottom: 6px;
}

.legal-main a {
  color: var(--action-hover);
  font-weight: 600;
}

.legal-main strong {
  font-weight: 700;
}

.legal-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 20px;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px 8px;
  margin-bottom: 32px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 8px;
}

.legal-toc ol {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.legal-main th,
.legal-main td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.legal-main th {
  background: var(--bg-soft);
  font-weight: 700;
}

/* ===== Pied de page ===== */
.site-footer {
  background: var(--main);
  color: rgba(255, 255, 255, 0.78);
  padding: 28px 24px;
  font-size: 14px;
}

.site-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Bouton d'opposition à la mesure d'audience (politique de confidentialité) */
.btn-mesure {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
}

.btn-mesure:hover {
  border-color: var(--action);
}

.btn-mesure[disabled] {
  cursor: default;
  opacity: 0.6;
}

.etat-mesure {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .legal-main { padding-top: 32px; }
}
