/* Adrien Pouchard : landing page
   Système de design : skill UI/UX Pro Max (voir ../design-system/adrien-pouchard/)
   Style : Minimalism & Swiss + Motion-Driven (ligne « Portfolio/Personal » du skill)
   Palette : encre #18181B, fond #FAFAFA, accent #2563EB. Typo : Archivo + Space Grotesk. */

/* Police de secours dimensionnée pour ressembler à Archivo condensé (limite le saut de mise en page au chargement de la police) */
@font-face { font-family: "Archivo Secours"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); font-weight: 500 900; size-adjust: 84%; }

:root {
  --ink: #18181B;
  --ink-2: #27272A;
  --bg: #FAFAFA;
  --paper: #FFFFFF;
  --muted: #475569;
  --line: #E4E4E7;
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-soft: #DBE6FE;
  --blue-dark: #7DA6FF;      /* même bleu, éclairci pour les fonds sombres (4,5:1) */
  --on-dark: #F4F4F5;
  --on-dark-muted: #A1A1AA;
  --line-dark: #3F3F46;
  --ok: #16A34A;

  --f-head: "Archivo", "Archivo Secours", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --max: 1320px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: var(--blue-dark); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.05rem; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-blue-dark { background: var(--blue-dark); color: var(--ink); }
.btn-blue-dark:hover { background: #fff; }
.btn-line-dark { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn-line-dark:hover { border-color: var(--on-dark); background: rgba(255,255,255,.06); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: rgba(250,250,250,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 800; font-stretch: 92%; font-size: 1.12rem; letter-spacing: -.01em; text-decoration: none; min-height: 44px; }
.brand-mark { width: 14px; height: 14px; background: var(--blue); display: block; }
.nav { display: none; }
.cta-short { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.is-current { color: var(--ink); background: rgba(24,24,27,.06); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 18px) 0 56px; overflow: clip; }
.grid-lines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; pointer-events: none; }
.grid-lines i { border-left: 1px solid #E9E9EC; }
.grid-lines { -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 38%, #000 62%); mask-image: linear-gradient(to right, transparent 0, transparent 38%, #000 62%); }
.grid-lines i:nth-child(n+5) { display: none; }
.grid-lines i:last-child { border-right: 1px solid var(--line); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; grid-template-areas: "eyebrow" "h1" "stage" "id" "cta" "chips"; row-gap: 0; }
.eyebrow { grid-area: eyebrow; display: inline-flex; align-items: center; gap: 10px; align-self: start; justify-self: start; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: ping 2.4s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } }
.h1 { grid-area: h1; font-family: var(--f-head); letter-spacing: -.028em; word-spacing: .05em; }
.h1-a { display: block; font-weight: 850; font-stretch: 86%; font-size: clamp(2.7rem, 12.2vw, 4.4rem); line-height: .96; text-wrap: balance; }
.h1-b { display: block; text-wrap: balance; margin-top: 18px; font-family: var(--f-body); font-weight: 500; font-stretch: 100%; letter-spacing: -.01em; font-size: clamp(1.1rem, 4.6vw, 1.5rem); line-height: 1.25; color: var(--muted); max-width: 30ch; }

.stage { grid-area: stage; position: relative; margin: 30px 0 8px; aspect-ratio: 1100 / 1010; max-width: 560px; width: 100%; justify-self: center; --px: 0; --py: 0; }
.pl { position: absolute; inset: 0; pointer-events: none; transition: transform .5s var(--ease); }
.pl-block { transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0); }
.pl-photo { transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 4px), 0); }
.stage-block { position: absolute; left: 8%; right: 0; top: 22%; bottom: 0; background: var(--blue); border-radius: 6px; }
.stage-block::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background:
  linear-gradient(to right, rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 25% 100%,
  linear-gradient(to bottom, rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 100% 25%; }
.stage-photo { position: absolute; left: 0; bottom: 0; width: 92%; height: auto; filter: drop-shadow(0 18px 24px rgba(24,24,27,.22)); }
.stage-tag { position: absolute; right: 0; bottom: -2px; transform: translateY(100%); text-align: right; font-family: var(--f-head); font-weight: 800; font-stretch: 92%; font-size: .95rem; }
.stage-tag span { display: block; font-family: var(--f-body); font-weight: 500; font-size: .78rem; color: var(--muted); }
.mini { position: absolute; left: -2%; bottom: 8%; width: min(64%, 270px); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(24,24,27,.28); overflow: hidden; z-index: 3; font-size: .74rem; }
.mini-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .01em; }
.mini-tag { margin-left: auto; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-dark); border: 1px solid rgba(125,166,255,.5); border-radius: 999px; padding: 1px 7px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-dark); flex: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.mini-log { padding: 8px 10px 10px; display: grid; gap: 6px; }
.mini-log li { display: flex; gap: 8px; line-height: 1.3; color: var(--ink-2); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mini-log time, .demo-log time { font-family: var(--f-mono); font-size: .92em; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.mini-log li.wait { color: var(--blue-deep); font-weight: 600; }
.mini-log li.is-off { opacity: 0; transform: translateY(6px); }

.hero-id { grid-area: id; text-wrap: pretty; margin-top: 30px; font-size: 1.08rem; line-height: 1.5; max-width: 46ch; }
.hero-id strong { font-weight: 700; }
.cta-row { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-row .btn { flex: 1 1 auto; }
.for-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.for-chips li { font-size: .82rem; font-weight: 600; letter-spacing: .02em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.paper { background: var(--paper); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--on-dark); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker span { font-family: var(--f-mono); color: var(--blue); letter-spacing: 0; }
.kicker span::after { content: ""; display: inline-block; width: 28px; height: 1.5px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.dark .kicker { color: var(--on-dark-muted); }
.dark .kicker span { color: var(--blue-dark); }
.h2 { font-family: var(--f-head); font-weight: 850; font-stretch: 88%; letter-spacing: -.022em; word-spacing: .06em; line-height: 1; font-size: clamp(2.2rem, 8.4vw, 3.4rem); text-wrap: balance; }
.h2.huge { font-size: clamp(2.6rem, 11vw, 4.2rem); }
.lead { margin-top: 20px; font-size: 1.12rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.dark .lead { color: var(--on-dark-muted); }

/* Constat */
.statement-sec { padding: 96px 0 84px; }
.statement { font-family: var(--f-head); font-weight: 700; font-stretch: 90%; letter-spacing: -.018em; word-spacing: .04em; line-height: 1.14; font-size: clamp(1.65rem, 6.4vw, 2.7rem); max-width: 28ch; text-wrap: pretty; }
.statement .w { transition: color .3s; white-space: nowrap; }

/* Agents IA */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.guards { display: grid; gap: 14px; margin-top: 36px; grid-template-columns: 1fr 1fr; }
.guards li { border: 1px solid var(--line-dark); border-radius: 10px; padding: 18px 16px 16px; background: rgba(255,255,255,.03); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.guards li:hover { border-color: var(--blue-dark); background: rgba(125,166,255,.07); }
.ic-lg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--blue-dark); margin-bottom: 14px; flex: none; }
.guards h3 { font-family: var(--f-head); font-weight: 750; font-stretch: 95%; font-size: 1.02rem; letter-spacing: -.01em; }
.guards p { margin-top: 6px; font-size: .88rem; line-height: 1.45; color: var(--on-dark-muted); }

.demo { background: #101012; border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); align-self: start; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--blue); color: #fff; font-weight: 600; font-size: .95rem; transition: background-color .3s; }
.demo-bar .pulse { background: #fff; }
.demo-bar.is-wait { background: #B45309; }
.demo-bar.is-done { background: #15803D; }
.demo-bar.is-stop { background: #B91C1C; }
.demo-bar.is-idle .pulse, .demo-bar.is-wait .pulse, .demo-bar.is-done .pulse, .demo-bar.is-stop .pulse { animation: none; }
.demo-state { flex: 1; }
.btn-stop { min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.8); background: rgba(0,0,0,.18); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; transition: background-color .2s; }
.btn-stop:hover { background: rgba(0,0,0,.4); }
.btn-stop[disabled] { opacity: .45; cursor: default; }
.demo-body { padding: 18px 16px 8px; }
.demo-app { background: #fff; color: var(--ink); border-radius: 8px; padding: 14px 16px; }
.demo-app-title { font-weight: 700; font-size: .88rem; margin-bottom: 8px; }
.demo-app-title em { font-style: normal; font-weight: 500; color: var(--muted); }
.demo-app dl { display: grid; gap: 0; }
.demo-app dl > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.demo-app dt { color: var(--muted); }
.demo-app dd { font-weight: 600; transition: opacity .4s var(--ease); }
.demo-app dd.is-off { opacity: 0; }
.demo-log-title { margin: 18px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.demo-log { display: grid; gap: 8px; font-size: .88rem; }
.demo-log li { display: flex; gap: 12px; color: var(--on-dark); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.demo-log time { color: var(--on-dark-muted); }
.demo-log li.wait { color: #FBBF24; font-weight: 600; }
.demo-log li.ok { color: #4ADE80; font-weight: 600; }
.demo-log li.bad { color: #F87171; font-weight: 600; }
.demo-log li.is-off { opacity: 0; transform: translateY(6px); }
.demo-log li.is-gone { display: none; }
.demo-confirm { margin: 16px 0 8px; padding: 14px; border: 1px dashed #B45309; border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; transition: opacity .3s; }
.demo-confirm p { font-weight: 600; font-size: .95rem; }
.demo-confirm > div { display: flex; gap: 8px; }
.demo-confirm.is-off { opacity: .35; pointer-events: none; }
.demo figcaption { padding: 12px 16px 14px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font-weight: 600; color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }

/* Automatisation */
.flow { margin-top: 44px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: .95rem; color: var(--muted); transition: all .25s var(--ease); }
.tabs button:hover { border-color: var(--ink); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow-panel { margin-top: 18px; display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 0; }
.node { border: 1.5px solid var(--ink); border-radius: 12px; padding: 20px 22px 22px; background: var(--paper); min-height: 138px; }
.node-mid { background: var(--ink); color: #fff; border-color: var(--ink); }
.node-k { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.node-mid .node-k { color: var(--blue-dark); }
.node p { font-family: var(--f-head); font-weight: 650; font-stretch: 94%; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.015em; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.node p.is-swap { opacity: 0; transform: translateY(8px); }
.link { position: relative; height: 40px; width: 1.5px; margin-inline: auto; background: repeating-linear-gradient(to bottom, var(--ink) 0 5px, transparent 5px 10px); }
.link i { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--blue); animation: travel-y 2.2s var(--ease) infinite; }
@keyframes travel-y { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@keyframes travel-x { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.note { margin-top: 18px; font-size: .86rem; color: var(--muted); }

/* Site internet */
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.feats { margin-top: 32px; display: grid; gap: 4px; }
.feats li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.feats li:last-child { border-bottom: 1px solid var(--line); }
.feats .ic-lg { color: var(--blue); margin: 2px 0 0; }
.feats h3 { font-family: var(--f-head); font-weight: 750; font-stretch: 95%; font-size: 1.15rem; letter-spacing: -.01em; }
.feats p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.site-visual { position: relative; padding-bottom: 40px; }
.browser { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 10px 10px 0 var(--blue-soft); }
.phone { position: absolute; right: 22px; bottom: 0; width: 32%; max-width: 168px; aspect-ratio: 9 / 16; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; padding: 14px 10px 10px; box-shadow: 0 24px 40px -16px rgba(24,24,27,.45); overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30%; height: 4px; margin-left: -15%; border-radius: 4px; background: var(--ink); }
.phone-body { display: grid; gap: 7px; margin-top: 6px; }
.phone .sk-nav { height: 8px; margin-bottom: 6px; }
.phone .sk-h { height: 22px; }
.phone .sk-p { height: 7px; margin-top: 4px; }
.phone .sk-btn.full { width: 100%; height: 26px; margin-top: 6px; }
.phone .sk-card { height: 54px; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); background: var(--bg); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }
.browser-bar span { margin-left: 10px; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.browser-body { padding: 22px 22px 26px; display: grid; gap: 10px; }
.sk { background: var(--line); border-radius: 4px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.7) 50%, transparent 80%); transform: translateX(-100%); animation: shimmer 3.2s var(--ease) infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.sk-nav { height: 12px; width: 100%; background: var(--ink); opacity: .9; margin-bottom: 14px; }
.sk-h { height: 34px; width: 88%; background: var(--ink); }
.sk-h.short { width: 56%; background: var(--blue); }
.sk-p { height: 10px; width: 80%; margin-top: 8px; }
.sk-p.mid { width: 62%; margin-top: 0; }
.sk-row { display: flex; gap: 10px; margin-top: 10px; }
.sk-btn { height: 34px; width: 40%; border-radius: 999px; background: var(--blue); }
.sk-btn.ghost { background: transparent; border: 1.5px solid var(--ink); width: 30%; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.sk-card { height: 78px; }
.browser-tag { position: absolute; left: 14px; bottom: 54px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: #fff; padding: 3px 9px; border-radius: 999px; }

/* Parcours */
.parcours-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; }
.portrait2 { position: relative; max-width: 420px; width: calc(100% - 8px); isolation: isolate; }
.portrait2 img { width: 100%; border-radius: 6px; aspect-ratio: 720/829; object-fit: cover; }
.nb { white-space: nowrap; }
.portrait2::after { content: ""; position: absolute; inset: 14px -8px -14px 14px; border: 1.5px solid var(--blue); border-radius: 6px; z-index: -1; }
.big { font-family: var(--f-head); font-weight: 700; font-stretch: 92%; letter-spacing: -.018em; word-spacing: .04em; font-size: clamp(1.5rem, 5.6vw, 2.15rem); line-height: 1.15; margin-top: 22px; max-width: 24ch; }
.big em { font-style: normal; color: var(--blue); }
.timeline { margin-top: 36px; border-left: 1.5px solid var(--ink); }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -6.5px; top: 6px; width: 11px; height: 11px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 50%; }
.timeline li.now::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.timeline h3 { font-family: var(--f-head); font-weight: 750; font-stretch: 95%; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.timeline p { color: var(--muted); font-size: .94rem; max-width: 48ch; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 14px 0; cursor: pointer; font-family: var(--f-head); font-weight: 700; font-stretch: 95%; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); background:
  linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue-soft); }
.faq summary:hover { color: var(--blue-deep); }
.faq details p { padding: 0 44px 22px 0; color: var(--muted); max-width: 60ch; }

/* Contact */
.contact { padding: 110px 0 100px; overflow: clip; }
.contact::before { content: ""; position: absolute; right: -8%; top: -30%; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(37,99,235,.55), rgba(37,99,235,0)); pointer-events: none; }
.contact-in { position: relative; }
.contact .cta-row { margin-top: 32px; }

.footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding: 26px 0 34px; font-size: .86rem; }
.footer-in { display: grid; gap: 4px; }
.footer strong { color: var(--on-dark); font-weight: 600; }

/* ---------- Entrée du haut de page : en CSS pour démarrer dès le premier affichage, sans attendre le JavaScript ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
.eyebrow, .h1, .hero-id, .cta-row, .for-chips { animation: rise .7s var(--ease) var(--d, 0s) both; }
.eyebrow { --d: .05s; } .h1 { --d: .12s; } .hero-id { --d: .2s; } .cta-row { --d: .28s; } .for-chips { --d: .36s; }
.stage-block { animation: rise .8s var(--ease) .12s both; }
.stage-photo { animation: rise .85s var(--ease) .25s both; }
.mini { animation: rise .7s var(--ease) .8s both; }
.stage-tag { animation: fade .6s ease 1s both; }
.is-static .eyebrow, .is-static .h1, .is-static .hero-id, .is-static .cta-row, .is-static .for-chips,
.is-static .stage-block, .is-static .stage-photo, .is-static .mini, .is-static .stage-tag { animation: none !important; }

/* ---------- Mouvement : états initiaux gérés en JS (contenu visible sans JS) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.is-static .eyebrow .dot, .is-static .pulse, .is-static .link i, .is-static .sk::after { animation: none !important; }
.is-static .link i { top: 40%; opacity: 1; }

/* ---------- Petit mobile ---------- */
@media (max-width: 719px) {
  .phone .sk-card:last-child { display: none; }
  .grid-lines { display: none; }
  .hero-grid .stage { margin-bottom: 104px; }
  .mini { left: 0; bottom: -96px; width: min(86%, 330px); }
  .stage-tag { display: none; }
}
@media (max-width: 479px) {
  .eyebrow { text-transform: none; letter-spacing: 0; font-size: .8rem; padding: 8px 12px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand { font-size: 1rem; }
}

/* ---------- Tablette ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  .section { padding: 112px 0; }
  .grid-lines { grid-template-columns: repeat(6, 1fr); }
  .grid-lines i:nth-child(n+5) { display: block; }
  .grid-lines i:nth-child(n+7) { display: none; }
  .flow-panel { grid-template-columns: 1fr 56px 1fr 56px 1fr; }
  .link { height: 1.5px; width: auto; margin: auto 0; background: repeating-linear-gradient(to right, var(--ink) 0 5px, transparent 5px 10px); }
  .link i { top: -4px; left: 0; margin-left: 0; animation-name: travel-x; }
  .guards { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 0 0 auto; }
}

/* ---------- Bureau ---------- */
@media (min-width: 980px) {
  :root { --gutter: 40px; --header-h: 76px; }
  .nav { display: flex; gap: 2px; }
  .grid-lines { grid-template-columns: repeat(12, 1fr); }
  .grid-lines i:nth-child(n+7) { display: block; }
  .hero { padding: calc(var(--header-h) + 36px) 0 90px; min-height: min(100svh, 1000px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "eyebrow stage" "h1 stage" "id stage" "cta stage" "chips stage"; grid-template-rows: auto auto auto auto 1fr; column-gap: 40px; width: 100%; }
  .h1-a { font-size: clamp(3.2rem, 5.4vw, 6.2rem); }
  .h1-b { font-size: clamp(1.3rem, 2vw, 1.9rem); margin-top: 26px; max-width: 28ch; }
  .stage { margin: 0 0 0 -6%; width: 106%; max-width: none; align-self: end; justify-self: stretch; }
  .hero-id { font-size: 1.18rem; margin-top: 34px; }
  .cta-row { margin-top: 28px; }
  .mini { left: -14%; bottom: 10%; width: 56%; font-size: .8rem; max-width: 310px; }
  .section { padding: 140px 0; }
  .statement-sec { padding: 150px 0 130px; }
  .h2 { font-size: clamp(3rem, 5vw, 4.9rem); }
  .h2.huge { font-size: clamp(3.6rem, 8vw, 8rem); max-width: 14ch; }
  .statement { font-size: clamp(2.2rem, 3.8vw, 3.7rem); max-width: 26ch; }
  .agents-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
  .demo { position: sticky; top: calc(var(--header-h) + 24px); }
  .site-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 96px; }
  .parcours-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; }
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; }
  .faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .node p { font-size: 1.45rem; }
  .node { padding: 26px 26px 28px; min-height: 170px; }
}

@media (min-width: 1280px) {
  .hero-grid { column-gap: 72px; }
}
