/* iTradesk — page d'accueil publique */
:root {
  --ink: #161616; --ink-2: #262626; --ink-3: #393939;
  --accent: #0f62fe; --accent-2: #0353e9; --accent-light: #78a9ff;
  --sand: #f4f4f4; --paper: #fff;
  --text: #161616; --muted: #525252; --line: #e0e0e0;
  --purple: #8a3ffc; --danger: #da1e28; --warn: #f1c21b;
  --radius: 0; --wrap: 1200px;
  --font: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr { 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(--accent); color: #fff; padding: 10px 16px; border-radius: 0; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 0; font-weight: 500; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-outline-ink { border-color: var(--accent); color: var(--accent); }
.btn-outline-ink:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(10, 41, 37, .06); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 0; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-panel { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav-links a, .link-login, .nav-actions .btn, .prefs select { white-space: nowrap; }
.nav-links { display: flex; gap: 2px; margin-left: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 0; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); }
.nav-links a:hover { background: var(--sand); }
.prefs { display: flex; gap: 6px; margin-left: auto; }
.prefs select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line); border-radius: 0; padding: 8px 28px 8px 11px; max-width: 150px; cursor: pointer; }
.prefs select:hover { border-color: var(--ink-3); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.link-login { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); padding: 8px 6px; }
.link-login:hover { text-decoration: underline; }
.nav-actions .btn { background: var(--ink); color: #fff; }
.nav-actions .btn:hover { background: var(--ink-3); box-shadow: none; }

/* ---------- sections ---------- */
.section { padding: 96px 0; scroll-margin-top: 68px; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2, .split h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; color: var(--ink); }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-light); margin-bottom: 16px; }
.eyebrow.dark-text { color: var(--accent); }
.lead { font-size: 19px; line-height: 1.6; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(15, 98, 254, .28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(138, 63, 252, .20), transparent 60%), var(--ink); color: #fff; padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero .lead { margin-top: 24px; color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 30px; padding: 16px 20px; border: 1px solid rgba(120, 169, 255, .45); border-radius: 0; background: rgba(15, 98, 254, .14); width: fit-content; max-width: 100%; }
.hp-from { color: rgba(255, 255, 255, .7); font-size: 15px; }
.hp-amount { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 400; color: #fff; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.hp-unit { color: rgba(255, 255, 255, .8); font-size: 15px; }
.hp-note { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #fff; font-weight: 600; margin-top: 4px; }
.hp-note .ic { width: 16px; height: 16px; color: var(--accent-light); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ic { width: 16px; height: 16px; color: var(--accent-light); }

/* Aperçu du produit (dessiné en HTML/CSS) */
.mock { background: #fff; color: var(--text); border-radius: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg); transform-origin: left center; font-size: 13px; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #eef1ec; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6cd; }
.mock-bar i:nth-child(1) { background: #f26d6d; } .mock-bar i:nth-child(2) { background: #f4c04d; } .mock-bar i:nth-child(3) { background: #62c470; }
.mock-bar span { margin-left: 10px; font-weight: 600; color: var(--ink); font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 0.9fr 1.25fr; min-height: 360px; }
.mock-list { border-right: 1px solid var(--line); background: #fafbf9; }
.mock-h { padding: 14px 16px 10px; font-weight: 600; font-size: 13px; color: var(--ink); }
.mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); }
.mock-row.on { background: #d0e2ff; box-shadow: inset 3px 0 0 var(--accent); }
.mock-row b { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.mock-row small { color: var(--muted); font-size: 11.5px; }
.mock-row em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-row.on em { color: var(--danger); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.p-urgent { background: var(--danger); } .p-high { background: var(--warn); } .p-normal { background: #4d8ff0; } .p-low { background: #9aa8a4; }
.mock-thread { padding-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chip { padding: 3px 9px; border-radius: 0; background: #eef1ec; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.chip:first-child { background: #fde4e4; color: #b4232a; }
.bubble { margin: 0 16px 12px; padding: 12px 14px; border-radius: 0; background: #f0f2ee; line-height: 1.5; }
.ai-card { margin: 0 16px; padding: 12px 14px; border-radius: 0; border: 1px solid #d8ccfb; background: linear-gradient(180deg, #f6f2ff, #fff); }
.ai-head { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; color: #6a49dd; margin-bottom: 6px; }
.ai-head .ic { width: 15px; height: 15px; }
.ai-card p { line-height: 1.5; }
.caret { display: inline-block; width: 2px; height: 1em; background: #6a49dd; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-actions { display: flex; gap: 6px; margin-top: 10px; }
.ai-actions span { padding: 4px 11px; border-radius: 0; border: 1px solid #d8ccfb; font-size: 11.5px; font-weight: 500; color: #6a49dd; background: #fff; }
.ai-actions span:first-child { background: #6a49dd; color: #fff; border-color: #6a49dd; }

/* ---------- fonctionnalités ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(10, 41, 37, .08); }
.feature-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 0; background: var(--accent); color: #fff; margin-bottom: 18px; }
.feature h3 { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.feature p { margin-top: 8px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* ---------- IA ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.section.dark h2 { color: #fff; }
.section.dark .lead { margin-top: 20px; color: rgba(255, 255, 255, .78); }
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 16px; }
.check-list .ic { width: 22px; height: 22px; padding: 3px; border-radius: 0; background: var(--accent); color: #fff; margin-top: 1px; }

/* ---------- tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 32px 28px; }
.plan.popular { border: 2px solid var(--accent); box-shadow: 0 24px 60px rgba(10, 41, 37, .14); }
.badge { position: absolute; top: -14px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 13px; border-radius: 0; }
.plan h3 { font-size: 22px; font-weight: 600; color: var(--ink); }
.tagline { color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 2.9em; }
.price { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 2px; }
.price strong { font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.price span { font-size: 14px; color: var(--muted); }
.plan ul { display: grid; gap: 12px; margin-top: 26px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.plans-1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
.custom-quote { margin-top: 36px; text-align: center; font-size: 16.5px; color: var(--muted); }
.custom-quote a { color: var(--ink); font-weight: 600; }
.addons { margin-top: 64px; }
.addons header { margin-bottom: 22px; }
.addons h3 { font-size: 22px; font-weight: 600; color: var(--ink); }
.addons header p { color: var(--muted); margin-top: 4px; }
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.addon { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.addon h4 { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.addon p { font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.addon-price { text-align: right; flex: none; }
.addon-price strong { display: block; font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.addon-price span { font-size: 12.5px; color: var(--muted); }
.fineprint { margin-top: 28px; font-size: 13.5px; color: var(--muted); text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 0; background: #fff; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] { border-color: var(--accent); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }

/* ---------- appel final & pied de page ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.cta-band p { margin-top: 8px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.foot-brand p { margin-top: 14px; max-width: 26em; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer li + li { margin-top: 9px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { color: var(--accent-light); text-decoration: underline; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links a { padding: 8px 8px; font-size: 14.5px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-panel { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(10, 41, 37, .12); }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; margin: 0; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .prefs { margin: 0; }
  .prefs select { flex: 1; max-width: none; }
  .nav-actions { justify-content: space-between; }
  .hero { padding: 48px 0 72px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .mock { transform: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .tagline { min-height: 0; }
  .section { padding: 72px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .feature-grid, .addon-grid { grid-template-columns: 1fr; }
    .mock-body { grid-template-columns: 1fr; }
  .mock-list { display: none; }
  .hero-cta .btn { flex: 1; }
  .addon { flex-direction: column; align-items: flex-start; gap: 10px; }
  .addon-price { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {  }

/* Titres légers comme dans l'application (IBM Plex Sans Light) */
.hero h1, .section-head h2, .split h2, .cta-band h2 { font-weight: 300; letter-spacing: -.02em; }
.hero h1 em { font-weight: 300; }
.price strong { font-weight: 400; }
.brand { font-weight: 600; letter-spacing: 0; }
