/* =====================================================================
   Elvoxa — landing  ·  base minimaliste (noir / corail discret)
   Pas d'effet verre, pas de halos, pas de fil. Cartes plates et nettes.
   ===================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #17171c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --fg: #f3f1ea;
  --fg-2: #a7a399;
  --fg-3: #8f8b80;

  --gold: #FF8A3D;
  --gold-2: #FF8A3D;

  --f-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --maxw: 1040px;
  --pad: clamp(1.25rem, 5vw, 2.25rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--f-head);
  color: var(--fg);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-weight: 500; }
p { margin: 0; }
a { color: var(--gold-2); text-decoration: none; }
button { touch-action: manipulation; }
::selection { background: rgba(255, 138, 61, 0.25); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: fixed; left: 1rem; top: -60px; z-index: 200;
  background: var(--gold); color: #1c1503; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 8px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* décor de fond retiré : fond uni + un très léger dégradé en haut */
.backdrop { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, #121115 0%, var(--bg) 40%); }
.backdrop__grid, .backdrop__grain, .orb, .thread { display: none !important; }

/* ---------- Kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.kicker__dot, .kicker__step, .kicker__idx { display: none; }

/* ---------- Panneau (remplace .glass) ---------- */
.glass, .panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.glass__spec { display: none; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad);
}
.section + .section { border-top: 1px solid var(--border); }
.section__head { max-width: 44ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section__head h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
.section__lead { margin-top: 0.85rem; color: var(--fg-3); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.split .section__head { margin-bottom: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10, 10, 11, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--pad);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--fg); font-family: var(--f-head); font-weight: 600; font-size: 1.05rem;
}
.brand:hover { color: var(--fg); }
.brand__mark { flex: none; }

.nav__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--fg-2); font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__back:hover { color: var(--gold-2); }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.85rem); }
.nav__links > a { color: var(--fg-2); font-size: 0.88rem; font-weight: 500; transition: color 0.2s var(--ease); }
.nav__links > a:hover { color: var(--fg); }
.nav__links a.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span { width: 20px; height: 1.5px; background: var(--fg); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  --py: 0.78rem; --px: 1.35rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: var(--py) var(--px);
  border-radius: 9px;
  font-family: var(--f-head); font-weight: 600; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn--sm { --py: 0.48rem; --px: 0.9rem; font-size: 0.82rem; }
.btn--lg { --py: 0.9rem; --px: 1.6rem; font-size: 0.96rem; }

.btn--gold { color: #1d1604; background: var(--gold); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--gold:active { transform: translateY(0); }

.btn--line, .btn--ghost {
  color: var(--fg);
  border-color: var(--border-strong);
  background: transparent;
}
.btn--line:hover, .btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-1px); }
.btn--line svg { transition: transform 0.18s var(--ease); }
.btn--line:hover svg { transform: translateX(2px); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(7rem, 15vh, 9rem) var(--pad) clamp(1.5rem, 3vw, 2.5rem);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero__title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
}
.hero__title em { font-style: normal; color: var(--gold-2); }
.hero__sub { margin-top: 1.3rem; color: var(--fg-2); font-size: 1.02rem; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.hero__stage { position: relative; }
.hero__glow { display: none; }

/* Diagramme de flux — carte plate */
.flow { padding: 1.3rem 1.25rem; display: flex; flex-direction: column; align-items: stretch; }
.flow__node {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.82rem; color: var(--fg-2);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}
.flow__node b { color: var(--fg); font-weight: 600; }
.flow__node--done {
  border-color: rgba(255, 138, 61, 0.4);
  color: var(--gold-2);
  box-shadow: inset 2px 0 0 var(--gold);
}
.flow__node svg { flex: none; color: var(--gold); }
.flow__link {
  width: 1px; height: 16px; margin: 0 auto;
  background: linear-gradient(var(--gold), transparent);
  opacity: 0.6;
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__title { max-width: 18ch; }
  .hero__stage { max-width: 24rem; margin-top: 2rem; }
}

/* ---------- Services ---------- */
.cards, .grid, .grid--services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
}
.card {
  padding: clamp(1.35rem, 2.4vw, 1.7rem);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.32);
  background: var(--surface-2);
}
.card__mark, .card__icon {
  width: 32px; height: 32px; margin-bottom: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.18);
}
.card h3 { font-size: 1.05rem; }
.card p { font-size: 0.92rem; color: var(--fg-3); margin: 0; }
@media (max-width: 640px) { .cards, .grid, .grid--services { grid-template-columns: 1fr; } }

/* ---------- Approche ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: clamp(0.9rem, 2vw, 1.6rem);
  padding: clamp(1.15rem, 2.5vw, 1.6rem) 0;
}
.step + .step { border-top: 1px solid var(--border); }
.step__num, .step__idx { font-family: var(--f-head); font-size: 1rem; color: var(--gold); font-weight: 600; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.93rem; color: var(--fg-3); margin: 0; max-width: 52ch; }

/* ---------- Benefits ---------- */
.benefits { list-style: none; margin: 0; padding: 0.4rem 0 0; display: grid; }
.benefits li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  padding: 0.85rem 0; color: var(--fg-2); font-size: 0.95rem;
}
.benefits li + li { border-top: 1px solid var(--border); }
.benefits svg { color: var(--gold); margin-top: 0.15rem; }

