/* ============================================================
   Krys × EP Digital X — surcouche V2
   Reprend styles.css (style partenaire) + ajouts Krys
   ============================================================ */

:root {
  --orange: #F97316;
  --orange-soft: #FFF2E8;
}

/* ---------- Co-branding Krys dans la nav ---------- */
.cobrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cobrand .sep {
  width: 1px;
  height: 26px;
  background: var(--line);
}
.cobrand .krys-logo { height: 26px; width: auto; display: block; }

/* ---------- Liens de nav + menu mobile ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue); }

.nav-actions { display: inline-flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px 20px;
  background: rgba(250, 245, 238, 0.98);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Badge Google (hero) ---------- */
.gbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 24px;
}
.gbadge .stars { display: inline-flex; gap: 1px; color: #F5A623; }
.gbadge small { color: var(--muted); font-weight: 500; }

/* ---------- Bandeau avis Google ---------- */
.google-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.google-band .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.google-band .stars { display: inline-flex; gap: 2px; color: #F5A623; }
.google-band small { color: var(--muted); font-weight: 500; }

/* ---------- Hero visual (carte stats + démo) ---------- */
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 12px;
}
.demo-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy), #14224f);
  display: grid;
  place-items: center;
}
.demo-thumb .play {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(10,18,53,0.5);
}
.demo-thumb .cap {
  position: absolute; bottom: 12px; left: 14px;
  color: #fff; font-size: 13px; font-weight: 600;
}
.demo-thumb .cap small { display:block; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ---------- Comparatif avant/après ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-col {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
}
.compare-col.after { background: var(--navy); color: #fff; }
.compare-col h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.compare-col.after h3 { color: #fff; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.compare-col li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.compare-col.after li { color: rgba(255,255,255,0.82); }
.compare-col li svg { flex-shrink: 0; margin-top: 3px; color: var(--muted); }
.compare-col.after li svg { color: var(--orange); }

/* ---------- Calculateur ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.calc-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 30px;
}
.calc-field { margin-bottom: 24px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px;
}
.calc-field label .val { color: var(--blue); font-family: var(--font-display); font-size: 18px; }
.calc-field input[type=range] { width: 100%; accent-color: var(--blue); height: 6px; }
.calc-results {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 34px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.calc-results::after {
  content:""; position:absolute; inset:auto -100px -140px auto;
  width:320px; height:320px; border-radius:50%;
  background: radial-gradient(circle, rgba(249,115,22,0.28), transparent 65%);
}
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; position: relative; z-index: 1; border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 16px; }
.calc-row:last-child { border-bottom: none; padding-bottom: 0; }
.calc-row .lab { font-size: 14.5px; color: rgba(255,255,255,0.82); max-width: 58%; }
.calc-row .num { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.calc-row.hl .num { color: var(--orange); }
.calc-note { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }

/* ---------- Preuve boutique pilote ---------- */
.proof-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.proof-card .krys-logo { height: 30px; }
.proof-card b { font-size: 17px; color: var(--navy); }
.proof-card p { color: var(--muted); font-size: 15px; max-width: 420px; }

/* ---------- Barre d'action sticky ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(250,245,238,0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -18px rgba(10,18,53,0.25);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1);
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar .btn { flex: 1; padding: 14px 10px; font-size: 14.5px; }
.sticky-bar .btn svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) {
  .sticky-bar { display: none; }
}
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sticky-bar .btn { padding: 13px 6px; font-size: 13px; }
  .gbadge { margin-top: 18px; }
}
/* marge basse pour ne pas masquer le footer derrière la barre sticky */
body { padding-bottom: 76px; }
@media (min-width: 901px) { body { padding-bottom: 0; } }

/* ---------- Sections génériques ---------- */
.sec { padding: 92px 0; }
.sec--alt { background: var(--cream-3); }
@media (max-width: 980px) { .sec { padding: 72px 0; } }

/* prix dans une finance-card */
.price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 4px 0 8px;
}
.price-value small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.finance-card.is-featured { box-shadow: 0 2px 4px rgba(10,18,53,0.06), 0 32px 64px -22px rgba(7,64,249,0.3); outline: 2px solid var(--blue); }

/* ---------- Bandeau urgence 100 premières ---------- */
.urgency {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  border-radius: 999px; padding: 9px 18px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 20px;
}
.urgency b { color: var(--orange); }
.urgency .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(249,115,22,.6); animation: upulse 1.8s infinite; flex-shrink: 0;
}
@keyframes upulse { 0%{box-shadow:0 0 0 0 rgba(249,115,22,.55)} 70%{box-shadow:0 0 0 8px rgba(249,115,22,0)} 100%{box-shadow:0 0 0 0 rgba(249,115,22,0)} }
@media (prefers-reduced-motion: reduce) { .urgency .pulse { animation: none; } }

.price-strike { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 17px; margin-left: 8px; }
.founder-note {
  margin-top: 18px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--navy);
  background: var(--orange-soft); border-radius: 14px; padding: 14px 20px;
}
.founder-note b { color: #C2410C; }

/* ---------- Bouton flottant contact + popup ---------- */
.contact-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  display: none; align-items: center; gap: 11px;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  border-radius: 999px; padding: 11px 20px 11px 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 38px -12px rgba(10,18,53,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(10,18,53,.55); }
.contact-fab .fab-ava { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-fab .fab-ava .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--navy); }
@media (min-width: 901px) { .contact-fab { display: inline-flex; } }

