/* ==========================================================================
   PRIVATE FRENCH UNIVERSITY — PAGES LÉGALES & RGPD
   DA Haute Couture Académique · 100 % Statique · CSP Stricte
   ========================================================================== */

:root {
  --paper: #FAF9F5;
  --linen: #F2EFE7;
  --white: #FFFFFF;
  --navy: #0A1633;
  --ink: #0A0B0E;
  --ink-soft: #222634;
  --blue: #002395;
  --blue-deep: #001A70;
  --carmine: #BE123C;
  --muted: #50535F;
  --muted-light: #B8C1D6;
  --rule: rgba(10, 22, 51, 0.12);
  --rule-strong: rgba(10, 22, 51, 0.22);
  --rule-dark: rgba(250, 249, 245, 0.15);
  --radius-xs: 2px;
  --radius-sm: 4px;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.12, 0.23, 0.5, 1);
}

@view-transition {
  navigation: auto;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
}

/* Header */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.legal-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.legal-brand img {
  height: 24px;
  width: auto;
  max-width: 196px;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.legal-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--blue);
}

.legal-nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  background: var(--navy);
  color: var(--white) !important;
  font-size: 12.5px;
}

.legal-nav-cta:hover {
  background: var(--blue);
}

.tricolor-rule {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 48%, var(--paper) 48%, var(--paper) 52%, var(--carmine) 52%, var(--carmine) 100%);
}

/* Hero Banner */
.legal-hero {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(36px, 5vw, 60px) 0;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-light);
  margin-bottom: 16px;
}

.legal-breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 12px;
}

.legal-kicker::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 13px;
  border-radius: 1px;
  border: 1px solid rgba(250, 249, 245, 0.25);
  background: linear-gradient(90deg, var(--blue) 0 33.33%, var(--paper) 33.33% 66.66%, var(--carmine) 66.66% 100%);
}

.legal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 24ch;
}

.legal-hero-lead {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.62;
  color: #D2DAEA;
  max-width: 66ch;
}

.legal-meta-bar {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12.5px;
  color: var(--muted-light);
}

.legal-meta-bar strong {
  color: var(--white);
}

/* Body Grid */
.legal-main {
  padding: clamp(36px, 5vw, 68px) 0 clamp(56px, 7vw, 92px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 86px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 180ms var(--ease);
}

.legal-toc a:hover {
  color: var(--blue);
}

.legal-toc-contact {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-contact a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Legal Articles */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: clamp(20px, 3vw, 32px);
  scroll-margin-top: 88px;
}

.legal-card-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.legal-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}

.legal-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

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

.legal-card a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card ul {
  margin: 10px 0 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.legal-card ul:last-child {
  margin-bottom: 0;
}

.legal-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 12px;
}

.legal-dl div {
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: var(--paper);
  border: 1px solid var(--rule);
}

.legal-dl dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.legal-dl dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.legal-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-xs);
  background: var(--linen);
  border-left: 3px solid var(--blue);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.legal-callout--carmine {
  border-left-color: var(--carmine);
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}

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

.legal-table th {
  background: var(--linen);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.legal-qualiopi-strip {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-qualiopi-cartouche {
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.legal-qualiopi-cartouche img {
  height: 48px;
  width: auto;
}

/* Footer */
.legal-footer {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: 36px;
}

.legal-footer-inner {
  padding-top: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-dark);
}

.legal-footer-logo {
  height: 20px;
  width: auto;
  margin-bottom: 12px;
}

.legal-footer-desc {
  font-size: 13px;
  color: var(--muted-light);
  max-width: 48ch;
}

.legal-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13px;
  color: var(--muted-light);
}

.legal-footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer-bottom {
  padding-top: 18px;
  font-size: 12px;
  color: #939BB0;
  line-height: 1.6;
}

.legal-footer-bottom strong {
  color: var(--paper);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .legal-header-inner {
    gap: 12px;
  }

  .legal-brand img {
    height: 19px;
    max-width: 160px;
  }

  .legal-nav a:not(.legal-nav-cta) {
    display: none;
  }

  .legal-dl {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
