/* ============================================================
   Guitar Pro 8 — « partition & bleu Guitar Pro »
   Palette : blanc partition, encre, bleu de marque #569FFF.
   Typo : Bricolage Grotesque (display) · Instrument Sans (corps)
          · IBM Plex Mono (tablature, prix, specs)
   ============================================================ */

:root {
  --fond: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef2f7;
  --ligne: #e3e8ef;
  --corde: #c2ccd9;
  --encre: #14181f;
  --muted: #5c6675;
  --bleu-gp: #569fff;        /* bleu officiel du logo Guitar Pro 8 */
  --accent: #1f6ae8;         /* CTA — bleu marque assombri pour le contraste */
  --accent-hover: #1656c4;
  --accent-fonce: #1656c4;
  --sur-accent: #ffffff;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 72rem;

  color-scheme: light;
}

/* ---------- Mode sombre ---------- */
/* Suit le système par défaut ; forçable via le bouton (data-theme). */

:root[data-theme="dark"] {
  --fond: #0f1318;
  --surface: #161c24;
  --surface-2: #1d2530;
  --ligne: #27303d;
  --corde: #3e4a5c;
  --encre: #edf1f7;
  --muted: #97a3b4;
  --accent: #569fff;
  --accent-hover: #7ab3ff;
  --accent-fonce: #7ab3ff;
  --sur-accent: #06213f;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0f1318;
    --surface: #161c24;
    --surface-2: #1d2530;
    --ligne: #27303d;
    --corde: #3e4a5c;
    --encre: #edf1f7;
    --muted: #97a3b4;
    --accent: #569fff;
    --accent-hover: #7ab3ff;
    --accent-fonce: #7ab3ff;
    --sur-accent: #06213f;
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--fond);
  color: var(--encre);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-fonce);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--sur-accent); }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Motif signature : 6 cordes en séparateur ---------- */

.strings-divider {
  display: grid;
  gap: 7px;
  padding-block: 3.5rem;
}
.strings-divider i {
  display: block;
  height: 1px;
  background: var(--ligne);
}
.strings-divider i:nth-child(4),
.strings-divider i:nth-child(5),
.strings-divider i:nth-child(6) { height: 2px; } /* cordes graves filées */

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ligne);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

/* Wordmark fidèle au logo officiel : « Guitar Pro » encre + « 8 » bleu #569FFF */
.logo {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.logo em {
  font-style: normal;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--bleu-gp);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--encre); }

.theme-toggle {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--ligne);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--encre); border-color: var(--corde); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s, color .2s;
  white-space: normal;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--sur-accent);
  box-shadow: 0 0 0 0 rgba(31, 106, 232, 0);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(31, 106, 232, .55);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .6; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--encre);
  border: 1px solid var(--corde);
}
.btn-ghost:hover { border-color: var(--accent-fonce); color: var(--accent-fonce); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn .price {
  font-family: var(--mono);
  font-weight: 500;
  opacity: .85;
  white-space: nowrap;
}
.site-nav .btn { padding: .55rem 1.1rem; font-size: .9rem; }

.checkout-error {
  margin-top: .9rem;
  font-size: .9rem;
  color: #c8352b;
  min-height: 1.2em;
}

/* ---------- Typographie ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-fonce);
  margin-bottom: 1.1rem;
}

h1, .h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 38em;
  text-wrap: pretty;
}
.amber { color: var(--accent-fonce); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(4rem, 9vh, 7rem) 0;
  /* clip et non hidden : hidden créerait un scroll container,
     ce qui gèlerait l'animation scroll-driven de .hero-shot (view()) */
  overflow: clip;
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 46rem; }
.hero-copy .lead { margin-top: 1.4rem; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.2rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
}
.hero-trust b { color: var(--encre); font-weight: 500; }

/* ---------- Signature : la tablature qui joue ---------- */

