/* ===== KartyCo — version technique / premium ===== */
:root {
  --bg: #121214;
  --bg-soft: #1a1a1d;
  --bg-card: #1e1e22;
  --ink: #f2f0ea;
  --ink-dim: #a8a69e;
  --gold: #f88202;
  --gold-soft: rgba(248, 130, 2, .14);
  --line: rgba(242, 240, 234, .12);
  --font-head: "Archivo", sans-serif;
  --font-logo: "Comic Neue", cursive;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 4px;
  --ease: cubic-bezier(.22, .65, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #121214; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #121214;
  padding: .6rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}

/* Film grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(18, 18, 20, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }

.logo {
  font-family: var(--font-logo); font-weight: 700; font-size: 1.55rem;
  text-decoration: none; letter-spacing: .01em;
}
.logo-accent { color: var(--gold); }
.logo-image { display: flex; align-items: center; height: 3rem; }
.logo-image img { display: block; height: 3rem; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a:not(.btn) {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-dim);
  transition: color .25s var(--ease); position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--ink); }
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.7rem;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #121214; }
.btn-gold:hover { background: #ff9b1a; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; text-align: center; font-family: var(--font-head); border: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 9.5rem 0 5rem; overflow: hidden; }
.circuit-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, black, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 3.5rem; align-items: center; }

.kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem;
}
.kicker::before { content: "// "; opacity: .6; }

.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: normal; color: var(--gold);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 3px; background-repeat: no-repeat; background-position: 0 96%;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line-inner {
  display: inline-block; transform: translateY(115%);
  animation: line-up .9s var(--ease) forwards;
  animation-delay: calc(.15s + var(--i) * .13s);
}
@keyframes line-up { to { transform: translateY(0); } }

.hero-sub { font-size: 1.15rem; max-width: 34rem; color: var(--ink); margin-bottom: .9rem; }
.hero-support { color: var(--ink-dim); max-width: 32rem; margin-bottom: 2.2rem; font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero media — spotlight + HUD */
.hero-media { position: relative; will-change: transform; }
.hero-photo {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 18%, rgba(227,178,60,.22), transparent 55%);
  mix-blend-mode: screen;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0,0,0,.55);
}
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center; filter: saturate(.85) contrast(1.05); }
.hero-photo figcaption {
  position: relative; z-index: 2; padding: .7rem 1rem;
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim);
  border-top: 1px solid var(--line); letter-spacing: .04em;
}
.hud {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em;
  color: var(--ink-dim); padding: .65rem .9rem; margin-bottom: .8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(30,30,34,.7); backdrop-filter: blur(8px);
}
.hud-model { color: var(--gold); font-weight: 600; }
.hud-timer { display: flex; align-items: center; gap: .55rem; color: var(--gold); font-weight: 600; font-size: .95rem; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: #58c96b; animation: pulse 1.6s ease-in-out infinite; }
.hud-ok { color: #58c96b; font-size: .72rem; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); padding: 1rem 0; overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 7rem 0; position: relative; }
.chapter {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 2.5rem;
}
.chapter::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chapter-num { color: var(--gold); font-weight: 600; }

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -.015em; margin-bottom: 1.6rem;
  max-width: 46rem;
}

/* ---------- Problem ---------- */
.problem-grid { display: grid; gap: 2.5rem; }
.problem-body p { color: var(--ink-dim); max-width: 40rem; margin-bottom: 1.1rem; }
.problem-body strong { color: var(--ink); }
.compare {
  display: grid; gap: 1rem; align-items: stretch; margin-top: 2.2rem;
}
.compare-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; display: grid; gap: .3rem; background: var(--bg-card);
}
.compare-kc { border-color: var(--gold); background: var(--gold-soft); }
.compare-tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.compare-kc .compare-tag { color: var(--gold); }
.compare-price { font-size: 1.6rem; font-weight: 800; }
.compare-note { font-size: .88rem; color: var(--ink-dim); }
.compare-versus {
  font-family: var(--font-mono); color: var(--gold); text-align: center;
  font-size: .85rem; letter-spacing: .2em;
}

/* ---------- Services ---------- */
.cards { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); padding: 2.2rem 1.8rem 1.8rem;
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(227,178,60,.45); box-shadow: 0 24px 48px -24px rgba(0,0,0,.7); }
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--font-mono); font-size: .8rem; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 50%;
  width: 2rem; height: 2rem; display: grid; place-items: center;
}
.card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.card p { color: var(--ink-dim); font-size: .95rem; }
.card-price { font-family: var(--font-mono); font-size: .88rem; color: var(--ink) !important; margin-top: auto; padding-top: .8rem; }
.card-link {
  font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--gold);
  transition: letter-spacing .3s var(--ease);
}
.card-link:hover { letter-spacing: .03em; }
.pricing-note { margin-top: 1.6rem; font-size: .8rem; color: var(--ink-dim); font-family: var(--font-mono); }

