/* ==========================================================================
   Maroc Software Solutions — Design system
   Couleurs: Bleu professionnel + accent rouge/orange marocain
   ========================================================================== */

:root {
  --blue-950: #081530;
  --blue-900: #0b1f3f;
  --blue-800: #10294f;
  --blue-700: #163563;
  --blue-600: #1d4ed8;
  --blue-500: #2f6bff;
  --blue-400: #5b8dff;
  --accent: #e8513a;
  --accent-dark: #c93a24;
  --gold: #f0a13c;
  --ink: #16233b;
  --text: #4c5a75;
  --muted: #75839e;
  --line: #e5eaf2;
  --bg: #eef2f8;
  --bg-soft: #e3e9f2;
  --bg-deep: #d9e2ee;
  --white: #ffffff;

  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --shadow-sm: 0 2px 8px rgba(11, 31, 63, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 31, 63, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 63, 0.16);
  --radius: 16px;
  --radius-sm: 10px;

  --container: 1180px;
  --header-h: 130px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-soft { background: var(--bg-deep); }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; max-width: 640px; color: var(--text); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--accent); }

.gradient-text {
  background: linear-gradient(100deg, var(--blue-600) 10%, var(--blue-400) 50%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 22px rgba(29, 78, 216, 0.32); }
.btn-primary:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29, 78, 216, 0.4); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(232, 81, 58, 0.32); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: #cfd8e8; }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--blue-800); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.btn-white:hover { background: var(--blue-50, #eef4ff); color: var(--blue-700); transform: translateY(-2px); }

.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--blue-600);
}
.link-more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-more:hover { color: var(--accent); }
.link-more:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 31, 63, 0.08); border-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
/* Header : logo empilé (image + slogan « INNOVATION & EXCELLENCE » sous le logo) */
.site-header .logo { flex-direction: column; align-items: center; gap: 0; line-height: 1; }
.logo-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  margin-top: 4px;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.1; }
.logo-text span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 15px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.nav a:hover { color: var(--blue-600); background: var(--bg-soft); }
.nav a.active { color: var(--blue-600); background: #eaf1ff; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 12px 22px; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* --------------------------------------------------------------------------
   Mobile nav
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 40px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(11, 31, 63, 0.15); }
.mobile-nav a {
  padding: 15px 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.active { color: var(--blue-600); }
.mobile-nav .btn { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(47, 107, 255, 0.14), transparent 60%),
    radial-gradient(700px 420px at -5% 30%, rgba(232, 81, 58, 0.10), transparent 60%),
    linear-gradient(180deg, #f4f8ff, var(--bg) 70%);
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; text-align: left; justify-items: stretch; }
  .hero-grid > div:first-child { max-width: 800px; }
  .hero-sub { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-trust { justify-content: flex-start; }
}
.hero-visual img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-800);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; max-width: 520px; color: var(--text); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 0.9rem; }
.hero-trust .sep { width: 1px; height: 20px; background: var(--line); }
.hero-trust strong { color: var(--ink); font-family: var(--font-head); }

/* Hero visual */
/* perspective active l'effet 3D sur les couches internes du hero */
  .hero-visual { position: relative; perspective: 1200px; background: #eef2ff; border-radius: 20px; overflow: hidden; }
  .hero-visual img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .hero-dashboard {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
  }
  .hero-dashboard img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
  }
.hero-art {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(150deg, var(--blue-800), var(--blue-950));
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
/* halo lumineux qui suit la souris sur le tableau de bord 3D */
.hero-art .tilt-glare {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.28), transparent 46%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-art:hover .tilt-glare { opacity: 1; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(400px 260px at 90% 0%, rgba(240, 161, 60, 0.25), transparent 60%),
    radial-gradient(320px 240px at 0% 100%, rgba(47, 107, 255, 0.4), transparent 60%);
}
.hero-art-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; position: relative; }
.hero-art-top .dots { display: flex; gap: 6px; }
.hero-art-top .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.hero-art-top .dots i:nth-child(1) { background: #f87171; }
.hero-art-top .dots i:nth-child(2) { background: #fbbf24; }
.hero-art-top .dots i:nth-child(3) { background: #34d399; }
.hero-art-top .lbl { color: rgba(255,255,255,0.6); font-size: 0.8rem; font-family: var(--font-head); }

.hero-chart {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
}
.hero-chart .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-chart .row:last-child { margin-bottom: 0; }
.hero-chart .row i { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.12); flex: none; }
.hero-chart .bar { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,0.14); overflow: hidden; }
.hero-chart .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-400), var(--accent)); }
.hero-chart .pct { width: 40px; text-align: right; color: #fff; font-family: var(--font-head); font-size: 0.82rem; }

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  font-size: 0.88rem;
}
.hero-float .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.hero-float strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 0.95rem; }
.hero-float small { color: var(--muted); }

