/* ═══════════════════════════════════════════════════════════════
   WIKIEHPAD - Landing Page
   Brand Book v1.0 (Décembre 2025)
   Colors: Bleu Nuit #1E3A5F · Bleu Profond #2C5282 · Or Doux #D4AF74
   Font: Sora (system sans-serif fallback)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bleu-nuit: #1E3A5F;
  --bleu-profond: #2C5282;
  --or-doux: #D4AF74;
  --or-light: #EBD9B8;
  --blanc: #FFFFFF;
  --text: #2C3E50;
  --text-muted: #4A5568;
  --text-subtle: #718096;
  --grey-98: #F8F9FA;
  --grey-95: #EDF2F7;
  --grey-91: #E2E8F0;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 16px 48px rgba(30, 58, 95, 0.12);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--bleu-profond); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bleu-nuit); }

button, input { font: inherit; color: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  color: var(--bleu-nuit);
  font-family: var(--font-body);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.3; letter-spacing: -0.005em; }
h3 { font-size: 1.375rem; line-height: 1.4; color: var(--bleu-profond); font-weight: 600; }
h4 { font-size: 0.95rem; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bleu-nuit); }

p { line-height: 1.7; }

.lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or-doux);
  margin-bottom: 16px;
}
.eyebrow.center { display: block; text-align: center; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-91);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 36px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.site-nav a:hover { color: var(--bleu-nuit); }
.site-nav .btn-primary { color: var(--blanc); padding-top: 10px; padding-bottom: 10px; }
.site-nav .btn-primary:hover { color: var(--blanc); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bleu-nuit);
  color: var(--blanc);
  border-color: var(--bleu-nuit);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.24);
}
.btn-primary:hover {
  background: var(--bleu-profond);
  border-color: var(--bleu-profond);
  color: var(--blanc);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--bleu-nuit);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--bleu-profond); background: var(--grey-98); }

.btn-outline {
  background: transparent;
  color: var(--bleu-nuit);
  border-color: var(--bleu-nuit);
}
.btn-outline:hover { background: var(--bleu-nuit); color: var(--blanc); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(212, 175, 116, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(44, 82, 130, 0.08), transparent 60%),
    linear-gradient(180deg, var(--grey-98) 0%, var(--blanc) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 .hl {
  color: var(--bleu-profond);
  background: linear-gradient(180deg, transparent 62%, rgba(212, 175, 116, 0.35) 62%);
  padding: 0 2px;
}
.hero-copy .lead { margin-bottom: 32px; max-width: 52ch; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 116, 0.18);
  color: var(--or-doux);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Hero embed wrapper (when moon_form is mounted in place of the static hero-card).
   The injected .moonform .form-card carries its own shadow/border/padding, so this
   wrapper stays transparent and just provides the grid cell on desktop. */
.hero-embed {
  width: 100%;
  align-self: start;
  position: relative;
}
.hero-embed .moonform .form-card {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-91);
  border-radius: 20px;
}
@media (max-width: 960px) { .hero-embed { max-width: 560px; } }

/* Hero card / form */
.hero-card {
  background: var(--blanc);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-91);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--or-doux);
  color: var(--bleu-nuit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(212, 175, 116, 0.4);
}

.hero-card h3 {
  color: var(--bleu-nuit);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.hero-card > p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.hero-form { display: flex; flex-direction: column; gap: 14px; }
.hero-form label { display: flex; flex-direction: column; gap: 6px; }
.hero-form label span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.hero-form input {
  padding: 12px 16px;
  border: 1.5px solid var(--grey-91);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  background: var(--grey-98);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.hero-form input:focus {
  outline: none;
  border-color: var(--bleu-profond);
  background: var(--blanc);
  box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.12);
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 4px;
}

/* ── Mission ── */
.mission {
  padding: 96px 0;
  background: var(--blanc);
}

.mission-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.mission-inner h2 { margin-bottom: 32px; }

.pull-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  font-style: italic;
  color: var(--bleu-nuit);
  padding: 32px 40px;
  margin: 0 auto 32px;
  max-width: 720px;
  position: relative;
  border-left: 3px solid var(--or-doux);
  text-align: left;
  background: var(--grey-98);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mission-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Section headers ── */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 12px; }
.section-intro { color: var(--text-muted); font-size: 1rem; }

/* ── Values ── */
.values {
  padding: 96px 0;
  background: var(--grey-98);
}

.values-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--blanc);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--grey-91);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--or-light);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 116, 0.16), rgba(212, 175, 116, 0.06));
  color: var(--or-doux);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.value-card p { font-size: 0.95rem; line-height: 1.65; color: var(--text-muted); }

