@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --bg: #FAFBFD;
  --bg-warm: #F5F3F0;
  --text: #1A1A2E;
  --accent: #16213E;
  --accent-mid: #0F3460;
  --accent-light: #1a4a8a;
  --highlight-bg: #E8EDF3;
  --border: #D1D9E6;
  --white: #FFFFFF;
  --text-muted: #5A6178;
  --text-light: #8892A8;
  --red: #C62828;
  --red-dark: #8B1A1A;
  --content-width: 720px;
  --pad: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER NAV === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,251,253,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-header__nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header__nav a:hover,
.site-header__nav a.active {
  color: var(--red);
}

/* === HERO === */
.page-hero {
  padding: 120px var(--pad) 60px;
  text-align: center;
  background: linear-gradient(170deg, #1a1a2e 0%, #16213E 40%, #0a1628 100%);
  color: var(--white);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.8;
  line-height: 1.7;
}

/* === CARDS GRID === */
.cards-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px var(--pad);
}

.cards-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: var(--accent-mid);
}

.card__funnel {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card__funnel--finance { color: #2E7D32; }
.card__funnel--travail { color: #E65100; }
.card__funnel--logement { color: #1565C0; }

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.card__cta {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-mid);
}

/* === ARTICLE === */
.article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 100px var(--pad) 60px;
}

.article__back {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}

.article__back:hover { color: var(--red); }

.article__funnel {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 24px;
}

.article__lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  border-left: 3px solid var(--red);
  padding-left: 20px;
}

.article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 16px;
}

.article p {
  font-size: 18px;
  line-height: 1.78;
  margin-bottom: 20px;
}

.article strong {
  font-weight: 600;
  color: var(--accent);
}

.article .stat-block {
  text-align: center;
  padding: 40px 20px;
  margin: 32px 0;
  background: var(--highlight-bg);
  border-radius: 12px;
}

.article .stat-block .number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.article .stat-block .label {
  font-size: 16px;
  color: var(--text-muted);
}

/* === CTA BLOCK === */
.cta-block {
  background: linear-gradient(135deg, #FDF6F6, #FBE9E9);
  border: 1px solid #F0D4D4;
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--red-dark);
  margin-bottom: 12px;
}

.cta-block p {
  font-size: 16px;
  color: #4A2020;
  margin-bottom: 20px;
}

.cta-block a.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-block a.btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198,40,40,0.25);
}

/* === REJOINDRE === */
.rejoindre-hero {
  padding: 120px var(--pad) 80px;
  text-align: center;
  background: linear-gradient(170deg, #1a0a0a 0%, #C62828 50%, #8B1A1A 100%);
  color: var(--white);
}

.rejoindre-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.rejoindre-hero p {
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0.9;
  line-height: 1.7;
}

.rejoindre-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px var(--pad);
}

.rejoindre-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.rejoindre-content p {
  font-size: 18px;
  line-height: 1.78;
  margin-bottom: 20px;
}

.rejoindre-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.rejoindre-content li {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 10px;
}

/* === FOOTER === */
.site-footer {
  background: var(--accent);
  color: rgba(255,255,255,0.6);
  padding: 40px var(--pad);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* === NPA-R BADGE === */
.npar-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.npar-badge__npa {
  background: #C62828;
  color: var(--white);
  padding: 4px 6px 4px 7px;
  border-radius: 4px 0 0 4px;
}

.npar-badge__r {
  background: #1A1A2E;
  color: var(--white);
  padding: 4px 7px 4px 5px;
  border-radius: 0 4px 4px 0;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  :root { --pad: 18px; }
  .site-header__nav { gap: 14px; }
  .site-header__nav a { font-size: 13px; }
  .cards-grid { grid-template-columns: 1fr; }
}
