/* =========================================================
   COMÈTE STUDIO — cometestudio.fr
   Vanilla CSS, mobile-first, tech-brutalist mono-accent ember
   Tokens dérivés de louisgirault.fr, accent #FF6B35
   ========================================================= */

/* ========== FONTS (self-hosted, no Google CDN) ========== */
/* Variable fonts — un fichier .woff2 par subset couvre toutes les graisses */
/* Space Grotesk : graisses 300-700 disponibles ; weight: 900 utilisé via faux-bold synthétique navigateur (identique au comportement Google Fonts précédent) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ========== RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

a {
  color: var(--ember);
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

a:hover { opacity: .85; }

/* ========== TOKENS ========== */
:root {
  /* Couleurs */
  --void:        #0A0A0A;
  --void-2:      #141414;
  --void-3:      #1B1B1B;
  --bone:        #F2F2F0;
  --bone-dim:    #999996;
  --bone-soft:   #C8C8C5;
  --rule:        #2A2A2A;

  --ember:       #FF6B35;        /* accent principal */
  --ember-soft:  #FF8F66;        /* hover */
  --ember-glow:  rgba(255,107,53,0.18);

  /* Typos */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Géométrie */
  --container:    1240px;
  --gutter:       clamp(20px, 5vw, 64px);
  --section-y:    clamp(80px, 12vw, 160px);
}

/* ========== A11Y ========== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: 0;
  background: var(--void);
  color: var(--ember);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border: 1px solid var(--ember);
}
.skip-link:focus { top: 0; }

*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

button, a.cta, .nav__links a, .nav__burger, summary {
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-blink { animation: none !important; }
  .blob { display: none !important; }
}

/* ========== BASE TYPO ========== */
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p { line-height: 1.6; }

strong { font-weight: 700; color: var(--bone); }

em { font-style: italic; color: var(--bone-dim); }

::selection { background: var(--ember); color: var(--void); }

/* ========== GRAIN OVERLAY ========== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 100vw;
  height: 100vh;
}
.grain-overlay svg { width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  .grain-overlay { opacity: .08; }
}

/* ========== BLOB CURSOR ========== */
.blob {
  position: fixed;
  width: 600px;
  height: 600px;
  background: var(--ember);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  top: 0; left: 0;
  transition: transform .3s ease-out;
  will-change: transform;
}

@media (max-width: 768px) {
  .blob { display: none; }
}

/* ========== NAV ========== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone);
}

.nav__logo:hover { opacity: 1; }

.logo-pic { height: 28px; width: auto; }

.wordmark {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(0.95);
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-soft);
  font-weight: 500;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--ember);
  transition: width .25s ease;
}

.nav__links a:hover { color: var(--bone); opacity: 1; }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  border: 1px solid var(--ember);
  color: var(--ember) !important;
  padding: 8px 14px;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.nav__cta:hover {
  background: var(--ember);
  color: var(--void) !important;
}
.nav__cta::after { display: none; }

/* Burger */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.nav__burger-line {
  width: 18px;
  height: 1.5px;
  background: var(--bone);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 65px; left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--void);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__links.is-open { max-height: 80vh; }
  .nav__links li {
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .nav__links li:last-child { border-bottom: 0; }
  .nav__links a {
    display: block;
    padding: 18px clamp(20px, 4vw, 40px);
    font-size: 1rem;
  }
  .nav__links a::after { display: none; }
  .nav__cta {
    border: 0 !important;
    color: var(--ember) !important;
    padding: 18px clamp(20px, 4vw, 40px) !important;
  }
  .nav__cta:hover { background: transparent; color: var(--ember) !important; }
}

/* ========== SECTIONS (cadre commun) ========== */
section {
  position: relative;
  z-index: 2;
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.section-anchor {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-dim);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 22ch;
}

.section-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--bone-soft);
  max-width: 60ch;
  margin-bottom: 56px;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 48px 0;
}

.ember { color: var(--ember); }

