/* ============================================================
   Ultimate Prompt Builder — page de vente
   Palette Triskell Studio · dark · responsive
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body, h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  /* Triskell tokens — exact match site officiel */
  --bg:           #08080F;
  --bg-2:         #0D0D1A;
  --bg-3:         #13131F;
  --bg-card:      #0F0F1C;
  --bg-card-2:    #14141F;
  --border:       rgba(255,255,255,.07);
  --border-2:     rgba(255,255,255,.12);

  --indigo:       #6366F1;
  --indigo-dk:    #4F46E5;
  --violet:       #8B5CF6;
  --orange:       #F97316;
  --pink:         #EC4899;

  --text:         #E2E8F0;
  --text-strong:  #FFFFFF;
  --muted:        #94A3B8;
  --muted-2:      #64748B;

  --font-h:       'Syne', 'Inter', sans-serif;
  --font-b:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --container:    1180px;
  --pad-y:        96px;

  --t:            all .25s cubic-bezier(.4,0,.2,1);
  --sh-glow:      0 0 60px rgba(99,102,241,.20);
  --sh-card:      0 1px 1px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.30);
  --sh-cta:       0 10px 40px rgba(99,102,241,.35);
}

html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-strong);
}

h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 18px; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }

p { color: var(--text); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 760px) { .container { padding-inline: 40px; } }

a { color: var(--indigo); transition: color .15s ease; }
a:hover { color: var(--violet); }

code {
  font-family: 'Consolas', 'Cascadia Code', monospace;
  background: rgba(139,92,246,.12);
  color: var(--violet);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

em { color: var(--text-strong); font-style: normal; font-weight: 600; }
strong { color: var(--text-strong); font-weight: 700; }

/* ====== EYEBROW ====== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 12px var(--indigo);
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 12px;
  font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: var(--t);
  white-space: nowrap;
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 15.5px; border-radius: 14px; }
.btn--xl { height: 64px; padding: 0 36px; font-size: 17px; border-radius: 16px; font-weight: 700; }

.btn--primary {
  background: var(--indigo);
  color: #FFFFFF;
  border-color: var(--border-2);
  box-shadow: var(--sh-cta);
}
.btn--primary:hover {
  background: var(--indigo-dk);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(99,102,241,.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover {
  background: var(--bg-3);
  color: var(--text-strong);
  border-color: var(--violet);
}

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,15,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  flex-shrink: 0;
}
.brand__mark {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 8px rgba(139,92,246,.35));
}
.brand__word {
  font-family: var(--font-h);
  font-weight: 800; font-size: 18px;
  color: var(--text-strong);
  letter-spacing: -.02em;
}
.brand__tag {
  font-size: 9px; font-weight: 700;
  color: var(--muted);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav__links {
  display: flex; gap: 28px; align-items: center;
}
.nav__links a {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color .15s;
}
.nav__links a:hover { color: var(--text-strong); }

@media (max-width: 800px) {
  .nav__links { display: none; }
}

/* ====== HERO ====== */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 0%, rgba(99,102,241,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(249,115,22,0.10) 0%, transparent 55%),
    var(--bg);
}
.hero__grid {
  display: grid; gap: 60px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 50px; }
}

.hero__copy h1 { margin-bottom: 22px; }
.hero__accent {
  background: linear-gradient(110deg, var(--indigo) 0%, var(--violet) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: 18px; line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 580px;
}
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__bullets {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.hero__bullets li { color: var(--muted); }

.hero__visual {
  display: flex; justify-content: center;
}

/* Mock device window */
.device {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card), var(--sh-glow);
  overflow: hidden;
}
.device__bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.device__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-2);
}
.device__title {
  margin-left: 8px;
  font-size: 11px; color: var(--muted-2);
  font-weight: 600;
}
.device__body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--text-strong);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--indigo);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
}
.device__input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text);
  font-family: 'Consolas', monospace;
}
.device__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  display: inline-flex; align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px; font-weight: 600;
  color: var(--text);
}
.tag--accent {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
}
.device__btn {
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo);
  color: #FFFFFF;
  padding: 12px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-2);
  transition: var(--t);
}
.device__btn:hover { background: var(--indigo-dk); color: #FFFFFF; }

/* Provider strip */
.provider-strip {
  margin-top: 50px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 18px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.provider-strip__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2);
  margin-right: 8px;
}
.provider {
  font-family: var(--font-h);
  font-size: 17px; font-weight: 700;
  color: var(--muted);
  transition: color .2s;
}
.provider:hover { color: var(--text-strong); }

