/* ============================================================
   app.css — Styles communs MutuaCompar
   ============================================================ */

/* ── Variables communes ─────────────────────────────────────── */
:root {
  --navy:   #0f2545;
  --navy2:  #1a3a6b;
  --orange: #f26522;
  --orange2:#ff8c42;
  --bg:     #fdf6f0;
  --white:  #ffffff;
  --gray:   #6b7280;
  --lgray:  #e4eaf4;
  --border: #d0d9ec;
  --text:   #1a2740;
  --red:    #e53e3e;
  --green:  #22c55e;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  background: white;
  border-bottom: 1px solid var(--lgray);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15,37,69,0.07);
}
.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  text-decoration: none;
}
.logo span { color: var(--orange); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.18s;
  border: 2px solid transparent;
}
.nav-link:hover { background: var(--lgray); }
.nav-link.active-nav { background: #fff5ef; color: var(--orange); border-color: #fdd5bc; }
.nav-cta {
  background: var(--orange);
  color: white;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Sora', sans-serif;
}
.nav-cta:hover { background: #ff8c42; transform: translateY(-1px); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  nav { padding: 0 16px; }
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: white;
  border-top: 1px solid var(--lgray);
  padding: 40px 48px 24px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 24px;
}
.footer-brand .logo { display: block; margin-bottom: 10px; }
.footer-copy { font-size: 0.75rem; color: var(--gray); line-height: 1.7; }
.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  text-align: center;
  font-size: 0.68rem;
  color: #aaa;
  border-top: 1px solid var(--lgray);
  padding-top: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 28px 20px 16px; }
}

/* ── Pages de contenu (mentions, confidentialité…) ──────────── */
.content {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 24px 60px;
}
.content h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.content .updated { font-size: 0.8rem; color: var(--gray); margin-bottom: 32px; }
.content h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 28px 0 10px;
}
.content p  { font-size: 0.9rem; line-height: 1.75; color: #374151; margin-bottom: 12px; }
.content ul { padding-left: 20px; margin-bottom: 12px; }
.content li { font-size: 0.9rem; line-height: 1.75; color: #374151; margin-bottom: 4px; }

/* ── Bannière cookies ────────────────────────────────────────── */
#cookieBanner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 2px solid var(--lgray);
  box-shadow: 0 -6px 24px rgba(15,37,69,0.1);
  padding: 16px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Instrument Sans', sans-serif;
}
#cookiePrefs {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15,37,69,0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