/* ========== CTAs ========== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 22px;
  border-radius: 2px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}

.cta--primary {
  background: var(--ember);
  color: var(--void) !important;
  border: 1px solid var(--ember);
}
.cta--primary:hover {
  background: var(--ember-soft);
  border-color: var(--ember-soft);
  transform: translateY(-1px);
  opacity: 1;
}

.cta--secondary {
  border: 1px solid var(--bone-soft);
  color: var(--bone) !important;
  background: transparent;
}
.cta--secondary:hover {
  border-color: var(--ember);
  color: var(--ember) !important;
  transform: translateY(-1px);
  opacity: 1;
}

.cta--xl {
  font-size: 1.1rem;
  padding: 22px 32px;
}

/* ========== 1. HERO ========== */
.hero {
  min-height: calc(100vh - 80px);
  padding: clamp(60px, 12vh, 140px) var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-soft);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 2px;
  background: var(--void-2);
  margin-bottom: 40px;
  width: fit-content;
}

.cursor-blink {
  color: var(--ember);
  animation: blink 1.1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  max-width: 20ch;
}

.hero__title-main {
  display: block;
  color: var(--bone);
}

.hero__title-accent {
  display: block;
  color: var(--ember);
  margin-top: 0.25em;
  font-size: 0.65em;
  font-weight: 700;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--bone-soft);
  max-width: 50ch;
  margin-bottom: 48px;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========== 2. PROOF STRIP ========== */
.proof-strip {
  padding-top: 0;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.proof-strip__label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-dim);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.proof-stat {
  background: var(--void);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proof-stat__figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--ember);
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-stat__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bone);
  text-transform: lowercase;
}

.proof-stat__source {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bone-dim);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .proof-strip__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .proof-strip__grid { grid-template-columns: 1fr; }
}

/* ========== 3. MANIFESTE ========== */
.manifeste__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 48px;
}

.manifeste__list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  color: var(--bone);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.manifeste__punch {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin: 56px 0;
  max-width: 1100px;
}

.manifeste__thesis {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--bone-soft);
  max-width: 50ch;
  margin-bottom: 20px;
  line-height: 1.5;
}

.manifeste__resolve {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--bone);
}

/* ========== 4. MARCHÉ ========== */
.marche__table {
  border: 1px solid var(--rule);
  background: var(--void-2);
  margin-bottom: 56px;
}

.marche__row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.8fr;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.marche__row:last-child { border-bottom: 0; }

.marche__row > span {
  padding: 24px 28px;
  display: flex;
  align-items: center;
}

.marche__row--head > span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone-dim);
  padding-top: 18px;
  padding-bottom: 18px;
  background: var(--void-3);
}

.marche__cell-name {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--bone);
  line-height: 1.4;
}

.marche__cell-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--bone-dim);
  opacity: 0.7;
  font-family: var(--font-mono);
  margin-top: 10px;
  line-height: 1.4;
}

.marche__cell-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ember);
  letter-spacing: -0.01em;
}

.marche__cell-limit {
  font-family: var(--font-body);
  color: var(--bone-soft);
  font-size: 0.95rem;
}

.marche__conclusion {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--bone);
}

@media (max-width: 768px) {
  .marche__row { grid-template-columns: 1fr; }
  .marche__row > span {
    padding: 16px 20px;
    border-bottom: 1px dashed var(--rule);
  }
  .marche__row > span:last-child { border-bottom: 0; }
  .marche__row--head { display: none; }
  .marche__cell-price {
    font-size: 1.4rem;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .marche__cell-price::before {
    content: 'Coût : ';
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--bone-dim);
    font-weight: 500;
    margin-right: 8px;
  }
  .marche__cell-limit::before {
    content: '↳ ';
    color: var(--bone-dim);
    margin-right: 4px;
  }
}

/* ========== 5. ORBITE ========== */
.orbite__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0;
}

.app-card {
  border: 1px solid var(--rule);
  background: var(--void-2);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, border-color .2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--ember);
}

.app-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ember);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.app-card__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bone);
  line-height: 1.3;
  margin-bottom: 8px;
}