/* ====== WHY ====== */
.why {
  padding: var(--pad-y) 0;
  border-bottom: 1px solid var(--border);
}
.why__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; gap: 24px; }
}
.why__motto {
  font-family: var(--font-h);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.3;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -.02em;
  border-left: 3px solid var(--violet);
  padding-left: 22px;
}
.why__text p {
  font-size: 16px; color: var(--text);
  margin-bottom: 14px; line-height: 1.7;
}
.why__credit {
  font-size: 13px; color: var(--muted);
  margin-top: 18px;
}

/* ====== FEATURES ====== */
.features {
  padding: var(--pad-y) 0;
  background:
    radial-gradient(ellipse at 100% 50%, rgba(139,92,246,.05) 0%, transparent 60%),
    var(--bg);
}
.features__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 26px 24px;
  transition: var(--t);
}
.feature:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(139,92,246,.12);
}
.feature__icon {
  font-size: 26px;
  margin-bottom: 14px;
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 12px;
}
.feature h3 {
  margin-bottom: 8px;
  color: var(--text-strong);
}
.feature p {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.6;
}
.feature code { font-size: 12px; }

/* ====== PROMPTS ====== */
.prompts {
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--border);
}
.prompts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.prompt {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  position: relative;
  transition: var(--t);
}
.prompt:hover {
  border-color: var(--indigo);
  background: var(--bg-card);
}
.prompt__id {
  display: inline-flex;
  background: rgba(139,92,246,.18);
  color: var(--violet);
  font-size: 11px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.prompt h4 {
  font-size: 14px;
  color: var(--text-strong);
  margin-bottom: 4px;
  font-family: var(--font-b);
  letter-spacing: 0;
}
.prompt p {
  font-size: 12px; color: var(--muted);
  line-height: 1.5;
}
.prompts__note {
  margin-top: 26px;
  text-align: center;
  font-size: 14px; color: var(--muted);
  font-style: italic;
}

/* ====== PERSONAS ====== */
.personas {
  padding: var(--pad-y) 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(249,115,22,.06) 0%, transparent 50%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.personas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.persona {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 28px 26px;
  transition: var(--t);
}
.persona:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.persona__icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.persona h3 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 17px;
}
.persona p {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.65;
}

/* ====== FAQ ====== */
.faq {
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--border);
}
.qa {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.qa summary {
  font-family: var(--font-h);
  font-weight: 700; font-size: 17px;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  letter-spacing: -.01em;
}
.qa summary::after {
  content: "+";
  color: var(--indigo);
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s;
}
.qa[open] summary::after {
  content: "−";
}
.qa summary::-webkit-details-marker { display: none; }
.qa p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 780px;
}
.qa a { color: var(--violet); }

/* ====== FINAL CTA ====== */
.cta-final {
  padding: var(--pad-y) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(99,102,241,.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 0%, rgba(249,115,22,.08) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.cta-final__inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.logo-mark--xl {
  width: 90px; height: 90px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px rgba(139,92,246,.4));
}
.logo-mark--xl svg { width: 100%; height: 100%; }
.cta-final h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
  max-width: 720px;
}
.cta-final__lede {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}
.cta-final__legal {
  margin-top: 18px;
  font-size: 13px; color: var(--muted-2);
}
.cta-final__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cta-final__legal a:hover { color: var(--violet); }

/* ====== FOOTER ====== */
.footer {
  padding: 36px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 14px;
}
.footer__brand .brand__mark { width: 32px; height: 32px; }
.footer__brand-line {
  font-family: var(--font-h);
  font-size: 14px; font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 2px;
}
.footer__brand-line strong { font-weight: 800; }
.footer__brand-line .brand__tag { margin-left: 4px; }
.footer__tag {
  font-size: 12px; color: var(--muted-2);
  margin: 0;
}
.footer__links {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 12.5px;
}
.footer__links a {
  color: var(--muted);
  transition: color .15s;
}
.footer__links a:hover { color: var(--text-strong); }

/* ============== MOBILE ============== */
@media (max-width: 600px) {
  :root { --pad-y: 64px; }
  .nav__inner { gap: 12px; }
  .brand__tag { display: none; }
  .hero { padding: 50px 0 40px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__bullets { gap: 10px; flex-direction: column; }
  .device__body { padding: 16px; gap: 10px; }
  .why__motto { font-size: 20px; padding-left: 16px; }
  .features__grid, .personas__grid { gap: 12px; }
  .feature, .persona { padding: 22px 20px; }
  .qa summary { font-size: 15px; }
  .qa p { font-size: 13.5px; }
  .cta-final h2 { font-size: 26px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
