/* SGPL — couche d'identité « Ciel austral & cuivre »
   ADN tiré du logo : orbites, étoiles à quatre branches, lettrage large.
   Nuit australe (le ciel de La Réunion) + cuivre (caloducs, circuits : la matière d'un PC bien fait). */

:root {
  --black: #0f0e0d;          /* noir fumé, à peine réchauffé */
  --night-2: #141312;
  --graphite: #181715;
  --anthracite: #252320;
  --ink: #f3efe8;            /* lumière d'étoile, blanc chaud */
  --steel: #8f8a83;
  --mist: #cac5bd;
  --line: rgba(255, 240, 225, .09);
  --line-strong: rgba(255, 240, 225, .18);
  --paper: #f3eee6;
  --paper-ink: #151311;

  --copper: #7a5af8;
  --copper-hi: #c4b5fd;
  --copper-lo: #4c32c2;
  --copper-grad: linear-gradient(120deg, #ddd4ff 0%, #a78bfa 32%, #6a45f2 62%, #bcaaff 100%);

  --display: "Archivo", "Instrument Sans", system-ui, sans-serif;
}

body { background: var(--black); color: var(--ink); }
::selection { background: var(--copper); color: var(--black); }

/* ---------- Typographie : lettrage large, comme le logo ---------- */
.display, h1, h2, h3, .manifesto, .path__body h3, .score, .gauge__value, .budget-out, .mobile-menu a, .final h2, .page-hero h1, .hero h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 116;
  font-weight: 600;
  letter-spacing: -.028em;
}
h1, .display { font-size: clamp(38px, 6.6vw, 92px); line-height: 1.02; }
.hero h1 { font-size: clamp(38px, 6vw, 84px); }
.page-hero h1 { font-size: clamp(38px, 6vw, 82px); }
h2 { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.04; }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.015em; font-variation-settings: "wdth" 108; }
.manifesto { font-size: clamp(26px, 3.8vw, 52px); line-height: 1.12; letter-spacing: -.03em; }
.final h2 { font-size: clamp(36px, 6vw, 82px); }
.mobile-menu a { font-size: 30px; }
.manifesto .w { color: #34312d; }

/* Le cuivre : réservé à la marque, aux chiffres clés et aux signatures */
.copper { background: var(--copper-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score, .tier__price b, .path__price b, .gauge__value span { background: var(--copper-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier--feature .tier__price b { background: linear-gradient(120deg, #4c32c2, #7a5af8 50%, #3a239e); -webkit-background-clip: text; background-clip: text; }

/* ---------- Boutons ---------- */
.btn { --bg: var(--ink); --fg: var(--black); }
.btn:hover { box-shadow: 0 0 0 1px var(--copper), 0 0 0 6px rgba(122, 90, 248, .14), 0 10px 40px -10px rgba(122, 90, 248, .5); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--copper); }
.btn--copper { --bg: var(--copper-grad); --fg: #1a0e06; background: var(--copper-grad); }

/* ---------- L'étoile SGPL (quatre branches, côtés concaves) ---------- */
.star { display: inline-block; width: 1em; height: 1em; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.star--copper { background: var(--copper-grad); }
.bullet-points li { padding-left: 26px; }
.bullet-points li::before { width: 11px; height: 11px; top: .45em; background: var(--copper-lo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Repère de section : étoile + filet, comme la ligne d'horizon du logo */
.mark { display: flex; align-items: center; gap: 12px; color: var(--copper); font-size: 15px; margin-bottom: 22px; }
.mark .star { font-size: 13px; background: var(--copper-grad); }
.mark span:last-child { color: var(--steel); }
.section--paper .mark span:last-child { color: #6b6f7d; }

/* Séparateur : étoile au centre d'un filet */
.divider { display: flex; align-items: center; gap: 18px; color: var(--copper); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider::after { background: linear-gradient(270deg, transparent, var(--line-strong)); }
.divider .star { font-size: 14px; background: var(--copper-grad); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.7) rotate(45deg); opacity: .6; } }

/* ---------- Ciel austral ---------- */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky::after { /* lueur d'horizon cuivrée, comme une aube sur le volcan */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -38vh; height: 70vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(122, 90, 248, .16), rgba(122, 90, 248, .04) 45%, transparent 70%);
  filter: blur(10px);
}
.hero, .final, .page-hero { position: relative; isolation: isolate; }
.hero > .wrap, .final > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.hero { background: radial-gradient(90% 70% at 70% 15%, #1c1a18 0%, var(--black) 62%); }
.page-hero { background: radial-gradient(80% 90% at 85% 0%, #1b1917 0%, var(--black) 62%); }

/* ---------- Orbite autour de la machine (héros) ---------- */
.bench { background: radial-gradient(110% 80% at 50% 35%, #232120 0%, #151413 55%, #0f0e0d 100%); box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -40px rgba(122, 90, 248, .25); }
.orbit { position: absolute; inset: -4% -6% 24%; z-index: 0; pointer-events: none; overflow: visible; }
.orbit .ring { fill: none; stroke: rgba(196, 208, 255, .12); stroke-width: 1; }
.orbit .arc { fill: none; stroke: url(#copperStroke); stroke-width: 2.2; stroke-linecap: round; }
.orbit .arc--a { stroke-dasharray: 260 1400; animation: orbitA 14s linear infinite; }
.orbit .arc--b { stroke-dasharray: 140 1400; stroke-dashoffset: -700; animation: orbitB 14s linear infinite; opacity: .7; }
@keyframes orbitA { to { stroke-dashoffset: -1660; } }
@keyframes orbitB { from { stroke-dashoffset: -700; } to { stroke-dashoffset: -2360; } }
.orbit .spark { fill: #fff; filter: drop-shadow(0 0 6px rgba(196, 181, 253, .9)); }
.bench .shot { z-index: 1; }

/* Orbites décoratives sur les cartes chemins */
.path { background: radial-gradient(100% 70% at 50% 20%, #1e1c1a, #121110 70%); }
.path__orbit { position: absolute; z-index: 0; right: -30%; top: -12%; width: 120%; pointer-events: none; opacity: .55; transition: opacity .6s, transform 1.4s var(--ease); }
.path:hover .path__orbit { opacity: 1; transform: rotate(-6deg); }
.path__orbit ellipse { fill: none; stroke: url(#copperStroke); stroke-width: 1.2; }
.path__body h3 { font-size: clamp(26px, 2.8vw, 36px); }

/* ---------- Atelier : la personne derrière les machines ---------- */
.atelier { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .atelier { grid-template-columns: .95fr 1.05fr; gap: 88px; } }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: radial-gradient(90% 70% at 50% 30%, #23211e, #141312 70%); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.portrait p { position: relative; z-index: 1; color: var(--steel); text-align: center; max-width: 16em; font-size: 15px; }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.signature-quote { font-family: var(--display); font-variation-settings: "wdth" 108; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.22; letter-spacing: -.02em; margin: 0 0 22px; }
.signature-quote::before { content: "« "; color: var(--copper); }
.signature-quote::after { content: " »"; color: var(--copper); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.facts div { padding: 18px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.facts b { display: block; font-family: var(--display); font-variation-settings: "wdth" 116; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; }
.facts span { font-size: 13.5px; color: var(--steel); }

/* ---------- Plaque de série (chaque machine est numérotée) ---------- */
.plate { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(122, 90, 248, .45); font-size: 13px; letter-spacing: .04em; color: var(--copper-hi); font-variant-numeric: tabular-nums; }
.plate .star { font-size: 10px; background: var(--copper-grad); }
.build .plate { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: rgba(15, 14, 13, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Ajustements des composants existants ---------- */
.shot { background: var(--graphite); }
.shot img { filter: grayscale(1) contrast(1.06) brightness(.82); }
.build .shot { box-shadow: inset 0 0 0 1px var(--line); }
.build .shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(122, 90, 248, 0); transition: box-shadow .6s; pointer-events: none; }
.build:hover .shot::after { box-shadow: inset 0 0 0 1px rgba(122, 90, 248, .6); }
.tag--ready::before { background: var(--copper-hi); box-shadow: 0 0 8px var(--copper); }
.step__n { color: var(--copper); font-family: var(--display); font-variation-settings: "wdth" 116; font-size: 17px; }
.step.is-active .step__n { text-shadow: 0 0 18px rgba(122, 90, 248, .6); }
.method__progress .track i { background: var(--copper-grad); }
.funnel__progress i::after { background: var(--copper-grad); }
.nav__links a[aria-current="page"]::after { background: var(--copper-grad); height: 1.5px; }
.avail__slots i.on { background: var(--copper-grad); }
.chip[aria-pressed="true"], .seg button[aria-pressed="true"], .tabs__pill { background: var(--ink); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--copper); background: rgba(122, 90, 248, .06); }
.opt[aria-pressed="true"]::before { box-shadow: inset 0 0 0 6px var(--copper); }
.commit svg { stroke: var(--copper); }
.quote { border-top-color: var(--line); }
.quote p::before { content: ""; display: block; width: 14px; height: 14px; margin-bottom: 18px; background: var(--copper-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.6 16.4 11.1 24 12 16.4 12.9 12.9 16.4 12 24 11.1 16.4 7.6 12.9 0 12 7.6 11.1 11.1 7.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.sheet { background: #fffdf9; }
.sheet__head img { filter: invert(1); }
.sheet__sign path { stroke: #4c32c2; }
.sample-note { background: var(--copper-lo); }
.calc, .summary, .note { background: linear-gradient(180deg, #1b1a18, #151413); }
.gauge__bar { background: #2a2825; }
.tier--feature { background: var(--ink); }
.tier--feature:hover { background: #fffaf2; }
.footer { background: linear-gradient(180deg, var(--black), #0a0908); }
.dock { background: rgba(28, 26, 24, .86); }
.dock a:last-child { background: var(--copper-grad); color: #1a0e06; }

/* ---------- Charte ---------- */
.swatches { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .swatches { grid-template-columns: repeat(5, 1fr); } }
.swatch { border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.swatch i { display: block; aspect-ratio: 1 / 1.1; }
.swatch div { padding: 14px 16px 16px; font-size: 14px; }
.swatch b { display: block; font-size: 16px; margin-bottom: 2px; }
.swatch span { color: var(--steel); font-variant-numeric: tabular-nums; }
.typespec { display: grid; gap: 14px; }
@media (min-width: 860px) { .typespec { grid-template-columns: 1.2fr .8fr; } }
.typespec > div { border-radius: 24px; padding: clamp(24px, 3.5vw, 44px); box-shadow: inset 0 0 0 1px var(--line); }
.posts { display: grid; gap: 14px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 22px; background: radial-gradient(110% 80% at 50% 25%, #23211e, #0f0e0d 70%); box-shadow: inset 0 0 0 1px var(--line); }
.post__logo { height: 22px; width: auto; }
.post__top { display: flex; justify-content: space-between; align-items: center; }
.post .shot { position: absolute; inset: 14% 8% 30%; z-index: -1; background: transparent; }
.post .shot img { object-fit: contain; filter: grayscale(.2) brightness(.95); }
.post__body { margin-top: auto; }
.post__body h4 { margin: 0 0 6px; font-family: var(--display); font-variation-settings: "wdth" 116; font-size: 24px; letter-spacing: -.025em; line-height: 1.05; font-weight: 600; }
.post__body p { margin: 0; font-size: 13.5px; color: var(--mist); }
.post--paper { background: var(--paper); color: var(--paper-ink); }
.post--paper .post__body p { color: #5d6170; }
.post--paper .post__logo { filter: invert(1); }
.dodont { display: grid; gap: 14px; }
@media (min-width: 760px) { .dodont { grid-template-columns: 1fr 1fr; } }
.dodont > div { border-radius: 24px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.dodont ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; color: var(--mist); }
.dodont li { display: flex; gap: 12px; align-items: baseline; }
.dodont .star { font-size: 10px; background: var(--copper-grad); }
.dodont .no { width: 10px; height: 1.5px; background: var(--steel); flex: none; transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .orbit .arc, .divider .star { animation: none; }
}

/* Correctifs de cascade */
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.tier--feature .btn { --bg: var(--black); --fg: var(--ink); }
.bench__panel, .bench__replay, .bench__scan { z-index: 2; }
.hero h1 { font-size: clamp(36px, 5.2vw, 74px); }
.lightbox .shot, .usage .shot { background: radial-gradient(100% 75% at 50% 30%, #22201d, #121110 70%) !important; }

/* ---------- Héros photo : une vraie station de travail ---------- */
.hero--photo { align-items: flex-end; padding-bottom: clamp(32px, 5vw, 64px); }
.hero--photo > .wrap { align-items: end; }
.hero__media { position: absolute; z-index: 0; inset: 0 0 0 28%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%;
  filter: grayscale(.75) brightness(.45) contrast(1.06); transition: filter 2.6s var(--ease), transform 8s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%);
  transform: scale(1.04); }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,13,.65) 0%, transparent 22%, transparent 58%, var(--black) 100%); }
.hero:has(.bench.is-done) .hero__media img { filter: grayscale(.12) brightness(.82) contrast(1.02); transform: scale(1); }
.hero__scan { position: absolute; left: 30%; right: 0; top: 10%; height: 1px; opacity: 0; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, .85) 30%, rgba(255,255,255,.9) 60%, transparent);
  box-shadow: 0 0 30px 6px rgba(122, 90, 248, .18); }
.hero:has(.bench.is-running) .hero__scan { opacity: 1; animation: heroScan 2.8s var(--ease-in-out) infinite alternate; }
@keyframes heroScan { from { top: 12%; } to { top: 82%; } }
.hero__credit { position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--nav-h) + 12px); font-size: 11.5px; color: rgba(243, 239, 232, .45); }

.bench--float { aspect-ratio: auto; max-height: none; background: none !important; box-shadow: none !important; overflow: visible; border-radius: 0; width: 100%; max-width: 440px; justify-self: end; }
.bench--float .bench__panel { position: relative; left: auto; right: auto; bottom: auto; background: rgba(20, 19, 18, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.bench--float .bench__replay { position: static; display: block; margin: 0 0 10px auto; background: rgba(20, 19, 18, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

@media (max-width: 959px) {
  .hero--photo { padding-top: calc(var(--nav-h) + 30svh); }
  .hero__media { inset: 0 0 auto 0; height: 62svh; }
  .hero__media img { -webkit-mask-image: none; mask-image: none; object-position: 50% 40%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(15,14,13,.55) 0%, transparent 25%, rgba(15,14,13,.4) 60%, var(--black) 100%); }
  .hero__scan { left: 0; }
  .hero__credit { top: auto; bottom: 8px; left: var(--gutter); right: auto; }
  .bench--float { max-width: none; justify-self: stretch; }
}
/* lisibilité du texte sur la photo */
.hero__media { left: 32%; }
.hero__media img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 20%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 20%, #000 55%); }
.hero--photo .lead { text-shadow: 0 1px 24px rgba(15,14,13,.9); }
@media (max-width: 959px) {
  .hero__media { left: 0; }
  .hero__media img { -webkit-mask-image: none; mask-image: none; }
  .hero--photo { padding-top: calc(var(--nav-h) + 34svh); }
  .hero__media::after { background: linear-gradient(180deg, rgba(15,14,13,.55) 0%, transparent 22%, rgba(15,14,13,.65) 55%, var(--black) 92%); }
  .hero__credit { top: calc(var(--nav-h) + 8px); bottom: auto; left: auto; right: var(--gutter); max-width: 60%; text-align: right; }
}

/* Photo cuivrée : la machine est à droite de l'image */
.hero__media img { object-position: 72% 50%; filter: grayscale(.85) brightness(.5) contrast(1.05); }
.hero:has(.bench.is-done) .hero__media img { filter: none; }
@media (max-width: 959px) { .hero__media img { object-position: 64% 45%; } }

/* Héros : retour à la carte « banc de test », photo cuivrée en plein cadre */
.bench--photo { background: #0f0e0d !important; }
.bench--photo .shot { inset: 0; }
.bench--photo .shot img { object-fit: cover; object-position: 68% 42%; filter: grayscale(.85) brightness(.55) contrast(1.05); transform: scale(1.06); transition: filter 2.4s var(--ease), transform 6s var(--ease); }
.bench--photo.is-done .shot img { filter: none; transform: scale(1); }
.bench--photo .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,14,13,.35) 0%, transparent 25%, transparent 45%, rgba(15,14,13,.85) 78%); pointer-events: none; }
.bench--photo .bench__scan { left: 0; right: 0; z-index: 2; background: linear-gradient(90deg, transparent, rgba(196, 181, 253,.85) 30%, rgba(255,255,255,.9) 60%, transparent); }
.bench__credit { position: absolute; z-index: 3; left: 16px; top: 18px; font-size: 11px; color: rgba(243,239,232,.5); }
@media (max-width: 959px) {
  .bench--photo { aspect-ratio: 4 / 5.6; }
  .bench__credit { max-width: 52%; line-height: 1.3; }
}

/* Photo station (noire, sans RGB) + test de démo rapide */
.bench--photo .shot img { object-position: 40% 45%; transition: filter .9s var(--ease), transform 1.8s var(--ease); }
.bench.is-running .bench__scan { animation-duration: .55s !important; }
.bench--photo .bench__scan { box-shadow: 0 0 24px 4px rgba(122, 90, 248,.25); }