.app-card__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bone-soft);
  line-height: 1.55;
}

.app-card__stat {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-dim);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: auto;
}

.app-card > :last-child {
  margin-top: auto;
}

.orbite__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--bone-dim);
  max-width: 60ch;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .orbite__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ========== 6. CAS PEGGY ========== */
.cas__title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 32px;
}

.cas__intro {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--bone-soft);
  margin-bottom: 24px;
  line-height: 1.5;
}

.cas__punch {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: 56px;
}

.peggy-photo {
  width: min(100%, 55vw);
  margin: 4rem auto;
  padding: 0;
}

.peggy-photo picture {
  display: block;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  border: 1px solid var(--rule);
  background: var(--void);
  overflow: hidden;
}

.peggy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.peggy-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-dim);
  opacity: 0.7;
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .peggy-photo { width: 100%; margin: 2.5rem auto; }
}

.cas__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--bone-soft);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 60ch;
}

.cas__qualitative {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 56px;
}

.cas__block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
  align-items: start;
  max-width: 65ch;
}

.cas__block-tag {
  font-family: var(--font-mono);
  color: var(--ember);
  font-weight: 700;
  line-height: 1;
  padding-top: 8px;
}

.cas__block-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--bone);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cas__block-body {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bone-soft);
  line-height: 1.6;
}

.cas__transparence {
  border-left: 2px solid var(--ember);
  padding: 8px 0 8px 24px;
  margin-bottom: 48px;
  max-width: 65ch;
}

.cas__transparence p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--bone-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cas__transparence p:last-child { margin-bottom: 0; }

.cas__open strong {
  color: var(--bone);
  font-weight: 700;
}

.cas__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========== 7. PILIERS ========== */
.piliers__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: pilier;
}

.pilier {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-areas:
    "num title"
    "num body";
  gap: 8px 32px;
  align-items: start;
}

.pilier__num   { grid-area: num; }
.pilier__title { grid-area: title; }
.pilier__body  { grid-area: body; }

.pilier:last-child { border-bottom: 1px solid var(--rule); }

.pilier__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ember);
  letter-spacing: 0.05em;
  padding-top: 6px;
}

.pilier__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--bone);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.pilier__body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bone-soft);
  line-height: 1.6;
  max-width: 65ch;
}

@media (max-width: 640px) {
  .pilier {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 32px 0;
  }
  .pilier__title { margin-top: 8px; }
}

/* ========== 8. ARCHITECTURE (3 couches) ========== */
.archi__table {
  border: 1px solid var(--rule);
  background: var(--void-2);
  margin-bottom: 56px;
}

.archi__row {
  display: grid;
  grid-template-columns: 80px 2.4fr 1.2fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}

.archi__row:last-child { border-bottom: 0; }

.archi__row > span {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  color: var(--bone);
}

.archi__row--head > span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone-dim);
  background: var(--void-3);
}

.archi__cell-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ember);
  justify-content: center;
}

.archi__row--highlight {
  background: var(--ember-glow);
}

.archi__row--highlight .archi__cell-num {
  font-weight: 700;
}

.archi__cell-detail {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-dim);
  opacity: 0.7;
  margin-top: 10px;
  line-height: 1.4;
}

.archi__row--highlight .archi__cell-detail {
  color: var(--bone-soft);
  opacity: 1;
}

.archi__terms {
  font-family: var(--font-body);
  color: var(--bone-soft);
  line-height: 1.7;
  max-width: 65ch;
}

.archi__terms p { margin-bottom: 12px; }

.archi__terms ul {
  margin: 12px 0 24px;
}

.archi__terms li {
  font-family: var(--font-body);
  color: var(--bone);
  padding-left: 0;
  margin-bottom: 8px;
}

.archi__rule {
  border-left: 2px solid var(--ember);
  padding: 8px 0 8px 20px;
  font-style: italic;
  color: var(--bone-soft);
  margin-top: 24px;
}