.hero-float.f1 { top: -22px; left: -18px; animation: floaty 5s ease-in-out infinite; }
.hero-float.f2 { bottom: -24px; right: -14px; animation: floaty 6s ease-in-out 1s infinite; }
.hero-float .ic-blue { background: #eaf1ff; color: var(--blue-600); }
.hero-float .ic-red { background: #fdeeec; color: var(--accent); }
.hero-float svg { width: 20px; height: 20px; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --------------------------------------------------------------------------
   Marquee / trust band
   -------------------------------------------------------------------------- */
.trust-band { border-block: 1px solid var(--line); background: #fff; padding: 26px 0; }
.trust-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; color: var(--muted); }
.trust-band .item { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: #8a97b3; }
.trust-band svg { width: 22px; height: 22px; opacity: 0.7; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d3def2; }

/* Service cards */
.service-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; height: 100%; position: relative; overflow: hidden; }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover::after { transform: scaleX(1); }
.service-ic {
  width: 58px; height: 58px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: #eaf1ff;
  color: var(--blue-600);
  margin-bottom: 6px;
}
.service-ic.red { background: #fdeeec; color: var(--accent); }
.service-ic.gold { background: #fdf3e3; color: #d9840f; }
.service-ic.green { background: #e7f6ee; color: #128a4d; }
.service-ic svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 4px; }
.service-card p { font-size: 0.95rem; margin: 0; flex: 1; }

/* Testimonials */
.tcard { padding: 30px; height: 100%; display: flex; flex-direction: column; gap: 18px; background: #fff; }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.tcard blockquote { margin: 0; font-size: 1rem; color: var(--text); flex: 1; }
.tcard blockquote::before { content: "\201C"; font-family: var(--font-head); font-size: 2.4rem; color: var(--blue-400); line-height: 0.6; display: block; margin-bottom: 10px; }
.tcard-foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.tcard-foot .avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 1rem;
}
.tcard-foot strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 0.95rem; }
.tcard-foot small { color: var(--muted); }

/* Blog cards */
.post-card { overflow: hidden; height: 100%; }
.post-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; }
.post-thumb svg { width: 40px; height: 40px; }
.post-body { padding: 22px 24px 26px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.post-meta .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.post-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--blue-600); }
.post-body p { font-size: 0.92rem; margin: 0 0 14px; }

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --------------------------------------------------------------------------
   About section
   -------------------------------------------------------------------------- */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
  .about-team-photo {
    margin-top: 32px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
  }
  .about-team-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

.value-card { text-align: center; padding: 30px 20px; height: 100%; }
.value-ic {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
}
.value-ic svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: 0.92rem; margin: 0; }

/* Team */
.team-card { text-align: center; padding: 30px 22px 26px; height: 100%; }
.team-photo {
  width: 92px; height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.6rem;
  position: relative;
}
.team-photo::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed var(--blue-400); opacity: 0.5; }
.team-card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.team-card .role { color: var(--accent); font-family: var(--font-head); font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; }
.team-card p { font-size: 0.88rem; margin: 0; }

