/* =========================================================
   Beforely — styles partagés
   Charte: Inter + Fraunces / violet #6B3FA0 / gold #D4AF37
   ========================================================= */

:root {
  /* Couleurs */
  --primary: #6B3FA0;
  --primary-l: #8B5FC0;
  --primary-d: #5A3590;
  --gold: #D4AF37;
  --gold-l: #E6C969;
  --gold-soft: #BA7517;

  --bg: #FAFAFA;
  --bg-soft: #F4F0FA;
  --white: #FFFFFF;
  --text: #0A0A12;
  --text-2: #2D2D33;
  --muted: #6A6A6F;
  --border: #E6E4EA;
  --border-strong: #D5D3DB;

  --success: #639922;
  --warning: #BA7517;
  --error: #C24444;

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Layout */
  --max: 1200px;
  --nav-h: 64px;
  --pad-x: max(24px, calc(50% - 600px));

  /* Radius */
  --r-full: 999px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10,10,18,.04), 0 2px 6px rgba(10,10,18,.04);
  --sh-md: 0 4px 12px rgba(10,10,18,.06), 0 12px 32px rgba(10,10,18,.06);
  --sh-violet: 0 4px 20px rgba(107,63,160,.25);
  --sh-violet-h: 0 8px 30px rgba(107,63,160,.35);
}

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* =========================================================
   Typography
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.display em {
  font-style: italic;
  color: var(--primary);
}

/* =========================================================
   NAV (sticky, blur)
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo .b { color: var(--primary); }
.nav-logo .l { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }

.nav-back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.nav-back:hover { color: var(--primary); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.18s;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--sh-violet);
}
.btn-primary:hover {
  background: var(--primary-l);
  transform: translateY(-1px);
  box-shadow: var(--sh-violet-h);
}
.btn-ghost {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: rgba(107, 63, 160, 0.06);
}
.btn-cta {
  background: var(--primary);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-cta:hover {
  background: var(--primary-l);
  transform: translateY(-1px);
}

/* =========================================================
   PAGE HERO (utility legal pages)
   ========================================================= */
.page-hero {
  padding: clamp(120px, 14vw, 160px) var(--pad-x) clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}
.page-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}
.page-hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

/* =========================================================
   CONTENT (legal pages)
   ========================================================= */
.page-content {
  padding: clamp(40px, 6vw, 72px) var(--pad-x);
}
.page-content-inner {
  max-width: 780px;
  margin: 0 auto;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
  color: var(--text);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}
.page-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 14px;
}
.page-content p strong { color: var(--text); font-weight: 600; }
.page-content ul {
  list-style: none;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-content ul li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1.5px;
  background: var(--primary);
}
.page-content ul li strong { color: var(--text); font-weight: 600; }
.page-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 63, 160, 0.25);
  transition: border-color 0.15s;
}
.page-content a:hover { border-bottom-color: var(--primary); }

.info-box, .info-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin: 24px 0;
}
.info-box p, .info-block p { margin-bottom: 8px; color: var(--muted); }
.info-block p:last-child { margin-bottom: 0; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong, .info-block strong { color: var(--text); }
.info-box.accent {
  background: rgba(107, 63, 160, 0.04);
  border-color: rgba(107, 63, 160, 0.18);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  padding: 36px var(--pad-x);
  background: var(--text);
  color: rgba(255, 255, 255, 0.5);
}
.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
@media (min-width: 600px) {
  .foot-in {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.foot-logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
}
.foot-logo .b { color: rgba(255, 255, 255, 0.7); }
.foot-logo .l { color: var(--gold); }
.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.foot-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.foot-links a:hover { color: rgba(255, 255, 255, 0.85); }
.foot-credit {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 720px) {
  .nav-links { display: none; }
}