@media (max-width: 768px) {
  .archi__row { grid-template-columns: 60px 1fr 1fr; }
  .archi__row > span { padding: 16px 14px; font-size: 0.95rem; }
  .archi__cell-num { font-size: 1rem; }
}

@media (max-width: 480px) {
  .archi__row { grid-template-columns: 50px 1fr; }
  .archi__row > span:last-child {
    grid-column: 2;
    padding-top: 0;
    padding-bottom: 16px;
    color: var(--ember);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
  }
  .archi__row--head { display: none; }
}

/* ========== 9. ENGAGEMENT (pricing) ========== */
.engagement__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 32px;
}

.engagement__lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--bone-soft);
  line-height: 1.6;
  max-width: 55ch;
  margin-bottom: 32px;
}

.engagement__modal {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.6;
  max-width: 55ch;
}

.engagement__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--bone);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.engagement__criteria {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 60ch;
}

.engagement__criteria li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--bone);
  line-height: 1.5;
}

.criterion-box {
  font-family: var(--font-mono);
  color: var(--ember);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== 10. DISCOVERY ========== */
.discovery {
  text-align: left;
}

.discovery__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 18ch;
}

.discovery__title > span { display: block; }

.discovery__lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--bone-soft);
  margin-bottom: 24px;
}

.discovery__segments {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 70ch;
}

.discovery__segments li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--bone-soft);
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.discovery__segments li:last-child { border-bottom: 0; }

.discovery__num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ember);
  margin-right: 12px;
}

.discovery__segments strong { color: var(--bone); }

.discovery__promise {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  color: var(--bone-dim);
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 56px;
}

.discovery__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.discovery__email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.discovery__email a { color: var(--bone-soft); }
.discovery__email a:hover { color: var(--ember); }

/* ========== 11. FAQ ========== */
.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--bone);
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.01em;
  position: relative;
  padding-right: 40px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ember);
  transition: transform .2s ease;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item summary:hover { color: var(--ember); }

.faq__item p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bone-soft);
  line-height: 1.7;
  padding: 0 0 24px;
  max-width: 70ch;
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--void-2);
  border-top: 1px solid var(--rule);
  padding: 80px var(--gutter) 40px;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}

.footer__brand .footer__tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bone-soft);
  line-height: 1.5;
  margin-top: 20px;
  max-width: 30ch;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  margin-bottom: 16px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bone-soft);
}

.footer__nav a:hover { color: var(--ember); opacity: 1; }

.footer__meta {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bone-dim);
}

@media (max-width: 880px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ========== STICKY MOBILE CTA ========== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ember);
  color: var(--void);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 2px;
  text-decoration: none;
  z-index: 99;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .sticky-cta { display: inline-block; }
}

/* ========== SUB-PAGES (legal, 404) ========== */
.legal-page,
.error-page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 56px;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ember);
  margin-top: 56px;
  margin-bottom: 18px;
}

.legal-page section { padding: 0; margin: 0; max-width: none; }

.legal-page p,
.legal-page li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bone-soft);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 70ch;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bone-dim);
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.legal-page .legal-version {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ember);
  letter-spacing: 0.04em;
  margin: -40px 0 56px;
  padding: 8px 14px;
  border: 1px solid var(--ember);
  border-radius: 2px;
  width: fit-content;
  background: var(--ember-glow);
}

.error-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  margin: 24px 0 32px;
  color: var(--bone);
}

.error-page .error-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.error-page p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--bone-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}

.error-page .error-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
}

.error-page .error-links a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ember);
}

.error-page .error-links a:hover { color: var(--ember-soft); opacity: 1; }

/* ========== RESPONSIVE FINE-TUNING ========== */
@media (max-width: 640px) {
  body { padding-top: 70px; }
  section { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero { padding-top: 40px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .cta { justify-content: center; }
  .cas__ctas .cta { width: 100%; justify-content: center; }
  .discovery__cta-wrap { width: 100%; }
  .discovery__cta-wrap .cta { width: 100%; justify-content: center; }
}
