/* agent.deepthix.com — refonte « vitrine » (2026-11-10, 2e passe).
   Noir profond, captures réelles de l'app en thème sombre mises en scène comme un produit :
   fenêtre macOS, ombre douce, reflet, gros plans. Un seul visuel fort par section.
   L'ambre ne sert qu'aux actions. */

:root {
  --bg: #000;
  --tile: #0e0e10;
  --tile-2: #161618;
  --text: #f5f5f7;
  --mute: #a1a1a6;            /* 8,2:1 sur noir */
  --line: rgba(255, 255, 255, .14);
  --edge: rgba(255, 255, 255, .16);
  --amber: #f7a823;
  --amber-hi: #ffc04d;
  --ink: #1d1d1f;
  --light: #f5f5f7;
  --light-mute: #56565b;      /* 7:1 sur --light */
  --amber-ink: #8a4d00;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font: 500 .88em var(--mono); background: rgba(255, 255, 255, .1); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ── Typographie ─────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 8.9vw, 8.5rem); line-height: .9; letter-spacing: -.052em; }
.d2 { font-size: clamp(2.4rem, 6.6vw, 6.25rem); line-height: .94; letter-spacing: -.048em; }
.d3 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.02; letter-spacing: -.035em; }
.lede { font-size: clamp(1.2rem, 1.75vw, 1.65rem); line-height: 1.32; letter-spacing: -.012em; color: var(--mute); max-width: 38ch; text-wrap: pretty; }
.lede b { color: var(--text); font-weight: 500; }
.kbd { font: 500 .85em var(--mono); color: var(--text); white-space: nowrap; }
.plan { display: inline-block; font: 700 .95rem/1 var(--font); padding: .5em .85em; border-radius: 999px; border: 1.5px solid var(--line); color: var(--text); }
.plan.pro { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: baseline; gap: .7em; font: 700 1.06rem/1 var(--font); letter-spacing: -.01em; padding: 1.05em 1.5em; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, border-color .2s; }
.btn small { font: 500 .8rem var(--mono); opacity: .75; }
.btn:hover { transform: translateY(-2px); }
.btn-a { background: var(--amber); color: var(--ink); }
.btn-a:hover { background: var(--amber-hi); }
.btn-l { border-color: var(--edge); color: var(--text); }
.btn-l:hover { border-color: var(--text); }
.btn-xl { font-size: clamp(1.1rem, 1.5vw, 1.3rem); padding: 1.1em 1.7em; }
.btn-ko { border-color: var(--ink); color: var(--ink); }
.btn-ko:hover { background: rgba(0, 0, 0, .07); }

/* ── Barre ───────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.solid { background: rgba(0, 0, 0, .78); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); height: 64px; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.brand { display: inline-flex; align-items: center; gap: .55em; font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.nav-l { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.nav-l a, .lang { font-size: .98rem; font-weight: 500; color: var(--mute); text-decoration: none; transition: color .2s; }
.nav-l a:hover, .lang:hover { color: var(--text); }
.lang { font: 500 .85rem var(--mono); padding: .45em .6em; border: 1px solid var(--line); border-radius: 8px; }
.nav .btn { padding: .65em 1.05em; font-size: .96rem; }

/* ── Mise en scène des captures ──────────────────────────────── */
/* Fenêtre macOS : la capture garde sa propre barre de titre ; on pose les trois pastilles dans la
   place que l'app leur réserve, un filet clair d'un pixel et une ombre longue. */