.tp-b1 { background: linear-gradient(135deg, #2f6bff, #1d4ed8); }
.tp-b2 { background: linear-gradient(135deg, #e8513a, #c93a24); }
.tp-b3 { background: linear-gradient(135deg, #0f2b5b, #163563); }
.tp-b4 { background: linear-gradient(135deg, #f0a13c, #d9840f); }
.tp-b5 { background: linear-gradient(135deg, #128a4d, #0a5230); }

/* Key figures */
.stats-band { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); border-radius: 24px; padding: 48px 32px; color: #fff; margin-top: 64px; }
.stats-band .grid { gap: 24px; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: #fff;
  line-height: 1.1;
}
.stat .num em { font-style: normal; color: var(--gold); }
.stat .lbl { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

/* Advantage rows */
.adv-card { display: flex; gap: 18px; padding: 26px; height: 100%; background: #fff; }
.adv-ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; }
.adv-ic svg { width: 24px; height: 24px; }
.adv-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.adv-card p { font-size: 0.92rem; margin: 0; }

/* --------------------------------------------------------------------------
   Timeline (histoire)
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin-top: 8px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-600);
  box-shadow: 0 0 0 5px #eaf1ff;
}
.tl-item .year { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.tl-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.tl-item p { font-size: 0.94rem; margin: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(120deg, var(--blue-900), var(--blue-600) 70%, var(--accent) 130%);
  padding: 64px 56px;
  color: #fff;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1.5'%3E%3Cpath d='M0 60 L60 0 L120 60 L60 120 Z'/%3E%3Cpath d='M30 60 L60 30 L90 60 L60 90 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   Contact / forms
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

.contact-info-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.contact-info-head { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 30px 28px; }
.contact-info-head h3 { color: #fff; margin-bottom: 6px; }
.contact-info-head p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }
.contact-info-body { padding: 28px; background: #fff; display: grid; gap: 20px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-item .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #eaf1ff; color: var(--blue-600); display: grid; place-items: center; }
.ci-item .ic.red { background: #fdeeec; color: var(--accent); }
.ci-item svg { width: 20px; height: 20px; }
.ci-item strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 0.95rem; }
.ci-item span, .ci-item a { color: var(--text); font-size: 0.94rem; }
.ci-item a:hover { color: var(--blue-600); }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--blue-700);
  transition: all 0.2s;
}
.social-row a:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.form-field label span { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.82rem; color: var(--muted); grid-column: 1 / -1; margin: 0; }
.form-error { color: var(--accent); font-size: 0.82rem; display: none; }
.form-field.invalid .form-error { display: block; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: var(--accent); }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: #e7f6ee;
  border: 1px solid #bfe6cf;
  color: #128a4d;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background:
    radial-gradient(700px 340px at 90% -20%, rgba(47, 107, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #f4f8ff, var(--bg));
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 12px; }
.page-hero .breadcrumb { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.page-hero .breadcrumb a { color: var(--blue-600); }
.page-hero p.lead { max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Service detail pages
   -------------------------------------------------------------------------- */
.service-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center; text-align: left; padding: 0 0 70px; }
.service-hero-grid h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.service-hero-grid p.lead { font-size: 1.1rem; max-width: 520px; }
.service-hero-ic {
  width: 84px; height: 84px;
  border-radius: 22px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.35);
}
.service-hero-ic svg { width: 40px; height: 40px; }
.service-hero-ic.red { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 14px 30px rgba(232, 81, 58, 0.35); }
.service-hero-ic.gold { background: linear-gradient(135deg, var(--gold), #d9840f); box-shadow: 0 14px 30px rgba(240, 161, 60, 0.35); }
.service-hero-ic.green { background: linear-gradient(135deg, #16a34a, #0a5230); box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35); }

.workflow-item { display: flex; gap: 20px; padding: 26px; background: #fff; height: 100%; }
.wf-num {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: #eaf1ff; color: var(--blue-600);
  font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center;
}
.workflow-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.workflow-item p { font-size: 0.92rem; margin: 0; }

.feat-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.feat-check:last-child { border-bottom: 0; }
.feat-check svg { width: 22px; height: 22px; flex: none; color: #16a34a; margin-top: 2px; }
.feat-check strong { color: var(--ink); font-family: var(--font-head); font-size: 0.98rem; }
.feat-check p { margin: 2px 0 0; font-size: 0.92rem; }

.screenshot-card { padding: 0; overflow: hidden; }
.screenshot-card img { width: 100%; height: 280px; object-fit: cover; display: block; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   Portfolio filters
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.project-item { transition: opacity 0.3s, transform 0.3s; }
.project-item.hide { display: none; }

/* --------------------------------------------------------------------------
   Blog list
   -------------------------------------------------------------------------- */
.blog-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: #fff; }
.blog-feature .bf-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.blog-feature .bf-body h2 { font-size: 1.6rem; }
.blog-feature .bf-body p { color: var(--text); }
.blog-feature .bf-thumb { aspect-ratio: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--blue-950); color: rgba(255, 255, 255, 0.72); margin-top: 0; }
.footer-top { padding: 72px 0 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-top .logo-text { color: #fff; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer p { font-size: 0.92rem; }
.footer-links a { display: block; padding: 6px 0; color: rgba(255,255,255,0.72); font-size: 0.93rem; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: #fff;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }


.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.72); }
.footer-bottom a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-float { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-dashboard { margin-top: 24px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-feature { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 48px 24px; }
  .hero-float.f1 { left: -6px; }
  .hero-float.f2 { right: -6px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-band { padding: 36px 20px; }
  .btn-lg { padding: 15px 28px; }
  .page-hero { padding: calc(var(--header-h) + 44px) 0 44px; }
  .expert-stats { grid-template-columns: repeat(2, 1fr); }
  .screenshot-card img { height: 220px; }
}

/* Focus visibility */
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

/* ==========================================================================
   Animations & effets modernes
   ========================================================================== */

/* ---- Logo image ---- */
.logo { flex: none; }
.logo img {
  height: 98px;
  width: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.logo:hover img { transform: scale(1.04); filter: drop-shadow(0 4px 10px rgba(29, 78, 216, 0.25)); }
.site-footer .logo img { height: 44px; }
.site-footer .logo:hover img { filter: drop-shadow(0 4px 12px rgba(240, 161, 60, 0.35)); }

/* ---- Barre de progression de lecture ---- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--blue-600), var(--accent));
  border-radius: 0 99px 99px 0;
  box-shadow: 0 0 12px rgba(47, 107, 255, 0.55);
}

/* ---- Bouton retour en haut ---- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.4);
  opacity: 0;
  transform: translateY(18px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:hover { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Blobs animés dans le hero ---- */
.hero { isolation: isolate; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  width: 560px;
  height: 560px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(47, 107, 255, 0.22), transparent 62%);
  animation: blobDrift 16s ease-in-out infinite;
}
.hero::after {
  width: 480px;
  height: 480px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle at 60% 45%, rgba(232, 81, 58, 0.16), transparent 62%);
  animation: blobDrift 20s ease-in-out -7s infinite reverse;
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(30px, -24px) scale(0.94); }
}

/* ---- Animations d'entrée du hero ---- */
.hero-badge { animation: fadeUp 0.6s ease both; }
.hero h1 { animation: fadeUp 0.7s 0.12s ease both; }
.hero-sub { animation: fadeUp 0.7s 0.22s ease both; }
.hero-actions { animation: fadeUp 0.7s 0.32s ease both; }
.hero-trust { animation: fadeUp 0.7s 0.42s ease both; }
.hero-visual { animation: fadeInScale 0.9s 0.3s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: none; }
}

/* ---- Texte dégradé animé ---- */
.gradient-text {
  background-size: 220% auto;
  animation: gradientShift 7s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  to { background-position: 100% center; }
}

/* ---- Soulignement animé des liens de navigation ---- */
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-600), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

/* ---- Effet brillance sur les boutons ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover::after { left: 150%; }

/* ---- Icônes de service animées ---- */
.service-ic { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.service-card:hover .service-ic { transform: translateZ(34px) translateY(-5px) rotate(-8deg) scale(1.08); }

/* ---- Reflet balayé sur les visuels des articles ---- */
.post-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.28) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.post-card:hover .post-thumb::before { transform: translateX(130%); }

/* ---- Variantes directionnelles du reveal ---- */
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.92); }
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible { opacity: 1; transform: none; }

/* ---- Marquee technologies ---- */
.trust-band .container { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust-band .container.marquee {
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.trust-band:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
}
.marquee-group .item { flex: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Barre de défilement personnalisée ---- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-500), var(--accent));
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--blue-600), var(--accent-dark)); }

/* ---- Section expertise du chef de projet ---- */
.expert-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}
.expert-lead {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--blue-900), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.expert-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 200px at 90% 0%, rgba(240, 161, 60, 0.22), transparent 60%);
  pointer-events: none;
}
.expert-lead blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  position: relative;
}
.expert-lead blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3.2rem;
  line-height: 0.6;
  margin-bottom: 16px;
  color: var(--gold);
}
.expert-lead .who {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.expert-avatar {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(232, 81, 58, 0.4);
}
.expert-lead .who strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  display: block;
}
.expert-lead .who small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}
.expert-body h3 { font-size: 1.35rem; margin-bottom: 14px; }
.expert-body p { font-size: 1rem; }
.expert-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.expert-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.expert-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.expert-stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--blue-600);
  line-height: 1.1;
}
.expert-stat .num em { font-style: normal; color: var(--accent); }
.expert-stat span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Animations 3D & design moderne
   -------------------------------------------------------------------------- */
/* ---- Effet 3D tilt sur les cartes ---- */
/* Pas de transition ici : les cartes possèdent déjà leur propre animation
   (reveal / .card). La vitesse de la 3D est pilotée en inline par le JS
   uniquement pendant le survol. */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt .tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.5), transparent 48%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tilt:hover .tilt-glare { opacity: 1; }

