/* Positive Button — feuille de style commune à toutes les pages */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --yellow: #ffd500;
  --orange: #ffa126;
  --azure: #2e8fea;
  --cobalt: #1d33c9;
  --cobalt-dark: #14239a;
  --green: #7bcd9d;
  --cyan: #81dde0;
  --sky: #aed9f5;
  --ink: #14163a;
  --muted: #4a4d6a;
  --line: #dfe3ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --bg-warm: #fff8d6;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 22px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 300; }
.skip:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 200; height: var(--nav-h); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.brand-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), 0 0 0 3px #fff, 0 0 0 4px var(--cobalt); flex: none; }
.brand img { height: 34px; width: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-links .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1.2 var(--body); padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 24px rgba(29,51,201,.25); }
.btn-primary:hover { background: var(--cobalt-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--cobalt); border-color: rgba(29,51,201,.3); }
.btn-ghost:hover { border-color: var(--cobalt); background: var(--bg-soft); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.store-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.15; }
.store:hover { background: #000; color: #fff; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store small { display: block; font-size: 11px; opacity: .8; }
.store strong { font-size: 16px; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.soft { background: var(--bg-soft); }
.warm { background: var(--bg-warm); }
.dark { background: var(--ink); color: #fff; }
.dark p { color: rgba(255,255,255,.82); }
.dark a { color: var(--sky); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 .05em; }
.hero .lead { font-size: 20px; color: var(--muted); margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.hero-proof { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-proof li { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: -1; }
.blob-a { width: 420px; height: 420px; background: var(--sky); top: -140px; right: -120px; }
.blob-b { width: 260px; height: 260px; background: var(--yellow); bottom: -120px; left: -80px; opacity: .35; }

/* Scène 3D légère, CSS pur */
.scene { position: relative; height: 420px; perspective: 1000px; }
.phone { position: absolute; left: 50%; top: 50%; width: 230px; height: 400px; margin: -200px 0 0 -115px; border-radius: 36px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px rgba(20,22,58,.28); transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
.phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(170deg, #fff 0%, var(--bg-soft) 100%); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 14px 34px rgba(20,22,58,.16); font-size: 14px; font-weight: 500; max-width: 220px; line-height: 1.35; }
.chip-a { left: 0; top: 46px; transform: translateZ(60px); animation: float 6s ease-in-out infinite reverse; }
.chip-b { right: 0; bottom: 56px; animation: float 8s ease-in-out infinite; }
.chip .k { display: block; font: 700 26px/1 var(--display); color: var(--cobalt); margin-bottom: 4px; }
.cube { position: absolute; width: 54px; height: 54px; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube span { position: absolute; inset: 0; border-radius: 10px; opacity: .92; }
.cube span:nth-child(1) { background: var(--yellow); transform: translateZ(27px); }
.cube span:nth-child(2) { background: var(--orange); transform: rotateY(90deg) translateZ(27px); }
.cube span:nth-child(3) { background: var(--azure); transform: rotateY(180deg) translateZ(27px); }
.cube span:nth-child(4) { background: var(--green); transform: rotateY(-90deg) translateZ(27px); }
.cube span:nth-child(5) { background: var(--cyan); transform: rotateX(90deg) translateZ(27px); }
.cube span:nth-child(6) { background: var(--sky); transform: rotateX(-90deg) translateZ(27px); }
.cube-a { right: 18px; top: 18px; }
.cube-b { left: 34px; bottom: 30px; width: 36px; height: 36px; animation-duration: 18s; }
.cube-b span:nth-child(1) { transform: translateZ(18px); } .cube-b span:nth-child(2) { transform: rotateY(90deg) translateZ(18px); } .cube-b span:nth-child(3) { transform: rotateY(180deg) translateZ(18px); } .cube-b span:nth-child(4) { transform: rotateY(-90deg) translateZ(18px); } .cube-b span:nth-child(5) { transform: rotateX(90deg) translateZ(18px); } .cube-b span:nth-child(6) { transform: rotateX(-90deg) translateZ(18px); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }

/* Constat */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stat .num { font: 800 clamp(44px, 5vw, 60px)/1 var(--display); color: var(--cobalt); }
.stat p { margin: 12px 0 14px; }
.src { font-size: 13px; color: var(--muted); }
.close-line { margin-top: 40px; font: 600 clamp(22px, 2.6vw, 28px)/1.3 var(--display); max-width: 820px; }
.close-line em { font-style: normal; background: linear-gradient(transparent 60%, var(--yellow) 60%); }

/* Solution */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.card .tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.tag-y { background: var(--yellow); color: var(--ink); }
.tag-b { background: var(--cobalt); color: #fff; }
.card h3 { font-size: 26px; }
.card > p { margin-top: 10px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2314163a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Déploiement */
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 0; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 26px 92px; counter-increment: s; }
.step::before { content: counter(s); position: absolute; left: 26px; top: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); font: 800 22px/46px var(--display); text-align: center; }
.step p { color: var(--muted); margin-top: 6px; }
.arrow { height: 54px; display: flex; justify-content: center; }
.arrow svg { width: 26px; height: 54px; stroke: var(--cobalt); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.arrow svg path { stroke-dasharray: 6 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* Confiance */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust .card { padding: 28px; }
.trust h3 { font-size: 20px; }
.trust p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Équipe */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.team-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-facts div { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid var(--line); }
.team-facts strong { display: block; font: 800 34px/1 var(--display); color: var(--cobalt); }
.team-facts span { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 19px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 30px/1 var(--body); color: var(--cobalt); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Bandeau CTA final */
.final { text-align: center; }
.final h2 { max-width: 780px; margin: 0 auto; }
.final p { margin: 16px auto 30px; max-width: 600px; font-size: 19px; }
.final .btn-primary { background: var(--yellow); color: var(--ink); box-shadow: none; }
.final .btn-primary:hover { background: #fff; color: var(--ink); }

/* Encadré aide */
.help { padding: 28px 0; background: var(--bg-warm); border-top: 1px solid #f3e6a6; }
.help p { font-size: 15px; max-width: 900px; }
.help strong { font-weight: 600; }

/* Pied de page */
.foot { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 15px; font-family: var(--body); font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.65); }

/* Barre CTA mobile */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; display: none; transform: translateY(140%); transition: transform .3s; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* ---------- Pages légales et pages simples ---------- */
.page-head { padding: 64px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 720px; }
.legal { padding: 56px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 14px; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--cobalt); }
.doc { max-width: 760px; }
.doc h2 { font-size: 24px; margin: 44px 0 14px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc .num { font-weight: 600; }
.doc .meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.doc .box { background: var(--bg-soft); border-radius: 16px; padding: 18px 22px; margin: 16px 0; }
.doc dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; margin: 0; }
.doc dt { font-weight: 600; }
.doc dd { margin: 0; }
.optout { margin: 16px 0; padding: 18px 22px; border: 1px dashed var(--line); border-radius: 16px; }

/* ---------- Apparition au scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .duo, .team { grid-template-columns: 1fr; }
  .stats, .stats-2, .trust { grid-template-columns: 1fr; }
  .scene { height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--bg-soft); border-radius: 16px; padding: 18px 20px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .hero .lead { font-size: 18px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20,22,58,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 12px; font-size: 16px; }
  .nav-links .btn { margin: 6px 0 0; }
  .card { padding: 24px; }
  .step { padding: 22px 20px 22px 80px; }
  .step::before { left: 18px; }
  .team-facts { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 10px; }
  .sticky-cta { display: block; }
  .chip { font-size: 13px; max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
@media print {
  .nav, .foot, .sticky-cta, .help, .toc { display: none; }
  .legal-grid { display: block; }
}
