/* ============================================================
   Étranger en France · Study Recruitment Site
   Design tokens mirror the Figma design system (Brand Colors)
   ============================================================ */

:root {
  /* Backgrounds & surfaces */
  --bg-page: #F5F1E3;
  --bg-surface: #FFFFFF;
  --cream-50: #FAF7EC;
  --cream-200: #EAE3CE;
  --bg-panel: #3C6076;
  --bg-panel-deep: #232043;
  --bg-highlight: #E0A636;

  /* Accent & status */
  --accent: #E2603A;
  --accent-strong: #C2461F;
  --orange-100: #F7DDD2;
  --gold-500: #E0A636;
  --gold-100: #F6E7C6;
  --slate-500: #3C6076;
  --slate-300: #7193A6;
  --slate-100: #DCE6EB;
  --green-600: #2E7D5B;
  --green-100: #D8EFE4;

  /* Text */
  --text-primary: #232043;
  --text-secondary: #3C3866;
  --text-muted: #5A5773;
  --text-on-dark: #FFFFFF;

  /* Border */
  --border-subtle: #E3DBC4;
  --border-on-dark: #5C8094;

  /* Layout */
  --container: 1120px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 700; line-height: 1.16; letter-spacing: -0.01em; margin-bottom: 16px; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.h2-narrow { max-width: 780px; }
.lead { font-size: 19px; color: var(--text-secondary); line-height: 1.6; }
.on-dark { color: var(--slate-100); }

a { color: inherit; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-strong);
  margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.eyebrow-gold { color: var(--bg-highlight); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--bg-highlight); outline-offset: 2px; }
.btn-primary { background: var(--accent-strong); color: var(--text-on-dark); }
.btn-primary:hover { background: #AD3D1A; }
.btn-secondary { background: var(--bg-surface); color: var(--accent-strong); border: 1.5px solid var(--border-subtle); }
.btn-dark { background: var(--bg-panel-deep); color: var(--text-on-dark); }
.btn-sm { padding: 11px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: inline-block; }
.brand-name { font-size: 19px; font-weight: 600; color: var(--text-primary); }
.brand-name.on-dark { color: var(--text-on-dark); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.nav-links a:hover { color: var(--accent-strong); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle { display: inline-flex; border: 1.5px solid var(--border-subtle); border-radius: 999px; overflow: hidden; }
.lang-btn {
  padding: 7px 13px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  background: transparent; color: var(--text-secondary); border: none; cursor: pointer;
  border-radius: 999px; font-family: var(--font);
}
.lang-btn.active { background: var(--accent-strong); color: var(--text-on-dark); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0; }
.hero-row { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.hero-left h1 { margin: 10px 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }
.trust-pills li { display: flex; align-items: center; gap: 7px; font-size: 15px; color: var(--text-muted); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

.comp-card { background: var(--bg-panel); border-radius: var(--radius-lg); overflow: hidden; color: var(--text-on-dark); }
.comp-top { padding: 36px 36px 26px; }
.comp-label { font-size: 15px; font-weight: 600; }
.comp-amount { font-size: 60px; font-weight: 700; color: var(--bg-highlight); line-height: 1.1; }
.comp-sub { font-size: 15px; }
.comp-rows { padding: 6px 24px 26px; display: grid; gap: 10px; }
.comp-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 16px;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-highlight);
  color: var(--text-primary); font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.comp-row-label { font-size: 15px; font-weight: 600; flex: 1; }
.comp-row-amt { font-size: 19px; font-weight: 600; color: var(--bg-highlight); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-50); }
.section-dark { background: var(--bg-panel-deep); color: var(--text-on-dark); }
.section-dark h2 { color: var(--text-on-dark); }

/* ---------- About ---------- */
.about-row { display: grid; grid-template-columns: 1fr 360px; gap: 56px; margin-top: 32px; }
.about-text { display: grid; gap: 20px; align-content: start; }
.about-text p { color: var(--text-secondary); }
.stats { display: grid; gap: 14px; align-content: start; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 22px; }
.stat-big { font-size: 24px; font-weight: 600; color: var(--accent-strong); }
.stat-small { font-size: 15px; color: var(--text-muted); }

/* ---------- Eligibility ---------- */
.criteria { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 28px 0 36px; }
.criteria li {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gold-100); border-radius: 999px; padding: 13px 22px 13px 15px;
  font-size: 15px; font-weight: 600;
}
.check {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-primary); flex: 0 0 auto;
}
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.aud-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 28px; }
.aud-icon { display: block; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 14px; }
.aud-icon.slate, .trust-icon.slate, .avatar.slate { background: var(--slate-500); }
.aud-icon.gold, .trust-icon.gold { background: var(--gold-500); }
.aud-icon.orange, .trust-icon.orange, .avatar.orange { background: var(--accent); }
.trust-icon.green { background: var(--green-600); }
.aud-card h3 { margin-bottom: 8px; }
.aud-card p { font-size: 15px; color: var(--text-secondary); }
.note-band {
  background: var(--orange-100); border-radius: 18px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.note-band p { font-size: 19px; font-weight: 500; }

/* ---------- What's involved ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.step-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-on-dark);
  border-radius: 20px; padding: 32px; display: grid; gap: 14px; align-content: start;
}
.step-head { display: flex; align-items: center; gap: 14px; }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-highlight);
  color: var(--text-primary); font-weight: 600; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tag { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--text-on-dark); }
.tag-green { background: var(--green-600); }
.tag-slate { background: var(--slate-500); }
.step-card h3 { font-size: 24px; color: var(--text-on-dark); }
.step-meta { font-size: 15px; font-weight: 600; color: var(--bg-highlight); }
.step-desc { font-size: 16px; color: var(--slate-100); }
.step-amt { font-size: 44px; font-weight: 700; color: var(--bg-highlight); }
.step-amt span { font-size: 15px; font-weight: 400; color: var(--slate-100); margin-left: 8px; }
.pay-note { margin-top: 24px; font-size: 14px; color: var(--slate-100); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0 28px; }
.trust-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 26px; }
.trust-icon { display: block; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
.trust-card h3 { margin-bottom: 8px; }
.trust-card p { font-size: 15px; color: var(--text-secondary); }
.affiliation {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo-chip {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 10px 16px; display: inline-flex; align-items: center;
}
.logo-chip img { height: 34px; width: auto; display: block; }
.irb-chip {
  margin-left: auto; background: var(--green-100); color: var(--green-600);
  font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; margin-top: 28px; }
.faq-list details {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 24px 28px;
}
.faq-list summary {
  font-size: 19px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%; background: var(--cream-200);
  color: var(--text-secondary); font-size: 19px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.faq-list details[open] summary::after { content: '–'; background: var(--accent-strong); color: var(--text-on-dark); }
.faq-list details p { margin-top: 14px; color: var(--text-secondary); }
.faq-list details a { color: var(--accent-strong); font-weight: 600; }

/* ---------- Screener ---------- */
.screener-row { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.qr-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.qr {
  width: 92px; height: 92px; border-radius: 12px;
  border: 1px solid var(--border-subtle); background: var(--bg-surface); padding: 6px;
}
.qr-label { font-size: 15px; color: var(--text-muted); }
.qr-link { font-size: 19px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.qr-link:hover { text-decoration: underline; }

.form-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 22px; padding: 32px; display: grid; gap: 18px;
}
.form-tag {
  justify-self: start; background: var(--orange-100); color: var(--accent-strong);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.form-question { font-size: 19px; font-weight: 600; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--cream-50); border: 1.5px solid var(--border-subtle);
  border-radius: 12px; padding: 13px 16px;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; text-align: left; font-family: var(--font);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.option:hover { border-color: var(--accent); }
.option.selected { background: var(--orange-100); border-color: var(--accent-strong); }
.option .radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-subtle); background: var(--bg-surface); flex: 0 0 auto;
}
.option.selected .radio { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: inset 0 0 0 4px var(--bg-surface); }
.form-nav { display: flex; gap: 12px; align-items: center; }
.form-back {
  background: none; border: none; font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; padding: 12px 8px;
}
.form-back:hover { color: var(--text-primary); }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; }
.result { display: grid; gap: 14px; justify-items: start; }
.result-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--text-on-dark);
}
.result-icon.ok { background: var(--green-600); }
.result-icon.no { background: var(--slate-500); }
.result h3 { font-size: 24px; }
.result p { font-size: 16px; color: var(--text-secondary); }

