/* QuantioLab — site vitrine. Polices hébergées sur le site (aucun appel à un service tiers, aucun cookie). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0f1c2e; --ink2: #1a2638; --bg: #0b1524; --card: #12203a; --card2: #172944;
  --ivory: #f4f1e8; --text: #f4f1e8; --soft: #c5ccd8; --muted: #9aa5b8; --dim: #6c788d;
  --steel: #7fa7d9; --brass: #c9a961; --teal: #5fb3a8; --green: #5fbf8f; --red: #e0646f;
  --line: rgba(244, 241, 232, .08); --line2: rgba(244, 241, 232, .15);
  --radius: 14px; --max: 1140px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(1000px 600px at 85% -10%, rgba(127,167,217,.10), transparent 60%),
                    radial-gradient(800px 500px at -10% 30%, rgba(201,169,97,.05), transparent 60%); }
a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0; }
.kicker { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 13.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft); line-height: 1.55; }
.muted { color: var(--muted); }
.accent { color: var(--steel); }
.brass { color: var(--brass); }

/* en-tête */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11,21,36,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); font-size: 22px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand > span { color: var(--ivory); }
.brand b { font-weight: 600; } .brand > span > span { font-weight: 300; color: var(--steel); }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--soft); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line2); color: var(--ivory); background: transparent; transition: .15s; }
.btn:hover { text-decoration: none; border-color: var(--steel); }
.btn.primary { background: var(--steel); color: var(--ink); border-color: var(--steel); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: 8px 14px; font-size: 14px; }

/* sections */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--soft); font-size: 16px; }

/* accroche */
.hero { padding: 84px 0 72px; border-bottom: 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 16px 0 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 10px var(--brass); }
.proof { background: rgba(7,12,22,.55); border: 1px solid var(--line2); border-radius: 18px; padding: 20px 22px 14px; }
.proof-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.proof-h b { font-size: 19px; font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.proof figcaption { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* chiffres */
.band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line2); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.band div { background: var(--card); padding: 22px 24px; }
.band b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--steel); letter-spacing: -.02em; line-height: 1.1; }
.band span { font-size: 14px; color: var(--muted); }

/* méthode */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 26px; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; background: var(--steel); color: var(--ink); font-weight: 700; font-size: 15px; }
.compare { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; margin-top: 26px; }
.compare .big { font-size: 46px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0; }
.compare .bad .big { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.compare .good { border-color: rgba(127,167,217,.5); }
.compare .good .big { color: var(--steel); }
.list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; color: var(--soft); font-size: 15.5px; }

/* transparence */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.read { display: flex; flex-direction: column; gap: 16px; }
.read .card { padding: 20px 22px; }
.note { font-size: 14px; color: var(--muted); }

/* sports */
.sport .tag { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 14px; border: 1px solid var(--line2); color: var(--muted); }
.sport .tag.on { color: var(--green); border-color: rgba(95,191,143,.45); }
.sport .tag.soon { color: var(--brass); border-color: rgba(201,169,97,.45); }

/* aperçu */
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* lancement */
.launch { text-align: center; }
.launch .sec-head { margin: 0 auto 30px; align-items: center; }
.launch .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* pied de page */
footer { padding: 44px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer nav a { color: var(--soft); }
.disclaimer { flex-basis: 100%; font-size: 13px; color: var(--dim); }

/* pages de texte (mentions légales) */
.doc { padding: 64px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 28px; }
.doc h2 { font-size: 24px; margin: 38px 0 12px; }
.doc p, .doc li { color: var(--soft); }
.doc p + p { margin-top: 10px; }
.todo { background: rgba(201,169,97,.14); color: var(--brass); padding: 0 6px; border-radius: 4px; }

@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 68px 0; }
  .top nav { display: none; }
  .top .wrap { gap: 12px; }
  .top .btn { margin-left: auto; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr 1fr; }
  .hero { padding: 52px 0 56px; }
  .hero .cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------------- refonte « l'outil d'abord » : accroche centrée + carrousel */
.hero-c { padding: 72px 0 40px; text-align: center; border-bottom: 0; }
.hero-c .wrap { display: block; max-width: 860px; }
.hero-c h1 { margin: 14px 0 18px; }
.hero-c .lead { max-width: 640px; margin: 0 auto; }
.hero-c .cta { justify-content: center; }
.showcase { padding: 0 0 48px; border-bottom: 0; }
.car { position: relative; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; outline: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slide img { width: 100%; border-radius: 18px; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #0b1524; }
.slide figcaption { text-align: center; margin-top: 16px; color: var(--soft); font-size: 16px; }
.slide figcaption b { display: block; color: var(--ivory); font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.nav-btn { position: absolute; top: calc(50% - 60px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2);
  background: rgba(11,21,36,.8); color: var(--ivory); font-size: 30px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.nav-btn:hover { border-color: var(--steel); }
.nav-btn.prev { left: 4px; } .nav-btn.next { right: 4px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 5px; border: 0; background: var(--line2); cursor: pointer; transition: .25s; }
.dots button[aria-selected="true"] { width: 28px; background: var(--steel); }
section.tight { padding: 72px 0; }
@media (max-width: 680px) {
  .hero-c { padding: 44px 0 28px; }
  .car { padding: 0 12px; }
  .nav-btn { display: none; }
  .slide figcaption { font-size: 14.5px; }
  .slide figcaption b { font-size: 17px; }
  section.tight { padding: 56px 0; }
}

/* ---------------- agrandissement des écrans (lightbox) */
.slide img { cursor: zoom-in; }
.slide { position: relative; }
.zoom-hint { display: none; position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  background: rgba(11,21,36,.85); border: 1px solid var(--line2); color: var(--ivory); pointer-events: none; }
@media (hover: none) { .slide .zoom-hint { display: block; } }
.lb { position: fixed; inset: 0; z-index: 100; background: #05090f; display: flex; flex-direction: column; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lb-title { font-weight: 600; font-size: 17px; }
.lb-tip { color: var(--muted); font-size: 13px; flex: 1; }
.lb-x { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--ivory); font-size: 18px; cursor: pointer; }
.lb-view { flex: 1; overflow: auto; display: grid; place-items: center; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.lb-view img { max-width: min(96vw, 1700px); max-height: calc(100vh - 90px); width: auto; height: auto; border-radius: 10px; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb-view.z { display: block; }
.lb-view.z img { max-width: none; max-height: none; width: max(260vw, 1900px); cursor: zoom-out; border-radius: 0; }
@media (min-width: 900px) { .lb-view.z img { width: 2400px; } }
.lb-nav { position: fixed; top: 50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(11,21,36,.85);
  color: var(--ivory); font-size: 30px; cursor: pointer; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (max-width: 680px) { .lb-tip { display: none; } .lb-nav { top: auto; bottom: 18px; } }