/* ---- Lumière d'accent 3D sur les cartes claires ---- */
.service-card,
.tcard,
.value-card,
.adv-card,
.expert-stat {
  position: relative;
}
.service-card:hover,
.tcard:hover,
.adv-card:hover {
  box-shadow: 0 26px 60px rgba(47, 107, 255, 0.18), 0 12px 30px rgba(11, 31, 63, 0.10);
}

/* ---- Icônes empilées en relief (translateZ) dans les cartes 3D ---- */
.service-ic,
.value-ic,
.adv-ic,
.team-photo,
.expert-avatar {
  transform: translateZ(30px);
}
.service-card h3,
.tcard blockquote,
.adv-card h3,
.value-card h3 {
  transform: translateZ(22px);
}

/* ---- Bordure dégradée animée au survol des boutons primaires ---- */
.btn-primary,
.btn-accent {
  background-size: 200% auto;
  transition: background-position 0.45s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover,
.btn-accent:hover {
  background-position: right center;
}

/* ---- Profondeur des couches flottantes du hero ---- */
.hero-chart { will-change: transform; }
.hero-float { will-change: transform; }
/* pendant l'interaction 3D, on fige la flottaison pour laisser place au translateZ */
.hero-visual.hero-3d .hero-float { animation: none; transition: transform 0.1s ease-out; }

/* ---- Orbite lueur autour du visuel hero ---- */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  z-index: -1;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(47, 107, 255, 0.10) 70deg,
    transparent 150deg, rgba(232, 81, 58, 0.12) 220deg,
    transparent 300deg, rgba(47, 107, 255, 0.10) 360deg);
  filter: blur(16px);
  animation: orbitRotate 16s linear infinite;
}
@keyframes orbitRotate {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Section SERVICES (page d'accueil) — style moderne
   Scopé sur #services pour ne pas impacter services.html
   ========================================================================== */
#services {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(780px 460px at 12% -5%, rgba(47, 107, 255, 0.10), transparent 60%),
    radial-gradient(720px 440px at 92% 15%, rgba(232, 81, 58, 0.10), transparent 60%),
    radial-gradient(620px 400px at 50% 125%, rgba(240, 161, 60, 0.10), transparent 60%),
    linear-gradient(180deg, #fafcff, #eef2f8 62%, #e9eef7);
  overflow: hidden;
}
/* Trame de points lumineux */
#services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(47, 107, 255, 0.18) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(900px 620px at 50% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(900px 620px at 50% 0%, #000 15%, transparent 72%);
  opacity: 0.6;
}
/* Halo animé flottant */
#services::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: 26%;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle at 42% 42%, rgba(47, 107, 255, 0.15), transparent 62%);
  filter: blur(26px);
  animation: servicesFloat 15s ease-in-out infinite;
}
@keyframes servicesFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-34px, 26px) scale(1.1); }
}

