/* ── Pages légales - Littoral Numérique ── */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap");

:root {
  --color-primary-dark: #1a3a6e;
  --color-primary: #2e5fa3;
  --color-primary-light: #4a80c4;
  --color-accent: #0097a7;
  --color-cta: #e07b54;
  --bg-page: #F5F7FA;
  --bg-white: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.04);
  --text-main: #1a2332;
  --text-muted: #445570;
  --shadow: 0 2px 8px rgba(30, 58, 110, 0.08);
}

:root[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-white: #111827;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-page);
}

/* Header */
header {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  );
  color: white;
  padding: 24px 20px;
  text-align: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
}
.header-brand {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.3em;
}
.header-title {
  font-size: 1.1em;
  opacity: 0.85;
}
.back-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.88em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Contenu */
main {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 20px 60px;
}

.page-title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.8em;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.page-date {
  font-size: 0.82em;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-accent);
}

section.block {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.05em;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bg-card);
}

:root[data-theme="dark"] .page-title,
:root[data-theme="dark"] h2 {
  color: var(--color-primary-light);
}

p {
  color: var(--text-muted);
  margin-bottom: 10px;
}
p:last-child {
  margin-bottom: 0;
}
strong {
  color: var(--text-main);
}
a {
  color: var(--color-primary);
}
:root[data-theme="dark"] a {
  color: var(--color-primary-light);
}
ul,
ol {
  color: var(--text-muted);
  padding-left: 20px;
  margin-bottom: 10px;
}
li {
  margin-bottom: 4px;
}

.info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  border-radius: 4px;
  margin: 14px 0;
  font-size: 0.92em;
}

/* Footer */
footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85em;
}
footer a {
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer p {
  color: inherit;
}

@media print {
  header,
  footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .back-link {
    display: none;
  }
}