.tabstave {
  position: relative;
  margin-top: clamp(3rem, 6vh, 5rem);
  padding-block: 2.2rem;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  background:
    linear-gradient(180deg, transparent, rgba(86, 159, 255, .07) 50%, transparent);
  user-select: none;
}
.tabstave .labels {
  position: absolute;
  left: var(--gutter);
  top: 2.2rem;
  bottom: 2.2rem;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  align-items: center;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--corde);
  z-index: 2;
}
.tabstave .stave {
  position: relative;
  height: calc(6 * 2rem);
}
.tabstave .string {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--corde);
}
.tabstave .string:nth-child(n+4) { height: 2px; opacity: .9; }
.tabstave .string:nth-child(1) { top: calc(0.5 * 2rem); }
.tabstave .string:nth-child(2) { top: calc(1.5 * 2rem); }
.tabstave .string:nth-child(3) { top: calc(2.5 * 2rem); }
.tabstave .string:nth-child(4) { top: calc(3.5 * 2rem); }
.tabstave .string:nth-child(5) { top: calc(4.5 * 2rem); }
.tabstave .string:nth-child(6) { top: calc(5.5 * 2rem); }

.tabstave .note {
  --dur: 9s;
  position: absolute;
  top: calc((var(--s) - .5) * 2rem);
  left: calc(var(--x) * 1%);
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--fond);
  padding-inline: .4em;
  line-height: 1.4;
  animation: pluck var(--dur) linear infinite;
  animation-delay: calc(var(--dur) * var(--x) / 100);
}

@keyframes pluck {
  0% { color: var(--accent-fonce); text-shadow: 0 0 16px rgba(86, 159, 255, .9); transform: translate(-50%, -50%) scale(1.35); }
  6% { color: var(--accent-fonce); text-shadow: 0 0 5px rgba(86, 159, 255, .4); transform: translate(-50%, -50%) scale(1); }
  22%, 100% { color: var(--muted); text-shadow: none; transform: translate(-50%, -50%) scale(1); }
}