.contact-pop {
  position: fixed; right: 22px; bottom: 84px; z-index: 96;
  width: 348px; max-width: calc(100vw - 36px);
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -18px rgba(10,18,53,.5);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.contact-pop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.contact-pop .pop-head {
  background: var(--navy); color: #fff; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
}
.contact-pop .pop-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; }
.contact-pop .pop-row {
  display: flex; gap: 14px; align-items: center;
  padding: 15px 18px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: background .15s ease;
}
.contact-pop .pop-row:last-child { border-bottom: none; }
.contact-pop .pop-row:hover { background: var(--cream); }
.contact-pop .pop-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: rgba(7,64,249,.08); color: var(--blue); }
.contact-pop .pop-row.wa .pop-ico { background: rgba(37,211,102,.13); color: #1FA855; }
.contact-pop .pop-row > span:last-child { display: flex; flex-direction: column; }
.contact-pop .pop-t { display: block; font-weight: 600; font-size: 15px; color: var(--navy); }
.contact-pop .pop-s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* photo dans le bouton contact */
.contact-fab .fab-ava { background: transparent; overflow: visible; }
.contact-fab .fab-ava img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }

/* favicons dans le bandeau de logos */
.logo-item .lg-favicon { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }

/* ---------- Parcours (flux connecté) ---------- */
.flow { display: flex; align-items: flex-start; justify-content: center; flex-wrap: nowrap; gap: 2px; margin-top: 32px; }
.flow-step { flex: 1 1 0; min-width: 0; text-align: center; padding: 4px 5px; }
.flow-ico { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card); display: grid; place-items: center; color: var(--blue); }
.flow-step.is-accent .flow-ico { color: var(--orange); background: var(--orange-soft); box-shadow: none; }
.flow-ico img { width: 32px; height: 32px; object-fit: contain; }
.flow-inf { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--orange); }
.flow-step h3 { font-size: 15px; color: var(--navy); font-weight: 700; }
.flow-step .platforms { font-size: 11.5px; color: var(--blue); font-weight: 600; margin-top: 5px; }
.flow-step p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.flow-step .soon { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--orange); border-radius: 999px; padding: 2px 7px; margin-left: 4px; vertical-align: middle; }
.flow-arrow { flex: 0 0 auto; color: var(--orange); margin-top: 22px; opacity: .65; }
@media (max-width: 980px) {
  .flow { flex-direction: column; align-items: center; flex-wrap: wrap; gap: 2px; }
  .flow-step { flex: none; max-width: 320px; }
  .flow-arrow { transform: rotate(90deg); margin: 2px 0; }
}

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h3 { font-family: var(--font-display); font-size: 18px; color: var(--navy); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 8px 0; }
.legal a { color: var(--blue); }
.footer a { color: #cdd6ee; text-decoration: none; }