/* ---------- CTA band ---------- */
.cta-section { padding: 8px 0; }
.cta-band {
  background: var(--bg-highlight); border-radius: 28px; padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band .lead { color: var(--text-primary); }

/* ---------- Contact ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.person-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 18px; padding: 28px; display: grid; gap: 12px; justify-items: start;
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%; color: var(--text-on-dark);
  font-size: 19px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.person-card h3 { font-size: 24px; }
.person-role { font-size: 15px; color: var(--text-muted); }
.email-chip {
  background: var(--cream-50); border: 1px solid var(--border-subtle); border-radius: 999px;
  padding: 10px 16px; font-size: 15px; font-weight: 600; color: var(--accent-strong);
  text-decoration: none;
}
.email-chip:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-panel-deep); color: var(--text-on-dark); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: grid; gap: 12px; justify-items: start; }
.footer-brand .brand-dot { width: 26px; height: 26px; }
.footer-tag { font-size: 15px; color: var(--slate-100); max-width: 360px; }
.footer-logos { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-logos .logo-chip { padding: 8px 12px; }
.footer-logos .logo-chip img { height: 26px; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-head {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg-highlight);
}
.footer-col a, .footer-col span { font-size: 15px; color: var(--slate-100); text-decoration: none; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-divider { height: 1px; background: var(--border-on-dark); opacity: 0.5; margin: 32px 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--slate-100); }

/* ============================================================
   Responsive (mirrors the Figma mobile frames)
   ============================================================ */
@media (max-width: 980px) {
  .hero-row { grid-template-columns: 1fr; gap: 40px; }
  .about-row { grid-template-columns: 1fr; gap: 32px; }
  .screener-row { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .hero { padding: 40px 0; }
  .cta-row .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .cta-band .btn { width: 100%; }
  .note-band .btn { width: 100%; }
  .comp-top { padding: 26px 24px 18px; }
  .form-card { padding: 22px; }
  .irb-chip { margin-left: 0; }
}