.mac { position: relative; display: block; container-type: inline-size; border-radius: clamp(8px, 1.05vw, 14px); background: #1c1c1e; box-shadow: 0 0 0 1px var(--edge), 0 1px 0 0 rgba(255, 255, 255, .22) inset, 0 60px 120px -30px rgba(0, 0, 0, .95), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.mac img { width: 100%; border-radius: inherit; }
.mac::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }
.lights { position: absolute; left: 1.1cqw; top: 0; height: 5%; display: flex; align-items: center; gap: .62cqw; z-index: 1; pointer-events: none; }
.lights i { width: .9cqw; height: .9cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
/* Gros plan : un morceau réel de l'app, grand et net. */
.zoom { position: relative; display: block; border-radius: clamp(10px, 1.3vw, 18px); overflow: hidden; background: #1c1c1e; box-shadow: 0 0 0 1px var(--edge), 0 40px 80px -30px rgba(0, 0, 0, .9); }
.zoom img { width: 100%; }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 6% 8% -8% 8%; background: radial-gradient(55% 55% at 50% 55%, rgba(247, 168, 35, .22), transparent 72%); filter: blur(46px); pointer-events: none; }
.glow > * { position: relative; }

/* ── Héros ───────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(104px, 13.5vh, 150px); text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 34%; width: min(1500px, 130vw); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 60%, rgba(247, 168, 35, .3), rgba(247, 110, 30, .1) 45%, transparent 70%); filter: blur(20px); pointer-events: none; animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .65; } to { opacity: 1; } }
.hero .wrap { position: relative; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .ln > span { display: block; }
.hero .lede { margin: clamp(18px, 2vw, 28px) auto 0; max-width: 36ch; font-size: clamp(1.15rem, 1.5vw, 1.45rem); }
.hero-get { display: grid; gap: 12px; justify-items: center; margin-top: clamp(22px, 2.2vw, 30px); }
.alt { font-size: .98rem; color: var(--mute); line-height: 1.5; }
.alt a { color: var(--text); text-underline-offset: 3px; }
.alt a:hover { color: var(--amber-hi); }
.alt .v { display: block; font: 500 .82rem var(--mono); margin-top: 4px; }
.stage { position: relative; margin: clamp(36px, 3.6vw, 52px) auto 0; max-width: 1240px; perspective: 1600px; perspective-origin: 50% 0; }
.stage .mac { transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change: transform; -webkit-box-reflect: below 2px linear-gradient(transparent 82%, rgba(255, 255, 255, .13)); }
.demo { margin-top: clamp(56px, 9vw, 120px); font: 500 .8rem var(--mono); color: var(--mute); }
.pan-hint { display: none; }

/* ── Sections ────────────────────────────────────────────────── */
.sec { padding-block: clamp(84px, 11vw, 170px); }
.intro { display: grid; justify-items: center; gap: clamp(18px, 2.2vw, 30px); text-align: center; }
.intro .d2 { max-width: 15ch; }
.intro .d2.wide { max-width: none; font-size: clamp(2.3rem, 5.8vw, 5.5rem); }
.intro .lede { max-width: 40ch; }
.band { margin-top: clamp(48px, 6vw, 96px); }
.band figcaption, .cap { margin-top: 18px; text-align: center; color: var(--mute); font-size: 1.02rem; }

/* Tuiles : un titre, une phrase, un gros plan. */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(40px, 5vw, 72px); }
.tile { position: relative; overflow: hidden; border-radius: clamp(20px, 2.4vw, 34px); background: linear-gradient(180deg, var(--tile-2), var(--tile)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); padding: clamp(24px, 3.2vw, 48px); display: grid; gap: clamp(22px, 3vw, 40px); align-content: space-between; }
.tile.s7 { grid-column: span 7; }
.tile.s6 { grid-column: span 6; }
.tile.s5 { grid-column: span 5; }
.tile.s12 { grid-column: 1 / -1; }
.tile .t { display: grid; gap: 10px; max-width: 34ch; }
.tile p { color: var(--mute); text-wrap: pretty; }
.tile .zoom { align-self: center; }

.tile.split .zoom { align-self: center; max-width: 760px; justify-self: end; width: 100%; }
.tile.bleed { padding-bottom: 0; }
.tile.bleed .zoom { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: -1px; }
.tile.center { justify-items: center; text-align: center; }
.tile.center .zoom { max-width: 620px; width: 100%; align-self: center; }

