/* ==========================================================================
   RevOrizon — Feuille de style principale
   Palette "aurore" inspirée du visuel de marque : bleu → vert d'eau → jaune pâle
   ========================================================================== */

:root {
  /* Couleurs de base */
  --bg: #F5F8F7;
  --bg-elevated: #FFFFFF;
  --ink: #142524;
  --ink-soft: #4B615E;
  --ink-faint: #7C8E8B;
  --line: rgba(20, 37, 36, 0.10);
  --line-strong: rgba(20, 37, 36, 0.18);

  /* Accent de marque */
  --teal: #0E6E64;
  --teal-hover: #0A554D;
  --teal-tint: #E3F1EE;

  /* Teintes aurore (décor uniquement, jamais pour du texte) */
  --aurora-blue: #7FDDE6;
  --aurora-blue-deep: #4FC6D4;
  --aurora-green: #C3E8A8;
  --aurora-green-deep: #A3D988;
  --aurora-yellow: #F4E2A0;
  --aurora-yellow-deep: #EAD07A;

  /* Typographie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rythme */
  --container: 1120px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 480; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

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

.eyebrow-note {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-faint);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding-left: 0;
  padding-right: 0;
}

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 247, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] { position: relative; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* ---------- Aurore décorative ---------- */
.aurora {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aurora::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -38%;
  width: 150%;
  aspect-ratio: 2.2 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(127, 221, 230, 0.55), transparent 60%),
    radial-gradient(ellipse at 62% 30%, rgba(195, 232, 168, 0.45), transparent 58%),
    radial-gradient(ellipse at 82% 55%, rgba(244, 226, 160, 0.42), transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(79, 198, 212, 0.35), transparent 60%);
  filter: blur(46px);
}

.aurora--hero::before { bottom: -55%; opacity: 1; }
.aurora--soft::before { bottom: -60%; width: 130%; opacity: 0.55; filter: blur(60px); }

.sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.8;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { margin-bottom: 0; }

.hero {
  padding: 76px 0 120px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead {
  font-size: 1.14rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-l);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 30px 60px -34px rgba(20, 37, 36, 0.25);
}
.hero-figure .stat-row + .stat-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-figure .stat-label { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 2px; }
.hero-figure .stat-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

.profile-photo {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--teal-tint);
}
.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.profile-photo--contact {
  margin-top: 36px;
  width: 100%;
  max-width: 360px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Grilles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Cartes pôles d'accompagnement (couleurs signifiantes) ---------- */
.pillar {
  border-radius: var(--radius-m);
  padding: 30px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-top: 4px solid var(--pillar-color, var(--teal));
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { margin-bottom: 0; font-size: 0.98rem; }
.pillar--retraite { --pillar-color: var(--aurora-blue-deep); }
.pillar--transmission { --pillar-color: var(--aurora-green-deep); }
.pillar--fiscalite { --pillar-color: var(--aurora-yellow-deep); }
.pillar--immobilier { --pillar-color: var(--teal); }

/* ---------- Étapes (process réellement séquentiel) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 6px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: 0.95rem; }

/* ---------- Outils / simulateurs ---------- */
.tool-card {
  display: block;
  border-radius: var(--radius-m);
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tool-card:hover {
  border-color: var(--tool-color, var(--teal));
  box-shadow: 0 22px 44px -30px rgba(20, 37, 36, 0.35);
  transform: translateY(-2px);
}
.tool-card .tool-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tool-color, var(--teal));
  margin-bottom: 12px;
}
.tool-card h3 { margin-bottom: 8px; color: var(--ink); }
.tool-card p { font-size: 0.95rem; margin-bottom: 0; }
.tool-card--capital { --tool-color: var(--aurora-blue-deep); }
.tool-card--emprunt { --tool-color: var(--teal); }
.tool-card--per { --tool-color: var(--aurora-yellow-deep); }

/* ---------- Panneau simulateur ---------- */
.sim-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
@media (max-width: 860px) { .sim-panel { grid-template-columns: 1fr; } }

.sim-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sim-results {
  padding: 40px;
  background: var(--teal-tint);
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; }
.field input[type="number"],
.field input[type="range"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.result-block .result-label { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 4px; }
.result-block .result-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--teal);
  line-height: 1.1;
}
.result-block .result-sub { font-size: 0.85rem; color: var(--ink-faint); margin-top: 4px; }
.result-divider { height: 1px; background: var(--line-strong); }

.bar-chart { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar-chart span { display: block; height: 100%; }

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 8px;
}

/* ---------- Questionnaire ---------- */
.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 44px;
}
@media (max-width: 600px) { .quiz-shell { padding: 28px 22px; } }

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}
.quiz-progress .track {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress .fill {
  height: 100%;
  width: 0%;
  background: var(--teal);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.quiz-progress .count { font-size: 0.85rem; color: var(--ink-faint); white-space: nowrap; }

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.quiz-step h2 { font-size: 1.5rem; margin-bottom: 6px; }
.quiz-step .quiz-sub { margin-bottom: 26px; }

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.98rem;
  color: var(--ink);
}
.option-list label:hover { border-color: var(--teal); }
.option-list input { accent-color: var(--teal); width: 17px; height: 17px; flex-shrink: 0; }
.option-list input:checked ~ span { color: var(--teal); }
.option-list label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.quiz-nav { display: flex; justify-content: space-between; margin-top: 34px; }

.quiz-result .profile-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* ---------- Formulaire de contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-detail { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-detail .k { font-weight: 600; color: var(--ink); display: block; font-size: 0.92rem; }
.contact-detail .v { color: var(--ink-soft); font-size: 0.95rem; }

.calendly-embed {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 700px;
}

/* ---------- CTA bandeau ---------- */
.cta-band {
  border-radius: var(--radius-l);
  padding: 56px;
  text-align: left;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.72); }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-secondary:hover { border-color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-legal a { color: var(--ink-faint); }
.footer-legal a:hover { color: var(--teal); }

/* ---------- Pages simples (mentions, confidentialité) ---------- */
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose p, .prose li { max-width: 74ch; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5em; }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
