/* ============================================================
   LHV Solutions — Shared CSS (pages secondaires)
   Tokens V2 bleu LHV + base layout + nav + footer
   À link depuis tarifs.html, a-propos.html, mentions-legales.html
   ============================================================ */

:root {
  --brand-primary:    #2563EB;
  --brand-deep:       #1E3A8A;
  --brand-bright:     #3B82F6;
  --brand-soft:       #DBEAFE;
  --brand-text-on-dark: #60A5FA;

  --bg-primary:       #0F1419;
  --bg-secondary:     #161B22;
  --bg-elevated:      #1E2433;
  --bg-hover:         #252B3A;
  --bg-pressed:       #2D3548;

  --text-primary:     #E5E9F0;
  --text-secondary:   #94A3B8;
  --text-tertiary:    #64748B;
  --text-on-accent:   #FFFFFF;

  --border:           #2A3142;
  --border-strong:    #3B4254;
  --border-subtle:    #1E2433;

  --success:          #34D399;
  --warning:          #FBBF24;
  --error:            #F87171;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Inter", Georgia, serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --space-16: 64px; --space-24: 96px;

  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px;
  --radius-lg: 16px; --radius-xl: 24px;

  --container: 1200px;

  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px -8px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 64px -12px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 800px at 90% -10%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 10% 90%, rgba(96, 165, 250, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) { .container { padding: 0 var(--space-8); } }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav__logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-deep) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.4);
}

.nav__links { display: none; gap: var(--space-8); }
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transition: transform 200ms;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text-primary); }

.nav__cta {
  padding: 10px var(--space-4);
  background: var(--brand-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 200ms;
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.5);
}
.nav__cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.6);
}

/* ============================================================
   PAGE HERO (header simple pour pages secondaires)
   ============================================================ */

.page-hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
}

.page-hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-text-on-dark);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__h1 em {
  font-style: italic;
  color: var(--brand-text-on-dark);
  font-weight: 600;
}

.page-hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  padding: 14px 26px;
  background: var(--brand-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all 200ms;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.5);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.7);
}

.btn-secondary {
  padding: 14px 26px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all 200ms;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--brand-bright);
}

/* ============================================================
   SECTION GENERIC
   ============================================================ */

.section { padding: var(--space-16) 0; }

@media (min-width: 768px) { .section { padding: var(--space-24) 0; } }

.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text-on-dark);
  margin-bottom: var(--space-3);
}

.section__h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  max-width: 800px;
}

.section__h2 em {
  font-style: italic;
  color: var(--brand-text-on-dark);
  font-weight: 600;
}

.section__sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.65;
}

.section__header { margin-bottom: var(--space-12); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; align-items: center; }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--text-primary);
}

.footer__copy { font-size: 12px; color: var(--text-tertiary); }

.footer__links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 150ms;
}

.footer__links a:hover { color: var(--text-primary); }

/* ============================================================
   PROSE — pour mentions légales / about
   ============================================================ */

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.prose h2, .prose h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose h2 { font-size: 28px; font-weight: 700; }
.prose h3 { font-size: 20px; font-weight: 600; }
.prose p + p { margin-top: var(--space-4); }
.prose ul, .prose ol { margin-left: var(--space-5); margin-top: var(--space-3); }
.prose li { margin-bottom: var(--space-2); }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a {
  color: var(--brand-text-on-dark);
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  transition: border-color 150ms;
}
.prose a:hover { border-bottom-color: var(--brand-text-on-dark); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
