/* VELYN — feuille de style partagée par toutes les pages du dossier /velyn/
   (velyn.php, support.php, conditions.php, confidentialite.php).
   Indépendante du reste d'Eyefind : aucune règle importée d'ailleurs. */

:root {
  --bg: #0A0908;
  --bg-2: #121110;
  --bg-3: #1A1815;
  --ink: #F2EEE7;
  --ink-soft: #ADA495;
  --ink-faint: #6E665A;
  --champagne: #D9BE8C;
  --champagne-dim: #8F7C5C;
  --line: rgba(217, 190, 140, 0.16);
  --line-soft: rgba(242, 238, 231, 0.08);
  --radius-md: 10px;
  --container: 1180px;
  --ff-display: "Cormorant Garamond", serif;
  --ff-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--champagne);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--champagne-dim); }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; letter-spacing: 0.01em; margin: 0; color: var(--ink); }
.section-head { max-width: 600px; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; margin: 18px 0 16px; font-weight: 400; }
.section-head p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; font-weight: 300; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s cubic-bezier(.16,.6,.2,1), transform 0.9s cubic-bezier(.16,.6,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.7s cubic-bezier(.16,.6,.2,1), transform 0.7s cubic-bezier(.16,.6,.2,1); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: 0.035; mix-blend-mode: overlay; }

/* ================= HEADER ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 28px 0;
  transition: padding 0.5s cubic-bezier(.16,.6,.2,1), border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; background: rgba(10,9,8,0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: -1; opacity: 0; transition: opacity 0.5s ease;
}
.site-header.scrolled { padding: 16px 0; border-color: var(--line-soft); }
.site-header.scrolled::before { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--ff-body); font-weight: 500; font-size: 15px; letter-spacing: 0.32em; }
.brand img { height: 20px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: 38px; }
nav.main-nav a { font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); transition: color 0.4s ease; }
nav.main-nav a:hover { color: var(--champagne); }
.nav-toggle { display: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; }
.nav-toggle svg { width: 15px; height: 15px; color: var(--ink-soft); }

/* ================= HERO (homepage) ================= */
.hero { padding: 168px 0 90px; position: relative; overflow: hidden; }
.hero-scene {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 78% 8%, rgba(217,190,140,0.10), transparent 60%),
              linear-gradient(180deg, #0D0C0A 0%, #0A0908 55%, #080706 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(242,238,231,0.025) 0 1px, transparent 1px 120px),
                     repeating-linear-gradient(0deg, rgba(242,238,231,0.02) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 75%, transparent);
}
.hero-skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  display: flex; align-items: flex-end; gap: 3px; opacity: 0.9;
  mask-image: linear-gradient(180deg, transparent, #000 30%);
}
.hero-skyline i {
  display: block; flex: 0 0 auto; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(26,24,21,0.9), rgba(10,9,8,0.98));
  border-top: 1px solid rgba(217,190,140,0.08);
}
.hero-skyline i::after {
  content: ""; position: absolute; top: 14px; left: 30%; width: 2px; height: 2px;
  box-shadow: 0 24px 0 0 rgba(217,190,140,0.35), 12px 52px 0 0 rgba(217,190,140,0.2),
              -4px 80px 0 0 rgba(217,190,140,0.28), 18px 110px 0 0 rgba(217,190,140,0.18),
              6px 150px 0 0 rgba(217,190,140,0.3);
  border-radius: 50%;
}
.hero-glow { position: absolute; top: 6%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(217,190,140,0.09), transparent 68%); filter: blur(10px); pointer-events: none; }

.hero-inner { position: relative; text-align: center; }
.hero-eyebrow { display: flex; justify-content: center; margin-bottom: 26px; }
.velyn-word {
  display: block; margin: 0 auto 22px; width: min(480px, 72vw);
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 1.1s cubic-bezier(.16,.6,.2,1) forwards; animation-delay: 0.15s;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero-tagline { font-family: var(--ff-display); font-style: italic; font-size: clamp(18px, 2.1vw, 24px); font-weight: 400; color: var(--champagne); letter-spacing: 0.02em; margin: 0 0 20px; }
.hero-lede { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 420px; margin: 0 auto; font-weight: 300; }

/* ================= PAGE HERO (pages secondaires) ================= */
.page-hero { padding: 156px 0 46px; border-bottom: 1px solid var(--line-soft); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 24px; transition: color 0.4s ease;
}
.back-link:hover { color: var(--champagne); }
.back-link svg { width: 12px; height: 12px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 16px 0 0; font-weight: 400; }
.page-hero .page-sub { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); max-width: 520px; line-height: 1.65; font-weight: 300; }

/* ================= EYEFIND STORE (homepage) ================= */
.partner-section { padding: 100px 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.partner-note { max-width: 480px; margin: 26px auto 0; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; gap: 12px; text-align: left; }
.partner-note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--champagne-dim); margin-top: 2px; }
.partner-note p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-faint); font-weight: 300; }

