/* =========================================================
   LUNATI — shared stylesheet
   Identity: "night observatory" — midnight + iris + moonlight
   ========================================================= */

:root {
  /* Couleurs */
  --bg:        #090D1A;
  --bg-2:      #0B1124;
  --surface:   #101730;
  --surface-2: #16203D;
  --line:      rgba(255,255,255,.075);
  --line-2:    rgba(255,255,255,.14);

  --text:      #ECEFFB;
  --muted:     #9aa3c2;
  --dim:       #6a7396;

  --accent:    #8a84ff;   /* iris / cool moonlight */
  --accent-2:  #aaa6ff;
  --accent-ink:#0a0d1a;
  --glow:      rgba(138,132,255,.40);

  --moon:      #ecdfb9;   /* champagne lunaire — usage parcimonieux */
  --moon-2:    #fbf4de;

  /* Typo */
  --display: "Sora", system-ui, -apple-system, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Mesures */
  --container: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 11px;
  --section-y: clamp(72px, 8.5vw, 138px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambiance: subtle starfield + halo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(236,223,185,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 72% 14%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.3px 1.3px at 86% 58%, rgba(170,166,255,.5), transparent 60%),
    radial-gradient(1px 1px at 34% 72%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 84%, rgba(236,223,185,.4), transparent 60%),
    radial-gradient(1px 1px at 8% 64%, rgba(255,255,255,.35), transparent 60%);
  opacity: .5;
}
body::after {
  content: "";
  position: fixed;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 120vw);
  height: 720px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(138,132,255,.16), transparent 68%);
  filter: blur(20px);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; z-index: 1; padding-block: var(--section-y); }
main { position: relative; z-index: 1; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.45rem, 1.55rem + 3.8vw, 4.35rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.95rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .45vw, 1.42rem); letter-spacing: -.01em; }
p  { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.lead { font-size: clamp(1.05rem, .98rem + .45vw, 1.27rem); color: var(--muted); line-height: 1.62; }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 18px; font-size: 1.06rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-weight: 600; font-size: .96rem;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .3s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 rgba(138,132,255,0); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 34px -10px var(--glow); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9,13,26,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; color: var(--text); }
.brand .glyph { width: 26px; height: 26px; flex: none; }
.brand b { color: var(--accent-2); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.1rem); list-style: none; }
.nav-links a { font-size: .94rem; color: var(--muted); transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--text); }
/* The CTA inside .nav-links is reserved for the mobile dropdown; on desktop the CTA lives in .nav-actions */
.nav-links .btn { display: none; }
.nav-links .btn-primary { color: var(--accent-ink); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 9px; width: 42px; height: 38px; cursor: pointer; color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; z-index: 1; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(60px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-top: 24px; }
.hero h1 .accent { color: var(--accent-2); }
.hero .lead { margin-top: 26px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 36px; }
.hero-note { margin-top: 28px; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--dim); }

/* Signature visual: the moon + orbits */
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.orbit { transform-box: view-box; transform-origin: 240px 240px; }
.orbit-1 { animation: spin 26s linear infinite; }
.orbit-2 { animation: spin 17s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.twinkle { animation: tw 4s ease-in-out infinite; }
.twinkle.b { animation-delay: 1.3s; }
.twinkle.c { animation-delay: 2.6s; }
@keyframes tw { 0%,100% { opacity: .25; } 50% { opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  .orbit-1, .orbit-2, .twinkle { animation: none; }
}

/* =========================================================
   BANDE DE CONFIANCE
   ========================================================= */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { padding-block: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; justify-content: space-between; }
.trust-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.trust-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .38rem .9rem; }

/* =========================================================
   PILIERS (deux offres)
   ========================================================= */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 30px); }
.pillar {
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.pillar::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 100% 0%, rgba(138,132,255,.10), transparent 70%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pillar:hover::after { opacity: 1; }
.pillar-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(138,132,255,.12); border: 1px solid rgba(138,132,255,.22); margin-bottom: 22px; }
.pillar-ico svg { width: 24px; height: 24px; color: var(--accent-2); }
.pillar h3 { margin-bottom: 12px; }
.pillar > p { font-size: .98rem; }
.pillar-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.pillar-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; color: var(--muted); }
.pillar-list li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%; margin-top: .55em; flex: none;
  background: var(--accent); box-shadow: 0 0 8px var(--glow);
}

