/* ============================================
   VosFinancesPerso.fr — Feuille de style commune
   ============================================ */

/* --- Variables & Reset --- */
:root {
  --primary:    #0d3b66;
  --accent:     #1a9c72;
  --accent-alt: #16b38a;
  --bg:         #f7f9fc;
  --surface:    #ffffff;
  --text:       #1a1f2e;
  --muted:      #6b7280;
  --border:     #e2e8f0;
  --radius:     10px;
  --shadow:     0 2px 16px rgba(13, 59, 102, 0.08);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --max-width:  1100px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { flex: 1; }

/* --- Header --- */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(13, 59, 102, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 1.5rem; align-items: center; }

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

nav a:hover { color: var(--primary); text-decoration: none; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0a5298 60%, #0d7a5f 100%);
  color: white;
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}

.hero h1 { color: white; margin-bottom: 1rem; }

.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(26, 156, 114, 0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* --- Section --- */
.section { padding: 4rem 1.25rem; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; margin-bottom: 3rem; font-size: 1.05rem; }

/* --- Cards grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(13, 59, 102, 0.13);
  text-decoration: none;
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; }

.card-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(26, 156, 114, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

/* --- Trust bar --- */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.25rem;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-item span:first-child { font-size: 1.2rem; }

/* --- Placeholder page --- */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem;
  min-height: 50vh;
}

.placeholder-badge {
  background: rgba(26, 156, 114, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.placeholder h2 { margin-bottom: 1rem; }
.placeholder p { max-width: 480px; margin-bottom: 2rem; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb-inner a { color: var(--muted); }
.breadcrumb-inner a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb-inner span { margin: 0 0.4rem; }

/* --- Footer --- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: white; font-size: 1.1rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent-alt); text-decoration: none; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: white; text-decoration: none; }

/* --- Responsive --- */
@media (max-width: 640px) {
  nav { gap: 1rem; }
  nav a { font-size: 0.82rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