.scope-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin-top: 56px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.scope-strip span {
  font-family: var(--ff-display); font-size: 16px; color: var(--ink-soft);
  padding: 18px 26px; border-left: 1px solid var(--line-soft);
  transition: color 0.4s ease;
}
.scope-strip span:first-child { border-left: none; }
.scope-strip span:hover { color: var(--champagne); }

/* ================= VELYN COMMERCE ENGINE (homepage) ================= */
.engine { padding: 110px 0; }
.engine-mark { display: flex; justify-content: center; margin-bottom: 22px; }
.engine .section-head h2 { line-height: 1.15; }
.engine-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 64px; position: relative; }
.engine-rail { position: absolute; top: 21px; left: 8%; right: 8%; height: 1px; background: var(--line-soft); }
.engine-rail-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: linear-gradient(90deg, transparent, var(--champagne)); transition: width 1.2s cubic-bezier(.16,.6,.2,1); }
.engine-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; position: relative; }
.engine-step .es-node {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  position: relative; z-index: 2; transition: border-color 0.7s ease, box-shadow 0.7s ease;
}
.engine-step.is-active .es-node { border-color: var(--champagne); box-shadow: 0 0 0 1px var(--champagne) inset, 0 0 24px rgba(217,190,140,0.3); }
.engine-step .es-node::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--champagne-dim); opacity: 0; transition: opacity 0.7s ease; }
.engine-step.is-active .es-node::after { opacity: 1; }
.engine-step h3 { font-family: var(--ff-display); font-size: 15.5px; font-weight: 400; color: var(--ink-faint); transition: color 0.7s ease; margin: 0; }
.engine-step.is-active h3 { color: var(--champagne); }

/* ================= CLOSING (homepage) ================= */
.closing { padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.closing-glow { position: absolute; top: 50%; left: 50%; width: 760px; height: 380px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(217,190,140,0.08), transparent 72%); pointer-events: none; }
.closing .eyebrow { justify-content: center; margin-bottom: 24px; }
.closing .eyebrow::before { display: none; }
.closing h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 400; line-height: 1.25; max-width: 680px; margin: 0 auto 16px; font-style: italic; font-family: var(--ff-display); }
.closing p { font-size: 14.5px; color: var(--ink-soft); max-width: 440px; margin: 0 auto; line-height: 1.7; font-weight: 300; }

/* ================= SUPPORT — grille de catégories ================= */
.support-section { padding: 60px 0 100px; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.support-card { background: var(--bg); padding: 34px; }
.support-card .sc-index { font-family: var(--ff-display); font-size: 13px; color: var(--champagne-dim); display: block; margin-bottom: 14px; }
.support-card h2 { font-size: 19px; font-weight: 500; margin: 0 0 10px; }
.support-card p { font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; font-weight: 300; }
.support-note { max-width: 640px; margin: 46px auto 0; text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--ink-faint); font-weight: 300; }

/* ================= LEGAL (conditions / confidentialité) ================= */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 70px; padding: 56px 0 110px; align-items: start; }
.legal-toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 12px; }
.legal-toc a { font-size: 12px; letter-spacing: 0.03em; color: var(--ink-faint); line-height: 1.5; transition: color 0.35s ease; }
.legal-toc a:hover { color: var(--champagne); }
.legal-body { max-width: 680px; }
.legal-body section { padding: 30px 0; border-top: 1px solid var(--line-soft); }
.legal-body section:first-child { border-top: none; padding-top: 0; }
.legal-body h2 { font-size: 21px; font-weight: 500; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; }
.legal-body h2 .lb-num { font-family: var(--ff-display); font-size: 15px; color: var(--champagne-dim); font-weight: 400; }
.legal-body p { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 14px; font-weight: 300; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); font-weight: 300; margin-bottom: 6px; }
.legal-updated { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-top: -20px; margin-bottom: 40px; }

/* ================= FOOTER ================= */
footer.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); padding: 54px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--line-soft); }
.footer-brand p { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-faint); max-width: 260px; line-height: 1.6; font-weight: 300; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); margin: 0 0 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col a { font-size: 13px; color: var(--ink-soft); transition: color 0.4s ease; }
.footer-col a:hover { color: var(--champagne); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: 11px; color: var(--ink-faint); line-height: 1.6; max-width: 600px; font-weight: 300; }
.footer-bottom .fb-tag { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .engine-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .engine-rail, .engine-rail-fill { display: none; }
  .scope-strip span { padding: 14px 18px; font-size: 14.5px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 40px; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 140px 0 70px; }
  .hero-skyline { height: 28%; }
  .page-hero { padding: 132px 0 38px; }
  .partner-section { padding: 80px 0; }
  .engine { padding: 90px 0; }
  .closing { padding: 90px 0; }
  .support-section { padding: 46px 0 70px; }
  .legal-layout { padding: 34px 0 80px; }
  .engine-steps { grid-template-columns: repeat(2, 1fr); }
  .scope-strip span { flex: 1 1 45%; border-left: none; border-top: 1px solid var(--line-soft); text-align: center; }
  .scope-strip span:first-child { border-top: none; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 40px; }
}
