/* =====================================================================
   Hajime Studio : portfolio
   Mise en page : une colonne éditoriale (1240 px max) posée sur une scène 3D
   fixe (l'aube). Le texte reste sur le calque HTML, la 3D reste décorative.
   Thème unique et volontairement sombre : la nuit qui devient l'aube.
   ===================================================================== */

/* ---------- Polices (hébergées avec le site : pas d'appel à Google) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Jetons (couleurs de la marque Hajime) ---------- */
:root {
  color-scheme: dark;
  --night: #120c08;          /* fond : la nuit avant l'aube */
  --night-2: #1b130d;        /* surfaces */
  --ink: #2b2118;            /* encre de la marque */
  --copper: #a55a17;         /* cuivre (couleur principale) */
  --copper-light: #d98a45;   /* cuivre clair, lisible sur fond sombre */
  --gold: #f0b46e;           /* lumière du soleil */
  --cream: #fbf1e6;          /* texte */
  --peach: #f3d9bc;
  --muted: #c9b8a6;          /* texte secondaire (contraste 9,9:1 sur la nuit) */
  --line: rgba(251, 241, 230, 0.14);
  --line-strong: rgba(251, 241, 230, 0.28);
  --panel: rgba(18, 12, 8, 0.82);

  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.6rem, 1.3rem + 5.6vw, 6.6rem);
  --fs-title: clamp(2.1rem, 1.25rem + 3.7vw, 4.5rem);
  --fs-manifesto: clamp(1.65rem, 1.05rem + 2.5vw, 3.3rem);
  --fs-lead: clamp(1.06rem, 0.98rem + 0.45vw, 1.32rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.75rem;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --header-h: 76px;
  --space-section: clamp(96px, 15vh, 190px);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--copper-light); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--cream); color: var(--night); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip:focus-visible { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(16px, var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(16px, var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- La scène (3D) et son fond de secours ---------- */
.sky-fallback, .scene {
  position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: 0; pointer-events: none;
}
.sky-fallback {
  background:
    radial-gradient(70vmax 45vmax at 62% 74%, rgba(217, 138, 69, 0.32), transparent 62%),
    linear-gradient(180deg, #0a0706 0%, #160e0a 52%, #2c1a10 74%, #0b0705 74.2%, #0b0705 100%);
}
.sky-fallback::after {
  /* le soleil rayé du logo, en CSS, quand la 3D n'est pas disponible */
  content: ""; position: absolute; left: 62%; top: 74%; width: clamp(140px, 22vmin, 260px); aspect-ratio: 1;
  transform: translate(-50%, -78%);
  background: url("../favicon.svg") center / contain no-repeat;
  clip-path: inset(0 0 22% 0);
}
.scene { opacity: 0; transition: opacity 1.6s var(--ease); }
.scene.is-ready { opacity: 1; }

.page { position: relative; z-index: 1; }

/* Barre de progression de lecture */
.progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; pointer-events: none;
}
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--copper), var(--gold));
}

/* Curseur (souris uniquement) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(240, 180, 110, 0.75); border-radius: 50%;
  pointer-events: none; opacity: 0; transform: translate3d(-100px, -100px, 0);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out),
              background-color 0.35s, border-color 0.35s, opacity 0.3s;
  display: grid; place-items: center;
  font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night);
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(240, 180, 110, 0.12); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
.cursor span { opacity: 0; transition: opacity 0.2s; }
.cursor.is-label span { opacity: 1; }

/* Chapitre en cours (grand écran) */
.chapter {
  position: fixed; z-index: 40; left: max(18px, env(safe-area-inset-left, 0px)); top: 50%;
  display: none; align-items: center; gap: 14px;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  pointer-events: none;
}
.chapter::before { content: ""; width: 1px; height: 56px; background: var(--line-strong); }
.chapter__name { transition: opacity 0.4s; }
@media (min-width: 1380px) { .chapter { display: flex; } }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header.is-scrolled { background: rgba(14, 9, 6, 0.78); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: block; width: 168px; flex: none; }
.brand svg { width: 100%; height: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--muted);
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.45s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (max-width: 900px) { .nav { display: none; } .brand { width: 136px; } }

