/* Agent Wealthy — CSS */
:root {
  --primary: #1a5c2a;
  --primary-light: #2d8a42;
  --accent: #c8920e;
  --accent-light: #f0d060;
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555;
  --border: #e0dcc8;
  --radius: 8px;
}

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

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--primary);
  color: white;
  padding: 16px 0;
  border-bottom: 3px solid var(--accent);
}
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-title { font-size: 1.4rem; font-weight: 800; color: white; text-decoration: none; }
.site-title span:first-child { color: var(--accent-light); }
nav { display: flex; gap: 16px; }
nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
nav a:hover, nav a.active { color: var(--accent-light); }

.lang-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-switch a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.8rem; padding: 2px 6px; border-radius: 3px; }
.lang-switch a.active, .lang-switch a:hover { color: var(--accent-light); background: rgba(255,255,255,0.1); }
.lang-more { position: relative; cursor: pointer; color: rgba(255,255,255,0.7); font-size: 0.8rem; padding: 2px 6px; }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--primary); border: 1px solid var(--accent); border-radius: 4px; padding: 4px 0; z-index: 10; min-width: 60px; }
.lang-more:hover .lang-dropdown { display: block; }
.lang-dropdown a { display: block; padding: 4px 12px; white-space: nowrap; font-size: 0.8rem; }
.lang-dropdown a:hover { background: rgba(255,255,255,0.1); }

/* Hero */
.hero {
  background-color: var(--primary);
  background-image: linear-gradient(135deg, rgba(26,92,42,0.45) 0%, rgba(13,59,26,0.35) 100%), url('/velvet-texture.jpg');
  background-size: auto, cover;
  background-position: 0 0, center;
  background-blend-mode: normal;
  color: white;
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: 2rem; margin-bottom: 12px; position: relative; z-index: 1; }
.hero h1 span { color: var(--accent-light); }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.hero .cta { display: inline-block; margin-top: 20px; padding: 12px 28px; background: var(--accent); color: white; text-decoration: none; border-radius: var(--radius); font-weight: 700; font-size: 1rem; position: relative; z-index: 1; }
.hero .cta:hover { background: #d4a017; }

/* Main */
main { padding: 32px 0; }
main h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 16px; border-left: 3px solid var(--accent); padding-left: 12px; }

/* Opportunity cards */
.opp-grid { display: grid; gap: 16px; margin-bottom: 32px; }
.opp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.opp-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.opp-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; }
.opp-card .meta { display: flex; gap: 16px; font-size: 0.8rem; color: #888; flex-wrap: wrap; }
.opp-card .meta span { display: flex; align-items: center; gap: 4px; }
.opp-card .potentiel-eleve { color: var(--primary); font-weight: 600; }
.opp-card .potentiel-moyen { color: var(--accent); font-weight: 600; }
.opp-card .source a { color: var(--primary-light); text-decoration: none; }
.opp-card .source a:hover { text-decoration: underline; }

/* Affiliate banner */
.affiliate {
  background: linear-gradient(135deg, #fff8e1, #fff3c4);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}
.affiliate h3 { color: var(--primary); margin-bottom: 8px; }
.affiliate p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; }
.affiliate .btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.affiliate .btn:hover { background: var(--primary-light); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state p { font-size: 1rem; }

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
  font-size: 0.85rem;
  text-align: center;
}
footer a { color: var(--accent-light); text-decoration: none; }
footer .footer-nav { margin-bottom: 12px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Testimonials */
.testimonials {
  background: #f5f2e9;
  padding: 40px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.testimonials h2 {
  text-align: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 28px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.testimonial-card .quote-icon {
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 6px 0;
  padding: 0;
  border: none;
}
.testimonial-card .original {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: normal;
}
.testimonial-card .attribution {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-card .attribution .avatar { font-size: 1.5rem; }
.testimonial-card .attribution .name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}
.testimonial-card .attribution .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.testimonial-card .source-link {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--accent);
  text-decoration: none;
}