/* =========================================================
   PROCESS — moon phases
   ========================================================= */
.process { background: linear-gradient(180deg, transparent, rgba(138,132,255,.04), transparent); }
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 26px); margin-top: 8px; }
.phase { text-align: left; }
.phase-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pm { width: 52px; height: 52px; flex: none; }
.pm.full { filter: drop-shadow(0 0 12px rgba(236,223,185,.45)); }
.phase-num { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--dim); }
.phase h3 { font-size: 1.1rem; margin-bottom: 8px; }
.phase p { font-size: .9rem; line-height: 1.55; }
.phase-connect { height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); margin-bottom: 22px; }

/* =========================================================
   CAPACITÉS — grille
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.feature {
  background: rgba(255,255,255,.018);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.feature:hover { background: rgba(138,132,255,.05); border-color: var(--line-2); transform: translateY(-3px); }
.feature-ico { width: 38px; height: 38px; color: var(--accent-2); margin-bottom: 16px; }
.feature-ico svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { font-size: .88rem; line-height: 1.5; }

/* =========================================================
   SÉCURITÉ & CONFORMITÉ
   ========================================================= */
.secure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.secure-list { display: grid; gap: 14px; margin-top: 30px; }
.secure-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.secure-item svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; margin-top: 2px; }
.secure-item h3 { font-size: 1rem; margin-bottom: 4px; }
.secure-item p { font-size: .89rem; line-height: 1.5; }
.secure-visual { display: grid; place-items: center; }
.shield-wrap { position: relative; width: min(360px, 80%); aspect-ratio: 1; display: grid; place-items: center; }
.shield-wrap svg { width: 100%; height: 100%; overflow: visible; }
.ring-pulse { transform-box: view-box; transform-origin: 100px 100px; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:.35; transform: scale(1);} 50% { opacity:.7; transform: scale(1.04);} }
@media (prefers-reduced-motion: reduce){ .ring-pulse { animation: none; } }

/* =========================================================
   CTA finale
   ========================================================= */
.cta-band { position: relative; z-index: 1; }
.cta-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: clamp(18px, 2.5vw, 28px);
  padding: clamp(40px, 6vw, 84px) var(--pad);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 280px at 50% -10%, rgba(138,132,255,.22), transparent 70%);
  pointer-events: none;
}
.cta-card .inner { position: relative; max-width: 620px; margin-inline: auto; }
.cta-card h2 { margin: 18px 0 16px; }
.cta-card p { font-size: 1.08rem; margin-bottom: 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 280px; }
.footer-col h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { font-size: .92rem; color: var(--muted); transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; color: var(--dim); }
.footer-bottom .reg { color: var(--muted); }

/* =========================================================
   PAGE MENTIONS LÉGALES
   ========================================================= */
.page-hero { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); margin-top: 18px; }
.legal { max-width: 820px; }
.legal-block { padding-block: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
.legal-block:last-child { border-bottom: none; }
.legal-block h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.legal-block h2 .n { font-family: var(--mono); font-size: .9rem; color: var(--accent-2); font-weight: 500; }
.legal-block p { margin-bottom: 14px; line-height: 1.7; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.data-table th, .data-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.data-table th { width: 38%; color: var(--muted); font-weight: 500; font-family: var(--body); }
.data-table td { color: var(--text); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 15px; height: 15px; }

/* =========================================================
   RÉVÉLATION AU DÉFILEMENT
   ========================================================= */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .07s; }
html.js .reveal.d2 { transition-delay: .14s; }
html.js .reveal.d3 { transition-delay: .21s; }
html.js .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(9,13,26,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 14px var(--pad) 22px;
  }
  .site-header.menu-open .nav-links li { width: 100%; }
  .site-header.menu-open .nav-links a { display: block; width: 100%; padding: 11px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav-links .btn { display: inline-flex; margin-top: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; order: -1; }
  .pillars, .secure-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .hero-visual { max-width: 300px; }
}
