/* ==========================================================================
   IT Partner — landing SEO (vanilla CSS, aucune dépendance)
   Palette reprise de site-vitrine/css/style.css.
   ========================================================================== */
:root {
  --bg: #fafafa;
  --surface: #fff;
  --surface-2: #f4f4f6;
  --text: #0b0b12;
  --anthracite: #25262e;
  --muted: #5d5f6c;
  --border: #e6e6ec;
  --primary: #5b5bf6;
  --primary-hover: #4a4ae6;
  --primary-soft: rgba(91, 91, 246, .09);
  --dark: #0b0b12;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 11, 18, .04), 0 8px 24px -12px rgba(11, 11, 18, .10);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.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: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--text); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, .92); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(250, 250, 250, .8); backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--dark) linear-gradient(135deg, transparent 55%, var(--primary) 55%); }
.nav { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 10px; font-size: 14px; color: var(--anthracite); text-decoration: none; border-radius: 8px; }
.nav a:hover { background: var(--surface-2); }
@media (max-width: 640px) { .nav-optional { display: none; } .logo-text { display: none; } }

/* ---------- Message de redirection ---------- */
.redirect-notice { background: var(--dark); color: #fff; padding: 18px 0; }
.redirect-inner { display: grid; gap: 8px; }
.redirect-notice [data-redirect-text] { font-weight: 650; font-size: 17px; }
.redirect-product { color: #c9cad6; font-size: 15px; }
.redirect-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.redirect-notice .btn-ghost { background: transparent; color: #fff; border-color: #3a3b46; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0; } .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-hover); font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(32px, 6vw, 54px); letter-spacing: -.035em; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 14px; color: var(--anthracite); }
.hero-facts li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 6px; }
.hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 4vw, 38px); max-width: 24em; }
.section-intro { margin-top: 14px; color: var(--muted); max-width: 46em; }
.section h2 + .grid-4, .section h2 + .steps, .section h2 + .faq, .section-intro + .grid-4, .section-intro + .plans, .section-intro + .audience { margin-top: 32px; }

.grid-4, .steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 18px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step-num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .08em; }

/* ---------- Formules ---------- */
.plans { display: grid; gap: 18px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.plan-featured { border-color: var(--primary); box-shadow: 0 20px 50px -28px rgba(91, 91, 246, .55); }
.plan.is-selected { outline: 3px solid var(--primary); outline-offset: 3px; }
.plan-selected { position: absolute; top: -13px; left: 24px; padding: 3px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.plan-duration { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.plan-name { margin-top: 8px; font-size: 24px; }
.plan-name-long { font-size: 20px; line-height: 1.25; }
.plan-desc { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan-price { margin-top: 18px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.plan-meta { margin-top: 6px; font-size: 14px; color: var(--muted); }
.plan-list { margin: 18px 0 22px; display: grid; gap: 8px; font-size: 14.5px; color: var(--anthracite); }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.plan-cta { margin-top: auto; width: 100%; }
.plans-note { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 52em; }

/* ---------- Pour qui ---------- */
.audience { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.audience li { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 15px; }
.audience strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 16.5px; font-weight: 600; letter-spacing: 0; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2 { margin-inline: auto; }
.section-dark p { margin-top: 14px; color: #c9cad6; }
.section-dark .btn { margin-top: 10px; }
.demo-note { font-size: 13px; font-style: italic; color: var(--muted); }
.section-dark .demo-note { color: #8b8d9b; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 40px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.footer-brand { color: var(--anthracite); font-weight: 600; }
.legal { margin-top: 20px; }
.legal h2 { font-size: 15px; color: var(--text); }
.legal .demo-note { margin-top: 4px; }
.legal ul { margin-top: 8px; display: grid; gap: 2px; }
.copyright { margin-top: 20px; }