/* Agents : l'histoire en trois temps, le visuel reste collé pendant qu'on lit. */
.story { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 80px); align-items: start; }
.story-steps { display: grid; }
.step { min-height: 78vh; display: grid; align-content: center; gap: 14px; opacity: .32; transition: opacity .5s ease; }
.step.on { opacity: 1; }
.step p { color: var(--mute); max-width: 32ch; text-wrap: pretty; }
.step, .tile { grid-template-columns: minmax(0, 1fr); }
.step > *, .tile > *, .band > * { min-width: 0; }
.tile.split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; align-content: center; }
.step .shot { display: none; }
.story-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; margin-right: calc(-1 * max(0px, (100vw - var(--max)) / 2 + var(--gut) - 28px)); }
.story-stage .frame { position: relative; width: 100%; aspect-ratio: 1.3 / 1; max-height: 78vh; }
.story-stage .pane { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.96) translateY(18px); transition: opacity .6s ease, transform .8s var(--ease); pointer-events: none; }
.story-stage .pane.on { opacity: 1; transform: none; pointer-events: auto; }
.story-stage .pane > a { width: 100%; max-height: 100%; }
.story-stage .pane .zoom { width: auto; max-width: 100%; }
.story-stage .pane .zoom img { width: auto; max-width: 100%; max-height: 78vh; }
.story-stage::before { content: ""; position: absolute; inset: 14% 4%; background: radial-gradient(50% 50% at 50% 50%, rgba(247, 168, 35, .16), transparent 70%); filter: blur(50px); }

/* Comptes : la rotation en trois temps (c'est bien une suite). */
.rot { counter-reset: r; display: grid; margin-top: 6px; text-align: left; }
.rot li { counter-increment: r; display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; padding-block: 13px; border-top: 1px solid var(--line); color: var(--mute); transition: color .4s; }
.rot li::before { content: counter(r); font: 500 .9rem var(--mono); color: var(--mute); transition: color .4s; }
.rot li.on { color: var(--text); }
.rot li.on::before { color: var(--amber); }