/* ---- En-tête de section ---- */
#services .section-head.center { position: relative; margin-bottom: 56px; }
#services .eyebrow {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.10), rgba(232, 81, 58, 0.10));
  border: 1px solid rgba(47, 107, 255, 0.18);
  color: var(--blue-700);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.10);
  margin-bottom: 20px;
}
#services .eyebrow::before,
#services .eyebrow::after { display: none; }
#services .section-title {
  background: linear-gradient(105deg, var(--blue-800) 5%, var(--blue-600) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
#services .section-sub { color: var(--text); }

/* ---- Grille ---- */
#services .grid-3 { gap: 26px; }

/* ---- Cartes ---- */
#services .service-card {
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 22px;
  padding: 32px 30px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 4px rgba(11, 31, 63, 0.04),
    0 18px 40px rgba(11, 31, 63, 0.08);
}
/* Barre dégradée animée en haut de carte */
#services .service-card::after {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent) 55%, var(--blue-500));
  box-shadow: 0 4px 16px -2px rgba(232, 81, 58, 0.45);
}
#services .service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 107, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 60px rgba(47, 107, 255, 0.16),
    0 16px 34px rgba(11, 31, 63, 0.10);
}

/* ---- Icônes en pastille dégradée ---- */
#services .service-ic {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
}
#services .service-ic.red   { background: linear-gradient(135deg, #f0705a, #c93a24); box-shadow: 0 10px 22px rgba(232, 81, 58, 0.30), inset 0 1px 0 rgba(255,255,255,0.3); }
#services .service-ic.gold  { background: linear-gradient(135deg, #f5b95c, #d9840f); box-shadow: 0 10px 22px rgba(217, 132, 15, 0.30), inset 0 1px 0 rgba(255,255,255,0.3); }
#services .service-ic.green { background: linear-gradient(135deg, #3fce8e, #0f8a4e); box-shadow: 0 10px 22px rgba(18, 138, 77, 0.30), inset 0 1px 0 rgba(255,255,255,0.3); }

