:root { --income: #0a8a6c; --expense: #b8741a; --green: #0b5d4e; --green-2: #0e7a66; --blue: #2a4fb5; --terra: #c4553b; --gold: #eba93f; --gold-2: #96590e; --ink: #10231e; --muted: #4c5f58; --paper: #eaf6f1; --surface: #ffffff; --line: #d6e6df; --hero: linear-gradient(120deg, #083f36 0%, #0b5d4e 38%, #0e7a66 68%, #2a4fb5 118%); --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.6 var(--font); overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--green-2); }
.wrap { width: 100%; padding-inline: clamp(16px, 2.2vw, 36px); }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.12rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.progress { position: fixed; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold), #f3c67c); transform: scaleX(0); transform-origin: left; z-index: 60; }
[dir="rtl"] .progress { transform-origin: right; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 76, 65, .08); }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 58px; }
.brand img { display: block; height: 40px; width: auto; transition: transform .25s; }
.brand:hover img { transform: scale(1.05); }
#menu { margin-inline-start: auto; display: flex; align-items: center; gap: 1.15rem; }
#menu a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; padding: .3rem 0; white-space: nowrap; }
#menu a:not(.btn)::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
#menu a:not(.btn):hover::after, #menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; margin-inline-start: auto; width: 46px; height: 46px; background: none; border: 0; padding: 11px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .2s; }
.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.open .menu-btn span:nth-child(2) { opacity: 0; }
.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.15rem; border-radius: 10px; font-weight: 650; font-size: .94rem; text-decoration: none; border: 1px solid transparent; position: relative; overflow: hidden; transition: transform .18s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 76, 65, .22); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 55px; left: -80px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent); transform: skewX(-18deg); transition: left .55s; }
.btn:hover::after { left: 110%; }
.btn.big { min-height: 54px; padding: .8rem 1.7rem; font-size: 1.03rem; }
.btn.gold { background: var(--gold); color: #1d1405; }
.btn.dark { background: var(--green); color: #fff; }
.btn.light { background: rgba(255, 255, 255, .13); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn.ghost { background: transparent; color: var(--green); border-color: var(--green); }
.pulse { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 154, 62, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(217, 154, 62, 0); } }

/* Héro */
.hero, .page-hero, .cta { position: relative; color: #f7fbf9; background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1.4'%3E%3Cpath d='M48 12l10.500 25.500L84 48 58.500 58.500 48 84 37.500 58.500 12 48l25.500-10.500z'/%3E%3Crect x='26' y='26' width='44' height='44' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='7'/%3E%3Cpath d='M0 0l12 12M96 0L84 12M0 96l12-12M96 96L84 84'/%3E%3C/g%3E%3C/svg%3E"), var(--hero); overflow: hidden; animation: zellige 60s linear infinite; }
@keyframes zellige { to { background-position: 480px 480px, 0 0; } }
.hero { padding: clamp(1.4rem, 2.6vw, 2.4rem) 0 clamp(2.6rem, 4.5vw, 4rem); }
.hero::before { content: ""; position: absolute; width: 620px; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -180px; top: -200px; background: radial-gradient(circle, rgba(235, 169, 63, .42), transparent 68%); animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-70px, 90px) scale(1.2); } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; margin: .6rem 0 1rem; }
.hero p, .page-hero p { font-size: clamp(1.03rem, 1.6vw, 1.22rem); opacity: .93; max-width: 58ch; margin: 0; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-2); }
.kicker.light { color: #ffd488; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1.4rem 0 0; font-size: .84rem; }
.hero-tags li { border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; padding: .22rem .75rem; }
.rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.r2 { animation-delay: .12s; } .r3 { animation-delay: .24s; } .r4 { animation-delay: .36s; } .r5 { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Mot animé dans le titre */
.rotate-line { font-weight: 600; margin: 0 0 .7rem !important; }
.rotator { display: inline-block; height: 1.3em; line-height: 1.3; overflow: hidden; vertical-align: -.33em; color: #f3c67c; }
.rotator span { display: block; animation: rotate-words 9s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes rotate-words { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-100%); } 66%, 94% { transform: translateY(-200%); } 100% { transform: translateY(-300%); } }

.symbols { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.symbols span { position: absolute; bottom: -40px; left: calc(3% + var(--i) * 8%); font-weight: 700; color: #fff; opacity: 0; animation: symbol calc(14s + var(--i) * .8s) linear infinite; animation-delay: calc(var(--i) * -2s); }
@keyframes symbol { 0% { transform: translateY(0) rotate(-6deg); opacity: 0; } 12% { opacity: .2; } 85% { opacity: .13; } 100% { transform: translateY(-95vh) rotate(8deg); opacity: 0; } }
.wave { position: absolute; inset: auto 0 -1px; width: 100%; height: clamp(40px, 7vw, 90px); fill: var(--surface); z-index: 3; }

/* Scène animée */
.scene { position: relative; height: 390px; width: min(100%, 640px); margin-inline: auto; transform: translate(calc(var(--mx, 0) * -22px), calc(var(--my, 0) * -16px)); transition: transform .3s ease-out; }
.scene-invoice { position: absolute; left: 0; top: 18px; width: min(320px, 62%); background: #fffdf8; color: var(--ink); border-radius: 14px; padding: 1.1rem 1.15rem 3.4rem; box-shadow: 0 26px 60px rgba(0, 0, 0, .35); transform: rotate(-2deg); animation: float 7s ease-in-out infinite; overflow: hidden; font-size: .84rem; z-index: 2; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.si-head { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 3px solid var(--green); padding-bottom: .55rem; margin-bottom: .55rem; }
.si-head b { display: block; color: var(--green); font-size: .95rem; }
.si-head small { font-size: .7rem; color: var(--muted); }
.si-ice { text-align: right; }
.si-ice b { font-size: .7rem; color: var(--ink); }
.si-line, .si-total { display: flex; justify-content: space-between; gap: .5rem; font-variant-numeric: tabular-nums; }
.si-line { padding: .34rem 0; border-bottom: 1px dashed var(--line); opacity: 0; animation: line 10s ease-out infinite; }
.si-line b { font-weight: 600; }
.l2 { animation-name: line2; } .l3 { animation-name: line3; }
.si-total { font-weight: 700; padding-top: .55rem; opacity: 0; animation: line4 10s ease-out infinite; }
.si-stamp { position: absolute; right: 14px; bottom: 10px; border: 3px solid #1c7a54; color: #1c7a54; border-radius: 6px; padding: .1rem .55rem; font-weight: 800; letter-spacing: .1em; opacity: 0; animation: stamp 10s ease-out infinite; }
.si-scan { position: absolute; inset-inline: 0; height: 46px; top: -50px; background: linear-gradient(180deg, transparent, rgba(44, 169, 135, .25), transparent); border-bottom: 2px solid rgba(28, 122, 84, .5); animation: scanline 10s ease-in-out infinite; }
@keyframes line { 0%, 4% { opacity: 0; transform: translateX(-10px); } 10%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes line2 { 0%, 14% { opacity: 0; transform: translateX(-10px); } 20%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes line3 { 0%, 24% { opacity: 0; transform: translateX(-10px); } 30%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes line4 { 0%, 34% { opacity: 0; } 40%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes stamp { 0%, 48% { opacity: 0; transform: rotate(-12deg) scale(1.6); } 53%, 94% { opacity: .92; transform: rotate(-12deg) scale(1); } 100% { opacity: 0; } }
@keyframes scanline { 0%, 58% { top: -50px; opacity: 0; } 62% { opacity: 1; } 78% { top: 100%; opacity: 1; } 80%, 100% { top: 100%; opacity: 0; } }
.float-card { position: absolute; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px; padding: .75rem .95rem; backdrop-filter: blur(6px); box-shadow: 0 14px 34px rgba(0, 0, 0, .2); font-size: .85rem; }
.float-card small { display: block; opacity: .88; font-size: .75rem; }
.float-card b { display: block; color: #fff; }
.fc-chart { right: 0; top: 0; width: 180px; animation: float 8s ease-in-out infinite reverse; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin-top: .45rem; }
.bars i { flex: 1; height: var(--h); background: #7fdcc0; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: bar 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .13s); }
.bars i:nth-child(even) { background: #eab86c; }
@keyframes bar { 0%, 100% { transform: scaleY(.72); } 50% { transform: scaleY(1); } }
.fc-bank { right: 0; top: 300px; width: 232px; z-index: 3; animation: float 6s ease-in-out infinite; }
.fc-bank .ok { display: block; color: #a7ecd6; font-size: .76rem; margin-top: .1rem; }
.fc-vat { left: 0; top: 310px; width: 200px; animation: float 9s ease-in-out infinite reverse; }
.fc-vat b { font-size: 1.2rem; }

/* Bande de villes */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: .85rem 0; }
.marquee-in { display: flex; gap: 2.4rem; width: max-content; animation: scroll-x 55s linear infinite; }
.marquee:hover .marquee-in { animation-play-state: paused; }
.marquee span { font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee span::before { content: "◆"; color: var(--gold); margin-inline-end: 2.4rem; font-size: .6rem; vertical-align: middle; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* Sections */
.band { padding: clamp(1.4rem, 2.6vw, 2.4rem) 0; }
.band.tint { background: var(--paper); }
.band-head .kicker { color: var(--terra); }
.band-head { margin-bottom: 1rem; }
.band-head h2 { margin-top: .4rem; }
.lead { font-size: 1.16rem; margin-top: 0; }
.note { font-size: .9rem; color: var(--muted); }
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.anim .reveal.slide-l { transform: translateX(-46px); }
.anim .reveal.slide-r { transform: translateX(46px); }
.anim .reveal.in { opacity: 1; transform: none; }

.stats { padding: clamp(.6rem, 1.2vw, 1.1rem) 0; background: var(--hero); color: #fff; }
.stats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { text-align: center; padding: .4rem .5rem; }
.stat b { display: block; font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; color: #ffd488; font-variant-numeric: tabular-nums; }
.stat span { display: block; max-width: 26ch; margin: .35rem auto 0; color: #f1faf6; font-size: 1rem; }

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 14px; padding: 1rem 1.1rem; transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: box-shadow .25s, border-color .25s, transform .18s ease-out, opacity .7s; }
.anim .card.reveal.in { transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
.card:hover { box-shadow: 0 20px 44px rgba(15, 76, 65, .14); border-color: #c9d9d1; }
.card p { margin: .5rem 0 0; color: var(--muted); font-size: .96rem; }
.card { --c: var(--green); --c-soft: #dcf2ea; }
.card:nth-child(4n + 2) { --c: var(--blue); --c-soft: #e2e8fb; }
.card:nth-child(4n + 3) { --c: var(--gold-2); --c-soft: #fdeed2; }
.card:nth-child(4n + 4) { --c: var(--terra); --c-soft: #fbe6e0; }
.card-ico { width: 38px; height: 38px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); border-radius: 12px; margin-bottom: .5rem; transition: transform .3s, background .3s, color .3s; }
.card-ico svg { width: 24px; height: 24px; }
.card:hover .card-ico { transform: rotate(-8deg) scale(1.1); background: var(--c); color: #fff; }
.split { display: grid; gap: clamp(1.6rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); align-items: center; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { position: relative; padding-inline-start: 1.8rem; margin-bottom: .55rem; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .08rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 50%; font-size: .75rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }

/* Extrait de compte animé */
.statement { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .5rem 1.1rem; box-shadow: 0 20px 44px rgba(15, 76, 65, .1); }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.st-row:last-child { border-bottom: 0; }
.st-row span { font-family: Consolas, "Courier New", monospace; font-size: .82rem; overflow-wrap: anywhere; }
.st-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-row em { grid-column: 1 / -1; font-style: normal; font-weight: 600; font-size: .8rem; color: #1c7a54; opacity: 0; transform: translateX(-10px); }
.in .st-row em { animation: matched 8s ease-out infinite; animation-delay: calc(var(--i) * .7s + .5s); }
@keyframes matched { 0% { opacity: 0; transform: translateX(-10px); } 7%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); position: relative; }
.steps li { position: relative; padding-top: 3.8rem; }
.step-n { position: absolute; top: 0; inset-inline-start: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 24px; inset-inline: 48px -1.2rem; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 15px); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); margin: .4rem 0 0; }

/* Téléphone */
.phone { width: min(280px, 100%); margin-inline: auto; background: #14231e; border-radius: 36px; padding: 12px; box-shadow: 0 30px 60px rgba(15, 76, 65, .3); }
.phone-screen { position: relative; aspect-ratio: 9 / 17; background: #f2efe6; border-radius: 26px; overflow: hidden; padding: 1.2rem; }
.ph-doc { background: #fff; border-radius: 8px; padding: 1rem; height: 66%; display: flex; flex-direction: column; gap: .55rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.ph-doc i { display: block; height: 9px; background: #dfdace; border-radius: 3px; }
.ph-doc i:first-child { width: 55%; height: 14px; background: var(--green); }
.ph-doc i:last-child { width: 40%; align-self: flex-end; background: var(--gold); margin-top: auto; }
.ph-beam { position: absolute; inset-inline: 0; height: 60px; top: 0; background: linear-gradient(180deg, transparent, rgba(44, 169, 135, .35)); border-bottom: 3px solid #2ca987; animation: beam 3.6s ease-in-out infinite alternate; }
@keyframes beam { to { top: 56%; } }
.ph-result { position: absolute; inset: auto .8rem .8rem; background: var(--green); color: #fff; border-radius: 12px; padding: .65rem .85rem; font-size: .84rem; animation: float 5s ease-in-out infinite; }
.ph-result small { display: block; color: #a7ecd6; }
.ph-result b, .ph-result span { display: block; }

/* Villes */
.city-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.city-cloud a { display: inline-flex; min-height: 40px; align-items: center; padding: .3rem .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: .93rem; transition: background .2s, color .2s, transform .2s, opacity .7s; }
.city-cloud a:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.regions { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.region { border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.region h2 { font-size: 1.14rem; margin-bottom: .8rem; }

/* Questions */
.faq { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold-2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .6rem 0 0; color: var(--muted); animation: rise .35s ease-out; }

/* Frise */
.timeline { list-style: none; padding-block: 0; padding-inline: 1.5rem 0; margin: 0; border-inline-start: 3px solid #d4e3dd; display: grid; gap: 1.2rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: calc(-1.5rem - 10px); top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--surface); animation: pulse 3s ease-out infinite; }
.timeline b, .timeline span { display: block; }
.timeline span { color: var(--muted); font-size: .94rem; }

/* Pages internes */
.page-hero { padding: clamp(1.1rem, 2.2vw, 2rem) 0; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin: .25rem 0 .4rem; }

/* Graphiques animés des services : un petit lecteur en boucle de 8 s, en SVG.
   Sans animation, chaque élément est déjà dans son état final ; les animations partent de l'état initial. */
.motion { margin: 0 auto; max-width: 760px; }
.motion-screen { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, #17604f, #0a2f28 62%); box-shadow: 0 22px 50px rgba(8, 47, 40, .3); color: #eaf6f1; }
.motion-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding: .85rem 1rem 0; font-size: .92rem; }
.motion-badge { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0a2f28; background: #f3c67c; border-radius: 99px; padding: .12rem .55rem; }
.motion figcaption { margin: .8rem .2rem 0; color: var(--muted); font-size: .95rem; text-align: center; }
.mv { display: block; width: 100%; height: auto; padding: .2rem .5rem 0; font-family: inherit; }
.motion-bar { display: flex; align-items: center; gap: .7rem; padding: .3rem 1rem .8rem; }
.motion-toggle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.motion-toggle span { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.motion.paused .motion-toggle span { width: 0; height: 0; border: 0; border-block: 8px solid transparent; border-left: 13px solid currentColor; margin-left: 3px; }
.motion-toggle:focus-visible { outline: 2px solid #f3c67c; outline-offset: 2px; }
.motion-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.motion-progress i { display: block; height: 100%; background: #f3c67c; transform-origin: left; animation: mv-progress 8s linear infinite; }
.motion.paused *, .motion.offscreen * { animation-play-state: paused !important; }
@keyframes mv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.mv text { fill: #cfe9e0; font-size: 12px; direction: ltr; unicode-bidi: plaintext; }
.mv .mv-label { fill: #bfe3d7; font-size: 12px; }
.mv-grid line { stroke: rgba(255, 255, 255, .08); }
.mv-limit { stroke: #f3c67c; stroke-width: 1.4; stroke-dasharray: 5 5; }
.mv-line { fill: none; stroke: #7fdcc0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: mv-draw 8s ease-in-out infinite; }
.mv-dot { fill: #f3c67c; transform-box: fill-box; transform-origin: center; }
.mv-alert { animation: mv-blink 8s ease-out infinite; }
.mv-pop rect { fill: #0e7a66; stroke: rgba(255, 255, 255, .3); }
.mv-pop.good rect { fill: #138a5b; } .mv-pop.warn rect { fill: #b06a12; } .mv-pop.bad rect { fill: #b3402a; }
.mv-pop text { fill: #fff; font-size: 12px; font-weight: 700; }
.mv-pop { animation: mv-pop 8s ease-out infinite; animation-delay: calc(var(--d, 0) * 1s); }
.mv-bar { fill: #7fdcc0; transform-box: fill-box; transform-origin: bottom; animation: mv-grow 8s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--i) * .25s); }
.mv-bar:nth-of-type(even) { fill: #eab86c; }
.mv-track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 16; }
.mv-ring { fill: none; stroke: #7fdcc0; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .18; animation: mv-ring 8s ease-in-out infinite; }
.mv .mv-big { fill: #fff; font-size: 24px; font-weight: 800; }
.mv-doc rect { fill: #fffdf8; } .mv-doc line { stroke: #9bb3ab; stroke-width: 2; }
.mv-doc { animation: mv-doc 8s ease-in-out infinite; animation-delay: calc(var(--i) * .9s); }
.mv-box { fill: rgba(127, 220, 192, .16); stroke: #7fdcc0; stroke-width: 2; stroke-dasharray: 4 4; }
.mv-track-bar { fill: rgba(255, 255, 255, .1); }
.mv-task { fill: #7fdcc0; transform-box: fill-box; transform-origin: left; animation: mv-fill 8s ease-in-out infinite; animation-delay: calc(var(--i) * .45s); }
.mv-check { fill: #f3c67c !important; font-size: 13px !important; font-weight: 800; animation: mv-check 8s ease-out infinite; animation-delay: calc(var(--i) * .45s); }
.mv .mv-who { fill: #fff; font-size: 12px; font-weight: 800; }
.mv-shift { fill: #7fdcc0; transform-box: fill-box; transform-origin: left; animation: mv-fill 8s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--i) * .5s); }
.mv-shift.s1 { fill: #eab86c; } .mv-shift.s2 { fill: #9cc0f0; } .mv-shift.s3 { fill: #c9e9a6; }
.mv-now line { stroke: #f3c67c; stroke-width: 2; } .mv-now text { fill: #f3c67c; font-size: 11px; }
.mv-now { animation: mv-sweep 8s linear infinite; }
[dir="rtl"] .motion-progress i { transform-origin: right; }

@keyframes mv-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 70% { stroke-dashoffset: 0; } 92% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mv-blink { 0%, 45% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.6); } 56%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes mv-pop { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mv-grow { 0% { transform: scaleY(0); } 25%, 88% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes mv-ring { 0% { stroke-dashoffset: 1; opacity: 1; } 65%, 92% { stroke-dashoffset: .18; opacity: 1; } 100% { stroke-dashoffset: .18; opacity: 0; } }
@keyframes mv-doc { 0%, 8% { transform: none; opacity: 1; } 30% { transform: translate(78px, 6px) scale(.8); opacity: 0; } 31%, 100% { transform: none; opacity: 1; } }
@keyframes mv-fill { 0% { transform: scaleX(0); } 35%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes mv-check { 0%, 34% { opacity: 0; } 40%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mv-sweep { from { transform: translateX(0); } to { transform: translateX(262px); } }

/* Page Support : demande sans compte et suivi par numéro */
.support-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.support-side { display: grid; gap: 1.2rem; }
.sform { display: grid; gap: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; box-shadow: 0 10px 30px rgba(11, 93, 78, .07); }
.sform h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
.sform label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.sform input, .sform select, .sform textarea { font: inherit; font-weight: 400; width: 100%; min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.sform textarea { resize: vertical; }
.sform input:focus, .sform select:focus, .sform textarea:focus { outline: 2px solid var(--green-2); outline-offset: 1px; }
.sform-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .85rem; }
.sform-note { margin: 0; font-size: .84rem; color: var(--muted); }
.sform-result:empty { display: none; }
.sform-result { border-radius: 10px; padding: .7rem .85rem; font-size: .92rem; }
.sform-result.ok { background: #e3f5ee; color: #0b5d4e; }
.sform-result.bad { background: #fbe9e4; color: #8d2f1c; }
.tv-code { font-size: 1.15rem; letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; }
.ticket-view { display: grid; gap: .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.tv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; }
.tv-head b { overflow-wrap: anywhere; }
.tv-status { border-radius: 99px; padding: .15rem .7rem; font-size: .8rem; font-weight: 700; background: #fdf0d9; color: #8a520c; }
.tv-status.s-en_cours { background: #e3ecfb; color: #2a4fb5; } .tv-status.s-resolu { background: #e3f5ee; color: #0b5d4e; } .tv-status.s-ferme { background: #ececec; color: #4c5f58; }
.tv-date { margin: 0; font-size: .84rem; color: var(--muted); }
.tv-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; }
.tv-msg.team { border-inline-start: 4px solid var(--green); }
.tv-msg small { color: var(--muted); }
.tv-msg p { margin: .3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tv-reply { box-shadow: none; padding: .9rem; }
@media (max-width: 860px) { .support-grid, .sform-row { grid-template-columns: minmax(0, 1fr); } }

/* Scènes qui se suivent : facture électronique (6 s), puis chaque service (5 s), en fondu. */
.scene-rotator { position: relative; height: 405px; width: min(100%, 640px); margin-inline: auto; padding-top: 2.4rem; box-sizing: content-box; }
.rot-slide { position: absolute; inset: 2.4rem 0 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.rot-slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.rot-slide .scene { width: 100%; }
.rot-label { position: absolute; top: 0; inset-inline-start: 0; z-index: 4; font-size: .82rem; font-weight: 700; color: #0a2f28; background: #f3c67c; border-radius: 99px; padding: .28rem .8rem; text-decoration: none; }
.rot-label:hover { background: #ffd894; }
.rot-dots { position: absolute; top: .55rem; inset-inline-end: 0; z-index: 4; display: flex; gap: .4rem; }
.rot-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .3s, transform .3s; }
.rot-dots i.on { background: #f3c67c; transform: scale(1.35); }
/* Le document d'un service se remplit en 5 s : même animation que la facture, en plus court. */
.rot-slide .scene-svc .si-line, .rot-slide .scene-svc .si-total, .rot-slide .scene-svc .si-stamp, .rot-slide .scene-svc .si-scan { animation-duration: 8s; }
/* Sur tablette, l'animation passe sous le texte, en pleine largeur : les cartes ne se chevauchent pas. */
@media (max-width: 980px) { .scene-rotator { height: 420px; } .invoice-band .split:has(.scene-rotator) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .scene-rotator { height: 590px; } .rot-slide .scene .fc-vat, .rot-slide .scene .fc-bank { top: 318px; } .rot-slide .scene .fc-chart { top: 488px; } }
@media (prefers-reduced-motion: reduce) { .rot-dots { display: none; } }

/* Bannière des pages : boutons d'action à droite du titre (à gauche en arabe), sous le titre sur téléphone */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2.5rem; align-items: center; }
.hero-actions { display: flex; flex-direction: column; gap: .7rem; min-width: 240px; }
.hero-actions .btn { justify-content: center; text-align: center; }
@media (max-width: 760px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 520px) { .hero-actions { flex-direction: column; } .hero-actions .btn { width: 100%; } }

/* Bannière animée des pages de service : même scène que la facture, contenu propre au service */
.svc-hero { padding: clamp(1.4rem, 2.6vw, 2.4rem) 0 clamp(1.8rem, 3.5vw, 3rem); }
.svc-hero .scene { height: 380px; }
.scene-svc .si-head small { display: flex; align-items: center; gap: .35rem; }
.si-live { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2ca987; animation: pulse-node 1.6s ease-out infinite; }
.si-flick b { animation: flick 2.8s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .5s); }
.si-flick.l2 b { --n: 1; } .si-flick.l3 b { --n: 2; }
@keyframes flick { 0%, 100% { color: var(--ink); } 45% { color: #1c7a54; } 55% { color: #0b5d4e; } }
.si-code { width: 84px; height: 30px; align-self: center; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .85; }
.scene-m2m .si-stamp, .scene-people .si-stamp { color: #0b5d4e; border-color: #0b5d4e; }
.scene-ecommerce .si-stamp, .scene-office .si-stamp { color: #b06a12; border-color: #b06a12; }
.crumbs { font-size: .84rem; padding: .7rem 0; color: var(--muted); }
.crumbs i { font-style: normal; opacity: .55; margin: 0 .25rem; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin: 1.6rem 0 .4rem; }

/* Appel final */
.cta { padding: clamp(1.5rem, 2.8vw, 2.5rem) 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: .92; margin: .6rem 0 0; }
.cta .cta-row { justify-content: center; }

/* Pied de page */
.foot { background: #062f28; color: #d7e6e0; padding: 1.8rem 0 1rem; font-size: .92rem; }
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot h2 { font-size: .86rem; color: #fff; margin-bottom: .55rem; text-transform: uppercase; letter-spacing: .06em; }
.foot a { display: block; color: inherit; text-decoration: none; padding: .16rem 0; }
.foot a:hover { color: #f3c67c; }
.foot img { height: 40px; width: auto; }
.foot p { margin: .6rem 0 0; }
.copyright { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; }

/* Sélecteur de langue */
.lang-menu { position: relative; }
.lang-menu summary { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; transition: border-color .2s, background .2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--green); background: var(--paper); }
.lang-menu summary svg { width: 18px; height: 18px; color: var(--green); }
.lang-menu summary i { width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.lang-menu[open] summary i { transform: translateY(2px) rotate(225deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 170px; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(11, 93, 78, .18); z-index: 60; animation: rise .18s ease-out; }
#menu .lang-list a { display: block; padding: .55rem .75rem; border-radius: 8px; font-size: .95rem; }
#menu .lang-list a::after { display: none; }
#menu .lang-list a:hover { background: var(--paper); }
#menu .lang-list a[aria-current] { background: var(--green); color: #fff; }

/* Sujets qui se développent au clic */
a.card { display: block; color: inherit; text-decoration: none; }
.topic-points { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-start; }
.topic-points .checks { margin: 0; flex: 1 1 280px; font-size: 1.06rem; }
.card-ico.big { --c: var(--green); --c-soft: #cdeadf; width: 84px; height: 84px; border-radius: 20px; margin: 0; }
.card-ico.big svg { width: 44px; height: 44px; }
.company { display: flex; flex-direction: column; gap: .3rem; margin-top: 1.6rem; padding: 1.2rem 1.4rem; background: var(--paper); border-radius: 14px; font-style: normal; }
.company a { font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-size: .9rem; font-weight: 650; color: var(--c); }
.more i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--c-soft); transition: transform .25s; }
.more i::before { content: ""; position: absolute; inset-inline-start: 5px; top: 6px; width: 5px; height: 5px; border-top: 2px solid var(--c); border-inline-end: 2px solid var(--c); transform: rotate(45deg); }
[dir="rtl"] .more i::before { transform: rotate(-45deg); }
.topic:hover .more i { transform: translateX(3px); }
[dir="rtl"] .topic:hover .more i { transform: translateX(-3px); }

/* Offres */
.plans { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .25s, transform .25s; }
.plan:hover { box-shadow: 0 22px 46px rgba(11, 93, 78, .16); transform: translateY(-4px); }
.plan.featured { border: 2px solid var(--green); }
.plan-tag { position: absolute; top: -13px; inset-inline-start: 1.5rem; padding: .15rem .8rem; background: var(--green); color: #fff; border-radius: 99px; font-size: .82rem; font-weight: 650; }
.plan-price { margin: .6rem 0 0; color: var(--muted); }
.plan-price b { display: block; font-size: clamp(2.3rem, 3.6vw, 3.2rem); line-height: 1.1; color: var(--green); letter-spacing: -.02em; }
.plan .note { margin: .3rem 0 0; }
.plan .checks { flex: 1; margin-bottom: 1.4rem; }

/* Revendeurs */
.reseller-band { padding: clamp(1.4rem, 2.6vw, 2.4rem) 0; background: var(--hero); color: #fff; }
.reseller-band h2 { color: #fff; margin: .4rem 0 .7rem; }
.reseller-band p { max-width: 70ch; font-size: 1.1rem; margin: 0; }

/* Solutions */
/* Trois cartes par ligne ; une dernière ligne incomplète est centrée. */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.svc-grid > * { flex: 0 1 calc((100% - 2.2rem) / 3); min-width: 0; }
@media (max-width: 960px) { .svc-grid > * { flex-basis: calc((100% - 1.1rem) / 2); } }
@media (max-width: 600px) { .svc-grid > * { flex-basis: 100%; } }
.svc { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: box-shadow .25s, transform .18s ease-out, opacity .7s; }
.anim .svc.reveal.in { transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
.svc:hover { box-shadow: 0 20px 44px rgba(15, 76, 65, .18); }
.svc-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.svc-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease-out; }
.svc:hover .svc-img img { transform: scale(1.07); }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: .9rem 1.1rem 1rem; }
.svc-text { display: block; flex: 1; margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.svc { --c: var(--green); --c-soft: #dcf2ea; }
.svc-invoice { border: 2px solid var(--gold); --c: var(--gold-2); --c-soft: #fdeed2; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 76, 65, .18); }
.photo figcaption { margin-top: .3rem; color: var(--muted); font-size: .75rem; text-align: end; }
.hero-photos { position: relative; height: 380px; }
.hero-photos img { position: absolute; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 44px rgba(0, 0, 0, .35); }
.hp-main { inset-inline-start: 0; top: 0; width: 66%; height: 72%; animation: float 8s ease-in-out infinite; }
.hp-a { inset-inline-end: 0; top: 12%; width: 42%; height: 42%; animation: float 7s ease-in-out infinite reverse; }
.hp-b { inset-inline-start: 22%; bottom: 0; width: 46%; height: 40%; animation: float 9s ease-in-out infinite; }
.fc-live { inset-inline-end: 0; bottom: 6%; width: 170px; background: rgba(8, 63, 54, .82); animation: float 6s ease-in-out infinite reverse; }
.fc-live .bars { height: 54px; }
.hero-tags a { color: inherit; text-decoration: none; }
.hero-tags a:hover { color: #ffd488; }
.m2m-flow { display: flex; align-items: center; gap: 0; margin-top: 1.2rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.m2m-node { display: flex; flex-direction: column; align-items: center; gap: .35rem; flex: none; width: 96px; text-align: center; font-size: .86rem; }
.m2m-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; animation: pulse-node 3s ease-out infinite; }
.m2m-ico svg { width: 24px; height: 24px; }
@keyframes pulse-node { 0% { box-shadow: 0 0 0 0 rgba(14, 122, 102, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(14, 122, 102, 0); } }
.m2m-link { position: relative; flex: 1; min-width: 14px; height: 3px; margin-bottom: 1.5rem; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 13px); overflow: visible; }
.m2m-link i { position: absolute; top: -3.5px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: packet 2.4s linear infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes packet { from { left: 0; opacity: 0; } 10%, 90% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
.invoice-band { padding: clamp(1.4rem, 2.6vw, 2.4rem) 0; background: var(--hero); color: #fff; overflow: hidden; }
.invoice-band h2 { color: #fff; margin: .3rem 0 .6rem; }
.invoice-band p { margin: 0; max-width: 62ch; }
#menu .login-menu summary { border-color: var(--green); color: var(--green); background: transparent; }
#menu .login-menu[open] summary, #menu .login-menu summary:hover { background: var(--paper); }
#menu .login-menu .lang-list { min-width: 260px; }
#menu .login-menu .lang-list a { display: flex; flex-direction: column; gap: .1rem; font-weight: 600; }
#menu .login-menu .lang-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.login-note { margin: .3rem .75rem .35rem; padding-top: .45rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
#menu .nav-drop summary { min-height: 0; padding: .3rem 0; border: 0; background: none; font-size: .94rem; font-weight: 500; }
#menu .nav-drop[open] summary, #menu .nav-drop summary:hover { background: none; color: var(--green-2); }
#menu .nav-drop .lang-list { inset-inline-end: auto; inset-inline-start: 0; min-width: 240px; }
#menu .nav-drop .lang-list a { padding: .45rem .75rem; }

/* Texte détaillé */
.article-band { padding-block: clamp(.8rem, 1.6vw, 1.4rem); }
.article { columns: 2 460px; column-gap: clamp(1.6rem, 4vw, 3.5rem); }
.article > div { break-inside: avoid; margin-bottom: 1rem; }
.article h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: .6rem; }
.article p { margin: 0 0 .8rem; line-height: 1.75; }
.article .checks { margin-top: .4rem; }

/* Étapes détaillées */
.step-rows { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.step-row { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .7rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.step-row h3 { display: inline; font-size: 1.15rem; }
.step-row p { margin: .4rem 0 0; color: var(--muted); max-width: 90ch; }
.step-n.small { position: static; display: none; }
.more-link { display: inline-block; margin-top: .45rem; font-weight: 650; }
.ring { position: relative; width: 60px; height: 60px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 4.5; }
.ring-bg { stroke: var(--paper); }
.ring-fg { stroke: var(--green-2); stroke-linecap: round; stroke-dasharray: var(--p) 100; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-size: .85rem; }
.anim .step-row:not(.in) .ring-fg { stroke-dasharray: 0 100; }
.anim .step-row .ring-fg { transition: stroke-dasharray 1.1s ease-out .2s; }
.code { overflow-x: auto; margin: 0; padding: 1.2rem 1.4rem; background: #0b2a24; color: #e6f3ee; border-radius: 14px; font: .9rem/1.6 Consolas, "Courier New", monospace; }

/* Explications */
.explain { border-inline-start: 5px solid var(--gold); padding-inline-start: 1.3rem; }
.explain h2 { margin-bottom: .6rem; }
.explain .lead { margin: 0; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.6; }
.anim .explain.reveal { transform: translateX(-30px); }
[dir="rtl"] .anim .explain.reveal { transform: translateX(30px); }
.anim .explain.reveal.in { transform: none; }
.steps .step-n { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: var(--d, 0ms); }
.anim .steps .reveal:not(.in) .step-n { transform: scale(.3); }
.amounts .hbar { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) 7.2rem; }

/* Graphiques */
.charts { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); align-items: start; margin-top: 1rem; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; min-width: 0; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; margin-bottom: .9rem; }
.chart figcaption p { width: 100%; margin: 0; color: var(--muted); font-size: .9rem; }
.hbars { display: grid; gap: .15rem; }
.hbar { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 2rem; gap: .6rem; align-items: center; min-height: 28px; font-size: .86rem; border-radius: 6px; cursor: default; }
.hbar:hover, .hbar:focus-visible { background: var(--paper); }
.hbar-label { overflow-wrap: anywhere; line-height: 1.2; }
.hbar-track { display: block; height: 8px; }
.hbar-track i { display: block; height: 100%; width: var(--v); background: var(--green); border-start-end-radius: 4px; border-end-end-radius: 4px; }
.hbar b { text-align: end; font-variant-numeric: tabular-nums; }
.anim .chart:not(.in) .hbar-track i { width: 0; }
.anim .chart .hbar-track i { transition: width .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 50ms + .15s); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: 0; margin: 0; font-size: .85rem; }
.legend.col { flex-direction: column; font-size: .95rem; gap: .55rem; }
.legend b { margin-inline-start: .3rem; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: .4rem; vertical-align: -1px; }
.sw.income { background: var(--income); } .sw.expense { background: var(--expense); }
.sw.s0 { background: #1c7a54; } .sw.s1 { background: #d99a3e; } .sw.s2 { background: #c4553b; }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.1rem; }
.demo-head h3 { font-size: 1.3rem; }
.demo-badge { padding: .22rem .75rem; border-radius: 99px; background: #fdeed2; color: #6d4208; font-size: .84rem; font-weight: 650; }
.charts.demo { grid-template-columns: minmax(0, 2fr) minmax(min(280px, 100%), 1fr); }
.vchart { position: relative; height: 190px; padding-left: 3.1rem; }
.vgrid { position: absolute; inset: 0 0 1.5rem; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.vgrid span { display: flex; align-items: center; gap: .4rem; height: 0; }
.vgrid span::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.vbars { position: relative; display: flex; height: 100%; }
.vcol { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 4px; cursor: default; }
.vcol:hover, .vcol:focus-visible { background: color-mix(in srgb, var(--green) 8%, transparent); }
.vpair { flex: 1; display: flex; justify-content: center; align-items: flex-end; gap: 2px; }
.vpair i { width: min(32%, 9px); height: var(--h); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.vpair .income { background: var(--income); } .vpair .expense { background: var(--expense); }
.anim .chart:not(.in) .vpair i { transform: scaleY(0); }
.anim .chart .vpair i { transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 55ms + .1s); }
.vcol small { height: 1.5rem; line-height: 1.5rem; text-align: center; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.donut-wrap { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: center; }
.donut { width: min(190px, 100%); transform: rotate(-90deg); }
.seg { fill: none; stroke-width: 6; stroke-dasharray: var(--v) 100; stroke-dashoffset: var(--o); outline: none; cursor: default; }
.seg.s0 { stroke: #1c7a54; } .seg.s1 { stroke: #d99a3e; } .seg.s2 { stroke: #c4553b; }
.seg:hover, .seg:focus-visible { stroke-width: 7.5; }
.anim .chart:not(.in) .seg { stroke-dasharray: 0 100; }
.anim .chart .seg { transition: stroke-dasharray 1s ease-out, stroke-width .15s; transition-delay: calc(var(--i) * .25s + .1s), 0s; }
.chart-table { margin-top: .8rem; font-size: .85rem; }
.chart-table summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; margin-top: .4rem; }
.chart-table table { width: 100%; border-collapse: collapse; }
.chart-table th, .chart-table td { padding: .28rem .4rem; border-bottom: 1px solid var(--line); text-align: start; }
.chart-tip[hidden] { display: none; }
.chart-tip::first-line { font-weight: 700; }
.chart-tip { position: fixed; z-index: 80; white-space: pre-line; line-height: 1.5; max-width: min(380px, calc(100vw - 16px)); padding: .4rem .65rem; background: #10231e; color: #fff; border-radius: 8px; font-size: .84rem; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }

/* Arabe */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif; line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .kicker, [dir="rtl"] .foot h2 { letter-spacing: 0; text-transform: none; font-size: .95rem; }
[dir="rtl"] .anim .reveal.slide-l { transform: translateX(46px); }
[dir="rtl"] .anim .reveal.slide-r { transform: translateX(-46px); }
[dir="rtl"] .anim .reveal.in { transform: none; }
[dir="rtl"] #menu a:not(.btn)::after { transform-origin: right; }
[dir="rtl"] .btn::after { left: auto; right: -80px; transition: right .55s; }
[dir="rtl"] .btn:hover::after { left: auto; right: 110%; }

@media (max-width: 1240px) {
  .menu-btn { display: block; }
  #menu { display: none; position: absolute; inset: 100% 0 auto; background: var(--surface); flex-direction: column; align-items: stretch; gap: .15rem; padding: .7rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 76, 65, .14); }
  .open #menu { display: flex; animation: rise .25s ease-out; }
  #menu a:not(.btn) { padding: .6rem 0; }
  #menu .btn { margin-top: .35rem; }
  .lang-menu { margin-top: .35rem; }
  .lang-list { position: static; margin-top: .35rem; box-shadow: none; }
}
@media (max-width: 760px) {
  .m2m-flow { flex-direction: column; }
  .m2m-link { width: 3px; height: 26px; flex: none; margin: .25rem 0; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 10px); }
  .m2m-link i { left: -3.5px; top: 0; animation-name: packet-y; }
  .hero-photos { height: 300px; }
  @keyframes packet-y { from { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } to { top: calc(100% - 10px); opacity: 0; } }
  .charts.demo { grid-template-columns: minmax(0, 1fr); }
  .vcol:nth-child(even) small { visibility: hidden; }
  .hbar { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 1.6rem; }
  .amounts .hbar { grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) 6.2rem; }
  .step-row { grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; padding: 1rem; }
  .ring { width: 60px; height: 60px; }
  .ring b { font-size: .85rem; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .scene, .svc-hero .scene { height: 420px; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .scene { height: 500px; }
  .svc-hero .scene { height: 540px; }
  .scene-svc .fc-vat, .scene-svc .fc-bank { top: 318px; }
  .scene-svc .fc-chart { top: 440px; }
  .scene-invoice { width: 100%; rotate: 0deg; }
  .fc-vat { top: 300px; width: 47%; }
  .fc-vat b { font-size: 1rem; }
  .fc-bank { top: 300px; width: 49%; }
  .fc-chart { top: 400px; left: 0; right: 0; width: auto; }
  .fc-chart .bars { height: 40px; }
  .regions { grid-template-columns: minmax(0, 1fr); }
  /* Les blocs qui glissent de côté apparaissent par le bas : rien ne dépasse de l'écran avant l'animation. */
  .anim .reveal.slide-l, .anim .reveal.slide-r { transform: translateY(28px); }
  .anim .reveal.slide-l.in, .anim .reveal.slide-r.in { transform: none; }
  /* Boutons d'action pleine largeur, alignés et faciles à toucher. */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; justify-content: center; text-align: center; }
  h1 { overflow-wrap: anywhere; hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .si-line, .si-total, .st-row em { opacity: 1; transform: none; }
  .si-stamp { opacity: .92; transform: rotate(-12deg); }
  .si-scan, .symbols, .ph-beam, .m2m-link i, .motion-bar { display: none; }
  .hbar-track i { width: var(--v) !important; }
  .vpair i { transform: none !important; }
  .ring-fg { stroke-dasharray: var(--p) 100 !important; }
  .seg { stroke-dasharray: var(--v) 100 !important; }
  .rotator { height: auto; }
  .rotator span:not(:first-child) { display: none; }
}

/* Écrans larges : les étapes sur deux colonnes gardent des lignes lisibles. */
@media (min-width: 1200px) {
  .step-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-rows > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Écrans tactiles : des cibles assez hautes pour le doigt. */
@media (pointer: coarse), (max-width: 820px) {
  .faq summary { padding-block: .55rem; }
  .chart-table summary { padding-block: .65rem; }
  .crumbs a { display: inline-block; padding-block: .6rem; }
  .foot a { padding-block: .55rem; }
  a[href^="tel:"], a[href^="mailto:"] { display: inline-block; padding-block: .6rem; }
}

.hub-details { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.hub-details h3 a { color: var(--ink); }

.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; color: inherit; border: 1px solid currentColor; transition: transform .18s, color .2s; }
.social a:hover { transform: translateY(-2px); color: var(--gold); }
.social svg { width: 20px; height: 20px; }

/* Assistant du site */
.chat { position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; }
.chat[hidden], .chat [hidden] { display: none; }
.chat-open { display: flex; align-items: center; gap: .5rem; min-height: 52px; padding: .5rem 1.1rem; border: 0; border-radius: 99px; background: var(--green); color: #fff; font: inherit; font-weight: 650; cursor: pointer; box-shadow: 0 10px 28px rgba(15, 76, 65, .35); transition: transform .18s; }
.chat-open:hover { transform: translateY(-2px); }
.chat-open { padding-inline-start: .35rem; }
.chat-face { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: #fff; }
.chat-who { display: flex; align-items: center; gap: .6rem; }
.chat-head .chat-face { width: 36px; height: 36px; }
.chat-msg.bot { position: relative; margin-inline-start: 34px; }
.chat-msg.bot::before { content: ""; position: absolute; inset-inline-start: -34px; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--face) center / cover; }
.chat-face { object-fit: cover; }
.chat-panel { display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100dvh - 96px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 76, 65, .3); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem .35rem 1rem; background: var(--green); color: #fff; }
[dir="rtl"] .chat-head { padding: .35rem 1rem .35rem .5rem; }
.chat-close { width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; padding: .9rem; background: var(--paper); }
.chat-msg { margin: 0; padding: .55rem .8rem; max-width: 88%; border-radius: 12px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.chat-msg.me { align-self: flex-end; background: var(--green); color: #fff; }
.chat-msg.wait { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); }
.chat-form .btn:disabled { opacity: .6; cursor: progress; }
.chat-note { margin: 0; padding: 0 .75rem .6rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
@media print { .no-print { display: none !important; } }

/* Bandeau d'accord pour la mesure d'audience (Google Analytics). */
.consent { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 60; max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: #10231e; color: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; font-size: .95rem; }
.consent div { display: flex; gap: .5rem; }
.consent .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }