/* SMART BUSINESS — site vitrine. Palette : violet #7C3AED → indigo #4F46E5, navy #1E1B4B / #0F172A */
/* Polices hébergées sur le site (aucun appel à Google Fonts : plus rapide, plus privé, compatible CSP) — licence OFL */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/montserrat-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(../fonts/cairo-arabic-wght-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(../fonts/cairo-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --v1: #7C3AED; --v2: #6366F1; --v3: #4F46E5;
  --grad: linear-gradient(135deg, #7C3AED 0%, #6366F1 50%, #4F46E5 100%);
  --ok: #10B981; --warn: #F59E0B; --bad: #EF4444;
  --bg: #F8FAFC; --bg2: #EEF0F8; --surface: #FFFFFF; --text: #0F172A; --muted: #475569; --line: #E2E8F0;
  --accent: #5B4BE0; --shadow: 0 24px 60px rgba(30, 27, 75, .14); --shadow-s: 0 8px 24px rgba(30, 27, 75, .08);
  --r: 20px; --r-s: 12px; --wrap: 1200px; --hdr: 72px;
  --f-head: 'Montserrat', 'Segoe UI', Arial, sans-serif; --f-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0A1F; --bg2: #13112E; --surface: #1A1840; --text: #EEF0FF; --muted: #A9AEDB; --line: #2E2B63;
  --accent: #A5B4FC; --shadow: 0 24px 60px rgba(0, 0, 0, .45); --shadow-s: 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
[lang="ar"] { --f-head: 'Cairo', 'Segoe UI', Tahoma, sans-serif; --f-body: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); transition: background-color .35s, color .35s; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; line-height: 1.12; letter-spacing: -.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 860px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--v3); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--v2); outline-offset: 3px; border-radius: 6px; }