/* ---------- Boutons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.85em 1.55em; border-radius: 999px; border: 0;
  background: var(--copper-light); color: var(--night);
  font: 600 1rem/1.1 var(--font-sans); letter-spacing: 0; text-decoration: none; cursor: pointer;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.5s var(--ease-out), background-color 0.3s, box-shadow 0.4s, color 0.3s;
}
.btn:hover { background: var(--gold); box-shadow: 0 14px 44px -14px rgba(240, 180, 110, 0.75); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: rgba(251, 241, 230, 0.06); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--small { min-height: 42px; padding: 0.6em 1.15em; font-size: 0.92rem; }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Éléments de texte communs ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-light);
}
.eyebrow::before {
  /* le petit soleil rayé de la marque */
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("../favicon.svg") center / contain no-repeat;
}
.title { font-size: var(--fs-title); font-weight: 700; }
.accent { color: var(--copper-light); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 50ch; font-weight: 300; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 8vh, 88px); max-width: 860px; }
section { position: relative; }
/* Le texte courant garde une ombre douce : il reste lisible quand l'aube s'éclaire derrière */
.lead, .step p, .about__text p, .promises span, .faq details p, .faq summary, .manifesto__text, .hero__lead, .contact__jp, .proof__source {
  text-shadow: 0 1px 2px rgba(10, 7, 5, 0.6), 0 2px 18px rgba(10, 7, 5, 0.85);
}

/* ---------- Hero ---------- */
.hero {
  min-height: max(620px, 92svh);
  display: grid; align-items: end;
  padding-block: calc(var(--header-h) + 64px) clamp(64px, 11vh, 120px);
}
.hero__inner { position: relative; display: grid; gap: 30px; }
.hero__title { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.045em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: 0.62em; }
.hero__title .accent { color: var(--gold); }
.hero__lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 22px; border-top: 1px solid var(--line);
  font: 400 0.82rem/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); max-width: 760px;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper-light); flex: none; }