/* ---------- Why ---------- */
.why { background: var(--bg-soft); border-block: 1px solid var(--line); }
.why-grid { display: grid; gap: 3rem; align-items: center; }
.why-list { list-style: none; display: grid; gap: .4rem; margin-top: 1.6rem; }
.why-list li {
  padding: .9rem 0 .9rem 2.4rem; position: relative;
  border-bottom: 1px solid var(--line); font-weight: 500;
}
.why-list li::before {
  content: "✓"; position: absolute; left: .2rem; color: var(--gold); font-weight: 800;
}
.why-photo {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.why-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,0,0,.5);
}
.why-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; filter: saturate(.8) contrast(1.06); }
.why-photo figcaption {
  padding: .7rem 1rem; font-family: var(--font-mono); font-size: .72rem;
  color: var(--ink-dim); border-top: 1px solid var(--line);
}
.quote {
  margin-top: 4rem; padding: 2.5rem 0 0 2rem; border-left: 3px solid var(--gold);
}
.quote p {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.4;
  letter-spacing: -.01em; max-width: 50rem; margin-bottom: 1rem;
}
.quote cite { font-style: normal; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-dim); }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: 1.4rem; margin-top: 2.5rem; counter-reset: step; }
.step {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem; background: var(--bg-card);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: rgba(227,178,60,.4); }
.step-num {
  font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  display: block; margin-bottom: .8rem; line-height: 1;
}
.step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
.step p { color: var(--ink-dim); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 3.5rem; }
.contact-intro > p { color: var(--ink-dim); max-width: 32rem; }
.contact-meta { list-style: none; margin-top: 2rem; display: grid; gap: .6rem; font-family: var(--font-mono); font-size: .88rem; }
.contact-meta a { color: var(--gold); }
.legal { margin-top: 2.4rem; font-size: .8rem; color: var(--ink-dim); max-width: 30rem; }

.contact-form {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); padding: 2rem; display: grid; gap: 1.2rem;
}
.field { display: grid; gap: .45rem; }
.field-row { display: grid; gap: 1.2rem; }
label { font-size: .85rem; font-weight: 600; }
.label-hint { font-weight: 400; color: var(--ink-dim); font-size: .78rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-head); font-size: .95rem;
  padding: .8rem 1rem; width: 100%;
  transition: border-color .25s var(--ease);
}
input:focus, textarea:focus { border-color: var(--gold); outline: none; }
textarea { resize: vertical; }
.file-input { font-size: .85rem; color: var(--ink-dim); }
.file-input::file-selector-button {
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: .5rem 1rem; margin-right: 1rem;
  font-family: var(--font-head); font-weight: 600; cursor: pointer;
  transition: background-color .25s var(--ease);
}
.file-input::file-selector-button:hover { background: var(--gold-soft); }
.form-note { font-size: .85rem; color: var(--gold); font-family: var(--font-mono); }

/* Placeholder marking — données à personnaliser */
.ph { border-bottom: 1px dashed var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.footer-inner { display: grid; gap: 1.2rem; }
.footer-legal, .footer-meta { font-size: .8rem; color: var(--ink-dim); max-width: 46rem; }
.footer-meta a { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 619px) {
  /* Keep all content within a narrow phone viewport. */
  .wrap { width: min(calc(100% - 2rem), 1180px); }
  .hero { padding: 8.5rem 0 4rem; }
  .hero-grid { gap: 2.25rem; }
  .hero-copy, .hero-media, .hero-photo, .hud { min-width: 0; max-width: 100%; }
  .kicker { font-size: .68rem; letter-spacing: .1em; overflow-wrap: anywhere; }
  .hero-title { font-size: clamp(2.1rem, 10vw, 2.4rem); }
  .hero-title .line { white-space: normal; }
  .hero-sub, .hero-support { max-width: 100%; overflow-wrap: anywhere; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hud { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .hud-timer { min-width: 0; }
  .hero-photo figcaption { overflow-wrap: anywhere; }
  .section { padding: 4.5rem 0; }
  .contact-form { padding: 1.35rem; }
}

@media (min-width: 620px) {
  .compare { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 11rem 0 7rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 5rem; }
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .why-grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; z-index: 60;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .main-nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center;
    gap: 2.2rem; background: rgba(18,18,20,.97); backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .main-nav a:not(.btn) { font-size: 1.3rem; color: var(--ink); }
  body.nav-open .main-nav { opacity: 1; pointer-events: auto; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .line-inner { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
