/* ==========================================================================
   DigiWorld : feuille de style principale
   Palette DigiWorld (Nadia) : violet #6254E7, nuit #070723, violet clair #6C63FF,
   cyan #00A1FF, pourpre #7832FB, gris violet #696687, encre #3B3663
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  --brand: #6254E7;
  --brand-2: #7832FB;
  --brand-3: #6C63FF;
  --cyan: #00A1FF;
  --night: #070723;
  --night-2: #0E0C34;
  --grad: linear-gradient(135deg, #6254E7 0%, #7832FB 55%, #9057F9 100%);
  --grad-text: linear-gradient(100deg, #00A1FF 0%, #6C63FF 45%, #9057F9 100%);
  --bg: #FBFAFF;
  --surface: #FFFFFF;
  --surface-2: #F3F1FE;
  --ink: #0E0C2B;
  --ink-2: #3B3663;
  --muted: #5F5B80;
  --line: rgba(98, 84, 231, .14);
  --line-2: rgba(98, 84, 231, .28);
  --shadow: 0 1px 2px rgba(14, 12, 43, .04), 0 12px 32px -12px rgba(62, 48, 180, .18);
  --shadow-lg: 0 30px 60px -20px rgba(62, 48, 180, .35);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070723; --surface: #0F0E33; --surface-2: #131241; --ink: #F1F0FF; --ink-2: #CFCCF5; --muted: #A6A3CB;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(140, 130, 255, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6); color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.center .actions, .actions.center { justify-content: center; }
.mt { margin-top: 2.5rem; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.hl { font-weight: inherit; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-s { width: 18px; height: 18px; }
.ico-xl { width: 54px; height: 54px; }
[hidden] { display: none !important; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(120, 50, 251, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(120, 50, 251, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: #fff; color: var(--night); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-block { width: 100%; }
.wa-mini { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: #128C7E; }
:root[data-theme="dark"] .wa-mini { color: #25D366; }
.link-ext { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brand); }
:root[data-theme="dark"] .link-ext { color: #A99FFF; }
.link-ext .ico { transition: transform .25s var(--ease); }
.link-ext:hover .ico { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #fff; }
/* ---------- En-tete : flou porte par ::before (un backdrop-filter sur .site-header en ferait le bloc
   de reference du menu burger en position fixed, qui ne faisait plus que quelques px de haut) ---------- */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(7, 7, 35, .9); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.header-in { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { width: 46px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt strong { font-family: var(--display); font-size: 1.22rem; letter-spacing: -.02em; color: #fff; }
.brand-txt small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .58); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: .2rem; margin-inline-start: auto; }
.main-nav > a, .nav-item > a { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px; font-weight: 500; font-size: .96rem; color: rgba(255, 255, 255, .82); transition: color .2s, background .2s; }
.main-nav > a:hover, .nav-item > a:hover, .main-nav [aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-item { position: relative; }
/* ---------- Sous-menus : centrage physique (left), identique LTR et RTL ---------- */
.mega, .drop { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); opacity: 0; visibility: hidden; transition: .25s var(--ease); background: #0D0C30; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.nav-item:hover > .mega, .nav-item:focus-within > .mega, .nav-item:hover > .drop, .nav-item:focus-within > .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-item::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 14px; }
.mega { width: min(1060px, 94vw); padding: 1.4rem; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mega-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); margin: 0 0 .5rem; padding-inline-start: .6rem; }
.mega-link { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .6rem; border-radius: 12px; transition: background .2s; }
.mega-link:hover { background: rgba(255, 255, 255, .06); }
.mega-link strong { display: block; font-size: .92rem; font-weight: 600; color: #fff; }
.mega-link small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .55); }
.mega-link.mini { padding: .4rem .6rem; align-items: center; }
.mega-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(98, 84, 231, .22); color: #B5ACFF; flex: none; }
.mega-ico .ico { width: 18px; height: 18px; }
.drop { min-width: 230px; padding: .5rem; display: grid; }
.drop a { padding: .6rem .8rem; border-radius: 10px; font-size: .93rem; color: rgba(255, 255, 255, .85); }
.drop a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.pill-ai { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: #fff; background: linear-gradient(rgba(14, 12, 52, .9), rgba(14, 12, 52, .9)) padding-box, var(--grad-text) border-box; border: 1px solid transparent; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
.burger, .main-nav > .nav-mobile-only { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.hero h1, .hero h2 { color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 85% 10%, rgba(120, 50, 251, .35), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(0, 161, 255, .22), transparent 60%), var(--night); }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 14s ease-in-out infinite; }
.o1 { width: 420px; height: 420px; background: #6254E7; top: -120px; inset-inline-end: 8%; }
.o2 { width: 320px; height: 320px; background: #00A1FF; bottom: -160px; inset-inline-start: 10%; opacity: .35; animation-delay: -6s; }
@keyframes float { 50% { transform: translate(30px, 24px) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-page .hero-grid { grid-template-columns: 1fr; padding-block: clamp(3rem, 6vw, 4.8rem); }
.hero-page.has-aside .hero-grid { grid-template-columns: 1.2fr .8fr; }
.hero-copy { max-width: 760px; }
.display { font-size: clamp(2.3rem, 4.3vw, 3.55rem); line-height: 1.04; letter-spacing: -.035em; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-text); }
.hero .eyebrow { color: #9FD8FF; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(255, 255, 255, .74); max-width: 640px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.hero-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof .ico { color: #6FD0FF; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.4rem; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .85); }

/* Carte du Maroc */
.hero-map { position: relative; }
.map-fig { margin: 0; max-width: 470px; margin-inline: auto; }
.morocco { width: 100%; height: auto; overflow: visible; }
.morocco .land { fill: url(#mg); stroke: rgba(160, 150, 255, .55); stroke-width: 1.2; stroke-linejoin: round; }
.morocco .city-dot { fill: rgba(255, 255, 255, .35); }
.morocco .arc { fill: none; stroke: url(#arc); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 2.2s .4s var(--ease) forwards; }
.morocco .arc-runner { fill: #fff; filter: drop-shadow(0 0 6px #00A1FF); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pin text { fill: #fff; font: 600 13px var(--display); paint-order: stroke; stroke: rgba(7, 7, 35, .85); stroke-width: 4px; }
.pin-core { fill: #00A1FF; stroke: #fff; stroke-width: 2; }
.pin-pulse { fill: #00A1FF; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.pin.is-focus .pin-core { fill: #9057F9; }
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }
.map-cards { position: absolute; inset-inline-end: -10px; bottom: 16%; display: grid; gap: .6rem; }
.map-card { display: grid; gap: .1rem; padding: .7rem .95rem; border-radius: 14px; background: rgba(15, 14, 51, .75); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); min-width: 170px; transition: transform .25s var(--ease); }
.map-card:hover { transform: translateX(-4px); }
.map-card strong { font-family: var(--display); font-size: .98rem; }
.map-caption { text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .62); margin-top: .6rem; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hero .status, .site-footer .status { color: rgba(255, 255, 255, .6); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8A87A8; }
.status.is-open { color: #12B886; } .status.is-open::before { background: #20D69B; box-shadow: 0 0 0 4px rgba(32, 214, 155, .18); }
.hero .status.is-open, .site-footer .status.is-open { color: #5FF0BE; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(4rem, 8vw, 6.5rem); }
.sec-alt { background: var(--surface-2); }
.sec-head { max-width: 760px; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-text { color: var(--muted); font-size: 1.08rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Bandeau logos */
.band-logos { background: var(--night); color: #fff; padding: 1.6rem 0 2.2rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.band-label { text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .5); margin-bottom: 1.2rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 48s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item, .mq-dup { display: inline-flex; align-items: center; }
.mq-item { padding-inline: 2.2rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.mq-item img { height: 34px; width: auto; filter: grayscale(1) brightness(1.8); opacity: .7; }
@keyframes mq { to { transform: translateX(-50%); } }
[dir="rtl"] .mq-track { animation-name: mq-rtl; } @keyframes mq-rtl { to { transform: translateX(50%); } }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.svc-grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.svc-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; overflow: hidden; }
.svc-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(98, 84, 231, .12), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.svc-card:hover::before { opacity: 1; }
.svc-card h3 { margin-top: 1.1rem; }
.svc-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.svc-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, rgba(98, 84, 231, .14), rgba(0, 161, 255, .12)); color: var(--brand); border: 1px solid var(--line); flex: none; }
.svc-ico.lg { width: 64px; height: 64px; }
.svc-ico.lg .ico { width: 28px; height: 28px; }
:root[data-theme="dark"] .svc-ico { color: #B5ACFF; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .6rem; }
.price-tag { font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: .32rem .6rem; border-radius: 9px; line-height: 1.3; }
.svc-card .go { color: var(--brand); transition: transform .3s var(--ease); }
.svc-card:hover .go { transform: translate(3px, -3px); }

.svc-card.is-feature { grid-column: span 2; background: var(--night); color: #fff; border-color: transparent; }
.svc-card.is-feature::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(120, 50, 251, .55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(0, 161, 255, .3), transparent 60%); pointer-events: none; }
.svc-card.is-feature > * { position: relative; z-index: 1; }
.svc-card.is-feature h3 { color: #fff; font-size: 1.5rem; }
.svc-card.is-feature p { color: rgba(255, 255, 255, .75); font-size: 1.02rem; max-width: 460px; }
.svc-card.is-feature .svc-ico { background: var(--grad); color: #fff; border-color: transparent; }
.svc-card.is-feature .price-tag { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.svc-card.is-feature .go { color: #9FD8FF; }
.svc-new { position: absolute; top: 1.4rem; inset-inline-end: 1.4rem; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; background: var(--grad); color: #fff; }

/* Bandeau GEO */
.geo-band { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.geo-band h2 { color: #fff; }
.geo-band .sec-text { color: rgba(255, 255, 255, .72); }
.geo-band .eyebrow { color: #9FD8FF; }
.geo-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 100% 50%, rgba(0, 161, 255, .25), transparent 70%), radial-gradient(50% 80% at 0% 0%, rgba(120, 50, 251, .35), transparent 70%); }
.geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.chat { position: relative; padding: 1.4rem; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); display: grid; gap: .9rem; }
.chat-label { position: absolute; top: -11px; inset-inline-end: 18px; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; background: var(--night); border: 1px solid rgba(255, 255, 255, .15); padding: .2rem .55rem; border-radius: 999px; color: rgba(255, 255, 255, .6); }
.chat-msg { padding: .85rem 1rem; border-radius: 16px; font-size: .96rem; max-width: 90%; }
.chat-msg.user { justify-self: end; background: var(--grad); color: #fff; border-end-end-radius: 4px; }
.chat-msg.ai { display: flex; gap: .7rem; background: rgba(255, 255, 255, .07); border-end-start-radius: 4px; width: 90%; }
.ai-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 161, 255, .2); color: #6FD0FF; flex: none; }
.ai-lines { display: grid; gap: .5rem; flex: 1; padding-top: .3rem; }
.ai-lines span { display: block; height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .14); transform-origin: left; transform: scaleX(0); }
.ai-lines span:nth-child(1) { width: 92%; } .ai-lines span:nth-child(2) { width: 78%; } .ai-lines span:nth-child(4) { width: 60%; }
.ai-lines .hl-line { height: auto; background: none; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.ai-lines .hl-line b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat.in .ai-lines span { animation: grow .7s var(--ease) forwards; }
.chat.in .ai-lines span:nth-child(2) { animation-delay: .35s; } .chat.in .ai-lines span:nth-child(3) { animation-delay: .7s; } .chat.in .ai-lines span:nth-child(4) { animation-delay: 1.05s; }
@keyframes grow { to { transform: scaleX(1); } }
.chat-input { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .45); font-size: .9rem; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; counter-reset: s; }
.step { position: relative; padding: 1.6rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .8rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
.mini-steps { display: grid; gap: .9rem; margin-bottom: 1.6rem; }
.mini-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.mini-steps .ico { color: var(--brand); margin-top: 2px; }

/* Réalisations */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.3rem; }
.work-grid.featured { grid-template-columns: repeat(6, 1fr); }
.work-grid.featured .work-card { grid-column: span 2; }
.work-grid.featured .work-card.is-large h3 { font-size: 1.4rem; }
.work-grid.featured .work-card:nth-child(-n+2) { grid-column: span 3; }
.work-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-card[hidden] { display: none; }
.work-media { padding: 1rem 1rem 0; background: linear-gradient(160deg, rgba(98, 84, 231, .18), rgba(0, 161, 255, .1)); }
.browser { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; background: #15143F; border-radius: 12px 12px 0 0; }
.dots { display: flex; gap: 5px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.addr { flex: 1; font-size: .74rem; color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); border-radius: 6px; padding: .2rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { aspect-ratio: 16/10; overflow: hidden; background: #0E0C34; }
.shot.square { aspect-ratio: 16/10; border-radius: 12px 12px 0 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.6s var(--ease); }
.work-card:hover .shot img { transform: scale(1.04); }
.ph-name { display: grid; place-items: center; height: 100%; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: rgba(255, 255, 255, .7); }
.work-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.work-body p { color: var(--muted); font-size: .95rem; margin: 0 0 .4rem; flex: 1; }
.work-body h3 { margin: .3rem 0 .1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .74rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9rem; transition: .2s; }
.chip:hover { border-color: var(--brand); }
.chip.is-on { background: var(--grad); color: #fff; border-color: transparent; }

/* Avant / après */
.ba { margin: 3rem 0 0; }
.ba-stage { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); user-select: none; --pos: 50%; }
.ba-stage > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 20px rgba(0, 0, 0, .4); }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; border: 3px solid #fff; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: 14px; padding: .3rem .7rem; border-radius: 999px; background: rgba(7, 7, 35, .75); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ba-label.l { left: 14px; } .ba-label.r { right: 14px; }
.ba figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1rem; }

/* Configurateur */
.config { display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; }
.config-pick { padding: clamp(1.5rem, 3vw, 2.4rem); }
.config-pick h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.config-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .55rem; margin-top: 1.3rem; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check > span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; line-height: 1.3; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .9rem; transition: .2s; }
.chip-check small { white-space: nowrap; font-weight: 500; color: var(--muted); font-size: .8rem; }
.chip-check input:checked + span { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(120, 50, 251, .8); }
.chip-check input:checked + span small { color: rgba(255, 255, 255, .8); }
.chip-check input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chip-check.sm > span { display: inline-flex; padding: .5rem .75rem; font-size: .86rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.config-sum { padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; }
.config-sum::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(120, 50, 251, .4), transparent 70%); pointer-events: none; }
.config-sum > * { position: relative; }
.config-empty { color: rgba(255, 255, 255, .6); }
.config-totals { display: grid; gap: 1rem; margin: 0 0 1.4rem; }
.config-totals div { display: grid; gap: .1rem; }
.config-totals dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.config-totals dd { margin: 0; font-size: 1rem; color: rgba(255, 255, 255, .8); }
.config-totals strong { font-family: var(--display); font-size: 2.1rem; color: #fff; letter-spacing: -.02em; }
.config-actions { display: grid; gap: .6rem; }
.config-sum .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.config-sum .fine { color: rgba(255, 255, 255, .5); }

/* Pourquoi + chiffres */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.why-grid.four { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.why-grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.why { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why p { color: var(--muted); font-size: .97rem; margin: 0; }
.why-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--grad); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 10px 24px -12px rgba(120, 50, 251, .8); }
.why-ico.num { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; padding: 2rem; border-radius: var(--radius); background: var(--night); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 0% 0%, rgba(98, 84, 231, .45), transparent 60%), radial-gradient(40% 100% at 100% 100%, rgba(0, 161, 255, .25), transparent 60%); }
.stat { position: relative; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #B9B2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { font-size: .9rem; color: rgba(255, 255, 255, .65); }

/* Témoignages */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.testi { margin: 0; padding: 1.6rem; }
.testi .q { color: var(--brand); width: 30px; height: 30px; margin-bottom: .8rem; }
.testi footer { display: grid; margin-top: 1rem; font-size: .9rem; }
.testi footer span { color: var(--muted); }

/* Bandeau d'appel */
.cta-band { padding-block: clamp(3rem, 6vw, 5rem); }
.cta-in { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); border-radius: 28px; background: var(--grad); color: #fff; }
.cta-in h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-in h2 .hl { background: none; color: #fff; -webkit-text-fill-color: #fff; text-decoration: underline; text-decoration-color: rgba(0, 161, 255, .9); text-underline-offset: 6px; }
.cta-in p { color: rgba(255, 255, 255, .85); max-width: 620px; margin-inline: auto; }
.cta-in .actions { justify-content: center; }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 0%, rgba(0, 161, 255, .55), transparent 60%), radial-gradient(40% 70% at 0% 100%, rgba(7, 7, 35, .5), transparent 70%); }

/* Pages service */
.price-card { padding: 1.8rem; display: grid; gap: .7rem; justify-items: start; color: var(--ink); }
.price-card .muted { margin: 0; }
.big-price { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin: 0 0 .4rem; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split.wide-right { grid-template-columns: .75fr 1.25fr; }
.pains { display: grid; gap: .8rem; }
.pains li { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 1.04rem; }
.pains .ico { color: var(--brand); margin-top: 3px; }
.checks { display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks .ico { color: #12B886; margin-top: 3px; }
.checks.cols { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem 2rem; }
.deliv { margin-top: 2rem; padding: 1.8rem; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; align-items: stretch; }
.packs.n1 { max-width: 460px; margin-inline: auto; }
.packs.n2 { max-width: 860px; margin-inline: auto; }
.pack { position: relative; display: flex; flex-direction: column; padding: 1.8rem; }
.pack.is-hl { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.pack-badge { position: absolute; top: -12px; inset-inline-start: 1.6rem; padding: .25rem .7rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; }
.pack-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; margin: .4rem 0 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px dashed var(--line-2); }
.pack-price small { width: 100%; font-size: .8rem; color: var(--muted); }
.pack-price strong { font-family: var(--display); font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; }
.pack-price span { color: var(--muted); font-size: .92rem; }
.pack-price.quote { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.pack .checks { flex: 1; font-size: .96rem; }
.pack-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
.pack-actions { display: grid; gap: .7rem; justify-items: center; margin-top: 1.5rem; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { color: var(--brand); transition: transform .3s var(--ease); }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-a p { margin: 0; }

/* Secteurs */
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.1rem; }
.sol { display: flex; gap: 1.1rem; padding: 1.5rem; transition: transform .3s var(--ease), border-color .3s; }
.sol:hover { transform: translateY(-3px); border-color: var(--line-2); }
.sol p { color: var(--muted); font-size: .96rem; }
.sol-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 700; color: var(--brand); }
.sector-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.sector-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; transition: .25s var(--ease); }
.sector-chip:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.sector-chip .ico { color: var(--brand); } .sector-chip:hover .ico { color: #fff; }

/* Tarifs */
.offer-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 3rem; }
.offer { padding: 1.8rem; }
.offer p { color: var(--muted); margin: 0; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--brand); font-size: .8rem; font-weight: 700; margin-bottom: 1rem; }
.price-nav { position: sticky; top: 74px; z-index: 5; display: flex; gap: .4rem; overflow-x: auto; padding: .8rem 0; margin-bottom: 1rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); scrollbar-width: none; }
.price-nav::-webkit-scrollbar { display: none; }
.price-nav a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; font-weight: 600; background: var(--surface); }
.price-nav a:hover { border-color: var(--brand); }
.price-block { padding-block: 2.6rem; border-top: 1px solid var(--line); }
.price-block-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.price-block-head h2 { font-size: 1.6rem; margin: 0; }
.price-block-head p { margin: 0; }
.price-block-head > div { flex: 1; min-width: 240px; }

/* Partenaires */
.group-h { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 1.4rem; font-size: 1.4rem; }
.group-h small { font-size: .9rem; color: var(--muted); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin-bottom: 3rem; }
.lw-item { position: relative; display: grid; gap: .45rem; align-content: center; min-height: 130px; padding: 1.4rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); }
a.lw-item:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.15; }
.lw-item img { max-height: 46px; width: auto; }
.lw-rel { font-size: .84rem; color: var(--muted); }
.lw-go { position: absolute; top: 1rem; inset-inline-end: 1rem; color: var(--brand); }

/* Agence, équipe */
.prose { font-size: 1.06rem; }
.prose p { color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1.2em; list-style: disc; color: var(--ink-2); }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.6rem auto; }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-inline-start: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: start; }
.prose th { background: var(--surface-2); }
.md-card { display: grid; grid-template-columns: auto 1fr; gap: 2.2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.8rem); }
.md-mark { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1.6rem; border-radius: 18px; background: var(--night); color: rgba(255, 255, 255, .7); font-size: .85rem; line-height: 1.25; }
.md-mark strong { font-family: var(--display); color: #fff; font-size: 1.15rem; }
.md-card p { color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.member { position: relative; padding: 1.8rem 1.4rem; text-align: center; transition: transform .3s var(--ease); }
.member:hover { transform: translateY(-4px); }
.avatar { width: 116px; height: 116px; margin: 0 auto 1.1rem; border-radius: 50%; padding: 3px; background: conic-gradient(from calc(var(--h, 0) * 1deg), #00A1FF, #6254E7, #7832FB, #00A1FF); }
.avatar img, .avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--night); color: #fff; font-family: var(--display); font-weight: 700; font-size: 2rem; }
.member p { color: var(--muted); font-size: .93rem; margin: 0; }
.member-in { position: absolute; top: 1rem; inset-inline-end: 1rem; color: var(--brand); }
.member.join { border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.member.join .avatar span { background: var(--surface-2); color: var(--brand); }

/* Bureaux, villes */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.office { padding: 1.5rem; display: grid; gap: .55rem; }
.office-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.office h3 { margin: 0; }
.office-line { display: flex; gap: .5rem; align-items: flex-start; margin: 0; color: var(--ink-2); font-size: .95rem; }
.office-line .ico { color: var(--brand); margin-top: 3px; }
.hours { display: grid; gap: .2rem; padding: .7rem 0; border-block: 1px dashed var(--line-2); font-size: .9rem; color: var(--muted); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; }
.city-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; }
.city-body p { color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 380px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.hero-page .hero-aside .map-fig { max-width: 340px; }

/* Formulaires */
.form-wrap { padding: clamp(1.4rem, 3vw, 2.2rem); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: grid; gap: .35rem; }
.field.full, .full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field em { color: var(--brand-2); font-style: normal; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { margin-bottom: .5rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(98, 84, 231, .14); }
.field textarea { resize: vertical; min-height: 120px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--brand); }
.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-err { padding: .8rem 1rem; border-radius: 12px; background: rgba(229, 62, 62, .1); color: #E53E3E; font-weight: 600; }
.form-ok { text-align: center; display: grid; justify-items: center; gap: .6rem; padding: 1.5rem 0; }
.form-ok .ico { color: #12B886; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.3rem; }
.post-grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card.is-first { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.post-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #6254E7, #00A1FF); overflow: hidden; }
.post-card.is-first .post-img { aspect-ratio: auto; min-height: 300px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.post-body p { color: var(--muted); font-size: .95rem; }
.post-card.is-first .post-body { justify-content: center; padding: 2.2rem; }
.post-card.is-first h2 { font-size: 1.7rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .84rem; color: var(--muted); margin-bottom: .6rem; }
.hero .post-meta { color: rgba(255, 255, 255, .6); }
.hero .tag { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .15); }
.article-hero .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); }
.article-cover { width: 100%; border-radius: var(--radius); margin-top: -2rem; position: relative; box-shadow: var(--shadow-lg); }
.article-body { padding-block: 3rem 4rem; }

/* 404 */
.nf .wrap { padding-block: clamp(4rem, 10vw, 8rem); }
.nf-code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; margin: 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); padding-top: 4.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.f-brand p { margin-top: 1.1rem; max-width: 330px; }
.f-h { font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); }
.socials a:hover { background: var(--grad); border-color: transparent; }
.f-office { margin-bottom: 1.2rem; }
.f-office p { margin: .2rem 0; font-size: .9rem; }
.f-office strong { color: #fff; margin-inline-end: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: rgba(255, 255, 255, .85); }
.f-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.langs { display: inline-flex; gap: .8rem; }
.langs [aria-current] { color: #fff; font-weight: 700; }
.lang-off { opacity: .45; }
.lang-off small { font-size: .7rem; }
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- Apparitions au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .morocco .arc { stroke-dashoffset: 0; }
  .ai-lines span { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { position: fixed; inset: 74px 0 0 0; flex-direction: column; align-items: stretch; gap: .2rem; padding: 1.2rem 16px 2rem; background: #070723; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; margin: 0; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a, .nav-item > a { font-size: 1.1rem; padding: .85rem .6rem; }
  .mega, .drop { position: static; opacity: 1; visibility: visible; transform: none !important; width: auto; box-shadow: none; border: 0; background: transparent; padding: 0 0 .6rem .6rem; display: none; }
  .nav-item.is-open > .mega, .nav-item.is-open > .drop { display: block; }
  /* Menu burger : liens du sous-menu empiles, bouton devis visible (la regle desktop .main-nav > .nav-mobile-only le masquait) */
  .nav-item.is-open > .drop { display: grid; }
  .main-nav > .nav-mobile-only { display: inline-flex; justify-content: center; }
  .main-nav > a.nav-mobile-only, .main-nav > a.nav-mobile-only:hover,
  :root:not([data-theme="dark"]) .main-nav > a.nav-mobile-only, :root:not([data-theme="dark"]) .main-nav > a.nav-mobile-only:hover { color: #fff; background: var(--grad); border-radius: 999px; font-weight: 600; padding: .9rem 1.35rem; }
  .mega-cols { grid-template-columns: 1fr; }
  .burger, .nav-mobile-only { display: grid; }
  .nav-mobile-only { display: inline-flex; margin-top: 1rem; }
  .hide-m { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .hero-page.has-aside .hero-grid, .geo-grid, .split, .split.wide-right, .config, .md-card, .offer-duo { grid-template-columns: 1fr; }
  .hero-map { order: 2; }
  .map-fig { max-width: 260px; }
  .map-cards { position: static; display: flex; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
  .work-grid.featured { grid-template-columns: 1fr; }
  .work-grid.featured .work-card, .work-grid.featured .work-card.is-large, .work-grid.featured .work-card:nth-child(2) { grid-column: auto; grid-row: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .post-card.is-first { grid-template-columns: 1fr; }
  .post-card.is-first .post-img { min-height: 220px; }
  .hero-page.has-aside .hero-aside { max-width: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .pill-ai span { display: none; }
  .pill-ai { padding: .5rem; }
  .brand-txt small { display: none; }
  .lead-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .svc-grid, .work-grid, .post-grid, .sol-grid, .why-grid, .logo-wall { grid-template-columns: 1fr; }
  .svc-card.is-feature { grid-column: auto; }
  .logo-wall { grid-template-columns: 1fr 1fr; }
  .lw-item { min-height: 110px; padding: 1rem; }
  .wordmark { font-size: 1.02rem; }
  .actions .btn { width: 100%; }
  .ba-stage { aspect-ratio: 4/3; }
}

/* ==========================================================================
   Thème clair par défaut : blanc et lavande, le violet en accent
   (le bleu nuit reste réservé au pied de page et au mode sombre)
   ========================================================================== */
:root:not([data-theme="dark"]) .site-header::before { background: rgba(255, 255, 255, .86); }
:root:not([data-theme="dark"]) .site-header { border-bottom-color: var(--line); color: var(--ink); box-shadow: 0 1px 0 rgba(14, 12, 43, .02); }
:root:not([data-theme="dark"]) .site-header .brand-txt strong { color: var(--ink); }
:root:not([data-theme="dark"]) .site-header .brand-txt small { color: var(--muted); }
:root:not([data-theme="dark"]) .main-nav > a, :root:not([data-theme="dark"]) .nav-item > a { color: var(--ink-2); }
:root:not([data-theme="dark"]) .main-nav > a:hover, :root:not([data-theme="dark"]) .nav-item > a:hover, :root:not([data-theme="dark"]) .main-nav [aria-current="page"] { color: var(--brand); background: var(--surface-2); }
:root:not([data-theme="dark"]) .mega, :root:not([data-theme="dark"]) .drop { background: #fff; border-color: var(--line); box-shadow: 0 30px 70px -25px rgba(62, 48, 180, .35); }
:root:not([data-theme="dark"]) .mega-h { color: var(--muted); }
:root:not([data-theme="dark"]) .mega-link:hover, :root:not([data-theme="dark"]) .drop a:hover { background: var(--surface-2); }
:root:not([data-theme="dark"]) .mega-link strong, :root:not([data-theme="dark"]) .drop a { color: var(--ink); }
:root:not([data-theme="dark"]) .mega-link small { color: var(--muted); }
:root:not([data-theme="dark"]) .mega-ico { background: var(--surface-2); color: var(--brand); }
:root:not([data-theme="dark"]) .pill-ai { color: var(--ink); background: linear-gradient(#fff, #fff) padding-box, var(--grad-text) border-box; }
:root:not([data-theme="dark"]) .icon-btn { border-color: var(--line-2); background: #fff; color: var(--ink); }
:root:not([data-theme="dark"]) .icon-btn:hover { background: var(--surface-2); }
@media (max-width: 1120px) { :root:not([data-theme="dark"]) .main-nav { background: #fff; } }

:root:not([data-theme="dark"]) .hero { background: var(--bg); color: var(--ink); }
:root:not([data-theme="dark"]) .hero h1, :root:not([data-theme="dark"]) .hero h2 { color: var(--ink); }
:root:not([data-theme="dark"]) .hero-bg { background: radial-gradient(55% 70% at 88% 8%, rgba(120, 50, 251, .13), transparent 62%), radial-gradient(45% 60% at 0% 100%, rgba(98, 84, 231, .10), transparent 60%), linear-gradient(180deg, #FFFFFF 0%, #F6F4FF 100%); }
:root:not([data-theme="dark"]) .grid-lines { background-image: linear-gradient(rgba(98, 84, 231, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(98, 84, 231, .07) 1px, transparent 1px); }
:root:not([data-theme="dark"]) .orb { opacity: .16; }
:root:not([data-theme="dark"]) .o2 { background: #9057F9; opacity: .12; }
:root:not([data-theme="dark"]) .hero .eyebrow { color: var(--brand); }
:root:not([data-theme="dark"]) .lead { color: var(--muted); }
:root:not([data-theme="dark"]) .hero-proof { color: var(--muted); }
:root:not([data-theme="dark"]) .hero-proof .ico { color: var(--brand); }
:root:not([data-theme="dark"]) .crumbs { color: var(--muted); }
:root:not([data-theme="dark"]) .crumbs a:hover, :root:not([data-theme="dark"]) .crumbs [aria-current] { color: var(--ink); }
:root:not([data-theme="dark"]) .hero .status { color: var(--muted); }
:root:not([data-theme="dark"]) .hero .status.is-open { color: #0B8A63; }
:root:not([data-theme="dark"]) .morocco .land { fill: rgba(120, 100, 255, .2); stroke: rgba(98, 84, 231, .55); }
:root:not([data-theme="dark"]) .morocco .city-dot { fill: rgba(98, 84, 231, .35); }
:root:not([data-theme="dark"]) .morocco .arc-runner { fill: var(--brand-2); filter: drop-shadow(0 0 5px rgba(120, 50, 251, .7)); }
:root:not([data-theme="dark"]) .pin text { fill: var(--ink); stroke: rgba(255, 255, 255, .92); }
:root:not([data-theme="dark"]) .pin-core { fill: var(--brand); }
:root:not([data-theme="dark"]) .pin-pulse { fill: var(--brand); }
:root:not([data-theme="dark"]) .map-card { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
:root:not([data-theme="dark"]) .map-caption { color: var(--muted); }
:root:not([data-theme="dark"]) .hero .btn-glass, :root:not([data-theme="dark"]) .geo-band .btn-outline-light { background: #fff; border-color: var(--line-2); color: var(--ink); backdrop-filter: none; }
:root:not([data-theme="dark"]) .hero .btn-glass:hover, :root:not([data-theme="dark"]) .geo-band .btn-outline-light:hover { border-color: var(--brand); }
:root:not([data-theme="dark"]) .hero .post-meta { color: var(--muted); }
:root:not([data-theme="dark"]) .hero .tag { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }

:root:not([data-theme="dark"]) .band-logos { background: #fff; color: var(--ink); border-block: 1px solid var(--line); }
:root:not([data-theme="dark"]) .band-label { color: var(--muted); }
:root:not([data-theme="dark"]) .mq-item { color: #8C88B3; }
:root:not([data-theme="dark"]) .mq-item img { filter: grayscale(1); opacity: .6; }

:root:not([data-theme="dark"]) .geo-band { background: linear-gradient(180deg, #F3F1FE 0%, #FBFAFF 100%); color: var(--ink); }
:root:not([data-theme="dark"]) .geo-band h2 { color: var(--ink); }
:root:not([data-theme="dark"]) .geo-band .sec-text { color: var(--muted); }
:root:not([data-theme="dark"]) .geo-band .eyebrow { color: var(--brand); }
:root:not([data-theme="dark"]) .geo-bg { background: radial-gradient(45% 70% at 100% 40%, rgba(120, 50, 251, .12), transparent 70%); }
:root:not([data-theme="dark"]) .geo-band .btn-light { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(120, 50, 251, .65); }
:root:not([data-theme="dark"]) .chat { background: #fff; border-color: var(--line); box-shadow: var(--shadow-lg); backdrop-filter: none; }
:root:not([data-theme="dark"]) .chat-label { background: #fff; border-color: var(--line); color: var(--muted); }
:root:not([data-theme="dark"]) .chat-msg.ai { background: var(--surface-2); }
:root:not([data-theme="dark"]) .ai-ico { background: #EAE6FF; color: var(--brand); }
:root:not([data-theme="dark"]) .ai-lines span { background: rgba(98, 84, 231, .16); }
:root:not([data-theme="dark"]) .ai-lines .hl-line { background: none; color: var(--ink); }
:root:not([data-theme="dark"]) .chat-input { border-color: var(--line); color: var(--muted); }

:root:not([data-theme="dark"]) .stats { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
:root:not([data-theme="dark"]) .stats::before { background: radial-gradient(50% 120% at 0% 0%, rgba(98, 84, 231, .08), transparent 60%); }
:root:not([data-theme="dark"]) .stat strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root:not([data-theme="dark"]) .stat > span { color: var(--muted); }

:root:not([data-theme="dark"]) .config-sum { background: var(--surface-2); color: var(--ink); border-inline-start: 1px solid var(--line); }
:root:not([data-theme="dark"]) .config-sum::before { background: radial-gradient(80% 60% at 100% 0%, rgba(120, 50, 251, .12), transparent 70%); }
:root:not([data-theme="dark"]) .config-empty, :root:not([data-theme="dark"]) .config-totals dd, :root:not([data-theme="dark"]) .config-sum .fine { color: var(--muted); }
:root:not([data-theme="dark"]) .config-totals dt { color: var(--muted); }
:root:not([data-theme="dark"]) .config-totals strong { color: var(--ink); }
:root:not([data-theme="dark"]) .config-sum .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }

/* Certifications */
.certs { margin-top: 2.5rem; text-align: center; }
.certs-h { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.certs-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.cert { display: grid; place-items: center; height: 74px; padding: .7rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cert img { max-height: 48px; width: auto; max-width: 190px; object-fit: contain; }
.sec-tight { padding-block: 1rem 2.5rem; }
.mega-all { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .7rem .8rem; margin-bottom: .8rem; border-radius: 12px; background: var(--grad); color: #fff !important; font-weight: 700; font-size: .9rem; }
.f-phone { margin: .3rem 0; display: grid; }
.f-phone small { font-size: .74rem; color: rgba(255, 255, 255, .45); }
.member .avatar img { background: #fff; }

/* Méga menu ancré sur l'en-tête (il débordait à gauche) */
@media (min-width: 1121px) {
  .header-in { position: relative; }
  .nav-item.has-mega { position: static; }
  .nav-item.has-mega > .mega { width: 100%; }
}
@media (min-width: 1121px) {
  .mega-sectors { grid-column: span 3; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; column-gap: .6rem; }
  .mega-sectors .mega-all, .mega-sectors .mega-h { grid-column: 1 / -1; }
  .mega-sectors .mega-all { justify-self: start; min-width: 260px; }
}

/* Bulle du bouton WhatsApp : un humain répond */
.wa-tip { position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: .45rem .8rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .25s; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; }
@media (max-width: 600px) { .wa-tip { display: none; } }

/* ==========================================================================
   Arabe : police arabe et flèches retournées (sens de lecture droite à gauche)
   ========================================================================== */
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; --display: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] svg:has(use[href*="#arrow-right"]), [dir="rtl"] svg:has(use[href*="#arrow-up-right"]) { transform: scaleX(-1); }

/* ==========================================================================
   Sélecteur de langue de l'en-tête : bouton compact qui ouvre une liste
   ========================================================================== */
.lang-switch { position: relative; }
.lang-switch > summary { list-style: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.icon-btn.lang-btn { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; width: auto; min-width: 42px; padding-inline: .6rem; font-size: .84rem; font-weight: 700; letter-spacing: .03em; user-select: none; }
.lang-btn .lang-chev { width: 14px; height: 14px; opacity: .7; transition: transform .2s var(--ease); }
.lang-switch[open] .lang-chev { transform: rotate(180deg); }
.lang-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 176px; margin: 0; padding: .4rem; list-style: none; display: grid; gap: .15rem; background: #0D0C30; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.lang-list a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.lang-list a strong { min-width: 2.4em; font-weight: 700; }
.lang-list a span { flex: 1; opacity: .75; }
.lang-list a .ico { color: #B5ACFF; }
.lang-list a:hover, .lang-list a:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; }
.lang-list a[aria-current="true"] { background: rgba(98, 84, 231, .22); color: #fff; }
:root:not([data-theme="dark"]) .lang-list { background: #fff; border-color: var(--line); box-shadow: 0 24px 60px -24px rgba(62, 48, 180, .35); }
:root:not([data-theme="dark"]) .lang-list a { color: var(--ink); }
:root:not([data-theme="dark"]) .lang-list a:hover, :root:not([data-theme="dark"]) .lang-list a:focus-visible { background: var(--surface-2); color: var(--ink); }
:root:not([data-theme="dark"]) .lang-list a[aria-current="true"] { background: var(--surface-2); color: var(--brand); }
:root:not([data-theme="dark"]) .lang-list a .ico { color: var(--brand); }
@media (max-width: 600px) {
  .header-actions { gap: .4rem; }
  .icon-btn.lang-btn { min-width: 40px; height: 40px; padding-inline: .5rem; }
  .lang-btn .lang-chev { display: none; }
  .lang-list { position: fixed; top: 80px; inset-inline-end: 16px; }
}