/* Barre de progression */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-txt { display: flex; flex-direction: column; font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: 15px; line-height: 1; letter-spacing: .04em; }
.brand-txt b:first-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 10px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg2); }
.nav .nav-cta-m { display: none; }
.tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0; background: transparent; color: var(--muted); font: 600 13px var(--f-body); min-width: 38px; height: 34px; border-radius: 9px; cursor: pointer; transition: all .2s; }
.lang a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
.lang a[data-lang="ar"] { line-height: 1; font-family: 'Cairo', sans-serif; font-size: 16px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; cursor: pointer; transition: transform .2s, background-color .3s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }
.burger { display: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 600 16px var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .25s, background-color .25s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(99, 102, 241, .45); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.btn-ghost svg { fill: currentColor; stroke: none; }
.btn-white { background: #fff; color: #312E81; }
.btn-white:hover { transform: translateY(-2px); }
.w100 { width: 100%; }
.arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #8B5CF6; top: -160px; inset-inline-end: -120px; }
.b2 { width: 420px; height: 420px; background: #4F46E5; top: 560px; inset-inline-start: -140px; animation-delay: -6s; opacity: .3; }
[data-theme="dark"] .blob { opacity: .35; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); opacity: .5; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-s); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; margin: 22px 0 20px; }
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .grad-txt { background: linear-gradient(135deg, #C4B5FD, #A5B4FC); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.hero-facts svg { width: 18px; height: 18px; color: var(--ok); stroke-width: 3; }
.hero-vis { position: relative; padding: 28px 0 40px; }
.frame-web { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; }
.bar i:nth-child(2) { background: #FBBF24; }
.bar i:nth-child(3) { background: #34D399; }
.bar span { margin-inline-start: 14px; font-size: 12px; color: var(--muted); background: var(--surface); padding: 3px 12px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr; }
.frame-web img, .frame-web video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame-phone { border: 10px solid #0B0A1F; border-radius: 40px; overflow: hidden; background: #0B0A1F; box-shadow: var(--shadow); }
.frame-phone img, .frame-phone video { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.tilt { transform: perspective(1600px) rotateY(-8deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
[dir="rtl"] .tilt { transform: perspective(1600px) rotateY(8deg) rotateX(4deg); }
.hero-vis:hover .tilt { transform: perspective(1600px) rotateY(0) rotateX(0); }
.hero-phone { position: absolute; width: 30%; inset-inline-end: -14px; bottom: 0; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; animation: bob 7s ease-in-out infinite; }
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.fc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.fc-ic svg { width: 18px; height: 18px; stroke-width: 2.5; }
.fc-ic.ok { background: var(--ok); } .fc-ic.warn { background: var(--warn); } .fc-ic.pr { background: var(--grad); }
.fc1 { top: 0; inset-inline-start: -28px; animation-delay: -2s; }
.fc2 { bottom: 64px; inset-inline-start: -40px; animation-delay: -4s; }
.fc3 { top: 38%; inset-inline-end: 24%; animation-delay: -1s; }

/* Bandeau chiffres */
.band { background: var(--grad); color: #fff; padding: 36px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: 'Montserrat', sans-serif; font-size: 48px; font-weight: 800; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: #E0E7FF; }

/* Sections */
.sec { padding: 104px 0; }
.sec-alt { background: var(--bg2); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 16px; }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; max-width: 820px; }
.sec-sub { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 720px; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .3s, box-shadow .3s; }
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-n { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14px; color: var(--accent); }
.pain h3 { font-size: 21px; margin: 10px 0 8px; }
.pain p { color: var(--muted); }
.pain-sol { background: var(--grad); border: 0; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.pain-sol p { color: #E0E7FF; }
.pain-sol h3 { font-size: 24px; margin-top: 0; }
.link-arrow { margin-top: 16px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; }
.link-arrow::after { content: '→'; transition: transform .2s; }
[dir="rtl"] .link-arrow::after { content: '←'; }
.link-arrow:hover::after { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.feat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
[dir="rtl"] .feat::before { transform-origin: right; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feat:hover::before { transform: scaleX(1); }
.feat-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--v2) 14%, transparent); color: var(--accent); margin-bottom: 18px; transition: transform .3s; }
.feat:hover .feat-ic { transform: rotate(-6deg) scale(1.06); }
.feat-ic svg { width: 26px; height: 26px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15.5px; }

/* Aperçu interactif */
.show { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: var(--shadow-s); }
.show-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.show-tabs::-webkit-scrollbar { display: none; }
.show-tabs button { flex: none; border: 0; background: transparent; color: var(--muted); font: 600 15px var(--f-body); padding: 0 18px; min-height: 46px; border-radius: 12px; cursor: pointer; transition: all .25s; }
.show-tabs button:hover { color: var(--text); background: var(--bg2); }
.show-tabs button[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, .35); }
.show-body { display: grid; grid-template-columns: 320px 1fr; gap: 36px; padding: 32px 24px 24px; align-items: center; }
.show-side h3 { font-size: 26px; margin-bottom: 12px; }
.show-side p { color: var(--muted); min-height: 104px; }
.seg { display: inline-flex; margin-top: 24px; background: var(--bg2); border: 1px solid var(--line); padding: 4px; border-radius: 14px; }
.seg button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font: 600 15px var(--f-body); min-height: 44px; padding: 0 18px; border-radius: 10px; cursor: pointer; transition: all .25s; }
.seg button svg { width: 18px; height: 18px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
.show-dots { display: flex; gap: 8px; margin-top: 28px; }
.show-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: all .3s; }
.show-dots span.on { width: 28px; background: var(--grad); }
.show-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.stage-web, .stage-phone { transition: opacity .45s, transform .55s cubic-bezier(.2, .7, .2, 1); }
.stage-web { width: 100%; }
.stage-phone { position: absolute; width: 250px; }
.show-stage[data-view="web"] .stage-phone { opacity: 0; transform: translateY(40px) scale(.94); pointer-events: none; }
.show-stage[data-view="mobile"] .stage-web { opacity: .12; transform: scale(.94); filter: blur(2px); }
.show-stage img { transition: opacity .3s; }
.show-stage img.swap { opacity: 0; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 22px; inset-inline: 22px; height: 2px; background: linear-gradient(90deg, var(--v1), var(--v3)); opacity: .35; }
.timeline li { position: relative; padding-top: 64px; }
.t-time { position: absolute; top: 0; inset-inline-start: 0; height: 44px; padding: 0 16px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; font: 700 15px 'Montserrat', sans-serif; direction: ltr; }
.timeline h3 { font-size: 20px; margin-bottom: 8px; }
.timeline p { color: var(--muted); }

/* Démo vidéo */
.sec-dark { background: #1E1B4B; color: #EEF0FF; }
[data-theme="dark"] .sec-dark { background: #13112E; }
.sec-dark .eyebrow { color: #A5B4FC; }
.demos { display: grid; grid-template-columns: 300px 1fr; gap: 56px; margin-top: 48px; align-items: start; }
.demos figure { margin: 0; }
.demos figcaption { margin-top: 20px; }
.demos h3 { font-size: 21px; margin-bottom: 6px; }
.demos p { color: #C7CBF0; }
.sec-dark .frame-web { border-color: #3B3780; background: #0B0A1F; }
.sec-dark .bar { background: #24215A; border-color: #3B3780; }

/* Mobile */
.mob { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.mob-phones { position: relative; height: 620px; }
.mob-phones .frame-phone { position: absolute; width: 270px; }
.mob-phones .p1 { inset-inline-start: 6%; top: 0; transform: rotate(-5deg); }
.mob-phones .p2 { inset-inline-start: 44%; top: 50px; transform: rotate(5deg); }
[dir="rtl"] .mob-phones .p1 { transform: rotate(5deg); }
[dir="rtl"] .mob-phones .p2 { transform: rotate(-5deg); }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checks li { position: relative; padding-inline-start: 36px; font-weight: 500; }
.checks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 3px; width: 24px; height: 24px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Sécurité */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; border-top: 4px solid var(--v2); }
.role b { font-family: var(--f-head); font-size: 17px; display: block; margin-bottom: 6px; }
.role p { color: var(--muted); font-size: 15px; }
.secs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.sec-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.sec-card svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.sec-card p { font-size: 15.5px; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; font: 600 17px var(--f-head); padding: 20px 36px 20px 0; position: relative; min-height: 44px; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; background: var(--bg2); display: grid; place-items: center; font-size: 20px; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* Contact */
.sec-cta { background: var(--grad); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-txt h2 { color: #fff; }
.contact-txt > p { color: #E0E7FF; font-size: 18px; margin: 16px 0 28px; }
.eyebrow.light { color: #E0E7FF; }
.ct-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ct-list a, .ct-list span { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; min-height: 44px; }
.ct-list svg { width: 22px; height: 22px; }
.ct-list .ph { opacity: .7; font-weight: 500; font-style: italic; }
.form { background: var(--surface); color: var(--text); border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: 16px var(--f-body); color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--v2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v2) 22%, transparent); }
.form .err { display: none; color: var(--bad); font-weight: 500; }
.form label.invalid input { border-color: var(--bad); }
.form label.invalid .err { display: block; }
.form-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); border-radius: 12px; padding: 12px 16px; font-weight: 500; }

/* Pied */
.foot { padding: 44px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; justify-content: space-between; }
.foot p { color: var(--muted); font-size: 15px; }
.foot-small a { color: var(--accent); }
.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .3s; z-index: 40; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 10px 8px; font-size: 14px; }
}
@media (max-width: 960px) {
  .burger { display: grid; }
  .hide-m { display: none; }
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s; margin: 0; }
  .nav.open { transform: none; }
  .nav a { font-size: 17px; padding: 14px 12px; }
  .nav .nav-cta-m { display: flex; margin-top: 8px; color: #fff; }
  .hero-in, .mob, .contact, .demos { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-vis { max-width: 640px; margin-inline: auto; width: 100%; }
  .show-body { grid-template-columns: 1fr; }
  .show-side p { min-height: 0; }
  .show-stage { min-height: 0; }
  .show-stage[data-view="mobile"] { min-height: 560px; }
  .pains { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
  .demos .demo-m { max-width: 300px; margin-inline: auto; }
  .mob-phones { height: 560px; max-width: 520px; width: 100%; margin-inline: auto; }
  .secs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .sec { padding: 72px 0; }
  .feats, .pains, .roles, .timeline, .f-row { grid-template-columns: 1fr; }
  .fc3 { display: none; }
  .fc1 { inset-inline-start: 0; } .fc2 { inset-inline-start: 0; bottom: 20px; }
  .hero-phone { width: 34%; inset-inline-end: 0; }
  .mob-phones { height: 460px; }
  .mob-phones .frame-phone { width: 200px; }
  .form { padding: 22px; }
  .lang a { min-width: 34px; }
  .brand-txt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa-ic { width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .25s; position: relative; }
.wa-ic::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-ping 2.4s infinite; }
.wa-ic svg { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.wa-float:hover .wa-ic { transform: scale(1.08); }
.wa-bubble { order: 2; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-s); padding: 10px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; white-space: nowrap; opacity: 0; transform: translateX(-8px); pointer-events: none; transition: opacity .35s, transform .35s; }
[dir="rtl"] .wa-bubble { transform: translateX(8px); }
.wa-float:hover .wa-bubble, .wa-float:focus-visible .wa-bubble, .wa-float.hello .wa-bubble { opacity: 1; transform: none; }
@keyframes wa-ping { 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 600px) { .wa-ic { width: 54px; height: 54px; } .wa-bubble { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-ic::after { animation: none; } }

/* v1.1 — délais d'apparition sans attribut style (CSP stricte), titre principal, grille secteurs */
.d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; }
.hero h1 .h1-kicker { display: flex; width: fit-content; max-width: 100%; margin: 0 0 22px; font-family: var(--f-body); font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.hero h1 .h1-kicker > span:last-child { color: var(--muted); }
.hero h1 { margin-top: 0; }
.feats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .feats-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .feats-3 { grid-template-columns: 1fr; } }
.lang a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.err-page { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.err-page h1 { font-size: clamp(32px, 5vw, 48px); margin: 4px 0 8px; }
.err-page [lang="ar"] { font-family: 'Cairo', sans-serif; }
.err-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* v1.2 — page vidéo */
.demo-full { text-align: center; margin: 40px 0 0; }
.demo-full .btn svg { width: 20px; height: 20px; fill: currentColor; }
.vid-page { padding-top: 48px; }
.vid-page h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; margin: 6px 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.vid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; margin-top: 36px; align-items: stretch; }
.vid-frame { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.vid-frame video { display: block; width: 100%; height: 100%; background: #000; }
.chapters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px; height: 0; min-height: 100%; overflow: auto; }
.chapters h2 { font-size: 17px; margin: 2px 10px 10px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters button { width: 100%; min-height: 44px; display: flex; gap: 12px; align-items: center; text-align: start; border: 0; background: transparent; color: var(--text); font: 500 15px var(--f-body); padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background-color .2s, color .2s; }
.chapters button:hover { background: var(--bg2); }
.chapters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chapters button.on { background: color-mix(in srgb, var(--v2) 16%, transparent); color: var(--accent); font-weight: 600; }
.chapters .t { min-width: 40px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; direction: ltr; }
.chapters button.on .t { color: var(--accent); }
.vid-info { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; }
.vid-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 960px) {
  .vid-layout { grid-template-columns: 1fr; }
  .chapters { height: auto; min-height: 0; }
  .chapters ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .chapters ol { grid-template-columns: 1fr; } }
