/* ============================================================
   NEXUS FINANCEMENT — Site officiel — Feuille de style partagée
   ============================================================ */
:root {
  --navy: #1F3A5F;
  --navy-dark: #13243C;
  --navy-light: #3A5A8C;
  --gold: #C9A24B;
  --gold-soft: rgba(201, 162, 75, 0.15);
  --bg: #FBFAF7;
  --white: #FFFFFF;
  --text: #1f2937;
  --text-muted: #555;
  --text-light: #888;
  --text-on-dark: #C9D4E3;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --green: #1F9A6B;
  --max-w: 1140px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 88px 0; } }
.overline { font-size: 12px; color: var(--gold); letter-spacing: 1.8px; font-weight: 500; text-transform: uppercase; margin-bottom: 16px; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.3px; line-height: 1.2; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.5vw, 34px); color: var(--navy); margin-bottom: 12px; }
h3 { font-size: 16px; }
.lead { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin-bottom: 32px; max-width: 640px; }
@media (min-width: 768px) { .lead { font-size: 17px; } }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all 0.2s ease; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #b08c3a; }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--white); border-color: var(--navy); }
.btn-icon { width: 16px; height: 16px; }
.nav { position: sticky; top: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 100; padding: 16px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { font-size: 15px; font-weight: 500; letter-spacing: 0.6px; color: var(--navy); display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--text-muted); }
.nav-links a:hover { color: var(--navy); }
.nav-cta { background: var(--navy); color: var(--white); padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.nav-cta:hover { background: var(--navy-dark); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.hero { background: var(--navy); color: var(--white); padding: 64px 0 56px; }
.hero h1 { color: var(--white); margin-bottom: 16px; max-width: 720px; }
.hero-sub { font-size: 16px; line-height: 1.65; color: var(--text-on-dark); margin-bottom: 32px; max-width: 580px; }
@media (min-width: 768px) { .hero-sub { font-size: 18px; } .hero { padding: 96px 0 80px; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; margin-bottom: 56px; } }
.hero-content { min-width: 0; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); display: block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: grid; grid-template-columns: 1fr; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-on-dark); }
.hero-trust-item svg { color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
@media (min-width: 600px) { .hero-trust { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
@media (min-width: 1000px) { .hero-trust { grid-template-columns: repeat(4, 1fr); } }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: var(--text-on-dark); }
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 22px; height: 22px; }
.card-title { font-size: 16px; font-weight: 500; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.card-body { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 700px) { .pillars { grid-template-columns: 1fr 1fr; gap: 20px; } }
.pillar { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 24px; }
.pillar-num { font-size: 11px; color: var(--gold); letter-spacing: 1.8px; font-weight: 500; margin-bottom: 10px; }
.pillar-title { font-size: 16px; font-weight: 500; color: var(--white); margin-bottom: 10px; }
.pillar-body { font-size: 14px; line-height: 1.6; color: var(--text-on-dark); }
.results { display: grid; grid-template-columns: 1fr; gap: 14px 32px; }
@media (min-width: 700px) { .results { grid-template-columns: 1fr 1fr; } }
.result { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text); }
.result svg { color: var(--green); width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.result-wide { grid-column: 1 / -1; }
.prog-day { margin-bottom: 24px; }
.prog-head { background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: var(--radius) var(--radius) 0 0; font-size: 14px; font-weight: 500; letter-spacing: 0.4px; }
.prog-body { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); background: var(--white); }
.prog-row { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.55; align-items: start; }
.prog-row:last-child { border-bottom: none; }
.prog-mod { font-weight: 500; color: var(--navy); }
.prog-desc { color: var(--text-muted); }
@media (max-width: 600px) { .prog-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; } }
.formateur { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 700px) { .formateur { grid-template-columns: 180px 1fr; gap: 36px; } }
.avatar { width: 160px; height: 160px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 40px; font-weight: 500; letter-spacing: 2px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
@media (min-width: 700px) { .avatar { width: 180px; height: 220px; } }
.formateur-name { font-size: 18px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.formateur-bio { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin-bottom: 16px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.cred { font-size: 12px; background: rgba(31, 58, 95, 0.08); color: var(--navy); padding: 6px 12px; border-radius: 5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.cred svg { width: 14px; height: 14px; }
.mod-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 800px) { .mod-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.mod-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.mod-label { color: var(--text-muted); }
.mod-val { color: var(--navy); font-weight: 500; text-align: right; }
.price-card { background: var(--navy); color: var(--white); padding: 32px; border-radius: var(--radius); text-align: center; }
.price-label { font-size: 12px; color: var(--text-on-dark); letter-spacing: 1px; text-transform: uppercase; }
.price-num { font-size: 44px; font-weight: 500; color: var(--gold); letter-spacing: -1.5px; margin: 8px 0 4px; line-height: 1; }
.price-sub { font-size: 14px; color: var(--text-on-dark); margin-bottom: 22px; }
.finance-list { text-align: left; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 20px; }
.finance-list-item { font-size: 14px; line-height: 1.8; color: var(--text-on-dark); display: flex; align-items: center; gap: 8px; }
.finance-list-item svg { color: var(--gold); width: 14px; height: 14px; flex-shrink: 0; }
.faq { margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; font-weight: 500; color: var(--navy); cursor: pointer; }
.faq-q svg { width: 20px; height: 20px; color: var(--text-light); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.faq-item.open .faq-a { max-height: 500px; padding: 0 0 20px 0; }
.final-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
@media (min-width: 800px) { .final-cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.final-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius); padding: 28px 22px; text-align: center; display: flex; flex-direction: column; }
.final-card.featured { background: var(--gold); border-color: var(--gold); }
.final-card.featured .final-title { color: var(--navy); }
.final-card.featured .final-body { color: rgba(31, 58, 95, 0.85); }
.final-card.featured .final-btn { background: var(--navy); color: var(--white); border: none; }
.final-title { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.final-title svg { width: 16px; height: 16px; }
.final-body { font-size: 14px; line-height: 1.55; color: var(--text-on-dark); margin-bottom: 22px; flex: 1; }
.final-btn { display: inline-block; background: transparent; color: var(--white); padding: 10px 20px; border-radius: 5px; font-size: 13px; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.final-btn:hover { background: rgba(255, 255, 255, 0.1); }
.final-card.featured .final-btn:hover { background: var(--navy-dark); }
.footer { background: var(--navy-dark); color: #9BAFC7; padding: 48px 0 24px; font-size: 13px; line-height: 1.75; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 24px; }
@media (min-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 32px; } }
.foot-h { color: var(--white); font-size: 12px; font-weight: 500; margin-bottom: 12px; letter-spacing: 0.6px; text-transform: uppercase; }
.foot-link { display: block; color: #9BAFC7; margin-bottom: 4px; font-size: 13px; }
.foot-link:hover { color: var(--white); }
.copy { font-size: 12px; color: #6B7E96; text-align: center; }
.modal-overlay { position: fixed; inset: 0; background: rgba(19, 36, 60, 0.65); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); max-width: 480px; width: 100%; padding: 36px 32px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; }
.modal-close:hover { background: var(--bg); }
.modal h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 14px; font-family: inherit; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 80px; }
.modal .btn { width: 100%; justify-content: center; background: var(--navy); color: var(--white); }
.modal .btn:hover { background: var(--navy-dark); }
.modal-note { font-size: 12px; color: var(--text-light); margin-top: 14px; text-align: center; line-height: 1.5; }
.legal { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); color: var(--navy); margin-bottom: 12px; }
.legal-date { font-size: 13px; color: var(--text-light); margin-bottom: 32px; font-style: italic; }
.legal h2 { font-size: 20px; margin-top: 36px; margin-bottom: 14px; }
.legal h3 { font-size: 16px; color: var(--navy); margin-top: 22px; margin-bottom: 10px; }
.legal p { margin-bottom: 14px; font-size: 15px; line-height: 1.7; color: var(--text); }
.legal ul { margin: 10px 0 18px 24px; }
.legal ul li { margin-bottom: 8px; font-size: 15px; line-height: 1.65; color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 14px; }
.legal table td { padding: 10px 14px; border: 1px solid var(--border-strong); vertical-align: top; }
.legal table td:first-child { background: var(--bg); font-weight: 500; color: var(--navy); width: 38%; }
.legal-callout { background: var(--bg); border-left: 3px solid var(--gold); padding: 14px 18px; margin: 14px 0 24px; font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--navy); margin-bottom: 24px; }
.legal-back:hover { text-decoration: underline; }
