/* ════════════════════════════════════════
   AidesFinder — Site officiel
   Styles partagés
   ════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2D6BE4;
  --primary-dark: #1A3F8F;
  --secondary: #00C896;
  --accent: #FF6B35;

  --bg: #F4F6FF;
  --card: #FFFFFF;

  --text-dark: #0D1B3E;
  --text-mid: #5A6A8A;
  --text-light: #9BAAC8;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(13, 27, 62, 0.06);
  --shadow-lg: 0 20px 60px rgba(45, 107, 228, 0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header / Navigation ──────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(155, 170, 200, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 18px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 16px rgba(45, 107, 228, 0.35);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(45, 107, 228, 0.08);
}

/* ── Hero (landing) ───────────────────── */
.hero {
  background: linear-gradient(135deg, #0D2B6B 0%, #2D6BE4 55%, #00C896 100%);
  color: #fff;
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  top: -100px;
  left: -100px;
}

.hero::after {
  width: 240px;
  height: 240px;
  bottom: -80px;
  right: -80px;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero .tagline {
  font-size: clamp(16px, 2.4vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: block;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* ── Boutons ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-app-store {
  background: #000;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-app-store:hover {
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Sections (landing) ───────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-mid);
  font-size: 17px;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-emoji {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Bandeau confiance / RGPD ─────────── */
.trust-banner {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 40px;
  border: 1px solid rgba(0, 200, 150, 0.15);
}

.trust-banner h3 {
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.trust-banner p {
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Section "Aide-nous à améliorer" ──── */
.community-section {
  padding-top: 0;
}

.community-card {
  background: linear-gradient(135deg, #ffffff 0%, #F0F4FF 100%);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(45, 107, 228, 0.12);
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.12), transparent 70%);
  pointer-events: none;
}

.community-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 107, 228, 0.08), transparent 70%);
  pointer-events: none;
}

.community-emoji {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.community-card h2 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.community-card p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

.community-card p strong {
  color: var(--text-dark);
}

.btn-community {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(45, 107, 228, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn-community:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(45, 107, 228, 0.4);
}

.community-email {
  margin-top: 18px !important;
  font-size: 13px !important;
  color: var(--text-light) !important;
}

.community-email a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.community-email a:hover {
  text-decoration: underline;
}

/* ── Pages légales (contenu texte) ────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-page h1 {
  font-size: clamp(28px, 5vw, 40px);
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-page .updated {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 40px;
  font-weight: 500;
}

.legal-page h2 {
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal-page h3 {
  font-size: 17px;
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--text-mid);
}

.legal-page ul {
  margin: 14px 0 14px 20px;
  color: var(--text-mid);
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page strong {
  color: var(--text-dark);
  font-weight: 700;
}

.callout {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 30px 0;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
}

.callout p {
  margin-bottom: 0;
}

/* ── Footer ───────────────────────────── */
.site-footer {
  background: #0D1B3E;
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 24px 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ───────────────────────── */
@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .section {
    padding: 60px 20px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-divider {
    display: none;
  }

  .legal-page {
    padding: 40px 20px 80px;
  }
}