#services .service-card h3 { font-size: 1.2rem; }
#services .service-card p { color: var(--text); }

/* ---- Carte "Et votre idée ?" => CTA dégradé ---- */
#services .service-card:last-child {
  background: linear-gradient(150deg, var(--blue-900), var(--blue-700) 62%, var(--blue-600));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 60px rgba(11, 31, 63, 0.30);
}
#services .service-card:last-child::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px 230px at 90% 0%, rgba(240, 161, 60, 0.28), transparent 60%);
}
#services .service-card:last-child h3 { color: #fff; }
#services .service-card:last-child p { color: rgba(255, 255, 255, 0.8); }
#services .service-card:last-child .link-more { color: var(--gold); }
#services .service-card:last-child .link-more:hover { color: #ffd37a; }
#services .service-card:last-child .service-ic {
  background: #fff;
  color: var(--blue-700);
  border: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   Images stock (Unsplash)
   ========================================================================== */
/* ---- Vignettes des cartes services ---- */
.service-card .service-thumb {
  position: relative;
  display: block;
  height: 150px;
  margin: -6px -6px 6px;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
}
.service-card .service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-thumb img { transform: scale(1.07); }
.service-card .service-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(8, 21, 48, 0) 45%, rgba(8, 21, 48, 0.35) 100%);
  pointer-events: none;
}

