/* Mesh++ — site de présentation. Charte claire : blanc, encre, un seul accent indigo. */

:root {
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --bg-tint: #f1f3f8;
    --surface: #ffffff;
    --line: #e5e8ee;
    --line-strong: #d3d8e2;
    --ink: #0e1321;
    --text: #1b2232;
    --muted: #556075;
    --faint: #7c8598;
    --accent: #4338ca;
    --accent-hover: #3730a3;
    --accent-soft: #eef0ff;
    --ok: #0f8a5f;
    --radius: 16px;
    --container: 1180px;
    --shadow-sm: 0 1px 2px rgba(14, 19, 33, 0.06), 0 1px 1px rgba(14, 19, 33, 0.04);
    --shadow: 0 1px 2px rgba(14, 19, 33, 0.05), 0 12px 32px -12px rgba(14, 19, 33, 0.18);
    --shadow-lg: 0 2px 4px rgba(14, 19, 33, 0.04), 0 30px 70px -30px rgba(14, 19, 33, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.022em; line-height: 1.15; font-weight: 650; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ Bandeau Polyprod */

.announce { background: var(--ink); color: #c9cedb; font-size: 14px; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce-badge { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.announce a { font-weight: 600; color: #fff; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.announce a:hover { border-bottom-color: #fff; }

/* ------------------------------------------------------------------ Navigation */

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; height: 66px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.brand small { font-weight: 500; font-size: 12.5px; color: var(--faint); letter-spacing: 0; }
.nav-links { display: flex; gap: 26px; margin-left: 14px; font-size: 15px; color: var(--muted); }
.nav-links a:hover, .nav-account a:hover { color: var(--ink); }
.nav-account { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 10px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ------------------------------------------------------------------ Boutons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px; border: 1px solid transparent; transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(14, 19, 33, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #b8bfcd; background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef0f4; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-outline-light:hover { border-color: #fff; }
.btn-small { height: 38px; padding: 0 15px; font-size: 14.5px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.arrow::after { content: '→'; transition: transform 0.15s ease; }
.btn:hover .arrow::after, a:hover > .arrow::after { transform: translateX(3px); }

/* ------------------------------------------------------------------ Héro */

.hero { position: relative; overflow: hidden; padding: 80px 0 88px; background: linear-gradient(180deg, #fbfbfd 0%, #fff 70%); }
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(#eceff4 1px, transparent 1px), linear-gradient(90deg, #eceff4 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 70% 35%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 55% at 70% 35%, #000 20%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--accent-soft); }
.eyebrow img { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); margin: 22px 0 20px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 19.5px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 28px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); }

/* ------------------------------------------------------------------ Visionneuse */

.viewer { position: relative; aspect-ratio: 1 / 0.9; border-radius: 20px; overflow: hidden; background: radial-gradient(110% 90% at 50% 0%, #ffffff 0%, #f1f3f8 60%, #e8ebf2 100%); border: 1px solid var(--line); box-shadow: var(--shadow-lg); touch-action: none; user-select: none; cursor: grab; }
.viewer.is-dragging { cursor: grabbing; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewer-label { position: absolute; top: 16px; z-index: 2; pointer-events: none; font-size: 12.5px; line-height: 1.35; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.viewer-label strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.viewer-label span { color: var(--muted); }
.viewer-label.left { left: 16px; }
.viewer-label.right { right: 16px; text-align: right; }
.viewer-label.right strong { color: var(--accent); }
.viewer-split { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 3; background: var(--ink); cursor: ew-resize; opacity: 0; transition: opacity 0.4s ease; }
.viewer-split::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%230e1321' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.viewer.is-ready .viewer-split { opacity: 1; }
.viewer-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, 0.9); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 14px; }
.viewer.is-ready .viewer-loading { display: none; }

/* ------------------------------------------------------------------ Sections */

.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.95rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 18.5px; margin-top: 16px; }

/* Chiffres */
.facts { border-bottom: 1px solid var(--line); background: #fff; }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 24px; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 14.5px; }

/* Deux conversions */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.path-visual { aspect-ratio: 16 / 10; position: relative; background: #f1f3f8; border-bottom: 1px solid var(--line); overflow: hidden; }
.path-visual img { width: 100%; height: 100%; object-fit: cover; }
.path-body { padding: 30px 32px 34px; }
.path-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.path-title img { width: 32px; height: 32px; }
.path h3 { font-size: 23px; }
.path p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15.5px; }
.ticks li { display: flex; gap: 11px; align-items: baseline; }
.ticks li::before { content: ''; flex: none; width: 16px; height: 16px; transform: translateY(3px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%234338ca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #8a5a00; background: #fff4dc; padding: 1px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 22px; position: absolute; inset: auto 0 0 0; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); color: var(--text); }

/* Usages */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.use h3 { font-size: 17.5px; margin-bottom: 8px; }
.use p { color: var(--muted); font-size: 15px; }
.use .use-cmd { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* Outils */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { padding: 26px 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tool:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tool-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-tint); margin-bottom: 18px; }
.tool-icon img { width: 28px; height: 28px; }
.tool h3 { font-size: 18.5px; margin-bottom: 8px; }
.tool p { color: var(--muted); font-size: 15.5px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Confiance */
.trust { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.trust-list { display: grid; gap: 16px; }
.trust-item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.trust-item svg { width: 40px; height: 40px; }
.trust-item h3 { font-size: 17px; margin-bottom: 4px; }
.trust-item p { color: var(--muted); font-size: 15px; }
.report { font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13.5px; line-height: 1.8; border-radius: var(--radius); background: var(--ink); padding: 24px 26px; box-shadow: var(--shadow-lg); color: #c9cfdc; overflow-x: auto; }
.report .k { color: #7f889c; }
.report .ok { color: #5fd3a2; }
.report .v { color: #fff; }
.report-title { display: flex; justify-content: space-between; gap: 16px; color: #9aa3b5; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 12px; margin-bottom: 12px; font-size: 12.5px; }

/* Prix */
.plans { display: grid; grid-template-columns: 1fr 1fr 0.95fr; gap: 22px; align-items: stretch; }
.plan { position: relative; border-radius: 18px; padding: 34px 32px 34px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 30px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan h3 { font-size: 20px; }
.plan .price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.plan .price strong { font-size: 50px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan .note { color: var(--muted); font-size: 15px; }
.plan .ticks { margin: 24px 0 30px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan-side { display: grid; gap: 20px; }
.plan-side .plan { padding: 26px 28px; box-shadow: none; background: var(--bg-soft); display: block; }
.plan-side h3 { font-size: 17.5px; margin-bottom: 8px; }
.plan-side p { color: var(--muted); font-size: 15px; }
.plan-side .links { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--accent); }
.pricing-foot { text-align: center; color: var(--faint); font-size: 14px; margin-top: 28px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* Appel final */
.cta { padding: 24px 0 112px; }
.cta-box { position: relative; overflow: hidden; border-radius: 24px; padding: 68px 48px; text-align: center; background: var(--ink); color: #fff; }
.cta-box::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 70%); }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: #fff; }
.cta-box p { color: #aab2c3; font-size: 18px; margin: 14px auto 0; max-width: 560px; }
.cta-box .hero-actions { justify-content: center; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding: 60px 0 36px; color: var(--muted); font-size: 15px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--ink); }
.footer p a { color: var(--accent); font-weight: 500; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }
.footer .brand { margin-bottom: 12px; }

/* Contact */
.contact-form { display: grid; gap: 10px; margin-top: 16px; max-width: 420px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 13px; }
.contact-form textarea { min-height: 92px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-status { font-size: 14px; min-height: 1.4em; }

/* Apparition au défilement */
/* Seulement si JavaScript tourne (classe js posée dans le head) : sans lui, tout reste visible. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------------------ Écrans étroits */

@media (max-width: 1020px) {
    .hero .container, .trust { grid-template-columns: 1fr; }
    .hero { padding-top: 52px; }
    .tools { grid-template-columns: repeat(2, 1fr); }
    .uses { grid-template-columns: repeat(2, 1fr); }
    .facts .container { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .plans { grid-template-columns: 1fr 1fr; }
    .plans .plan-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-links, .nav-account { display: none; }
    .nav-toggle { display: block; }
    .nav.is-open .nav-links, .nav.is-open .nav-account { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; margin: 0; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 24px 16px; }
    .nav.is-open .nav-links { top: 66px; padding-bottom: 0; }
    .nav.is-open .nav-links a, .nav.is-open .nav-account a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
    .nav.is-open .nav-account { top: calc(66px + 5 * 49px + 6px); align-items: stretch; }
    .nav.is-open .nav-account .btn { margin-top: 12px; color: #fff; border-bottom: 0; }
    .paths, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 76px 0; }
    .tools, .uses, .plans, .plans .plan-side { grid-template-columns: 1fr; }
    .hero-lead { font-size: 17.5px; }
    .plan { padding: 30px 24px; }
    .cta-box { padding: 48px 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .viewer-label { font-size: 11.5px; padding: 6px 9px; }
    .viewer-label strong { font-size: 12.5px; }
    .viewer-hint { display: none; }
}

/* ------------------------------------------------------------------ Fenêtre « Autodesk Fusion » du héro */

.app { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.app-bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; background: #f3f4f7; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d5d9e1; }
.app-title b { color: var(--ink); font-weight: 600; }
.app-tabs { display: flex; gap: 2px; padding: 0 10px; background: #f3f4f7; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.app-tabs span { padding: 7px 12px 6px; border-bottom: 2px solid transparent; }
.app-tabs .is-active { color: var(--accent); border-bottom-color: var(--accent); background: #fff; }
.app-ribbon { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fff; overflow-x: auto; }
.app-panel { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-items: center; align-items: center; column-gap: 6px; row-gap: 3px; padding: 4px 12px; border-right: 1px solid var(--line); }
.app-panel:last-child { border-right: 0; }
.app-panel img { grid-row: 1; width: 26px; height: 26px; }
.app-panel span { grid-row: 2; grid-column: 1 / -1; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.app .viewer { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 1 / 0.78; }

/* ------------------------------------------------------------------ Vitrine des commandes */

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.is-reversed .feature-visual { order: 2; }
.feature-visual { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: radial-gradient(110% 90% at 50% 0%, #fff 0%, #f1f3f8 60%, #e8ebf2 100%); border: 1px solid var(--line); display: grid; place-items: center; }
.feature-visual img { width: 100%; height: 100%; object-fit: contain; }
.feature-visual.is-empty .feature-icon-large { width: 96px; height: 96px; object-fit: contain; opacity: 0.9; }
.feature-name { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px 4px 6px; border-radius: 999px; margin-bottom: 16px; }
.feature-name img { width: 22px; height: 22px; }
.feature h3 { font-size: 26px; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 17px; }

/* ------------------------------------------------------------------ Valeur avant le prix */

.value { max-width: 900px; margin: 0 auto 44px; text-align: center; }
.value-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.value-list span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
.value-list img { width: 20px; height: 20px; }
.value p { color: var(--muted); font-size: 16px; max-width: 680px; margin: 0 auto; }
.plan .price.small strong { font-size: 38px; }
.plans { grid-template-columns: 1.15fr 0.9fr 0.95fr; }
.plan.featured .price strong { font-size: 58px; }

@media (max-width: 1020px) {
    .feature { grid-template-columns: 1fr; gap: 28px; }
    .feature.is-reversed .feature-visual { order: 0; }
    .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .plans { grid-template-columns: 1fr; }
    .app-tabs span:not(.is-active) { display: none; }
}

/* Sens de la conversion : maillage → B-Rep */
.viewer-split::after { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; border: 3px solid #fff; width: 42px; height: 42px; }
.viewer-flow { position: absolute; top: 68px; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--ink); padding: 6px 13px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity 0.5s ease 0.4s; }
.viewer-flow svg { width: 15px; height: 15px; color: #a5b4fc; }
.viewer.is-ready .viewer-flow { opacity: 1; }
@media (max-width: 640px) { .viewer-flow { top: auto; bottom: 14px; } }

/* ==========================================================================================
   Pages intérieures : compte, achat, Polyprod (présentation, guide, blog), messages
   ========================================================================================== */
.nav-links a[aria-current] { color: var(--ink); font-weight: 600; }
.subnav { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.subnav .container { display: flex; align-items: center; gap: 24px; overflow-x: auto; }
.subnav-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-right: 4px; white-space: nowrap; }
.subnav a { color: var(--muted); font-weight: 500; font-size: 14.5px; white-space: nowrap; padding: 13px 0 11px; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

.page-head { position: relative; overflow: hidden; padding: 60px 0 44px; background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.1; }
.page-head p { color: var(--muted); font-size: 18.5px; max-width: 720px; margin-top: 14px; }
.page-head .kicker { display: block; }
.page-body { padding: 52px 0 104px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Cartes, formulaires, messages */
.auth { padding: 56px 16px 104px; background: radial-gradient(1000px 420px at 50% -120px, var(--accent-soft), transparent 70%); }
.auth-card { width: 100%; max-width: 448px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 34px 34px 30px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 27px; letter-spacing: -0.025em; }
.auth-card .sub { color: var(--muted); margin: 8px 0 24px; font-size: 15.5px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.auth-foot a, .text-link { color: var(--accent); font-weight: 600; }
.auth-foot a:hover, .text-link:hover { color: var(--accent-hover); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px 30px; }
.card + .card { margin-top: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card h2 { font-size: 21px; letter-spacing: -0.02em; }
.card-head p { color: var(--muted); font-size: 14.5px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label, .field-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.input, .field input, .field select, .field textarea {
    font: inherit; font-size: 15.5px; width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
    background: #fff; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:disabled { background: var(--bg-soft); color: var(--muted); }
.is-invalid, .field input.is-invalid { border-color: #d92d20; }
.field-error { color: #b42318; font-size: 13.5px; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 13.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.check.top { align-items: flex-start; }
.check.top input { margin-top: 3px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-google:hover { background: var(--bg-soft); }
.btn-google svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; font-size: 15px; border: 1px solid; margin-bottom: 20px; }
.alert-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert-ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.alert-info { background: var(--accent-soft); border-color: #c7cbfa; color: #3730a3; }
.alert-list { max-width: 780px; margin: 0 auto; }
.d-none, .hide { display: none !important; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.message-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.message-icon svg { width: 26px; height: 26px; }

/* Compte */
.account { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-card { position: sticky; top: 92px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.profile-card h2 { margin-top: 16px; font-size: 20px; }
.profile-card .muted { color: var(--muted); font-size: 14.5px; }
.facts-list { margin: 18px 0 22px; display: grid; }
.facts-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 -30px; padding: 0 30px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table small { display: block; color: var(--muted); font-size: 13px; }
code.key { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; font-size: 13.5px; background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 9px; border-radius: 7px; color: var(--ink); white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); }
.link-btn.danger, .danger { color: #b42318; }
.inline-form { display: inline; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: #ecfdf3; color: #067647; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.install { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: install; display: grid; gap: 12px; }
.install li { counter-increment: install; display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: 15px; }
.install li::before { content: counter(install); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; transform: translateY(-1px); }
.empty { color: var(--muted); }
.download-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 20px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); margin: 18px 0 6px; }
.download-box strong { display: block; color: var(--ink); }
.download-box span { color: var(--muted); font-size: 14px; }
.summary { display: grid; gap: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.summary-line img { border-radius: 9px; }
.summary-line small { display: block; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.summary-total strong { font-size: 30px; letter-spacing: -0.03em; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.stripe-field { height: 46px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.stripe-field.StripeElement--focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stripe-field.StripeElement--invalid { border-color: #d92d20; }
.form-section { font-size: 15px; color: var(--ink); margin-top: 8px; }

/* Fenêtres */
dialog.dialog { border: 0; border-radius: 18px; padding: 30px; width: calc(100% - 32px); max-width: 460px; box-shadow: var(--shadow-lg); color: var(--text); }
dialog.dialog::backdrop { background: rgba(14, 19, 33, 0.5); backdrop-filter: blur(2px); }
.dialog h2 { font-size: 21px; margin-bottom: 8px; padding-right: 36px; }
.dialog p { color: var(--muted); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: var(--ink); background: var(--bg-tint); }
.downloads { display: grid; gap: 10px; margin-top: 20px; }
.download-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; transition: border-color 0.15s ease, background 0.15s ease; }
.download-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.download-link[aria-disabled="true"] { color: var(--faint); pointer-events: none; }
.download-link small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.download-link svg { width: 26px; height: 26px; flex: none; }
.download-link .spinner { margin-left: auto; color: var(--muted); }
.dialog .fine { font-size: 13.5px; margin-top: 16px; }
.dialog .fine a { color: var(--accent); }

/* Polyprod : présentation */
.pp-hero { padding: 72px 0 0; background: linear-gradient(180deg, #fbfbfd 0%, #fff 100%); }
.pp-hero .container { text-align: center; }
.pp-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.08; max-width: 820px; margin: 18px auto 0; }
.pp-hero h1 em { font-style: normal; color: var(--accent); }
.pp-hero .lead { color: var(--muted); font-size: 19px; max-width: 680px; margin: 18px auto 0; }
.pp-hero .hero-actions { justify-content: center; }
.media { margin: 52px auto 0; max-width: 1000px; border-radius: 18px 18px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-lg); background: var(--ink); }
.media video, .media img { display: block; width: 100%; height: auto; }
.pp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pp-feature { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.pp-feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.pp-feature-visual { display: grid; place-items: center; height: 150px; background: linear-gradient(180deg, var(--bg-soft), var(--bg-tint)); border-bottom: 1px solid var(--line); padding: 20px; }
.pp-feature-visual img { width: 84px; height: 84px; object-fit: contain; opacity: 0.88; }
.pp-feature-body { padding: 22px 24px 26px; }
.pp-feature h3 { font-size: 18.5px; margin-bottom: 6px; }
.pp-feature p { color: var(--muted); font-size: 15.5px; }
.plans.plans-2 { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.split p { color: var(--muted); font-size: 17px; }
.split p + p { margin-top: 12px; }

/* Guide et blog */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); letter-spacing: -0.02em; line-height: 1.25; margin-top: 52px; }
.prose h3 { font-size: 1.22rem; letter-spacing: -0.01em; margin-top: 32px; }
.prose h2 + p, .prose h3 + p { margin-top: 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.lead-text { font-size: 19.5px; color: var(--muted); line-height: 1.65; }
.article-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; margin-top: 16px; }
.article-meta svg { width: 16px; height: 16px; }
.article-cover { margin: 36px 0 8px; }
.article-cover img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-cta { margin-top: 56px; padding: 28px 30px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.article-cta h3 { font-size: 19px; }
.article-cta p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-card-visual { aspect-ratio: 16 / 10; background: var(--bg-tint) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 15px; }
.post-card .article-meta { margin-top: 0; font-size: 13.5px; }
.tutorials { display: grid; gap: 64px; counter-reset: tuto; }
.tutorial { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.tutorial:nth-child(even) .video { order: 2; }
.tutorial h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.tutorial h2::before { counter-increment: tuto; content: counter(tuto); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; margin-right: 12px; vertical-align: 3px; }
.tutorial p { color: var(--muted); font-size: 16.5px; }
.tutorial p + p { margin-top: 10px; }
.tutorial p strong { color: var(--ink); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--ink); box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 980px) {
    .account, .pay-grid, .split, .tutorial { grid-template-columns: minmax(0, 1fr); }
    .tutorial:nth-child(even) .video { order: 0; }
    .profile-card { position: static; }
    .pp-features, .blog-grid { grid-template-columns: 1fr 1fr; }
    .plans.plans-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .form-row, .pp-features, .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .auth { padding-top: 32px; }
    .auth-card { padding: 26px 22px; }
    .card { padding: 22px 20px; }
    .table-wrap { margin: 0 -20px; padding: 0 20px; }
    .page-head { padding: 40px 0 32px; }
}
.rules { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.rules li { display: inline-flex; align-items: center; gap: 7px; }
.rules li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background 0.15s ease; }
.rules li.is-ok { color: #067647; }
.rules li.is-ok::before { background: #12b76a; }
.field input[readonly] { background: var(--bg-soft); color: var(--muted); }