/* ── Section claire : comment + tarifs ───────────────────────── */
.light { background: var(--light); color: var(--ink); }
.light .lede, .light .note, .light .steps p { color: var(--light-mute); }
.light code { background: rgba(0, 0, 0, .08); }
.light :focus-visible { outline-color: var(--ink); }
.light + .light { padding-top: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(40px, 5vw, 72px); }
.steps li { counter-increment: s; background: #fff; border-radius: clamp(20px, 2.4vw, 30px); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s); font-weight: 800; font-size: clamp(3.6rem, 6.5vw, 6rem); line-height: .9; letter-spacing: -.06em; color: var(--amber-ink); }
.note { margin: clamp(26px, 3vw, 40px) auto 0; max-width: 78ch; font-size: 1.02rem; text-align: center; }
.prices { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(40px, 5vw, 72px); }
.price { border-radius: clamp(20px, 2.4vw, 34px); padding: clamp(24px, 3vw, 46px); display: grid; gap: 16px; align-content: start; background: #fff; }
.price .amt { font-weight: 800; font-size: clamp(4rem, 8.4vw, 8rem); line-height: .86; letter-spacing: -.06em; }
.price .per { font-size: 1.05rem; color: var(--light-mute); margin-top: -4px; }
.price ul { display: grid; gap: 10px; margin-block: 8px 12px; }
.price li { padding-left: 1.3em; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: 2px; background: currentColor; }
.price .btn { justify-self: start; }
.price.pro { background: #000; color: var(--text); }
.price.pro .amt { color: var(--amber); }
.price.pro .per { color: var(--mute); }
.price.pro li::before { background: var(--amber); }
.price.pro :focus-visible { outline-color: var(--amber-hi); }

/* ── Tout le détail ──────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.detail h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; color: var(--amber-hi); padding-bottom: 14px; }
.detail dl > div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.detail dt { font-weight: 700; letter-spacing: -.015em; }
.detail dd { color: var(--mute); font-size: 1rem; line-height: 1.45; text-wrap: pretty; }
.detail dd b { color: var(--text); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 900px; margin: clamp(36px, 4vw, 60px) auto 0; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 22px; font-weight: 700; font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: -.025em; line-height: 1.15; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 1.5rem/1 var(--mono); color: var(--mute); flex: none; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--amber-hi); }
details p { color: var(--mute); padding-bottom: 26px; max-width: 70ch; text-wrap: pretty; }

/* ── Appel final ─────────────────────────────────────────────── */
.final { position: relative; text-align: center; padding-block: clamp(96px, 13vw, 200px); overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: min(1400px, 140vw); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(247, 168, 35, .24), transparent 70%); filter: blur(30px); pointer-events: none; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: clamp(22px, 3vw, 40px); }
.final h2 { font-size: clamp(2.5rem, 8vw, 8.25rem); line-height: .93; letter-spacing: -.052em; }
.final h2 span { display: block; }
.final .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ── Pied de page ────────────────────────────────────────────── */
footer { padding-block: 40px 56px; font-size: .95rem; color: var(--mute); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
footer .brand { color: var(--text); }
footer .sp { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }
footer a { text-underline-offset: 3px; }
footer a:hover { color: var(--text); }
footer .legal { flex-basis: 100%; font-size: .85rem; line-height: 1.5; padding-top: 18px; border-top: 1px solid var(--line); }

/* ── Mouvement ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .ln > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
  .js .hero h1 .ln:nth-child(2) > span { animation-delay: .1s; }
  .js .hero .lede, .js .hero-get { opacity: 0; animation: fade .9s .35s ease forwards; }
  .js .stage { opacity: 0; animation: fade 1.2s .5s ease forwards; }
  /* Apparition pilotée par le défilement : --p va de 0 à 1 à mesure que l'élément entre. */
  .js .rv { opacity: calc(.15 + .85 * var(--p, 0)); transform: translateY(calc((1 - var(--p, 0)) * 44px)) scale(calc(.94 + .06 * var(--p, 0))); will-change: transform, opacity; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .btn:hover { transform: none; }
  .step { opacity: 1; }
}
.static .rv, .static .hero .lede, .static .hero-get, .static .stage, .static .hero h1 .ln > span { opacity: 1 !important; transform: none !important; animation: none !important; }
.static .hero::before { animation: none; }
/* Page figée : l'histoire des agents à plat (le visuel collé dépend de la hauteur d'écran). */
.static .story { grid-template-columns: minmax(0, 1fr); }
.static .story-stage { display: none; }
.static .step { min-height: 0; opacity: 1; padding-block: 36px; }
.static .step .shot { display: block; }
@media (min-width: 1001px) {
  .static .step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: center; }
  .static .step .shot { grid-column: 2; grid-row: 1 / span 2; }
  .static .step h3 { align-self: end; }
  .static .step p { align-self: start; }
}

/* ── Écrans moyens et téléphones ─────────────────────────────── */
@media (max-width: 1000px) {
  .nav-l { display: none; }
  .lang { margin-left: auto; }
  .tile.s7, .tile.s6, .tile.s5 { grid-column: 1 / -1; }
  .tile.split { grid-template-columns: minmax(0, 1fr); }
  .tile.split .zoom { justify-self: start; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 28px; }
  .step .shot { display: block; margin-top: 14px; }
  .prices, .steps, .detail { grid-template-columns: minmax(0, 1fr); }
  .stage { perspective: none; }
  .stage .mac { transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .nav-in { height: 58px; }
  h1 { font-size: 12.4vw; }
  .hero { padding-top: 104px; }
  .hero .btn-xl { width: 100%; justify-content: center; }
  .final .cta .btn { width: 100%; justify-content: space-between; }
  .pan-hint { display: block; margin-top: 6px; color: var(--text); }
  /* Téléphone : les grandes captures se font glisser dans leur cadre pour rester lisibles. */
  .pan { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pan::-webkit-scrollbar { display: none; }
  .pan img { width: var(--panw); max-width: none; }
  .mac.pan .lights { display: none; }
  .stage .mac { -webkit-box-reflect: unset; }
  footer .sp { margin-left: 0; }
}
