body { margin: 0; }

:root {
  /* Applications John Maibwe (AJM) — feuille de style partagée par les pages FR (/) et EN (/en/).
   Accent vif violet #A049F7 → #806BFF · identité AJM bleu nuit #14253F + doré #D29B38 + crème #F5F0E6 */
  --navy: #14253F;
  --gold-ink: #946414; /* doré lisible sur fond clair (contraste 5,1:1) ; #D29B38 sur fond sombre */
  --navy-deep: #0C1729;
  --navy-soft: #1D3355;
  --white: #FFFFFF;
  --light: #F6F7FB;
  --cream: #F5F0E6;
  --slate: #55627A;
  --line: #E4E7F2;
  --line-dark: #26395C;
  --g1: #A049F7;
  --g2: #806BFF;
  --g-ink: #6A3BD8;
  --grad: linear-gradient(71deg, #A049F7 0%, #806BFF 73%);
  --grad-soft: linear-gradient(71deg, rgba(160,73,247,0.1) 0%, rgba(128,107,255,0.1) 73%);
  --mint: #F2EDFE;
  --ok: #0A7A50;
  --ok-soft: #E4F6EF;
  --amber: #B97E14;
  --amber-soft: #FBF1DC;
  --blue: #2F6FA7;
  --blue-soft: #E4EEF6;
  --font: "Montserrat", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --shadow-card: 0 10px 40px rgba(20, 37, 63, 0.08);
  --shadow-card-hover: 0 22px 60px rgba(20, 37, 63, 0.16);
--onDark: #FFFFFF;
}

/* ===== THÈME SOMBRE ===== */
body-root.dark {
  --white: #121F33;
  --light: #0C1826;
  --navy: #E9EEF5;
  --gold-ink: #D29B38;
  --navy-deep: #060D18;
  --navy-soft: #1A2C46;
  --slate: #9FB1C6;
  --line: #26394F;
  --g-ink: #B79CFF;
  --mint: #241C3A;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 22px 60px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body-root {
  display: block;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.18; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Lien d'évitement clavier (accessibilité) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--g1); color: var(--onDark); font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 2px solid var(--white); outline-offset: 2px; }
.section { padding: 96px 0; position: relative; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 42px); }
.section-head p { color: var(--slate); font-size: 17px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: center; align-self: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--g-ink);
  background: var(--mint);
  padding: 7px 16px; border-radius: 999px;
}
.section-head.left .kicker { justify-self: start; }
.on-dark .section-head h2 { color: var(--onDark); }
.on-dark .section-head p { color: #9FB4C7; }
.on-dark .kicker { background: rgba(160, 73, 247, 0.14); color: #B79CFF; }

/* ============ BOUTONS PILULES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 15.5px;
  padding: 15px 32px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-grad {
  background: var(--grad); color: var(--onDark); font-weight: 700;
  box-shadow: 0 10px 26px rgba(128, 107, 255, 0.45);
}
.btn-grad:hover, .btn-grad:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(128, 107, 255, 0.55); }
.btn-outline-light { border-color: rgba(255,255,255,0.35); color: var(--onDark); background: transparent; }
.btn-outline-light:hover, .btn-outline-light:focus-visible { border-color: #B79CFF; color: #B79CFF; transform: translateY(-3px); }
.btn-navy { background: var(--navy); color: var(--onDark); }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--navy-soft); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13,36,60,0.25); }

/* ============ HEADER ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(13, 36, 60, 0.1); border-bottom-color: var(--line); }
.dark .nav { background: rgba(11, 20, 34, 0.88); }
.dark .nav.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.nav-actions { display: flex; align-items: center; gap: 18px; }

/* Bouton bascule thème */
.theme-toggle {
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--g-ink); cursor: pointer;
  display: grid; place-items: center; position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--g2); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; position: absolute; transition: opacity 0.25s ease, transform 0.35s ease; }