/* ---- Fond du bandeau CTA (avec voile dégradé) ---- */
.cta-band {
  background:
    linear-gradient(120deg, rgba(11, 31, 63, 0.88), rgba(29, 78, 216, 0.72) 62%, rgba(232, 81, 58, 0.62)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=70") center/cover no-repeat;
}

/* ---- Fond subtil des page-hero (pages intérieures) ---- */
.page-hero {
  position: relative;
  background:
    radial-gradient(720px 360px at 88% -20%, rgba(47, 107, 255, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(244, 248, 255, 0.92), rgba(238, 242, 248, 0.94)),
    url("https://images.unsplash.com/photo-1522542550221-31fd19575a2d?auto=format&fit=crop&w=1600&q=70") center/cover no-repeat;
}

/* ==========================================================================
   Section À PROPOS (page d'accueil) — style moderne
   ========================================================================== */
#a-propos {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(760px 480px at 92% -5%, rgba(232, 81, 58, 0.09), transparent 60%),
    radial-gradient(780px 500px at 4% 22%, rgba(47, 107, 255, 0.11), transparent 60%),
    linear-gradient(180deg, #f8fbfe, #eef2f8 70%, #e9eef7);
  overflow: hidden;
}
/* Trame de points */
#a-propos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(47, 107, 255, 0.16) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(900px 600px at 30% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(900px 600px at 30% 0%, #000 8%, transparent 72%);
}
/* Halo flottant */
#a-propos::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: -150px; bottom: 12%;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle at 40% 40%, rgba(240, 161, 60, 0.14), transparent 62%);
  filter: blur(26px);
  animation: servicesFloat 16s ease-in-out infinite;
}

/* En-tête : badge pilule + titre dégradé */
#a-propos .eyebrow {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.10), rgba(232, 81, 58, 0.10));
  border: 1px solid rgba(47, 107, 255, 0.18);
  color: var(--blue-700);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.10);
  margin-bottom: 20px;
}
#a-propos .eyebrow::before,
#a-propos .eyebrow::after { display: none; }
#a-propos .section-title {
  background: linear-gradient(105deg, var(--blue-800), var(--blue-600) 50%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Colonne gauche : texte + liste d'atouts */
#a-propos .about-grid .reveal-left > p { color: var(--text); }
#a-propos .about-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
#a-propos .about-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
}
#a-propos .about-points li::before {
  content: "\2713";
  width: 24px; height: 24px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.30);
}

/* Statistiques */
#a-propos .stats-band {
  background: linear-gradient(120deg, #0d2a5c, #1d4ed8 70%, #2f6bff);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(11, 31, 63, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  padding: 44px 30px;
}
#a-propos .stats-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 200px at 90% 0%, rgba(240, 161, 60, 0.25), transparent 60%);
  pointer-events: none;
}
#a-propos .stat .lbl { color: rgba(255, 255, 255, 0.82); }

/* Cartes de valeurs */
#a-propos .value-card {
  background: #fff;
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(11, 31, 63, 0.04), 0 16px 34px rgba(11, 31, 63, 0.08);
}

/* Photo d'équipe encadrée avec badge */
#a-propos .about-team-photo {
  position: relative;
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 26px 54px rgba(11, 31, 63, 0.22);
}
#a-propos .about-team-photo img { border-radius: 16px; }
#a-propos .team-badge {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px rgba(11, 31, 63, 0.22);
}
#a-propos .team-badge::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* Section experts */
#a-propos .expert-body h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
#a-propos .expert-body p { font-size: 1.02rem; }
#a-propos .expert-stats { margin-top: 34px; }
#a-propos .expert-stat {
  border: 1px solid rgba(11, 31, 63, 0.07);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(11, 31, 63, 0.08);
}

/* ---- Responsive + reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero-sub, .hero-actions, .hero-trust, .hero-visual,
  .gradient-text { animation: none; }
  .hero::before, .hero::after { animation: none; }
  .hero-visual::after { animation: none; }
  #services::after { animation: none; }
  #a-propos::after { animation: none; }
  .marquee-track { animation: none; }
  .btn::after { display: none; }
  .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .service-card .service-thumb img { transition: none; }
  .service-card:hover .service-thumb img { transform: none; }
}

@media (max-width: 640px) {
  .logo img { height: 62px; }
  .logo-label { font-size: 0.6rem; letter-spacing: 0.18em; margin-top: 2px; }
  .site-footer .logo img { height: 38px; }
  .back-to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }
}
