/* ==========================================================
   MIZARATECH – Design moderne (thème sombre « tech »)
   Mobile d'abord · Contraste AA · Cibles tactiles ≥ 44px
   ========================================================== */

:root {
  /* Couleurs */
  --primary: #13215c;        /* bleu nuit de la marque */
  --primary-2: #0b1440;
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e4e6ee;
  --line-2: #cfd3df;
  --heading: var(--primary);
  --text: #3d4456;
  --muted: #5c6275;          /* contraste ≈ 6:1 sur blanc */
  --blue: #2f6fe4;
  --blue-2: #1f56c4;
  --warm: #d9545d;           /* touche chaude, décorative */
  --cyan: #0e7490;           /* cyan foncé : lisible sur fond clair */
  --gold: #b45309;
  --rose: #e11d48;
  --green: #059669;
  --grad: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -14px rgba(15, 23, 42, .14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -18px rgba(15, 23, 42, .22);
  --grad-btn: var(--primary);
  --focus: #fbbf24;

  /* Typographie fluide */
  --fs-h1: clamp(2.1rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 2vw, 2.75rem);
  --fs-lead: clamp(1rem, .95rem + .3vw, 1.2rem);

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 64px;
  --tap: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font: 400 1rem/1.7 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', 'Poppins', sans-serif; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--heading); text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
abbr[title] { text-decoration: none; color: var(--rose); }
sup { line-height: 0; }
::selection { background: rgba(59, 130, 246, .25); color: var(--heading); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 300; padding: 12px 20px; border-radius: var(--radius-sm); background: var(--gold); color: #111; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.text-muted { color: var(--muted); }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Boutons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  background: var(--grad-btn); color: #fff; font: 600 .95rem/1.2 'Poppins', sans-serif; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(34, 211, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--heading); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: var(--shadow-lg); border-color: #94a3b8; }
.btn-light { background: #fff; color: #0b1a33; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn-light:hover { box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .6); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 600; color: var(--cyan); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ===== En-tête ===== */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled, .header.menu-open { background: rgba(255, 255, 255, .85); border-bottom-color: var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: inline-flex; align-items: center; min-height: var(--tap); }
.logo-img { display: block; height: 38px; width: auto; transition: transform .4s var(--ease), filter .4s; }
.logo:hover .logo-img { transform: scale(1.04); filter: drop-shadow(0 0 12px rgba(59, 130, 246, .6)); }

.nav-toggle { display: grid; place-content: center; gap: 5px; width: var(--tap); height: var(--tap); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100dvh - var(--header-h));
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 20px; overflow-y: auto;
  background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility .3s;
}
.nav-menu.open { transform: none; opacity: 1; visibility: visible; }
.nav-menu a:not(.btn) { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; color: var(--text); font-weight: 500; border-radius: var(--radius-sm); }
.nav-menu a:not(.btn):hover { background: var(--surface); text-decoration: none; }
.nav-menu a[aria-current="true"] { color: var(--blue-2); background: rgba(59, 130, 246, .08); }
.nav-menu .btn { margin-top: 10px; }
.nav-phone { color: var(--cyan) !important; }
.nav-backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: rgba(15, 23, 42, .3); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-menu.open a { animation: slideDown .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 60ms); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #eef4ff 0%, #ffffff 85%); padding: calc(var(--header-h) + 40px) 0 48px; }
.hero::before { /* grille */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 42, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: blob 20s ease-in-out infinite alternate; }
.hero-bg span:nth-child(1) { width: 480px; height: 480px; top: -160px; right: -120px; background: #93c5fd; }
.hero-bg span:nth-child(2) { width: 380px; height: 380px; top: 30%; left: -160px; background: #67e8f9; opacity: .35; animation-duration: 24s; animation-delay: -8s; }
.hero-bg span:nth-child(3) { width: 260px; height: 260px; bottom: -60px; left: 45%; background: #c4b5fd; opacity: .35; animation-duration: 28s; animation-delay: -14s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.12); } 100% { transform: translate(-30px, 50px) scale(.92); } }

.hero-grid { display: grid; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 14px 4px 4px; margin-bottom: 22px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: .85rem; font-weight: 500;
  transition: border-color .25s, background .25s;
}
.pill:hover { text-decoration: none; border-color: rgba(34, 211, 238, .5); background: var(--surface-2); }
.pill .ico { color: var(--cyan); transition: transform .3s var(--ease); }
.pill:hover .ico { transform: translateX(3px); }
.pill-tag { white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: var(--grad-btn); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 .gradient-text { background: linear-gradient(90deg, #1d4ed8, #0891b2, #7c3aed, #1d4ed8); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 10s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--cyan); }

/* Composition visuelle */
.hero-visual { position: relative; display: none; transition: transform .3s ease-out; }
.window, .app-mock { border-radius: var(--radius); overflow: hidden; }
.window {
  background: linear-gradient(180deg, #14264a, #0c1a34); border: 1px solid #1e3a66;
  box-shadow: 0 40px 80px -30px rgba(29, 78, 216, .45), 0 20px 40px -20px rgba(15, 23, 42, .35);
}
.app-mock { background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(29, 78, 216, .3), var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.window-bar i:nth-child(2) { background: #ffbd2e; }
.window-bar i:nth-child(3) { background: #27c93f; }
.window-bar span { margin-left: 10px; font: 500 .78rem 'Poppins', sans-serif; color: var(--muted); }
.window pre { padding: 20px 22px 24px; font: .92rem/1.7 'JetBrains Mono', Consolas, 'Courier New', monospace; color: #cfe3ff; white-space: pre-wrap; }
.c-k { color: #f0abfc; }
.c-s { color: #6ee7b7; }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: #22d3ee; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .28); animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font: 600 .9rem 'Montserrat', sans-serif; color: var(--heading); }
.float-card small { color: var(--muted); font-size: .75rem; }
.fc-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(59, 130, 246, .12); color: var(--blue-2); }
.fc-ico-cyan { background: rgba(8, 145, 178, .12); color: var(--cyan); }
.fc-ico-gold { background: rgba(251, 191, 36, .18); color: var(--gold); }
.fc-1 { top: -30px; right: -20px; }
.fc-2 { bottom: -34px; left: -28px; animation-delay: -2s; }
.fc-3 { bottom: -34px; right: -20px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat { padding: 18px 12px; text-align: center; background: var(--bg); transition: background .3s; }
.stat:hover { background: var(--bg-2); }
.stat strong { display: block; font: 700 clamp(1.4rem, 1rem + 2vw, 2.2rem)/1.2 'Montserrat', sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.35; }

/* Entrée du hero */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: fadeUp .8s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }
.hero-content > :nth-child(5) { animation-delay: .4s; }
.hero-visual .window { animation: zoomIn 1s .3s var(--ease) both; }
.stats { animation: fadeUp .8s .5s var(--ease) both; }

/* ===== Bandeau défilant des clients ===== */
.logos { padding: 28px 0 32px; border-block: 1px solid var(--line); background: var(--bg-2); }
.logos-title { text-align: center; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: 48px; padding-right: 48px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font: 600 clamp(1rem, .9rem + .5vw, 1.3rem) 'Montserrat', sans-serif; color: #64748b; white-space: nowrap; transition: color .3s; }
.marquee-track li:hover { color: var(--blue-2); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ===== Sections ===== */
.section { position: relative; padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lead); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .2);
}
.sub-title { font-size: 1.3rem; margin-bottom: 8px; }

/* Icône standard */
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(59, 130, 246, .1); color: var(--blue-2); border: 1px solid rgba(59, 130, 246, .18); transition: transform .4s var(--spring), background .3s, color .3s; }
.icon .ico { width: 22px; height: 22px; }
.icon-gold { background: rgba(251, 191, 36, .16); color: var(--gold); border-color: rgba(217, 119, 6, .25); }

/* Carte « verre » avec bordure lumineuse au survol */
.bento-card, .branch, .panel, .client, .process li, .hq-card, .org-node, .flm {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.bento-card, .branch, .client, .hq-card, .org-node { transition: transform .3s var(--ease), border-color .3s, background .3s; }
.bento-card::before, .branch::before, .client::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .08), transparent 60%);
}
@media (hover: hover) {
  .bento-card:hover, .branch:hover, .client:hover, .hq-card:hover, .org-node:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, .35); background: var(--surface); box-shadow: var(--shadow-lg); }
  .bento-card:hover::before, .branch:hover::before, .client:hover::before { opacity: 1; }
  .bento-card:hover .icon, .branch:hover .icon { transform: rotate(-8deg) scale(1.1); background: var(--grad-btn); color: #fff; border-color: transparent; }
}

/* ===== Services (bento) ===== */
.bento { display: grid; gap: 12px; }
.bento-card { padding: 20px; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; }
.bento-card .icon { grid-row: span 2; }
.bento-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.bento-card p { color: var(--muted); font-size: .92rem; }
.platforms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.platforms .ico { color: var(--cyan); }
.bento-wide { background: linear-gradient(135deg, #e8f0ff, #e6f7fb); border-color: rgba(59, 130, 246, .25); }

/* ===== Démarche ===== */
.process { display: grid; gap: 12px; counter-reset: step; }
.process li { padding: 18px 20px 18px 76px; }
.process-num {
  position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  font: 700 .9rem 'Montserrat', sans-serif; color: #fff; background: var(--grad-btn); box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .6);
  transition: transform .4s var(--spring);
}
.process li:hover .process-num { transform: scale(1.1) rotate(-6deg); }
.process h3 { font-size: 1rem; margin-bottom: 2px; }
.process p { color: var(--muted); font-size: .9rem; }

/* ===== Rôle / application ===== */
.split { display: grid; gap: 40px; align-items: center; }
.split-top { align-items: start; }
.split-text h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.check-list { margin-top: 20px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--text); font-size: .95rem; }
.check-list .ico { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: rgba(52, 211, 153, .14); color: var(--green); stroke-width: 3; transition: transform .3s var(--spring); }
.check-list li:hover .ico { transform: scale(1.2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 24px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.facts div { padding: 12px 14px; background: var(--bg); }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { font-weight: 600; font-size: .88rem; color: var(--heading); }

.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.app-nav { padding: 14px 10px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.app-nav li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: .78rem; color: var(--muted); }
.app-nav li.active { background: rgba(59, 130, 246, .1); color: var(--blue-2); font-weight: 600; }
.app-nav .ico { width: 15px; height: 15px; }
.app-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis div { padding: 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.kpis small { display: block; font-size: .65rem; color: var(--muted); }
.kpis b { font: 600 .95rem 'Montserrat', sans-serif; color: var(--heading); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #3b82f6, #67e8f9); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); }
.bars i:nth-child(2) { transition-delay: .08s; } .bars i:nth-child(3) { transition-delay: .16s; } .bars i:nth-child(4) { transition-delay: .24s; }
.bars i:nth-child(5) { transition-delay: .32s; } .bars i:nth-child(6) { transition-delay: .4s; } .bars i:nth-child(7) { transition-delay: .48s; }
.app-mock.drawn .bars i { transform: scaleY(1); }
.rows { display: grid; gap: 6px; }
.rows i { height: 10px; border-radius: 5px; background: var(--line); }
.rows i:nth-child(1) { width: 90%; } .rows i:nth-child(2) { width: 70%; } .rows i:nth-child(3) { width: 80%; }

/* ===== Réalisations ===== */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: var(--tap); padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 500 .9rem 'Poppins', sans-serif; color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.chip:hover { color: var(--heading); border-color: #94a3b8; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { color: #fff; background: var(--grad-btn); border-color: transparent; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .7); }
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.client { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; transition: opacity .25s, transform .3s var(--ease), border-color .3s, background .3s; }
.client[hidden] { display: none; }
.client.is-out { opacity: 0; transform: scale(.9); }
.client-ico { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 10px; background: rgba(59, 130, 246, .1); color: var(--blue-2); }
.client-ico .ico { width: 18px; height: 18px; }
.ci-sante { background: rgba(225, 29, 72, .08); color: var(--rose); }
.ci-commerce { background: rgba(251, 191, 36, .18); color: var(--gold); }
.ci-edu { background: rgba(5, 150, 105, .1); color: var(--green); }
.client strong { font: 600 .98rem 'Montserrat', sans-serif; color: var(--heading); }
.client small { font-size: .75rem; color: var(--muted); }

.flm { margin-top: 24px; padding: 22px; background: linear-gradient(135deg, #fff8e6, #ffffff); border-color: rgba(217, 119, 6, .22); }
.flm-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.flm-head .icon { flex-shrink: 0; }
.flm-head h3 { font-size: 1.1rem; }
.flm-head p { color: var(--muted); font-size: .9rem; }
.flm-list { display: grid; gap: 10px; }
.flm-list li { padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.flm-list li:hover { border-color: rgba(217, 119, 6, .4); box-shadow: var(--shadow); }
.flm-list h4 { font-size: .95rem; margin-bottom: 2px; }
.flm-list p { color: var(--muted); font-size: .86rem; }

/* ===== Groupe CPE ===== */
.branches { display: grid; gap: 12px; }
.branch { padding: 22px; }
.branch .icon { margin-bottom: 14px; }
.branch h3 { font-size: 1.1rem; margin-bottom: 6px; }
.branch p { color: var(--muted); font-size: .92rem; }
.branch-active { background: linear-gradient(135deg, #e8f0ff, #e6f7fb); border-color: rgba(59, 130, 246, .35); }
.branch-tag { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; color: #fff; background: var(--grad-btn); }

.groupe-grid { display: grid; gap: 12px; margin-top: 12px; }
.panel { padding: 22px; }
.panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.1rem; margin-bottom: 16px; }
.panel-title > .ico { color: var(--cyan); }
.panel .check-list { margin-top: 0; }
.count { font: 600 .72rem 'Poppins', sans-serif; padding: 3px 10px; border-radius: 999px; background: rgba(34, 211, 238, .1); color: var(--cyan); }

.timeline { position: relative; padding-left: 26px; margin-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue), var(--cyan)); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
.timeline.drawn::after { transform: scaleY(1); }
.timeline li { position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); z-index: 1; transition: transform .3s var(--spring), background .3s; }
.timeline li:hover::before { transform: scale(1.3); background: var(--cyan); }
.timeline b { font: 600 .92rem 'Montserrat', sans-serif; color: var(--heading); }
.timeline p { color: var(--muted); font-size: .9rem; }

.callout { margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); background: #ecfbfe; border: 1px solid rgba(8, 145, 178, .22); }
.callout h4 { font-size: 1rem; margin-bottom: 4px; }
.callout p { color: var(--muted); font-size: .9rem; }

/* Organigramme */
.org-wrap { margin-top: 56px; text-align: center; }
.org-intro { max-width: 60ch; margin: 0 auto 28px; }
.org { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: left; }
.org-node { width: 100%; max-width: 440px; padding: 18px 20px; }
.org-node h4 { font-size: 1rem; margin-bottom: 6px; }
.org-node li { position: relative; padding: 2px 0 2px 16px; color: var(--muted); font-size: .88rem; }
.org-node li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.org-node b { color: var(--blue-2); }
.org-top { background: linear-gradient(135deg, #e8f0ff, #e6f7fb); border-color: rgba(59, 130, 246, .35); }
.org-row { display: grid; gap: 12px; width: 100%; max-width: 440px; }
.org-row .org-node { max-width: none; }

/* ===== Implantations ===== */
.impl { display: grid; gap: 32px; }
.impl-intro h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.big-number { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.big-number strong { font: 700 clamp(3.5rem, 2.5rem + 4vw, 5.5rem)/1 'Montserrat', sans-serif; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-number span { color: var(--muted); font-size: 1rem; line-height: 1.4; }
.hq { display: grid; gap: 10px; }
.hq-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.hq-card > .ico { width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.hq-card h3 { font-size: .95rem; }
.hq-card p { color: var(--muted); font-size: .88rem; }
.places { display: grid; gap: 12px; align-content: start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; font-size: .86rem; background: var(--bg-2); border: 1px solid var(--line); transition: background .25s, border-color .25s, color .25s; }
.tags li:hover { background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .4); color: var(--blue-2); }
.more-btn { display: none; }

/* ===== Appel à l'action ===== */
.cta { padding: 16px 0 64px; background: var(--bg-2); }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; padding: 40px 24px; text-align: center; border-radius: 28px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0e7490 100%);
  box-shadow: 0 30px 70px -30px rgba(29, 78, 216, .6);
}
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%); }
.cta-box::after { content: ""; position: absolute; width: 400px; height: 400px; top: -200px; right: -120px; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .12); filter: blur(40px); }
.cta-box h2 { font-size: var(--fs-h2); margin-bottom: 10px; }
.cta-box p { color: rgba(255, 255, 255, .88); margin-bottom: 24px; }
.cta-box .hero-actions { justify-content: center; }
.cta-box .btn-ghost { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.cta-box h2 { color: #fff; }

/* ===== Contact ===== */
.contact-list { display: grid; gap: 4px; margin-top: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.contact-ico { display: grid; place-items: center; width: var(--tap); height: var(--tap); flex-shrink: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--cyan); transition: transform .3s var(--spring), background .3s, color .3s; }
.contact-list li:hover .contact-ico { transform: rotate(-8deg); background: var(--grad-btn); color: #fff; }
.contact-list div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.contact-list b { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { font-weight: 600; }

.form { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-hint { font-size: .85rem; color: var(--muted); }
.field-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9rem; color: var(--text); transition: color .2s; }
.field:focus-within label { color: var(--cyan); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 16px/1.5 'Poppins', sans-serif; color: var(--heading); resize: vertical;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #64748b; }
.field input:hover, .field textarea:hover { border-color: #94a3b8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.field [aria-invalid="true"] { border-color: var(--rose); background: #fff5f6; animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field-error { font-size: .85rem; font-weight: 500; color: var(--rose); animation: fadeUp .3s var(--ease); }
.field-error:empty { display: none; }
.form-msg { font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.success { padding: 12px 16px; border-radius: var(--radius-sm); background: #ecfdf5; border: 1px solid rgba(5, 150, 105, .3); color: #065f46; animation: fadeUp .5s var(--ease); }

/* ===== Pied de page ===== */
.footer { padding: 48px 0 92px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
.logo-footer { height: 46px; }
.footer-brand p { margin-top: 12px; max-width: 40ch; font-size: .92rem; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--heading); margin-bottom: 6px; }
.footer-grid > :not(.footer-brand) { display: flex; flex-direction: column; }
.footer-grid > :not(.footer-brand) a, .footer-grid > :not(.footer-brand) span { display: inline-flex; align-items: center; min-height: 36px; font-size: .92rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--blue-2); }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; text-align: center; }

/* ===== Boutons flottants ===== */
.fab-call, .back-top { position: fixed; z-index: 80; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s; }
.fab-call { right: 16px; bottom: 16px; background: var(--grad-btn); color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 99, 235, .8); }
.back-top { display: none; right: 24px; bottom: 24px; background: #fff; color: var(--heading); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.back-top:not(.show) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.back-top.show:hover { transform: translateY(-3px); background: var(--blue-2); color: #fff; }
.fab-call .ico, .back-top .ico { width: 22px; height: 22px; }

/* ===== Apparitions au défilement ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   Points de rupture
   ========================================================== */
@media (min-width: 560px) {
  .clients { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form { padding: 28px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 56px; }
  .logo-img { height: 44px; }
  .stats { grid-template-columns: repeat(4, 1fr); margin-top: 72px; }
  .stat { padding: 26px 16px; }
  .stat span { font-size: .88rem; }
  .bento-card { display: block; padding: 26px; }
  .bento-card .icon { margin-bottom: 18px; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .client { padding: 20px; }
  .filters { justify-content: center; }
  .branches, .groupe-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .branches { grid-template-columns: repeat(3, 1fr); }
  .flm { padding: 28px; }
  .flm-list { grid-template-columns: repeat(3, 1fr); }
  .org-row { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .org { gap: 28px; }
  .org-mid::before, .org-row::before { content: ""; position: absolute; top: -29px; left: 50%; width: 2px; height: 28px; background: linear-gradient(var(--cyan), var(--blue)); transform: scaleY(0); transform-origin: top; transition: transform .6s .3s var(--ease); }
  .org-row { position: relative; }
  .org.drawn .org-mid::before, .org.drawn .org-row::before { transform: scaleY(1); }
  .org.drawn .org-row::before { transition-delay: .7s; }
  .hq { grid-template-columns: 1fr 1fr; }
  .cta { padding: 24px 0 96px; }
  .cta-box { padding: 64px 40px; }
  .footer { padding: 64px 0 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .copyright { text-align: left; }
  .fab-call { display: none; }
  .back-top { display: grid; }
}

@media (min-width: 1024px) {
  .nav-toggle, .nav-backdrop, .nav-phone { display: none !important; }
  .nav-menu {
    position: static; flex-direction: row; align-items: center; gap: 2px; max-height: none; padding: 0;
    background: none; border: 0; transform: none; opacity: 1; visibility: visible; overflow: visible;
  }
  .nav-menu a { animation: none !important; }
  .nav-menu a:not(.btn) { position: relative; min-height: 40px; padding: 0 14px; font-size: .92rem; color: var(--muted); border-radius: 999px; }
  .nav-menu a:not(.btn):hover { color: var(--heading); background: rgba(15, 23, 42, .05); }
  .nav-menu a[aria-current="true"] { color: var(--blue-2); background: rgba(59, 130, 246, .08); }
  .nav-menu .btn { margin: 0 0 0 12px; }

  .hero { padding: calc(var(--header-h) + 88px) 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-visual { display: block; padding: 30px 20px 50px; }

  .bento { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .bento-card { padding: 30px; }
  .bento-wide { grid-row: span 1; }

  .process { grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
  .process::before { content: ""; position: absolute; top: 49px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: .5; transform: scaleX(0); transform-origin: left; transition: transform 1.6s .3s var(--ease); }
  .process.drawn::before { transform: scaleX(1); }
  .process li { padding: 28px 20px 24px; text-align: center; background: transparent; border-color: transparent; }
  .process li:hover { background: var(--surface); border-color: var(--line); }
  .process-num { position: relative; left: auto; top: auto; margin: 0 auto 18px; width: 44px; height: 44px; box-shadow: 0 0 0 6px var(--bg-2), 0 8px 20px -6px rgba(37, 99, 235, .6); }

  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .groupe-grid { gap: 16px; }
  .impl { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
}

/* ===== Mobile : allègement ===== */
@media (max-width: 767px) {
  .hero-bg span:nth-child(3) { display: none; }
  .hero-bg span { animation: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-points { display: none; }
  .pill { font-size: .8rem; gap: 8px; }
  .app-mock { display: none; }
  .tags.collapsed li:nth-child(n+7) { display: none; }
  .more-btn { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 6px; padding: 0 4px; background: none; border: 0; color: var(--cyan); font: 600 .9rem 'Poppins', sans-serif; cursor: pointer; }
  .bento-card::before, .branch::before, .client::before { display: none; }
  .reveal { transition-delay: 0ms !important; }
  .facts { grid-template-columns: 1fr; }
  .facts div { display: flex; justify-content: space-between; gap: 12px; }
}

/* ===== Préférences ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero-bg span, .float-card, .caret, .marquee-track, .hero h1 .gradient-text { animation: none !important; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 0 16px; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .reveal { opacity: 1; transform: none; }
  .timeline::after, .process::before, .bars i, .org-mid::before, .org-row::before { transform: none !important; }
}
@media (forced-colors: active) {
  .btn, .chip, .bento-card, .client, .panel { border: 1px solid CanvasText; }
  .gradient-text, .stat strong, .big-number strong { color: CanvasText; background: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .header, .fab-call, .back-top, .form, .filters, .hero-visual, .hero-bg, .marquee, .cta, .app-mock { display: none !important; }
  h1, h2, h3, h4 { color: #000; }
  .gradient-text, .stat strong, .big-number strong { color: #000; background: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Thème clair : barre de la fenêtre de code et ombres douces ===== */
.window .window-bar { background: rgba(255, 255, 255, .03); border-bottom-color: rgba(255, 255, 255, .08); }
.window .window-bar span { color: #94a3b8; }
.bento-card, .branch, .panel, .client, .process li, .hq-card, .org-node, .flm, .facts { box-shadow: var(--shadow); }
@media (hover: hover) {
  .client:hover, .hq-card:hover, .org-node:hover, .branch:hover { box-shadow: var(--shadow-lg); }
}
@media (min-width: 1024px) {
  .process li { box-shadow: none; }
  .process li:hover { box-shadow: var(--shadow); }
}

/* ==========================================================
   Style « vitrine épurée »
   Fond clair, bleu nuit uni, titres Montserrat, cartes arrondies
   ========================================================== */

/* Titres : bleu nuit ; les mots-clés en bleu de la marque */
.hero h1 { font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
.section-head h2, .split-text h2, .impl-intro h2, .faq-aside h2 { font-weight: 600; }
.gradient-text, .hero h1 .gradient-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--blue); animation: none; }
.stat strong, .big-number strong { background: none; color: var(--primary); -webkit-background-clip: border-box; background-clip: border-box; }

/* Surtitre : simple texte coloré, sans pastille */
.eyebrow { padding: 0; background: none; border: 0; color: var(--blue-2); letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--warm); }
.section-head .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--warm); }

/* Boutons : bleu nuit uni, coins arrondis */
.btn { border-radius: 12px; background: var(--primary); box-shadow: 0 10px 24px -12px rgba(19, 33, 92, .6); }
.btn::after { display: none; }
.btn:hover { background: var(--primary-2); box-shadow: 0 14px 30px -12px rgba(19, 33, 92, .7); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--primary); box-shadow: none; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef1fb; }
.link-arrow { color: var(--blue-2); }

/* En-tête blanc avec fine bordure */
.header, .header.scrolled { background: rgba(255, 255, 255, .92); border-bottom: 1px solid rgba(19, 33, 92, .06); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.scroll-progress { background: linear-gradient(90deg, var(--blue), var(--warm)); }
@media (min-width: 1024px) {
  .nav-menu a:not(.btn) { color: var(--text); font-weight: 500; }
  .nav-menu a:not(.btn):hover { color: var(--primary); background: rgba(19, 33, 92, .05); }
  .nav-menu a[aria-current="true"] { color: var(--primary); background: rgba(19, 33, 92, .07); }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .nav-menu a:not(.btn) { padding: 0 10px; font-size: .88rem; }
}

/* Accueil : fond crème avec halos de couleur flous */
.hero { background: #fbfcf8; }
.hero::before { opacity: .5; }
.hero-bg span:nth-child(1) { background: #b9cdf7; opacity: .55; }
.hero-bg span:nth-child(2) { background: #f6c3c7; opacity: .4; }
.hero-bg span:nth-child(3) { background: #cfe0ff; opacity: .45; }
.pill { background: #fff; border-color: var(--line); }
.pill-tag { background: var(--primary); }
.pill .ico { color: var(--blue-2); }
.hero-points .ico, .platforms .ico { color: var(--blue-2); }
.stats { box-shadow: none; }
.stat { background: #fff; }

/* Démarrage rapide (équivalent d'un moteur de recherche) */
.quick {
  display: grid; gap: 10px; padding: 12px; margin-bottom: 18px; max-width: 620px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 50px -24px rgba(19, 33, 92, .35);
}
.quick-field { display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.quick-field:focus-within { border-color: var(--blue); background: #fff; }
.quick-field label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quick-field select {
  width: 100%; min-height: 32px; padding: 0 24px 0 0; border: 0; background: transparent; cursor: pointer;
  font: 500 .95rem 'Poppins', sans-serif; color: var(--primary); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313215c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 18px;
}
.quick-field select:focus { outline: none; }
.quick .btn { min-height: 56px; }
.hero-link { margin-bottom: 4px; }
@media (min-width: 560px) {
  .quick { grid-template-columns: 1fr 1fr auto; align-items: stretch; }
}

/* Icônes en pastille (carré arrondi teinté) */
.icon, .client-ico, .contact-ico { border-radius: 14px; border: 0; background: rgba(47, 111, 228, .1); color: var(--blue-2); }
.tile { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: rgba(47, 111, 228, .12); color: var(--blue-2); }
.tile .ico { width: 22px; height: 22px; }
.tile-warm { background: rgba(217, 84, 93, .1); color: #b8323c; }
@media (hover: hover) {
  .bento-card:hover .icon, .branch:hover .icon { background: var(--primary); color: #fff; }
  .contact-list li:hover .contact-ico { background: var(--primary); }
}

/* Cartes : blanches, bordure fine, sans halo coloré */
.bento-card, .branch, .panel, .client, .process li, .hq-card, .org-node, .flm, .facts { box-shadow: none; }
.bento-card::before, .branch::before, .client::before { display: none; }
@media (hover: hover) {
  .bento-card:hover, .branch:hover, .client:hover, .hq-card:hover, .org-node:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -22px rgba(19, 33, 92, .35); }
}
.bento-wide, .branch-active, .org-top { background: #f2f5fd; border-color: #dce4f7; }
.branch-tag, .chip[aria-pressed="true"] { background: var(--primary); box-shadow: none; }
.process-num { background: var(--primary); box-shadow: none; border-radius: 50%; font-family: 'Montserrat', sans-serif; }
@media (min-width: 1024px) {
  .process-num { box-shadow: 0 0 0 6px var(--bg-2); }
  .process::before { background: rgba(19, 33, 92, .15); opacity: 1; }
}
.check-list .ico { background: rgba(47, 111, 228, .12); color: var(--blue-2); }
.timeline::after { background: var(--primary); }
.timeline li::before { border-color: var(--primary); }
.timeline li:hover::before { background: var(--primary); }
.org-node li::before { background: var(--warm); }
.count { background: rgba(19, 33, 92, .07); color: var(--primary); }
.panel-title > .ico, .hq-card > .ico { color: var(--blue-2); }
.callout { background: #f2f5fd; border-color: #dce4f7; }
.flm { background: #fff8f3; border-color: #f3dfd0; }
.tags li:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.field:focus-within label { color: var(--blue-2); }
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 33, 92, .1); }
.form { box-shadow: 0 24px 50px -28px rgba(19, 33, 92, .35); }

/* Bandeau « Pourquoi travailler avec nous » */
.trust-title { margin: 56px 0 18px; text-align: center; font-size: 1.2rem; }
.trust { display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.trust li:hover { border-color: var(--line-2); transform: translateY(-2px); }
.trust b { display: block; font: 600 .95rem 'Montserrat', sans-serif; color: var(--primary); }
.trust small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
@media (min-width: 560px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 14px; } .trust li { padding: 16px 18px; } .tile { width: 56px; height: 56px; border-radius: 16px; } }

/* FAQ en accordéon */
.faq { display: grid; gap: 32px; }
.faq-aside h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.faq-help { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px; border-radius: 18px; background: #f2f5fd; border: 1px solid #dce4f7; }
.faq-help b { display: block; font: 600 .98rem 'Montserrat', sans-serif; color: var(--primary); }
.faq-help p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq-list details[open] { border-color: var(--line-2); box-shadow: 0 18px 40px -26px rgba(19, 33, 92, .35); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px;
  font: 600 .98rem/1.4 'Montserrat', sans-serif; color: var(--primary); cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(19, 33, 92, .06); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq-list details[open] summary .ico { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-list summary:hover .ico { background: rgba(19, 33, 92, .12); }
.faq-list details[open] summary:hover .ico { background: var(--primary-2); }
.faq-list details p { padding: 0 18px 18px; color: var(--muted); font-size: .94rem; }
@media (min-width: 1024px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Appel à l'action : bleu nuit avec halos */
.cta { background: #fff; }
.cta-box { background: var(--primary); box-shadow: 0 30px 70px -30px rgba(19, 33, 92, .7); }
.cta-box::after { background: rgba(47, 111, 228, .45); filter: blur(70px); }
.cta-box::before { background-image: none; background: radial-gradient(circle at 0% 100%, rgba(217, 84, 93, .3), transparent 45%); -webkit-mask-image: none; mask-image: none; }

/* Pied de page : bleu nuit, arrondi en haut */
.footer {
  position: relative; overflow: hidden; margin-top: 24px; border-top: 0; border-radius: 40px 40px 0 0;
  background: var(--primary); color: rgba(255, 255, 255, .72); box-shadow: 0 -12px 40px -12px rgba(19, 33, 92, .45);
}
.footer::before { content: ""; position: absolute; width: 360px; height: 360px; top: -180px; right: -80px; border-radius: 50%; background: rgba(47, 111, 228, .35); filter: blur(80px); pointer-events: none; }
.footer > .container { position: relative; }
.footer-brand .footer-slogan { margin-top: 14px; font: 600 1.05rem 'Montserrat', sans-serif; color: #fff; }
.footer-brand .footer-slogan + p { margin-top: 6px; }
.footer-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-points li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; color: rgba(255, 255, 255, .88); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.footer-points .ico { width: 14px; height: 14px; color: #8fb3ff; }
.footer-title { color: #fff; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.copyright { border-top-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
.back-top.show:hover { background: var(--primary); }
.fab-call { background: var(--primary); box-shadow: 0 12px 30px -8px rgba(19, 33, 92, .8); }

@media print {
  .footer { background: #fff; color: #000; box-shadow: none; }
  .quick { display: none; }
}
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

/* ==========================================================
   Codes visuels mobiles inspirés de Weight'Aty
   (surtitres en pastille, boutons pilule, fonds lavande,
   listes regroupées dans une seule carte, carrousels)
   ========================================================== */

/* Surtitre en pastille à contour */
.eyebrow {
  padding: 6px 14px; border-radius: 999px; font-size: .7rem; letter-spacing: .16em; color: var(--primary);
  background: rgba(19, 33, 92, .05); border: 1px solid rgba(19, 33, 92, .18);
}
.eyebrow::before, .section-head .eyebrow::after { content: none; }

/* Boutons en pilule */
.btn, .quick .btn { border-radius: 999px; }

/* Fonds : alternance blanc / bleu-lavande doux */
.section-alt, .logos { background: #f1f2fb; }
.hero { background: linear-gradient(180deg, #eceefb 0%, #f6f6fd 55%, #ffffff 100%); }

/* Mot-clé souligné d'un trait corail (comme « confiance ») */
.hero h1 .gradient-text { text-decoration: underline; text-decoration-color: rgba(217, 84, 93, .55); text-decoration-thickness: 2px; text-underline-offset: 8px; }

@media (max-width: 767px) {
  /* En-tête : menu à trois traits sans cadre */
  .nav-toggle { background: none; border: 0; }
  .logo-img { height: 36px; }

  /* Titres : poids moyen, plus aérés */
  .hero h1 { font-size: 2.15rem; font-weight: 500; }
  .section-head h2, .split-text h2, .impl-intro h2, .faq-aside h2 { font-size: 1.75rem; font-weight: 500; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .pill { font-size: .78rem; }

  /* Démarrage rapide : une seule carte, champs séparés par des traits */
  .quick { gap: 0; padding: 6px 16px 16px; border-radius: 20px; }
  .quick-field { padding: 12px 0; border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--line); }
  .quick-field:focus-within { background: none; border-color: transparent; border-bottom-color: var(--blue); }
  .quick-field label { color: #b8323c; font-size: .7rem; letter-spacing: .1em; }
  .quick .btn { margin-top: 14px; min-height: 52px; }

  /* Statistiques : grille 2 × 2 plus compacte */
  .stat { padding: 14px 8px; }
  .stat strong { font-size: 1.5rem; }

  /* Services : carrousel horizontal à faire glisser */
  .bento {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 4px 16px 12px; -webkit-overflow-scrolling: touch;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento > * { flex: 0 0 78%; scroll-snap-align: start; }
  .bento-card { display: block; padding: 20px; }
  .bento-card .icon { margin-bottom: 14px; }
  .platforms li { padding: 6px 12px; font-size: .82rem; }

  /* Démarche : cartes avec grand numéro pâle et trait de liaison */
  .process { gap: 14px; }
  .process li { position: relative; padding: 18px 18px 18px 86px; border-radius: 18px; background: #fff; }
  .process-num {
    left: 0; top: 50%; width: 72px; height: auto; transform: translateY(-50%); border-radius: 0; background: none; box-shadow: none;
    font: 300 2.1rem 'Montserrat', sans-serif; color: rgba(19, 33, 92, .16); border-right: 1px solid var(--line);
  }
  .process li:hover .process-num { transform: translateY(-50%); }
  .process li:not(:last-child)::after { content: ""; position: absolute; left: 36px; bottom: -15px; width: 1px; height: 14px; background: var(--line-2); }

  /* Pourquoi nous : une seule carte blanche contenant la liste */
  .trust-title { margin-top: 40px; }
  .trust { gap: 0; padding: 6px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
  .trust li { padding: 12px 0; border: 0; border-radius: 0; background: none; }
  .trust li + li { border-top: 1px solid var(--line); }
  .trust li:hover { transform: none; }
  .tile { width: 44px; height: 44px; border-radius: 12px; }

  /* Rôle : liste plus serrée */
  .check-list li { padding: 7px 0; font-size: .92rem; }

  /* Réalisations : clients en carrousel horizontal */
  .clients {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 4px 16px 12px;
  }
  .clients::-webkit-scrollbar { display: none; }
  .clients > li { flex: 0 0 44%; scroll-snap-align: start; }

  /* Groupe : branches en liste compacte (icône à gauche) */
  .branch { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .branch .icon { grid-row: span 2; width: 44px; height: 44px; margin-bottom: 0; }
  .branch h3 { font-size: 1rem; margin-bottom: 2px; }
  .branch p { font-size: .88rem; }
  .branch-tag { top: 14px; right: 14px; }

  /* FAQ : titre à gauche, une seule carte avec séparateurs, aide en bleu nuit après la liste */
  .faq { gap: 20px; }
  .faq-aside { display: contents; }
  .faq-aside > :not(.faq-help) { order: 0; }
  .faq-list { order: 1; gap: 0; padding: 4px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
  .faq-list details, .faq-list details[open] { border: 0; border-radius: 0; background: none; box-shadow: none; }
  .faq-list details + details { border-top: 1px solid var(--line); }
  .faq-list summary { padding: 16px 0; font-weight: 500; }
  .faq-list details p { padding: 0 0 16px; }
  .faq-list summary .ico { width: 34px; height: 34px; border-radius: 10px; background: #eceefb; color: var(--primary); }
  .faq-list details[open] summary .ico { background: var(--primary); color: #fff; }
  .faq-help { order: 2; margin-top: 0; padding: 22px; border: 0; background: var(--primary); }
  .faq-help .tile { display: none; }
  .faq-help b { color: #fff; font-size: 1.1rem; font-weight: 500; }
  .faq-help p { color: rgba(255, 255, 255, .78); }
  .faq-help .btn { background: #fff; color: var(--primary); box-shadow: none; }

  /* Appel à l'action : clair et centré, bouton bleu nuit */
  .cta { padding: 8px 0 40px; }
  .cta-box { padding: 36px 8px; background: none; box-shadow: none; }
  .cta-box::before, .cta-box::after { content: none; }
  .cta-box h2 { color: var(--primary); font-weight: 500; font-size: 1.6rem; }
  .cta-box p { color: var(--muted); }
  .cta-box .btn-light { background: var(--primary); color: #fff; }
  .cta-box .btn-ghost { color: var(--primary); background: #fff; border-color: var(--line-2); }

  /* Contact : formulaire sans cadre lourd */
  .form { padding: 18px; border-radius: 20px; box-shadow: none; }

  /* Pied de page : dégradé bleu nuit vers violet, copyright centré */
  .footer { border-radius: 32px 32px 0 0; background: linear-gradient(160deg, #2a2a8a 0%, var(--primary) 45%, #0b1440 100%); }
  .footer-slogan { font-size: 1.3rem !important; font-weight: 500 !important; line-height: 1.3; }
  .copyright { text-align: center; }
}

/* ===== À propos : MIZARATECH au premier plan, le Groupe en appui ===== */
.about-p { margin-top: 12px; }
.group-panel > .text-muted { font-size: .92rem; margin-bottom: 16px; }
.mini-branches { display: grid; gap: 8px; margin-bottom: 22px; }
.mini-branches li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); }
.mini-branches .icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.mini-branches .icon .ico { width: 18px; height: 18px; }
.mini-branches b { display: block; font-size: .92rem; color: var(--heading); }
.mini-branches small { color: var(--muted); font-size: .8rem; }
.mini-branches .is-active { border-color: rgba(59, 130, 246, .35); background: linear-gradient(135deg, #e8f0ff, #e6f7fb); }
.mini-branches .branch-tag { position: static; margin-left: auto; white-space: nowrap; }
.group-panel .timeline { margin-bottom: 14px; }
@media (max-width: 420px) {
  .mini-branches .branch-tag { display: none; }
}
@media (max-width: 767px) {
  .bento, .clients { scroll-padding-inline: 16px; }
  .faq-aside > .eyebrow { justify-self: start; }
  .faq-list summary .ico { border-radius: 50%; }
}