.tabstave .playhead {
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 22px 2px rgba(86, 159, 255, .55);
  animation: sweep 9s linear infinite;
  z-index: 1;
}
@keyframes sweep {
  from { left: 0%; }
  to { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tabstave .playhead { display: none; }
  .tabstave .note { animation: none; color: var(--accent-fonce); }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn { transition: none; }
}

/* ---------- La capture en très grand, redressée au scroll ---------- */

.hero-shot-stage {
  perspective: 1400px;
  padding-inline: clamp(.75rem, 2vw, 2rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: 1rem;
}
.hero-shot {
  /* 1385px = taille logique native de la capture Retina @2x (2770px) */
  max-width: 1385px;
  margin-inline: auto;
  border: 1px solid var(--ligne);
  border-radius: clamp(8px, 1.2vw, 18px);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 80px 160px -60px rgba(31, 106, 232, .45),
    0 20px 50px -20px rgba(20, 24, 31, .25);
}
.hero-shot img { width: 100%; height: auto; }

/* Effet cinématique : l'image arrive inclinée et se redresse au scroll.
   CSS pur (scroll-driven animation) ; à plat si non supporté ou motion réduit. */
@supports (animation-timeline: view()) {
  .hero-shot {
    transform-origin: center top;
    animation: hero-shot-tilt linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 75%;
  }
  @keyframes hero-shot-tilt {
    from { transform: rotateX(22deg) scale(.9); }
    to { transform: rotateX(0deg) scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shot { animation: none !important; transform: none !important; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vh, 7rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.section-head .lead { margin-top: 1rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }


/* ---------- Grille de fonctionnalités ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 2rem 1.6rem;
  transition: background .25s;
}
.feature:hover { background: var(--surface-2); }
.feature .fret {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding-inline: .4rem;
  border: 1px solid var(--corde);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent-fonce);
  margin-bottom: 1.1rem;
}
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---------- Bandeau chiffres ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vh, 4rem);
  border-block: 1px solid var(--ligne);
}
.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--accent-fonce);
  letter-spacing: -.02em;
}
.stat .cap {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: .3rem;
}

blockquote.pull {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  max-width: 34em;
  text-wrap: balance;
}
blockquote.pull footer {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Carte prix ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; }
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 30px 70px -35px rgba(31, 106, 232, .3);
}
.price-card .badge {
  position: absolute;
  top: -0.85rem;
  left: 2rem;
  background: var(--accent);
  color: var(--sur-accent);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
}
.price-card .product {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
}
.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-block: 1.2rem .4rem;
}
.price-card .amount .value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  letter-spacing: -.03em;
}
.price-card .amount .terms {
  font-size: .9rem;
  color: var(--muted);
}
.price-card ul {
  list-style: none;
  margin-block: 1.6rem;
  display: grid;
  gap: .7rem;
}
.price-card li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  font-size: .97rem;
}
.price-card li::before {
  content: "✓";
  color: var(--accent-fonce);
  font-family: var(--mono);
  font-weight: 600;
  flex: none;
}
.price-card .btn { width: 100%; }
.price-card .secure {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--ligne);
}
.faq details:first-of-type { border-top: 1px solid var(--ligne); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent-fonce);
  transition: transform .25s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 1.3rem;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- CTA final ---------- */

.final-cta {
  text-align: center;
  padding-block: clamp(4rem, 10vh, 7rem);
}
.final-cta .h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.final-cta .lead { margin: 1.2rem auto 2.4rem; }

/* ---------- Page fonctionnalités ---------- */

.page-hero { padding-block: clamp(3.5rem, 8vh, 5.5rem) 0; }

.feature-rows { display: grid; gap: 1px; background: var(--ligne); border-block: 1px solid var(--ligne); }
.feature-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.4fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  background: var(--fond);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0;
}
.feature-row .fret-mark {
  font-family: var(--mono);
  color: var(--accent-fonce);
  font-size: .95rem;
}
.feature-row h3 { font-size: 1.35rem; }
.feature-row p { color: var(--muted); }
.feature-row .tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .9rem;
}
.feature-row .tags span {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  border: 1px solid var(--ligne);
  background: var(--surface);
  border-radius: 999px;
  padding: .2rem .65rem;
}
@media (max-width: 720px) {
  .feature-row { grid-template-columns: 3rem 1fr; }
  .feature-row p { grid-column: 2; }
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  padding: 1.8rem;
}
.spec-card h3 { margin-bottom: 1rem; }
.spec-card ul {
  list-style: none;
  display: grid;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--muted);
}

/* ---------- Page acheter ---------- */

.buy-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-block: clamp(3.5rem, 8vh, 6rem);
}
@media (max-width: 860px) {
  .buy-layout { grid-template-columns: 1fr; }
}
.buy-copy .lead { margin-top: 1.2rem; }
.buy-points {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  gap: 1.4rem;
}
.buy-points li { display: flex; gap: 1rem; }
.buy-points .fret {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--corde);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent-fonce);
}
.buy-points b { display: block; font-family: var(--display); font-weight: 600; }
.buy-points p { color: var(--muted); font-size: .93rem; }

/* ---------- Page merci ---------- */

.thanks {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}
.thanks .pick-big {
  width: 4.2rem; height: 4.2rem;
  margin: 0 auto 1.8rem;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--sur-accent);
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  font-size: 1.5rem;
}
.thanks .pick-big span { transform: rotate(45deg); }
.thanks .lead { margin: 1.2rem auto 0; }
.thanks-steps {
  list-style: none;
  counter-reset: step;
  margin: 2.8rem auto;
  display: grid;
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.thanks-steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  background: var(--surface);
  padding: 1.2rem 1.5rem;
}
.thanks-steps li::before {
  content: counter(step);
  font-family: var(--mono);
  color: var(--accent-fonce);
  flex: none;
}
.thanks-steps b { font-family: var(--display); font-weight: 600; }
.thanks-steps p { color: var(--muted); font-size: .92rem; }
#session-status { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--ligne);
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: .88rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--encre); }

@media (max-width: 560px) {
  .site-nav a.nav-link-secondary { display: none; }
  .site-nav .btn .price { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; padding-inline: 1.2rem; }
}