.theme-toggle .ico-moon { opacity: 1; transform: rotate(0); }
.theme-toggle .ico-sun { opacity: 0; transform: rotate(-90deg); }
.dark .theme-toggle .ico-moon { opacity: 0; transform: rotate(90deg); }
.dark .theme-toggle .ico-sun { opacity: 1; transform: rotate(0); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: 0 0 auto; }
.logo-icon { width: 46px; height: 46px; flex: 0 0 auto; display: block; border-radius: 11px; }
.brand-text { display: grid; gap: 3px; line-height: 1.1; }
.brand-text small { font-size: 8.5px; font-weight: 700; letter-spacing: 0.32em; color: var(--slate); }
.brand-text b { font-weight: 800; font-size: 16.5px; letter-spacing: 0.09em; color: var(--navy); white-space: nowrap; }
.brand-text b em { font-style: normal; color: var(--gold-ink); }
.brand-dark .brand-text b em { color: #D29B38; }
.brand-dark { color: var(--cream); }
.brand-dark .brand-text b { color: var(--cream); }
.brand-dark .brand-text small { color: #8FA6BA; }

/* Sélecteur de langue FR / EN */
.lang-switch {
  height: 40px; min-width: 44px; padding: 0 12px; flex: 0 0 auto;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--g-ink);
  display: inline-grid; place-items: center;
  font-family: var(--font); font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.lang-switch:hover, .lang-switch:focus-visible { border-color: var(--g2); transform: translateY(-1px); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #3A5064; text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--g-ink); }
.dark .nav-links a { color: #C3D0DE; }
.dark .nav-links a:hover, .dark .nav-links a:focus-visible { color: #C9B6FF; }
.nav-cta {
  background: var(--grad); color: var(--onDark) !important;
  padding: 11px 24px; border-radius: 999px; font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(128, 107, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
}
.nav-cta:hover, .nav-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,163,107,0.4); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 24px 40px rgba(13,36,60,0.14);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--light); }
  .nav-cta { margin-top: 14px; text-align: center; border-bottom: none !important; }
}
@media (max-width: 600px) {
  .nav-inner { gap: 8px; padding: 0 16px; }
  .brand { gap: 10px; }
  .brand-text small { font-size: 7.5px; letter-spacing: 0.26em; }
  .brand-text b { font-size: 14.5px; letter-spacing: 0.06em; }
  .logo-icon { width: 40px; height: 40px; border-radius: 10px; }
  .nav-actions { gap: 6px; }
  .theme-toggle { width: 38px; height: 38px; }
  .lang-switch { height: 38px; min-width: 40px; padding: 0 10px; }
  .nav-toggle { padding: 9px 11px; }
}
@media (max-width: 370px) {
  .brand-text small { display: none; }
  .brand-text b { font-size: 13.5px; }
}

/* ============ HERO ============ */
.hero {
  background: radial-gradient(1100px 600px at 80% -10%, #20395F 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: var(--onDark);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to top, rgba(8,26,44,0.55), transparent);
  pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  pointer-events: none;
  animation: blobDrift 16s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: rgba(128, 107, 255, 0.45); top: -160px; right: -120px; }
.blob-2 { width: 380px; height: 380px; background: rgba(20, 201, 162, 0.22); bottom: -140px; left: -100px; animation-delay: -8s; }
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 40px) scale(1.15); }
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px; align-items: center;
  padding: 104px 24px 128px;
  position: relative; z-index: 2;
}