.hero__kanji {
  position: absolute; z-index: 1; right: max(16px, var(--gutter), env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 5vh);
  width: clamp(84px, 10vw, 150px); display: grid; justify-items: center; gap: 18px; pointer-events: none;
}
.hero__kanji svg { width: 100%; height: auto; overflow: visible; }
.hero__kanji path {
  fill: rgba(240, 180, 110, 0.92); stroke: var(--gold); stroke-width: 6; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.hero__kanji figcaption {
  writing-mode: vertical-rl; font: 400 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
}
.js .hero__kanji path { animation: kanji-ink 3.2s var(--ease) 0.25s both; }
.js .hero__kanji path:nth-child(2) { animation-delay: 1s; }
@keyframes kanji-ink {
  0% { stroke-dashoffset: 1; fill: rgba(240, 180, 110, 0); }
  65% { stroke-dashoffset: 0; fill: rgba(240, 180, 110, 0); }
  100% { stroke-dashoffset: 0; fill: rgba(240, 180, 110, 0.92); }
}
@media (max-width: 760px) {
  .hero__kanji { display: none; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
}

.scroll-cue {
  position: absolute; right: max(16px, var(--gutter), env(safe-area-inset-right, 0px)); bottom: 28px; z-index: 1;
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span { position: relative; width: 1px; height: 52px; background: var(--line-strong); overflow: hidden; }
.scroll-cue span::after {
  content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* Entrée du hero (au chargement) : le texte reste lisible, il glisse en place */
.js .hero__title .line > span { animation: rise 1.25s var(--ease-out) both; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.08s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: 0.16s; }
.js .hero__lead, .js .hero__ctas, .js .hero__facts { animation: fade-up 1.2s var(--ease-out) 0.35s both; }
.js .hero__ctas { animation-delay: 0.45s; }
.js .hero__facts { animation-delay: 0.55s; }
@keyframes rise { from { transform: translateY(55%) rotate(2deg); } to { transform: none; } }
@keyframes fade-up { from { transform: translateY(26px); opacity: 0.25; } to { transform: none; opacity: 1; } }

/* ---------- Manifeste (les mots s'allument au défilement) ---------- */
.manifesto { padding-block: var(--space-section); }
.manifesto .wrap { display: grid; gap: 40px; }
.manifesto__text {
  font-size: var(--fs-manifesto); line-height: 1.22; font-weight: 500; letter-spacing: -0.02em; max-width: 21ch;
}
.manifesto__text em { font-style: normal; color: var(--gold); }
/* 0,5 : un mot « éteint » garde un contraste suffisant (4,9:1 en crème, 3,4:1 en doré) */
.js .manifesto__text .w { opacity: 0.5; transition: opacity 0.35s linear; }
.js .manifesto__text .w.is-lit { opacity: 1; }
.manifesto__sign {
  display: flex; align-items: center; gap: 18px; max-width: 520px;
  color: var(--muted); font-size: var(--fs-small);
}
.manifesto__sign svg { width: 76px; flex: none; }
.manifesto__sign path { fill: var(--copper-light); }

/* ---------- Bandeau défilant ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: 26px;
  border-block: 1px solid var(--line); background: rgba(18, 12, 8, 0.55);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap;
}
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--copper-light); }
.marquee__item::after {
  content: ""; width: 0.5em; height: 0.5em; flex: none; background: url("../favicon.svg") center / contain no-repeat;
}

/* ---------- Offre ---------- */
.offer { padding-block: var(--space-section) 0; }
.offer__head { margin-bottom: clamp(36px, 6vh, 64px); }
.offer__head .section-head { margin-bottom: 0; }
.offer__track {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.offer-card {
  position: relative; display: grid; align-content: start; gap: 16px;
  padding: clamp(24px, 3vw, 36px); min-height: 300px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.offer-card:hover { border-color: rgba(240, 180, 110, 0.5); }
.offer-card__label {
  font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-light);
}
.offer-card h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.offer-card p { color: var(--muted); }
.offer-card__icon { width: 44px; height: 44px; color: var(--gold); }
.offer-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.offer__progress { display: none; }
.offer__foot { padding-block: clamp(36px, 6vh, 64px) var(--space-section); }
/* Conditions de l'offre : 4 cartes avec icônes animées */
.terms { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.term {
  position: relative; display: grid; align-content: start; gap: 12px; overflow: hidden;
  padding: clamp(22px, 2.4vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 0.4s, transform 0.6s var(--ease-out), opacity 1.2s var(--ease-out);
}
.term::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 110, 0.22), transparent 70%); opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.term:hover { border-color: rgba(240, 180, 110, 0.55); transform: translateY(-4px); }
.term:hover::before { opacity: 1; }
.term--price { border-color: rgba(240, 180, 110, 0.45); background: linear-gradient(160deg, rgba(165, 90, 23, 0.28), rgba(18, 12, 8, 0.86) 60%); }
.term--price::before { opacity: 0.8; }
.term__icon {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 6px;
  border: 1px solid rgba(240, 180, 110, 0.35); background: radial-gradient(circle, rgba(217, 138, 69, 0.2), transparent 70%); color: var(--gold);
}
.term__icon svg { width: 34px; height: 34px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.term__icon .dot { fill: currentColor; stroke: none; }
.term dt { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-light); }
.term dd { margin: 0; display: grid; gap: 6px; }
.term__value { font-size: clamp(1.55rem, 1.1rem + 1.1vw, 2.05rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--cream); }
.term--price .term__value { color: var(--gold); }
.term__note { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1000px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .terms { grid-template-columns: minmax(0, 1fr); } .term { grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; } .term__icon { grid-row: span 2; margin: 0; } }

/* Animations des icônes : tracé à l'apparition, puis petite boucle */
.term__icon .ic-hour, .term__icon .ic-min, .term__icon .ic-key { transform-box: view-box; }
.term__icon .ic-hour, .term__icon .ic-min { transform-origin: 24px 25px; }
.term__icon .ic-key { transform-origin: 15px 24px; }
.term__icon .ic-spark { transform-box: fill-box; transform-origin: center; }
.term__icon .ic-sign { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .term .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .term.is-in .draw { animation: term-draw 1.4s var(--ease-out) forwards; animation-delay: calc(var(--d, 0s) + 0.2s); }
  .term .ic-min { animation: spin 4s linear infinite; }
  .term .ic-hour { animation: spin 48s linear infinite; }
  .term .ic-key { animation: key-turn 3.2s var(--ease) infinite; }
  .term .ic-spark { animation: spark 2.4s var(--ease) infinite; }
  .term .ic-sign { animation: sign 3.6s var(--ease) infinite; }
}
@keyframes term-draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes key-turn { 0%, 55%, 100% { transform: rotate(0deg); } 70%, 85% { transform: rotate(-28deg); } }
@keyframes spark { 0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0.2; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes sign { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

/* Défilement horizontal épinglé (grand écran, ajouté par main.js) */
.offer.is-pinned { padding-top: 0; }
.offer.is-pinned .offer__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h);
}
.offer.is-pinned .offer__track {
  display: flex; gap: 22px; width: max-content; will-change: transform;
  padding-left: max(16px, var(--gutter), calc((100vw - var(--max)) / 2));
  padding-right: max(16px, var(--gutter));
}
.offer.is-pinned .offer-card { width: clamp(320px, 30vw, 420px); min-height: 380px; transform: rotateY(var(--ry, 0deg)); transform-origin: 0 50%; }
.offer.is-pinned .offer__track { perspective: 1400px; }
.offer.is-pinned .offer__progress {
  display: block; position: relative; height: 1px; margin-top: clamp(28px, 5vh, 52px); background: var(--line);
}
.offer.is-pinned .offer__progress span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold); }

/* ---------- Travaux ---------- */
.work { padding-block: var(--space-section); }
.work__grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project {
  position: relative; display: grid; gap: 0; align-content: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.project--featured { grid-column: 1 / -1; }
.project--featured .project__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); }
.project__intro, .project__details { display: grid; gap: 16px; align-content: start; min-width: 0; }
.project__media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%;
  background: #0d0806; perspective: 1000px;
}
.project__media img, .project__placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--s, 1.02)) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 1.2s var(--ease-out);
}
.project__media:hover { --s: 1.06; }
.project__open {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: rgba(14, 9, 6, 0.86); color: var(--cream);
  font: 500 0.82rem/1 var(--font-mono); letter-spacing: 0.06em;
  transform: translateY(8px); opacity: 0.001; transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.project__media:hover .project__open, .project__media:focus-visible .project__open { transform: none; opacity: 1; }
@media (hover: none) { .project__open { transform: none; opacity: 1; } }
.project__body { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 40px); min-width: 0; }
.project__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-light);
}
.project__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.6rem); letter-spacing: -0.04em; }
.project__desc { color: var(--muted); }
.project__points { display: grid; gap: 10px; padding-top: 6px; }
.project__points li { position: relative; padding-left: 26px; }
.project__points li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px;
  background: url("../favicon.svg") center / contain no-repeat;
}
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project__tags li {
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 400 0.78rem/1 var(--font-mono); color: var(--muted);
}
.project__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 6px; }
.project__pw { font: 400 0.85rem/1.4 var(--font-mono); color: var(--muted); }
.project__pw code { color: var(--gold); font-family: inherit; }
.project__placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(217, 138, 69, 0.18) 22px 23px),
    radial-gradient(60% 70% at 70% 40%, rgba(217, 138, 69, 0.45), transparent 70%), #160e09;
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; letter-spacing: -0.05em; color: var(--gold);
}
.project--cta { place-content: center; text-align: left; min-height: 340px; border-style: dashed; border-color: var(--line-strong); background: rgba(18, 12, 8, 0.6); }
.project--cta .project__body { gap: 20px; }
.project--cta h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .project--featured .project__body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Preuves (scores Lighthouse) ---------- */
.proof { padding-block: var(--space-section); }
.scores {
  display: grid; gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.score { display: grid; justify-items: center; gap: 14px; text-align: center; }
.score__ring { position: relative; width: min(100%, 168px); aspect-ratio: 1; }
.score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__ring circle { fill: none; stroke-width: 1.6; }
.score__ring .track { stroke: var(--line); }
.score__ring .bar { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 0)); transition: stroke-dashoffset 1.6s var(--ease-out); }
.score__value {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.score__label { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vitals {
  display: flex; flex-wrap: wrap; gap: 12px 36px; margin: clamp(40px, 6vh, 64px) 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.vitals div { display: flex; align-items: baseline; gap: 10px; }
.vitals dt { font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vitals dd { margin: 0; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.proof__source { margin-top: 18px; font: 400 0.8rem/1.5 var(--font-mono); color: var(--muted); max-width: 70ch; }
@media (max-width: 760px) { .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; } }

/* ---------- Méthode ---------- */
.method { padding-block: var(--space-section); }
.method__grid { display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.method .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.steps { position: relative; }
.steps__list { display: grid; gap: clamp(44px, 7vh, 72px); }
.steps__line { position: absolute; left: 31px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--p, 1)); background: linear-gradient(var(--gold), var(--copper)); }
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 26px; align-items: start; }
.step__num {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--night); border: 1px solid var(--line-strong); transition: border-color 0.5s, background-color 0.5s;
}
.step__num svg { width: 34px; height: 34px; }
.step__num path { fill: var(--muted); transition: fill 0.5s; }
.step.is-active .step__num { border-color: var(--gold); background: #23160d; }
.step.is-active .step__num path { fill: var(--gold); }
.step h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 10px; }
.step p { color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .method__grid { grid-template-columns: minmax(0, 1fr); }
  .method .section-head { position: static; }
}

/* ---------- À propos ---------- */
.about { padding-block: var(--space-section); }
.about__grid { display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.about__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 4px; overflow: hidden; background: #160e09; border: 1px solid var(--line); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__monogram { width: 100%; height: 100%; }
.about__text { display: grid; gap: 22px; }
.about__text p { color: var(--muted); max-width: 60ch; }
.promises { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.promises li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.promises li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; background: url("../favicon.svg") center / contain no-repeat; }
.promises strong { display: block; font-weight: 600; color: var(--cream); }
.promises span { color: var(--muted); }
@media (max-width: 900px) { .about__grid { grid-template-columns: minmax(0, 1fr); } .about__photo { max-width: 420px; } }

.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: clamp(56px, 8vh, 96px); }
.review { margin: 0; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 18px; }
.review blockquote { margin: 0; font-size: 1.15rem; line-height: 1.55; }
.review figcaption { font: 400 0.85rem/1.4 var(--font-mono); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--space-section); }
.faq__grid { display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0;
  cursor: pointer; list-style: none; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
  transition: transform 0.45s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 62ch; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact { padding-block: var(--space-section) calc(var(--space-section) * 1.3); }
.contact__inner { display: grid; gap: 30px; }
.contact__title { font-size: clamp(2.6rem, 0.8rem + 10vw, 11rem); line-height: 0.92; letter-spacing: -0.055em; text-shadow: 0 6px 40px rgba(18, 12, 8, 0.45); }
.contact__jp { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-small); }
.contact__jp svg { height: 30px; width: auto; }
.contact__jp path { fill: var(--gold); }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.contact__email {
  font-size: clamp(1.3rem, 0.9rem + 2vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease-out);
  overflow-wrap: anywhere; user-select: all;
}
.contact__email:hover { background-size: 100% 1px; }
.copy-status { font: 400 0.85rem/1 var(--font-mono); color: var(--gold); min-height: 1em; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line-strong); font-weight: 500; transition: border-color 0.3s, background-color 0.3s;
}
.contact__links a:hover { border-color: var(--gold); background: rgba(251, 241, 230, 0.05); }
.contact__zone { font: 400 0.85rem/1.5 var(--font-mono); color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; z-index: 1; padding-block: 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(10, 7, 5, 0.92) 30%); }
.wordmark {
  display: flex; justify-content: space-between; overflow: hidden; padding-top: 40px;
  font-size: clamp(4.4rem, 22vw, 21rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(240, 180, 110, 0.55);
}
.wordmark span { display: inline-block; }
.js .wordmark span { transform: translateY(calc((1 - var(--p, 1)) * 62%)); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 40px;
  padding-top: 28px; margin-top: 12px; border-top: 1px solid var(--line);
  font: 400 0.82rem/1.6 var(--font-mono); color: var(--muted);
}
.footer__bottom a { color: var(--cream); }
.legal summary { cursor: pointer; color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.legal dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; max-width: 640px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: var(--cream); overflow-wrap: anywhere; }
.legal .todo { color: var(--gold); }

/* ---------- Apparitions au défilement ----------
   État de repos visible (jamais invisible), puis l'élément glisse en place. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
  /* opacité 0,8 : contraste du texte suffisant (≥ 4,7:1) même avant l'apparition */
  .js .rv:not(.is-in) { transform: translateY(46px); opacity: 0.8; }
  .js .rv-mask { transition: clip-path 1.4s var(--ease-out); }
  .js .rv-mask:not(.is-in) { clip-path: inset(9% 7% 9% 7%); --s: 1.16; }
  .js .offer.is-pinned .offer-card { transition: border-color 0.4s; }
}

/* ---------- Mouvement réduit : tout est statique et lisible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .manifesto__text .w { opacity: 1; }
  .cursor { display: none; }
  .js .wordmark span { transform: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .site-header .btn--small { min-height: 38px; padding: 0.5em 0.95em; font-size: 0.85rem; }
}

/* Carte « prochain projet » en pleine largeur */
.project--wide { grid-column: 1 / -1; min-height: 0; }
.project__cta-text { display: grid; gap: 14px; max-width: 640px; }
.project--cta.project--wide .project__body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
