/* ==========================================================================
   Revelia Evolution — Design system
   ========================================================================== */

@font-face {
  font-family: "Lovelo";
  src: url("../fonts/Lovelo-Black.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de marque */
  --navy-900: #201748;
  --navy-800: #2b2060;
  --navy-700: #382a7a;
  --gold-500: #e3a72e;
  --gold-600: #c98f1e;
  --gold-100: #fbeacb;

  /* Neutres */
  --paper: #faf8f4;
  --paper-alt: #f2ede3;
  --ink: #241b3f;
  --ink-soft: #564d74;
  --white: #ffffff;
  --border: #e7e0d4;

  /* Feedback */
  --success: #3f8361;
  --error: #c14545;

  /* Typo */
  --font-display: "Lora", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-logo-word: "League Spartan", "Inter", sans-serif;
  --font-logo-sub: "Lovelo", "Inter", sans-serif;

  /* Rythme */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -25px rgba(32, 23, 72, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(32, 23, 72, 0.25);
  --container: 1160px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(227, 167, 46, 0.6);
}
.btn-outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline:hover {
  background: var(--navy-900);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-ghost-light:hover {
  background: var(--white);
  color: var(--navy-900);
}
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}
.logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo-text strong {
  font-family: var(--font-logo-word);
  font-size: 1.5rem;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo-text span {
  display: block;
  font-family: var(--font-logo-sub);
  font-size: 0.68rem;
  letter-spacing: 0.16em; /* repris par le JS (justifyLogoText) une fois les polices chargées */
  color: var(--gold-500);
  font-weight: 400;
  white-space: nowrap;
  margin-top: 0px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy-900); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
.nav-phone svg { width: 18px; height: 18px; color: var(--gold-600); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy-900);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ---- Hero ---- */
.hero {
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-100), transparent 70%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  margin-bottom: 22px;
}
.hero .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.hero-badge svg { width: 20px; height: 20px; color: var(--gold-600); }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
  min-height: 380px;
  padding: 40px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-art .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold-500); line-height: 1; }
.hero-art blockquote { font-family: var(--font-display); font-size: 1.25rem; margin: 10px 0 20px; }
.hero-art cite { font-style: normal; font-weight: 700; color: var(--gold-100); font-size: 0.9rem; }

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-navy .section-head p { color: rgba(255,255,255,0.75); }

/* ---- Offer cards (home) ---- */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.offer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 38px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.offer-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.offer-icon svg { width: 28px; height: 28px; color: var(--gold-600); }
.offer-card h3 { font-size: 1.4rem; }
.offer-card p { color: var(--ink-soft); flex-grow: 1; }
.offer-card .btn { align-self: flex-start; margin-top: 20px; }

/* ---- Module / formation cards ---- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.module-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: 0.08em;
}
.module-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.module-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; flex-grow: 1; }
.module-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
}
.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.module-meta span { display: inline-flex; align-items: center; gap: 5px; }
.module-meta svg { width: 14px; height: 14px; color: var(--gold-600); flex-shrink: 0; }

/* ---- Steps / phases ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step-card { position: relative; padding: 34px 28px 28px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---- Pricing / formulas ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
}
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--gold-500); box-shadow: var(--shadow-soft); }
.price-card .ribbon {
  position: absolute; top: -14px; right: 32px;
  background: var(--gold-500); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 1.5rem; }
.price-card .price-meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.price-card li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.price-card li svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ---- Values (a-propos) ---- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: var(--white); border-radius: var(--radius-md); padding: 28px 24px; border: 1px solid var(--border); text-align: left; }
.value-card h3 { font-size: 1.1rem; }
.value-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.testimonial-card p { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---- Partners ---- */
.partners-row { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; opacity: 0.85; }
.partners-row img { max-height: 72px; filter: grayscale(1); transition: filter 0.2s ease, opacity 0.2s ease; }
.partners-row img:hover { filter: grayscale(0); }

/* ---- FAQ accordion ---- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}
.faq-question .icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--paper-alt);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-item[open] .faq-question .icon { background: var(--gold-500); transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-answer a { color: var(--gold-600); font-weight: 700; }
.faq-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 44px 0 16px;
}
.faq-category:first-child { margin-top: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 0; max-width: 46ch; }
.cta-band .btn-primary { flex-shrink: 0; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list svg { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.contact-info-list strong { display: block; font-size: 0.95rem; }
.contact-info-list span, .contact-info-list a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.contact-info-list a:hover { color: var(--gold-500); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 42px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--navy-900); }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(227, 167, 46, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 700; font-size: 0.92rem; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--gold-500); }

/* ---- Page hero (sous-pages) ---- */
.page-hero { padding: 56px 0 48px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 22ch; }
.page-hero p { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--navy-900); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .offer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 72px 16px auto 16px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); flex-direction: column; align-items: stretch; padding: 22px; gap: 18px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.25s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-phone { justify-content: center; }
  .menu-toggle { display: inline-flex; }
  .module-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