.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  display: grid; gap: 20px; align-content: start;
}
.hero-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
.hero-slide h1 em { font-style: normal; background: linear-gradient(71deg, #B79CFF 0%, #D9CBFF 73%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slide p { color: #A8BDD0; font-size: 17.5px; max-width: 54ch; }

.hero-static { display: grid; gap: 26px; position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; justify-self: start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #B79CFF; background: rgba(160, 73, 247, 0.12);
  border: 1px solid rgba(128, 107, 255, 0.4);
  padding: 8px 16px; border-radius: 999px;
}
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B79CFF; box-shadow: 0 0 12px #B79CFF; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 26px; height: 5px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.22); transition: background 0.3s ease, width 0.3s ease;
  padding: 0;
}
.hero-dot.active { background: var(--grad); width: 40px; }

/* Photo + cartes flottantes du héros */
.hero-visual { position: relative; min-height: 470px; }
.hero-photo {
  position: absolute; inset: 26px 0 26px 30px;
  width: calc(100% - 30px); height: calc(100% - 52px);
  object-fit: cover; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(4, 10, 20, 0.55);
}
.fcard {
  position: absolute;
  background: rgba(12, 23, 41, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(4, 14, 24, 0.45);
  animation: floatY 6s ease-in-out infinite;
  color: var(--onDark);
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.fcard-main {
  top: 4%; left: 0; right: 34%;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  animation-delay: 0s;
}
.fcard-main .fmark {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(245, 240, 230, 0.1);
  display: grid; place-items: center; color: var(--cream);
}
.fcard-main .fmark svg { width: 40px; height: 40px; display: block; }
.fcard-main b { display: block; font-size: 16px; }
.fcard-main span { color: #9FB4C7; font-size: 13px; }

.fcard-notif { top: 44%; right: 0; width: 62%; animation-delay: -2s; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.fcard-notif .fdot { width: 40px; height: 40px; border-radius: 50%; background: rgba(128, 107, 255, 0.22); display: grid; place-items: center; color: #B79CFF; }
.fcard-notif .fdot svg { width: 20px; height: 20px; }
.fcard-notif b { font-size: 14px; display: block; }
.fcard-notif span { font-size: 12.5px; color: #9FB4C7; }

.fcard-stat { bottom: 4%; left: 0; width: 56%; animation-delay: -4s; display: grid; gap: 10px; }
.fcard-stat b { font-size: 14px; }
.fbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.fbar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.fbar-2 i { transition-delay: 0.3s; }
.hero.loaded .fbar-1 i { width: 86%; }
.hero.loaded .fbar-2 i { width: 64%; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding: 72px 24px 96px; gap: 30px; }
  .hero-visual { display: none; }
}

/* ============ RÉVÉLATIONS AU DÉFILEMENT ============ */
[data-anim] { opacity: 0; transition: opacity 0.75s ease, transform 0.75s ease; transition-delay: var(--d, 0s); }
[data-anim="up"] { transform: translateY(38px); }
[data-anim="left"] { transform: translateX(-44px); }
[data-anim="right"] { transform: translateX(44px); }
[data-anim="zoom"] { transform: scale(0.88); }
[data-anim].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .blob, .fcard, .orbit { animation: none !important; }
  .hero-slide { transition: opacity 0.3s ease; transform: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; }
}

/* ============ 3 GRANDES SOLUTIONS ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 30px; display: grid; gap: 16px; align-content: start;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.pillar-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-ink); }
.pillar h3 { font-size: 21px; }
.pillar p { color: var(--slate); font-size: 15px; }
.pillar ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pillar li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--navy); font-weight: 500; }
.pillar li svg { width: 19px; height: 19px; color: var(--g-ink); flex: 0 0 auto; margin-top: 2px; }
.pillar-ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--grad-soft);
  display: grid; place-items: center; color: var(--g-ink);
}
.pillar-ico svg { width: 26px; height: 26px; }

/* ============ BANDE CTA ============ */
.cta-band {
  background: radial-gradient(900px 400px at 15% 0%, #20395F 0%, var(--navy) 55%);
  color: var(--onDark);
  padding: 84px 0; position: relative; overflow: hidden;
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 52px; align-items: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 14px; color: var(--onDark); }
.cta-band p { color: #9FB4C7; max-width: 60ch; margin: 0 0 30px; }
.cta-photo {
  width: 100%; height: auto; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(4, 10, 20, 0.45);
}
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; gap: 34px; } }

.about-photo {
  width: 100%; height: auto; border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  margin-top: 6px;
}

/* ============ COMPTEURS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; display: grid; gap: 4px; }
.stat b {
  font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat > span { color: var(--slate); font-size: 14.5px; font-weight: 500; }
.on-dark .stat > span { color: #9FB4C7; }

/* ============ SERVICES ============ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; display: grid; gap: 12px; align-content: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.card-ico {
  width: 46px; height: 46px; border-radius: 13px; color: var(--g-ink);
  background: var(--grad-soft);
  display: grid; place-items: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.card:hover .card-ico { background: var(--grad); color: var(--onDark); }
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 16.5px; }
.card p { color: var(--slate); font-size: 14px; }

/* ============ APPROCHE ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px; display: grid; gap: 12px; align-content: start;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: var(--onDark);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 20px rgba(128, 107, 255, 0.45);
}
.step h3 { font-size: 16.5px; }
.step p { color: var(--slate); font-size: 14px; }

/* ============ MARQUEE POUR QUI ============ */
.marquee { overflow: hidden; position: relative; padding: 6px 0; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.aud {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  background: var(--light); border: 1px solid var(--line); border-radius: 999px;
  padding: 15px 26px; font-weight: 600; font-size: 15.5px;
}
.aud::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex: 0 0 auto; }

/* ============ PRODUITS ============ */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1020px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .products { grid-template-columns: 1fr; } }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  display: grid; grid-template-rows: auto 1fr auto;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.product-top { padding: 24px 24px 0; display: grid; gap: 12px; }
/* Badge d'état au-dessus du titre : lisible même avec un libellé long. */
.product-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
.product h3 { font-size: 18px; }
.product-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line); }
.product-title { display: flex; gap: 12px; align-items: center; }
.product-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.product-body { padding: 12px 24px 18px; display: grid; gap: 12px; align-content: start; }
.product-body p { color: var(--slate); font-size: 14.5px; }
.product-aud { font-size: 13.5px; }
.product-note { font-size: 13px; color: var(--slate); font-style: italic; }
.product-aud b { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 2px; font-weight: 600; }
.product-foot { border-top: 1px solid var(--line); padding: 15px 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.product-link { font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--g-ink); transition: gap 0.2s ease; display: inline-flex; gap: 6px; }
.product-link:hover, .product-link:focus-visible { text-decoration: underline; }
.badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 13px; white-space: nowrap; border-radius: 999px;
}
.badge-ok   { background: var(--ok-soft); color: var(--ok); }
.badge-dev  { background: var(--amber-soft); color: var(--amber); }
.badge-soon { background: var(--blue-soft); color: var(--blue); }

/* ============ VEDETTES ============ */
.on-dark { background: radial-gradient(1000px 500px at 85% 0%, #20395F 0%, var(--navy) 50%, var(--navy-deep) 100%); color: var(--onDark); }
.featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.feat {
  border: 1px solid var(--line-dark); border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  padding: 32px 30px;
  display: grid; gap: 14px; align-content: start;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.feat:hover { transform: translateY(-6px); border-color: rgba(128, 107, 255, 0.55); background: rgba(255,255,255,0.06); }
.feat-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #B79CFF; }
.feat h3 { font-size: 21px; color: var(--onDark); }
.feat p { color: #9FB4C7; font-size: 15px; }
.feat-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.feat-points li { display: flex; gap: 10px; color: #C4D4E2; font-size: 14px; }
.feat-points li svg { width: 18px; height: 18px; color: #B79CFF; flex: 0 0 auto; margin-top: 2px; }
@media (min-width: 861px) { .feat-wide { grid-column: 1 / -1; } }

/* ============ POURQUOI ============ */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.why-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px; display: grid; gap: 10px; align-content: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.why-item h3 { font-size: 16.5px; display: flex; gap: 12px; align-items: center; }
.why-item h3::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad); flex: 0 0 auto;
  box-shadow: 0 0 0 5px var(--mint);
}
.why-item p { color: var(--slate); font-size: 14.5px; }

/* ============ RÉALISATIONS ============ */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1020px) { .works { grid-template-columns: 1fr; } }
.work {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; display: grid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.work-visual {
  aspect-ratio: 16 / 10;
  background: radial-gradient(420px 260px at 70% 18%, #20395F 0%, var(--navy) 72%);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.orbit {
  position: absolute; width: 136px; height: 136px; border-radius: 50%;
  border: 1.5px dashed rgba(160, 73, 247, 0.5);
  animation: spin 14s linear infinite;
}
.orbit::before {
  content: ""; position: absolute; top: -5px; left: 50%; margin-left: -4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--g2); box-shadow: 0 0 12px var(--g2);
}
.orbit-2 {
  width: 176px; height: 176px;
  border: 1px solid rgba(183, 156, 255, 0.25);
  animation-direction: reverse; animation-duration: 26s;
}
.orbit-2::before { width: 7px; height: 7px; background: rgba(183, 156, 255, 0.85); }
@keyframes spin { to { transform: rotate(360deg); } }
.app-badge {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(245, 240, 230, 0.1);
  position: relative; z-index: 2;
}
.app-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-badge-zoom img { transform: scale(1.16); }
.app-badge-dark { background: #0A0A0A; }
.work-visual-label {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  color: #B79CFF; font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
}
.work-body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.work h3 { font-size: 17px; }
.work p { color: var(--slate); font-size: 14.5px; }
.work-tech { display: flex; flex-wrap: wrap; gap: 7px; }
.work-tech span { font-size: 11.5px; font-weight: 600; color: var(--slate); background: var(--light); border-radius: 999px; padding: 4px 12px; }
.work-link { font-weight: 700; font-size: 14.5px; color: var(--g-ink); text-decoration: none; margin-top: 4px; }
.work-link:hover, .work-link:focus-visible { text-decoration: underline; }

/* ============ FAQ ============ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item.open { box-shadow: var(--shadow-card); border-color: rgba(160, 73, 247, 0.5); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--navy);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:focus-visible { outline: 2px solid var(--g1); outline-offset: -2px; border-radius: 16px; }
.faq-q .chev {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--mint); color: var(--g-ink);
  display: grid; place-items: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-item.open .chev { transform: rotate(180deg); background: var(--grad); color: var(--onDark); }
.chev svg { width: 15px; height: 15px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--slate); font-size: 15px; }

/* ============ TÉMOIGNAGES (prêt à activer) ============ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 26px; box-shadow: var(--shadow-card);
  display: grid; gap: 18px; align-content: start;
}
.testimonial blockquote { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--navy); }
.testimonial blockquote::before { content: ""; display: block; width: 34px; height: 3px; background: var(--grad); border-radius: 999px; margin-bottom: 14px; }
.testimonial figcaption { display: grid; gap: 2px; }
.testimonial figcaption b { font-size: 14.5px; color: var(--navy); }
.testimonial figcaption span { font-size: 13px; color: var(--slate); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form {
  display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; padding: 32px 30px; box-shadow: var(--shadow-card);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 15px; color: var(--navy);
  border: 1.5px solid var(--line); background: var(--light);
  padding: 13px 16px; width: 100%; border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--g-ink); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--slate); }
.form-status { font-size: 14px; font-weight: 600; color: #0A7A50; display: none; }
.form-status.show { display: block; }
.form-status.error { color: #C0392B; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.form-success {
  display: none; text-align: center; padding: 8px 4px 4px;
}
.form-success.show { display: grid; gap: 14px; justify-items: center; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad); color: var(--onDark);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(128, 107, 255, 0.45);
}
.success-icon svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 20px; }
.form-success p { color: var(--slate); font-size: 15px; max-width: 40ch; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 18px; }
.info-block {
  border: 1px solid var(--line); background: var(--white); border-radius: 18px;
  padding: 22px 24px; display: grid; gap: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.info-block b { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-ink); }
.info-soon { color: var(--navy); font-weight: 700; font-size: 16px; }
.info-block p { color: var(--slate); font-size: 13.5px; }
.info-link { color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.info-link:hover, .info-link:focus-visible { color: var(--g-ink); text-decoration: underline; }

/* Bouton WhatsApp flottant — affiché seulement si un numéro est configuré (assets/site.js) */
.wa-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #FFFFFF;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-fab:hover, .wa-fab:focus-visible { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55); }
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab[hidden], [data-wa][hidden] { display: none !important; }

/* ============ FOOTER ============ */
.footer-cta {
  background: var(--grad); color: var(--onDark); text-align: center;
  padding: 72px 24px; position: relative; overflow: hidden;
}
.footer-cta::before {
  content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.12); filter: blur(60px); top: -180px; right: -100px;
}
.footer-cta h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 24ch; margin: 0 auto 14px; position: relative; }
.footer-cta p { max-width: 56ch; margin: 0 auto 30px; opacity: 0.9; position: relative; }
.btn-white { background: var(--white); color: var(--g-ink); box-shadow: 0 12px 30px rgba(50, 20, 110, 0.3); position: relative; }
.btn-white:hover, .btn-white:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(50, 20, 110, 0.4); }

.footer { background: var(--navy-deep); color: #8FA6BA; padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: grid; gap: 12px; max-width: 340px; }
.footer-brand .brand { color: var(--onDark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #8FA6BA; text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: #B79CFF; }
.footer-legal {
  width: 100%; border-top: 1px solid var(--line-dark); margin-top: 34px; padding-top: 22px;
  font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* ============ ASSISTANT (CHATBOT) ============ */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 96;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: var(--onDark);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(128, 107, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-fab:hover, .chat-fab:focus-visible { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 42px rgba(128, 107, 255, 0.6); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .ico-close { display: none; }
.chat-open .chat-fab .ico-chat { display: none; }
.chat-open .chat-fab .ico-close { display: block; }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 96;
  width: min(350px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(20, 37, 63, 0.3);
  display: grid; grid-template-rows: auto 1fr auto auto;
  max-height: min(520px, calc(100vh - 130px));
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-head {
  background: var(--navy); color: var(--onDark);
  padding: 14px 16px; display: flex; align-items: center; gap: 11px;
}
.chat-head .logo-icon { width: 34px; height: 34px; border-radius: 9px; }
.chat-head b { font-size: 14px; display: block; }
.chat-head span { font-size: 11.5px; color: #9FB4C7; display: flex; align-items: center; gap: 6px; }
.chat-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2ECC71; }
.chat-close {
  margin-left: auto; background: none; border: none; color: #9FB4C7;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.chat-close:hover, .chat-close:focus-visible { color: var(--onDark); background: rgba(255,255,255,0.1); }

.chat-msgs {
  padding: 14px; display: grid; gap: 10px; align-content: start;
  overflow-y: auto; min-height: 180px; background: var(--light);
}
.msg { max-width: 85%; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; border-radius: 16px; }
.msg a { color: var(--g-ink); font-weight: 700; }
.msg-bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; justify-self: start; }
.msg-user { background: var(--grad); color: var(--onDark); border-bottom-right-radius: 5px; justify-self: end; }
.msg-typing { display: inline-flex; gap: 5px; padding: 13px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--g2); opacity: 0.4; animation: blink 1.1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: 0.18s; }
.msg-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 100% { opacity: 0.35; } 45% { opacity: 1; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; background: var(--light); border-top: 1px solid var(--line); }
.chat-quick button {
  border: 1px solid var(--line); background: var(--white); color: var(--g-ink);
  font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chat-quick button:hover, .chat-quick button:focus-visible { border-color: var(--g2); background: var(--mint); }

.chat-input { display: flex; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-input input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px;
  font-family: var(--font); font-size: 13.5px; padding: 10px 16px; color: var(--navy);
  background: var(--light);
}
.chat-input input:focus-visible { outline: none; border-color: var(--g2); background: var(--white); }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: var(--onDark); display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.chat-send:hover, .chat-send:focus-visible { transform: scale(1.08); }
.chat-send svg { width: 17px; height: 17px; }

@media (prefers-reduced-motion: reduce) {
  .chat-panel { transition: opacity 0.2s ease; transform: none; }
  .msg-typing i { animation: none; opacity: 0.7; }
}

/* ============ RETOUR EN HAUT ============ */
.to-top {
  position: fixed; bottom: 96px; right: 30px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: var(--onDark);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(160, 73, 247, 0.5);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