/* ── Process / Steps ── */
.process {
  padding: 96px 0;
  background: var(--blanc);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--grey-98);
  padding: 36px 32px;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--grey-91);
}

.step-num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--or-doux);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.step h3 { margin-bottom: 10px; font-size: 1.25rem; }
.step p { font-size: 0.95rem; line-height: 1.65; color: var(--text-muted); }
.step p strong { color: var(--bleu-nuit); font-weight: 700; }

/* ── Reassurance ── */
.reassurance {
  padding: 96px 0;
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.reassurance h2 { color: var(--blanc); margin-bottom: 20px; }
.reassurance .eyebrow { color: var(--or-doux); }

.reassurance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.reassurance-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.reassurance-copy .btn-primary {
  background: var(--or-doux);
  color: var(--bleu-nuit);
  border-color: var(--or-doux);
  box-shadow: 0 6px 20px rgba(212, 175, 116, 0.32);
}
.reassurance-copy .btn-primary:hover {
  background: var(--or-light);
  border-color: var(--or-light);
  color: var(--bleu-nuit);
}

.reassurance-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.reassurance-list li {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reassurance-list strong {
  display: block;
  font-size: 1rem;
  color: var(--or-doux);
  margin-bottom: 8px;
  font-weight: 600;
}

.reassurance-list span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Final CTA ── */
.cta {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(212, 175, 116, 0.14), transparent 60%),
    var(--grey-98);
  text-align: center;
}

.cta-inner { max-width: 720px; margin: 0 auto; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ── Footer ── */
.site-footer {
  background: var(--bleu-nuit);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  max-width: 320px;
}

.footer-logo { height: 72px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-nav h4 {
  color: var(--or-doux);
  margin-bottom: 16px;
  font-size: 0.8rem;
}

.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.footer-nav a:hover { color: var(--blanc); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   V2 PAGE (index-v2.html) additions
   Stats ribbon, 4-pillar grid, types cards, FAQ, 5-value grid
   ═══════════════════════════════════════════════════════════════ */

/* Stats ribbon */
.stats {
  padding: 48px 0;
  background: var(--bleu-nuit);
  color: var(--blanc);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  color: var(--or-doux);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* 4 Pillars */
.pillars { padding: 96px 0; background: var(--blanc); }

.pillars-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--grey-98);
  border: 1px solid var(--grey-91);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--or-light);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(30, 58, 95, 0.04));
  color: var(--bleu-nuit);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-stat {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--or-doux);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pillar-card h3 {
  font-size: 1.15rem;
  color: var(--bleu-nuit);
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Types cards */
.types { padding: 96px 0; background: var(--grey-98); }

.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.type-card {
  background: var(--blanc);
  border: 1px solid var(--grey-91);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 3px solid var(--or-doux);
  transition: transform var(--transition), box-shadow var(--transition);
}
.type-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.type-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--bleu-nuit);
}
.type-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* 5-column values grid variant */
.values-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* FAQ */
.faq { padding: 96px 0; background: var(--blanc); }
.faq-inner { max-width: 860px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--grey-98);
  border: 1px solid var(--grey-91);
  border-radius: var(--radius-sm);
  padding: 0;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--or-light); }

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--bleu-nuit);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 52px;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--or-doux);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* V2 background alternation
   Sequence: hero(gradient) → stats(navy) → process(white) → types(grey)
   → values(white) → faq(grey) → cta(white) → footer(navy) */
.page-v2 .values { background: var(--blanc); }
.page-v2 .faq { background: var(--grey-98); }
.page-v2 .cta {
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(212, 175, 116, 0.14), transparent 60%),
    var(--blanc);
}

/* Footer legal ribbon */
.footer-legal {
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
}
.footer-legal p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 820px;
}

/* ═══ Responsive ═══ */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 520px; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .types-grid { grid-template-columns: 1fr; }

  .reassurance-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-nav { gap: 12px; }
  .site-nav a:not(.btn) { display: none; }

  .hero { padding: 40px 0 56px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-card { padding: 24px; }

  .mission, .values, .process, .reassurance, .cta { padding: 64px 0; }

  .values-grid { grid-template-columns: 1fr; }
  .values-grid-5 { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .reassurance-list { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 0.95rem; padding-right: 44px; }

  .pull-quote { padding: 24px 24px 24px 28px; font-size: 1.1rem; }

  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cta-actions .btn { width: 100%; }
}