/* ---------- À propos ---------- */
.apropos__body { display: grid; gap: 0.9rem; max-width: 54ch; }
.apropos__body p { color: var(--fg-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 clamp(1rem, 2.5vw, 1.4rem);
  transition: border-color 0.2s var(--ease);
}
.faq__item[open] { border-color: rgba(255, 138, 61, 0.28); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+";
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--gold);
  font-size: 1rem; line-height: 1;
  transition: border-color 0.2s var(--ease);
}
.faq__item[open] summary::before { content: "\2212"; border-color: var(--gold); }
.faq__item > p {
  margin: 0;
  padding: 0 0 1.1rem 2.85rem;
  color: var(--fg-3);
  font-size: 0.94rem;
}
@media (max-width: 520px) { .faq__item > p { padding-left: 0; } }

/* ---------- Avis Google ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.review {
  margin: 0;
  padding: clamp(1.1rem, 2.4vw, 1.4rem);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.review__stars { color: var(--gold); letter-spacing: 0.08em; font-size: 0.9rem; }
.review blockquote {
  margin: 0; color: var(--fg-2); font-size: 0.92rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review figcaption { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--fg-3); margin-top: auto; }
.review figcaption img { border-radius: 50%; flex: none; }
.review figcaption b { color: var(--fg); font-weight: 600; }
.review__when { color: var(--fg-3); font-size: 0.8rem; }
.reviews__link { display: inline-block; margin-top: 1.1rem; color: var(--gold-2); font-size: 0.9rem; }

/* ---------- Réalisations (gabarit, activé plus tard) ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .works { grid-template-columns: 1fr; } }
.works--single { grid-template-columns: 1fr; max-width: 560px; }
.work { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--border); }
.work h3 { font-size: 1.05rem; margin: 0; padding: 1rem clamp(1rem, 2.4vw, 1.4rem) 0.4rem; }
.work > p { margin: 0; padding: 0 clamp(1rem, 2.4vw, 1.4rem) 1.2rem; color: var(--fg-3); font-size: 0.9rem; flex: 1; }
.work > .btn { margin: 0 clamp(1rem, 2.4vw, 1.4rem) 1.2rem; align-self: flex-start; }

/* ---------- Fenêtre de démo (lightbox) ---------- */
.demo-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vh, 3rem) clamp(1rem, 4vw, 2rem);
}
.demo-modal[hidden] { display: none; }
.demo-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(2px);
}
.demo-modal__box {
  position: relative;
  width: min(1100px, 100%);
  height: min(760px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.demo-modal__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--f-head); font-size: 0.82rem; color: var(--fg-2);
}
.demo-modal__close {
  border: 1px solid var(--border-strong); background: transparent; color: var(--fg);
  width: 28px; height: 28px; border-radius: 7px; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.demo-modal__close:hover { border-color: var(--gold); color: var(--gold-2); }
.demo-modal__box iframe { flex: 1; border: 0; width: 100%; background: var(--bg); }

/* ---------- CTA ---------- */
.cta {
  max-width: 620px; margin-inline: auto; text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 0.8rem; }
.cta p { color: var(--fg-2); max-width: 42ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.7rem; }
.cta__alt { margin-top: 1rem; font-size: 0.85rem; color: var(--fg-3); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 2rem var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a { color: var(--fg-3); font-size: 0.85rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--gold); }
.footer__copy { margin-left: auto; color: var(--fg-3); font-size: 0.83rem; }

/* ---------- Révélation ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
html.no-motion .reveal { opacity: 1 !important; transform: none !important; }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.flow__node { opacity: 1; }
html:not(.no-motion) .js-anim .flow__node { opacity: 0; }
html:not(.no-motion) .js-anim .flow__link { transform: scaleY(0); transform-origin: top; }

/* ---------- Responsive nav ---------- */
@media (max-width: 720px) {
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links a.nav__cta-mobile { display: inline-flex; margin-top: 0.4rem; }
  .nav__links {
    position: absolute; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.4rem var(--pad) 1.2rem;
    background: rgba(10, 10, 11, 0.98);
    border-bottom: 1px solid var(--border);
    overscroll-behavior: contain;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.24s var(--ease), opacity 0.24s var(--ease), visibility 0.24s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links > a { padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 0.98rem; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { transition-duration: 0.001ms !important; }
}

/* ---------- Pages légales ---------- */
.legal { max-width: 720px; margin-inline: auto; padding: clamp(7rem, 15vh, 8.5rem) var(--pad) 4rem; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.5rem; }
.legal .legal__updated { color: var(--fg-3); font-size: 0.85rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 2.2rem; margin-bottom: 0.7rem; }
.legal p { color: var(--fg-2); margin-bottom: 0.9rem; }
.legal ul { color: var(--fg-2); margin: 0 0 0.9rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--gold-2); }

/* ---------- Page 404 ---------- */
.error404 {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem var(--pad);
}
.error404 .kicker { justify-content: center; }
.error404 h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.9rem; }
.error404 p { color: var(--fg-2); max-width: 40ch; margin: 0 auto 1.8rem; }
.error404 .cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
