/* Polices hébergées sur le site (aucune requête vers Google Fonts).
   Inter et Geist Mono : licence SIL Open Font License, voir fonts/. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2-variations"), url("fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/geist-mono-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/geist-mono-latin-600.woff2") format("woff2");
}

/* ==========================================================
   Candidea v2 — landing page de test de demande
   Inspiration : thème sombre neutre, typographie Inter serrée,
   surfaces à liseré fin, boutons clairs, grande maquette produit.
   Accent unique : menthe (continuité avec le vert de la v1).
   ========================================================== */

:root {
  --bg: #161616;
  --surface: #1F1F1F;
  --surface-2: #262626;
  --surface-3: #2E2E2E;
  --text: #FAFAFA;
  --muted: #A3A3A3;        /* 7,9:1 sur --bg */
  --faint: #8F8F8F;       /* 5,1:1 sur --surface */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #7EE0B5;       /* menthe */
  --accent-ink: #0E2A20;
  --accent-soft: rgba(126, 224, 181, 0.12);

  --ring: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --lift: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 32px -6px rgba(0, 0, 0, 0.55);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(80px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(126, 224, 181, 0.15);
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
svg { display: block; }
a { color: inherit; }
a, button, summary, input { touch-action: manipulation; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 8px;
  font: 500 15px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
.btn-dark { background: var(--surface-2); color: var(--text); box-shadow: var(--ring); }
.btn-dark:hover { background: var(--surface-3); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 22, 22, 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 24px; height: 24px; fill: var(--accent); stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color 150ms ease; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(64px, 10vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(126, 224, 181, 0.10), transparent 70%);
}
.hero-head { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px; border-radius: 8px;
  background: var(--surface); box-shadow: var(--ring);
  font-size: 13px; color: var(--muted);
}
.badge-tag { padding: 3px 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }

h1 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 550;
  max-width: 17ch; text-wrap: balance;
}
.lede { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--muted); max-width: 38em; text-wrap: pretty; }

/* ---------- Formulaire ---------- */
.signup { margin-top: 36px; width: 100%; max-width: 500px; }
.signup-row {
  display: flex; gap: 6px; padding: 6px; border-radius: 12px;
  background: var(--surface); box-shadow: var(--ring);
  transition: box-shadow 150ms ease;
}
.signup-row:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-soft); }
.signup input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  background: transparent; border: 0; color: var(--text);
  font: 400 16px/1 var(--font);
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus { outline: none; }
.signup input[aria-invalid="true"] { color: #FFB4AB; }
.signup:has(input[aria-invalid="true"]) .signup-row { box-shadow: 0 0 0 1px #F2857A, 0 0 0 5px rgba(242, 133, 122, 0.14); }
.signup-help { margin-top: 12px; font-size: 13px; color: var(--muted); }
.signup-help.is-error { color: #FFB4AB; }
@media (max-width: 520px) {
  .signup-row { flex-direction: column; background: transparent; box-shadow: none; padding: 0; gap: 8px; }
  .signup input { background: var(--surface); box-shadow: var(--ring); border-radius: 10px; padding: 0 14px; min-height: 48px; }
  .signup:has(input[aria-invalid="true"]) .signup-row { box-shadow: none; }
  .signup input[aria-invalid="true"] { box-shadow: 0 0 0 1px #F2857A; }
  .signup .btn { min-height: 48px; }
}
.signup-done {
  display: grid; gap: 18px; text-align: left; padding: 20px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--ring); color: var(--muted); font-size: 15px; overflow-wrap: anywhere;
}
.signup-done strong { color: var(--text); font-weight: 600; }
.signup-done:focus { outline: none; }
.done-head svg { width: 24px; height: 24px; flex: none; fill: var(--accent); stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done-head { display: flex; gap: 14px; align-items: flex-start; }
.done-head > div { min-width: 0; }
.done-title { color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.3; }
.done-msg { margin-top: 6px; line-height: 1.5; text-wrap: pretty; }
.done-msg [data-done-email] { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.done-demo-box { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.done-demo { font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.done-demo strong { display: block; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.done-cta { width: 100%; min-height: 48px; gap: 8px; }
.done-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.done-cta:hover svg { transform: translateX(3px); }
.signup-done .done-reset { justify-self: center; color: var(--muted); font-size: 13px; }
.signup.is-done .signup-done { animation: fadeIn 260ms ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Maquette de l'application ---------- */
.app {
  position: relative; margin-top: clamp(56px, 8vw, 88px);
  border-radius: 14px; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 120px -40px rgba(126, 224, 181, 0.18);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.app-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.app-url { margin-inline: auto; padding: 4px 14px; border-radius: 6px; background: var(--bg); color: var(--faint); font-size: 12px; transform: translateX(-30px); }
.app-body { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.app-side { padding: 14px 10px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 14px; }
.side-brand svg { width: 26px; height: 26px; flex: none; fill: var(--accent); stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; }
.side-brand p { display: grid; line-height: 1.25; }
.side-brand b { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.side-brand small { font-size: 11px; color: var(--muted); }
.side-label { padding: 8px 10px 5px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.side-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: #E4E4E4; }
.side-item svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.side-item.is-active { background: var(--surface-2); color: var(--text); box-shadow: var(--ring); }
.count { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.side-pro { margin-left: auto; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.side-mail { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 11.5px; color: var(--muted); }
.side-mail i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.side-quota { padding: 11px 10px; border-radius: 8px; background: var(--bg); font-size: 12px; color: var(--muted); display: grid; gap: 7px; }
.quota-bar { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: var(--accent); }

.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px; align-items: stretch; }
.col { --st: var(--muted); display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 5px; border-radius: 12px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 80%); }
.col-follow { --st: #F5C26B; }
.col-meet, .col-offer { --st: var(--accent); }
.col-no { --st: #E0857B; }
.col-head { display: flex; align-items: center; gap: 7px; padding: 5px 7px 3px; font-size: 12px; font-weight: 600; color: var(--text); }
.col-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 18%, transparent); }
.col-head .mono { color: var(--faint); font-weight: 500; }
.card { padding: 10px; border-radius: 9px; background: var(--surface-2); box-shadow: var(--ring); min-width: 0; }
.c-row { display: flex; align-items: flex-start; gap: 8px; }
.c-logo { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 6px; background: hsl(var(--h, 0) 28% 24%); color: hsl(var(--h, 0) 60% 80%); font-size: 9.5px; font-weight: 600; letter-spacing: 0.02em; }
.c-id { min-width: 0; }
.c-job { font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.c-co { font-size: 11px; color: var(--muted); margin-top: 2px; }
.c-ai, .c-due, .c-date { display: inline-block; max-width: 100%; margin-top: 8px; padding: 2px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 500; line-height: 1.4; }
.c-ai { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.c-due { color: #F5C26B; background: rgba(245, 194, 107, 0.1); }
.c-date { color: var(--accent); background: var(--accent-soft); }
.card-dim { background: rgba(38, 38, 38, 0.6); }
.card-dim .c-job { color: var(--muted); }
.card-dim .c-logo { background: var(--surface-3); color: var(--muted); }
.card-offer { box-shadow: 0 0 0 1px rgba(126, 224, 181, 0.4); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface-2); }
.card-offer .c-logo { background: var(--accent-soft); color: var(--accent); }
.card-live { transition: opacity 240ms ease, transform 240ms ease; }
.card-live.is-leaving { opacity: 0; transform: translateX(16px); }
.card-live.is-arrived { animation: arrive 700ms ease-out both; }
@keyframes arrive {
  0% { opacity: 0; transform: translateX(-12px); box-shadow: 0 0 0 1px var(--accent); }
  40% { opacity: 1; transform: none; }
  100% { box-shadow: var(--ring); }
}

@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .col-narrow { display: none; }
}
@media (max-width: 560px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-narrow { display: none; }
  .board .col:first-child { display: none; }
  .app-url { display: none; }
}

/* ---------- Bandeau défilant ---------- */
.ribbon { padding: clamp(56px, 8vw, 88px) 0 0; }
.ribbon-head { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; margin-bottom: 28px; }
.h-sm { max-width: none; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.marquee {
  display: flex; overflow: hidden; gap: 10px; padding: 5px 0;
  /* Bandeau centré, plus étroit que la page, avec fondu progressif sur les côtés */
  width: min(100% - 2 * var(--gutter), 980px); margin-inline: auto;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.25) 8%, #000 26%, #000 74%, rgba(0,0,0,0.25) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.25) 8%, #000 26%, #000 74%, rgba(0,0,0,0.25) 92%, transparent 100%);
}
@media (max-width: 560px) {
  .marquee {
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  }
}
.marquee + .marquee { margin-top: 6px; }
.marquee-track { display: flex; gap: 10px; flex: none; animation: scroll 48s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee-track li {
  padding: 9px 16px; border-radius: 100px; white-space: nowrap;
  background: var(--surface-2); box-shadow: var(--ring); font-size: 14px; color: var(--text);
}
.marquee-reverse .marquee-track li { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
@keyframes scroll { to { transform: translateX(calc(-100% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--section-y); }
.section-last { padding-bottom: var(--section-y); }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.875rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 550; max-width: 20ch; text-wrap: balance; }
.sub { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 34em; text-wrap: pretty; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }

/* Étapes */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 12px 12px 26px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); }
.step > h3, .step > p { padding-inline: 14px; }
.step > p:last-child { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step-num { margin: 22px 0 8px; font-size: 13px; color: var(--accent); }
.step-visual { height: 168px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.paste { width: 72%; padding: 16px; border-radius: 9px; background: var(--surface-2); box-shadow: var(--ring); position: relative; }
.paste-label { font-size: 11px; color: var(--faint); margin-bottom: 10px; }
.paste-line { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 7px; }
.paste-line.hl { background: rgba(126, 224, 181, 0.45); }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.paste-caret { position: absolute; left: calc(16px + 50%); bottom: 14px; width: 2px; height: 12px; background: var(--accent); }

.docs { position: relative; width: 70%; height: 120px; }
.doc { position: absolute; width: 62%; padding: 12px; border-radius: 8px; background: var(--surface-2); box-shadow: var(--lift); }
.doc:first-child { left: 0; top: 0; z-index: 2; }
.doc-back { right: 0; top: 18px; background: var(--surface-3); }
.doc-t { font-size: 11px; font-weight: 600; margin-bottom: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0 20px; }
.chip { padding: 6px 11px; border-radius: 99px; font-size: 12px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip-on { background: var(--accent); color: var(--accent-ink); box-shadow: none; font-weight: 600; }

/* Suivi automatique */
#suivi h2 { max-width: 22ch; }
#tarifs h2 { max-width: 26ch; }
.sv-mailbox { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.sv-mailbox > svg { width: 30px; height: 30px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sv-mailbox span { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 4px 11px 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.sv-mailbox i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sv-flow { display: grid; justify-items: center; gap: 5px; width: 86%; }
.sv-mail { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 11px; border-radius: 9px; background: var(--surface-2); box-shadow: var(--ring); font-size: 11.5px; color: var(--muted); }
.sv-mail > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-mail span { min-width: 0; line-height: 1.35; }
.sv-mail b { display: block; color: var(--text); font-weight: 600; }
.sv-arrow { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sv-move { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 5px 6px; width: 100%; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); box-shadow: 0 0 0 1px rgba(126, 224, 181, 0.4); font-size: 11.5px; }
.sv-move span { margin-right: 2px; font-weight: 600; }
.sv-move i { padding: 2px 7px; border-radius: 5px; background: rgba(245, 194, 107, 0.1); color: #F5C26B; font-size: 10.5px; font-style: normal; font-weight: 500; }
.sv-move i.is-on { background: var(--accent-soft); color: var(--accent); }
.sv-move svg { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sv-note { margin: 22px auto 0; max-width: 42em; text-align: center; color: var(--faint); font-size: 13.5px; text-wrap: pretty; }

/* Portfolio */
.pf-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.pf-copy .sub { font-size: 16.5px; }
.pf-points { margin-top: 26px; display: grid; gap: 16px; }
.pf-points li { display: flex; gap: 12px; }
.pf-points svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-points h3 { font-size: 15.5px; }
.pf-points p { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.pf-cta { margin-top: 28px; }
.pf-note { margin-top: 12px; color: var(--faint); font-size: 13px; }
.pf-mock { min-width: 0; overflow: hidden; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 100px -40px rgba(126, 224, 181, 0.2); }
.pf-mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pf-mock-bar b { font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.pf-mock-tabs { display: flex; gap: 1px; padding: 3px; border-radius: 8px; background: var(--surface); box-shadow: var(--ring); }
.pf-mock-tabs i { padding: 4px 9px; border-radius: 6px; font-size: 11.5px; font-style: normal; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pf-mock-tabs .is-on { background: var(--text); color: var(--bg); }
.pf-mock-body { padding: 26px 22px 22px; background: radial-gradient(70% 180px at 50% 0, rgba(126, 224, 181, 0.08), transparent 70%); }
.pf-mock-status { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 7px; background: var(--surface); box-shadow: var(--ring); font-size: 11.5px; color: var(--muted); }
.pf-mock-status span { padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }
.pf-mock-name { margin-top: 12px; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); font-weight: 550; line-height: 1.05; letter-spacing: -0.045em; }
.pf-mock-role { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.pf-mock-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; align-items: start; }
.pf-mock-card { min-width: 0; overflow: hidden; padding: 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pf-mock-art { position: relative; height: 82px; margin: -12px -12px 10px; overflow: hidden; background: #17324D; }
.pf-mock-art i { position: absolute; left: 14%; top: 14%; width: 58px; height: 58px; border-radius: 50%; background: #E8B04A; }
.pf-mock-art b { position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 62px 88px; border-color: transparent transparent #D9593D transparent; }
.pf-mock-kind { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; color: var(--accent); }
.pf-mock-kind span { font: 500 11px/1.5 var(--mono); color: var(--faint); }
.pf-mock-title { margin-top: 5px; font-size: 13.5px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.pf-mock-sub { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.pf-mock-res { margin-top: 9px; padding: 7px 9px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.pf-mock-res strong { margin-right: 3px; font: 600 14px/1 var(--mono); color: var(--accent); }
.pf-mock-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.pf-mock-tags span { padding: 2px 8px; border-radius: 99px; background: var(--surface-2); box-shadow: var(--ring); font-size: 11px; color: var(--muted); }
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-copy h2 { max-width: 22ch; }
}
@media (max-width: 480px) {
  .pf-cta { width: 100%; }
  .pf-mock-body { padding: 20px 14px 14px; }
  .pf-mock-bar b { display: none; }
  .pf-mock-tabs { flex: 1; }
  .pf-mock-tabs i { flex: 1; text-align: center; }
  .pf-mock-projects { grid-template-columns: minmax(0, 1fr); }
}

/* Tarifs */
.plans { margin: 56px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 840px; align-items: end; }
.plan { border-radius: 16px; background: var(--surface); box-shadow: var(--ring); overflow: hidden; }
.plan-body { padding: 28px; }
.plan-pro { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 80px -30px rgba(126, 224, 181, 0.25); }
.plan-band { text-wrap: balance; padding: 10px 16px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; text-align: center; }
.plan-price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.amount { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.per { color: var(--muted); font-size: 15px; }
.plan-sub { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.plan-list { margin-top: 24px; display: grid; gap: 12px; font-size: 15px; }
.plan-list li { position: relative; padding-left: 26px; color: #E5E5E5; }
.plan-list li::before {
  content: ""; position: absolute; left: 3px; top: 0.45em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

.compare {
  margin: 16px auto 0; max-width: 840px; padding: 32px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--ring);
}
.compare-eyebrow { font-size: 14px; color: var(--muted); }
.compare-headline { margin-top: 10px; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
.compare-headline span { display: block; }
.compare-headline span:first-child { color: var(--muted); }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.compare-card { padding: 20px 22px; border-radius: 14px; background: var(--surface-2); box-shadow: var(--ring); }
.compare-card.is-us { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cc-label { font-size: 14px; color: var(--muted); }
.is-us .cc-label { color: var(--text); }
.cc-price { margin-top: 6px; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-us .cc-price { color: var(--accent); }
.cc-unit { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.cc-sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.compare-note { margin-top: 26px; font-size: 15px; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.compare-sources { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.compare-sources a { color: var(--muted); text-underline-offset: 3px; }
.compare-sources a:hover { color: var(--text); }
@media (max-width: 720px) { .compare-cards { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid h2 { max-width: 12ch; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 12px; background: var(--surface); box-shadow: var(--ring); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 52px 18px 20px; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 1.5px; background: var(--muted);
  transition: transform 200ms ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { background: rgba(255, 255, 255, 0.02); }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; max-width: 60ch; }
.faq-grid .sub a { color: var(--muted); text-underline-offset: 3px; }
.faq-grid .sub a:hover { color: var(--text); }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }

/* Bas de page */
.final {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 72px) var(--gutter); border-radius: 20px;
  background: var(--surface); box-shadow: var(--ring);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.final::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 100%, rgba(126, 224, 181, 0.16), transparent 70%);
}
.final > * { position: relative; }
.final h2 { max-width: 18ch; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.nowrap { white-space: nowrap; }

/* ---------- Ajouts mise en ligne ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-legal { margin-top: 6px; font-size: 12px; color: var(--faint); }
.signup-legal a, .consent-text a { color: var(--muted); text-underline-offset: 3px; }
.signup-legal a:hover, .consent-text a:hover { color: var(--text); }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a, .linklike { color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover, .linklike:hover { color: var(--text); }
.linklike { appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  max-width: 420px; padding: 18px 20px; border-radius: 14px;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  animation: fadeIn 240ms ease-out both;
}
.consent-title { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.consent-text { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.consent-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Page confidentialité ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0 var(--section-y); }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-top: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); max-width: none; }
.legal .updated { margin-top: 12px; color: var(--faint); font-size: 14px; }
.legal h2 { margin-top: 48px; font-size: 22px; letter-spacing: -0.02em; max-width: none; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal .todo { color: #F5C26B; }
.back { display: inline-flex; margin-bottom: 32px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--text); }

/* ---------- Section génération IA ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; }
#fonctionnement h2 { max-width: 22ch; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tags span { padding: 3px 8px; border-radius: 99px; font-size: 10.5px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(126, 224, 181, 0.3); }
.files { width: 78%; display: grid; gap: 8px; }
.file {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  background: var(--surface-2); box-shadow: var(--ring); font-size: 12px; color: var(--text); min-width: 0;
}
.file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.file i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 6px; background: var(--accent); }
.file i svg { width: 14px; height: 14px; fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.doc-back .doc-t { text-align: right; }

/* ---------- Après l'inscription : accès à la démo ---------- */
.signup-perk { display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 14px; padding: 7px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; text-wrap: balance; }
.signup-perk svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-caption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); text-wrap: balance; }
.signup-perk + .signup { margin-top: 0; }
.signup-perk:has(+ .signup.is-done) { display: none; }
.signup-perk + .signup.is-done { margin-top: 36px; }
.app-caption a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   Optimisations mobile
   ========================================================== */
@media (max-width: 560px) {
  /* Titre : pas de mot orphelin, taille adaptée aux petits écrans */
  .nowrap { white-space: normal; }
  h1 { font-size: clamp(2.15rem, 1.2rem + 6vw, 2.6rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 14ch; }
  .lede { font-size: 1.0625rem; margin-top: 18px; }
  .hero { padding-top: 48px; }
  .badge { font-size: 12.5px; }

  /* Formulaire : marges plus serrées */
  .signup { margin-top: 28px; }
  .signup-perk + .signup.is-done { margin-top: 28px; }
  .signup-help, .signup-legal { text-align: center; }

  /* Maquette de l’app : plus compacte, sans grand vide */
  .app { margin-top: 40px; border-radius: 12px; mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
  .app-body { min-height: 0; }
  .board { padding: 12px; gap: 8px; }
  .app-bar { height: 34px; }

  /* Sections */
  :root { --section-y: 72px; }
  h2 { font-size: clamp(1.75rem, 1.2rem + 3.6vw, 2.1rem); }
  .sub { font-size: 16px; }
  .steps, .plans { margin-top: 36px; }
  .step-visual { height: 150px; }
  .eyebrow { font-size: 12.5px; }

  /* Tarifs */
  .plan-body { padding: 24px 22px; }
  .amount { font-size: 38px; }
  .plan-pro { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
  .compare { padding: 22px; }
  .compare-card { padding: 18px; }

  /* FAQ */
  .faq summary { padding: 16px 48px 16px 18px; font-size: 15.5px; }
  .faq details p { padding: 0 18px 18px; }

  /* Bloc final */
  .final { padding: 36px 20px; border-radius: 16px; }
  .final .signup { margin-top: 24px; }

  /* Bandeau cookies : pleine largeur, boutons confortables */
  .consent { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 16px; }
  .consent .btn { min-height: 44px; }

  .footer-inner { flex-direction: column; }
}
@media (max-width: 380px) {
  h1 { font-size: 2.05rem; }
  .nav-inner .btn-sm { padding: 0 11px; font-size: 13px; }
  .marquee-track li { padding: 8px 13px; font-size: 13px; }
}
/* Pas d’effet de survol collant sur écrans tactiles */
@media (hover: none) {
  .btn-light:hover { box-shadow: none; }
}
