/*
 * Pages légales Prof Expert.
 * Reprise en CSS pur du gabarit des pages légales de Focus École
 * (LegalLayout + LegalPage + Footer), avec l'accent vert Prof Expert.
 */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/prof-expert/assets/fonts/Poppins_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/prof-expert/assets/fonts/Poppins_500Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/prof-expert/assets/fonts/Poppins_600SemiBold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --accent: #009a44;
  --accent-strong: #007a36;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--slate-700);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── En-tête ─────────────────────────────────────────────────────────── */

.site-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate-800);
}

.site-header .brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
}

.site-header .brand span {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.site-header .back {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.site-header .back:hover {
  text-decoration: underline;
}

main {
  flex: 1;
}

/* ── Article ─────────────────────────────────────────────────────────── */

.legal {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 40px 24px;
}

.legal h1 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

.legal .updated {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--slate-500);
}

.legal .intro {
  margin-top: 24px;
  color: var(--slate-700);
}

.legal .intro p {
  margin: 0;
}

.legal .body {
  margin-top: 32px;
  font-size: 15px;
  line-height: 28px;
  color: var(--slate-700);
}

.legal .body h2 {
  margin: 40px 0 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--slate-900);
}

.legal .body h3 {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--slate-900);
}

.legal .body p {
  margin: 12px 0 0;
}

.legal .body ul {
  margin: 12px 0 0;
  padding-left: 24px;
  list-style: disc;
}

.legal .body li {
  margin-top: 4px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
}

.legal a:hover {
  color: var(--accent-strong);
}

.legal .body strong {
  font-weight: 600;
  color: var(--slate-900);
}

.legal .body table {
  margin-top: 16px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.legal .body th,
.legal .body td {
  padding: 8px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--slate-200);
}

.legal .body th {
  font-weight: 600;
  color: var(--slate-900);
}

/* Liste des documents (page d'accueil) */

.doc-list {
  margin-top: 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.doc-list li {
  margin: 0;
}

.doc-list a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  text-decoration: none;
  color: var(--slate-900);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.doc-list a:hover {
  border-color: var(--accent);
  background: #f3fbf6;
}

.doc-list .doc-title {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--slate-900);
}

.doc-list .doc-desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 22px;
  color: var(--slate-600);
}

/* ── Pied de page ────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--slate-100);
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--slate-600);
}

.site-footer nav {
  margin: 0 0 12px;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  row-gap: 8px;
}

.site-footer nav a {
  color: inherit;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Écrans moyens et larges ─────────────────────────────────────────── */

@media (min-width: 768px) {
  .site-header {
    padding-left: 64px;
    padding-right: 64px;
  }

  .legal {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .legal h1 {
    font-size: 36px;
    line-height: 40px;
  }
}
