/* ============================================================
   MQNovaTool — Site vitrine
   Charte extraite des visuels LinkedIn (_style.css des posters)
   Palette :
     --bg           #04061a   fond de base
     --accent       #2dd4ee   cyan signature
     --accent2      #9d7bff   violet
     --violet-deep  #6246ea
     --green        #3ddc84   statut
     --text-lead    #c9d2ff
     --text-dim     #aab3e8
   ============================================================ */

:root {
  --bg: #04061a;
  --bg-grad: linear-gradient(135deg, #070b2e 0%, #0a0f3d 45%, #120a3a 100%);
  --panel: rgba(8, 12, 42, 0.85);
  --panel-border: rgba(45, 212, 238, 0.4);
  --panel-border-soft: rgba(45, 212, 238, 0.22);
  --accent: #2dd4ee;
  --accent2: #9d7bff;
  --violet-deep: #6246ea;
  --green: #3ddc84;
  --white: #ffffff;
  --text-lead: #c9d2ff;
  --text-dim: #aab3e8;
  --radius: 22px;
  --radius-sm: 14px;
  --glow-cyan: 0 0 18px rgba(45, 212, 238, 0.55);
  --font: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img, svg { max-width: 100%; }

a { color: var(--accent); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- décor global : grille cyan ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--bg-grad);
}
.grid-bg::before {
  content: ""; position: absolute; inset: 0; opacity: 0.16;
  background-image:
    linear-gradient(rgba(45, 212, 238, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 238, 0.25) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(900px 600px at 70% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 600px at 70% 30%, #000 0%, transparent 78%);
}
.grid-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 600px at 85% 10%, rgba(80, 60, 220, 0.28), transparent 60%),
    radial-gradient(900px 700px at 8% 92%, rgba(45, 212, 238, 0.12), transparent 60%);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 8, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 212, 238, 0.25);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.5px; }
.brand-name .mq { color: var(--white); }
.brand-name .nova { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-lead); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--accent); background: rgba(45, 212, 238, 0.08); }
.nav-linkedin { display: inline-flex; margin-left: 6px; border-radius: 8px; transition: transform .2s; }
.nav-linkedin:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--accent); margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden;
}
.hero-layer { position: absolute; inset: -12% 0; pointer-events: none; will-change: transform; }
.hero-layer svg { width: 100%; height: 100%; }

.hero-content { position: relative; z-index: 3; max-width: 780px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(61, 220, 132, 0.12); border: 1px solid rgba(61, 220, 132, 0.5);
  color: #7df0b0; border-radius: 30px; padding: 7px 20px;
  font-size: 0.9rem; font-weight: 700; margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .accent2 { color: var(--accent2); }

.hero-underline {
  width: 120px; height: 6px; background: var(--accent); border-radius: 3px;
  margin: 22px 0; box-shadow: 0 0 18px rgba(45, 212, 238, 0.8);
}

.hero-lead { font-size: 1.15rem; color: var(--text-lead); max-width: 640px; margin-bottom: 34px; }
.hero-lead b { color: var(--white); }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 40px; text-decoration: none;
  font-weight: 700; font-size: 1rem; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, rgba(98, 70, 234, 0.85), rgba(45, 212, 238, 0.55));
  border: 1px solid rgba(45, 212, 238, 0.6);
  box-shadow: 0 0 24px rgba(45, 212, 238, 0.25);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(45, 212, 238, 0.45); }
.btn-ghost {
  color: var(--text-lead); background: rgba(8, 12, 42, 0.6);
  border: 1px solid var(--panel-border);
}
.btn-ghost:hover { color: var(--accent); }

.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .num {
  font-size: 1.9rem; font-weight: 800; color: var(--accent);
  text-shadow: 0 0 16px rgba(45, 212, 238, 0.5);
}
.hero-stat .lbl { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- sections génériques ---------- */
section { position: relative; padding: 96px 0; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-eyebrow {
  color: var(--accent); font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.02rem; }

/* décor parallax des sections (positions par section — remplace les styles inline, requis par la CSP stricte) */
.deco { position: absolute; pointer-events: none; opacity: 0.5; will-change: transform; z-index: 0; }
.deco-why      { top: 8%;    right: -60px; width: 220px; }
.deco-editions { bottom: 4%; left: -70px;  width: 240px; }
.deco-features { top: 12%;   left: -50px;  width: 190px; }
.deco-brokers  { top: 6%;    right: -40px; width: 200px; }
.deco-security { top: 10%;   right: -60px; width: 210px; }
.deco-contact  { bottom: 8%; left: -60px;  width: 200px; }
section > .wrap { position: relative; z-index: 1; }

.section-head-center { text-align: center; max-width: none; }
.badge-wall-integrations { max-width: 860px; }
.brand-name-footer { font-size: 1.05rem; }

/* ---------- sélecteur de langue ---------- */
.lang-switch {
  display: inline-flex; margin-left: 8px;
  border: 1px solid var(--panel-border-soft); border-radius: 10px; overflow: hidden;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 0.82rem;
  color: var(--text-dim); padding: 7px 11px; transition: color .2s, background .2s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--panel-border-soft); }
.lang-btn:hover { color: var(--accent); }
.lang-btn[aria-pressed="true"] { color: var(--bg); background: var(--accent); }

/* ---------- cartes bénéfices ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px); border-color: var(--panel-border);
  box-shadow: 0 0 40px rgba(45, 212, 238, 0.14), 0 24px 40px rgba(0, 0, 0, 0.45);
}
.card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(45, 212, 238, 0.1); border: 1px solid rgba(45, 212, 238, 0.45);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(45, 212, 238, 0.25); margin-bottom: 18px;
}
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-dim); }
.card.violet .ico { background: rgba(157, 123, 255, 0.1); border-color: rgba(157, 123, 255, 0.45); box-shadow: 0 0 16px rgba(157, 123, 255, 0.25); }
.card.green .ico { background: rgba(61, 220, 132, 0.1); border-color: rgba(61, 220, 132, 0.45); box-shadow: 0 0 16px rgba(61, 220, 132, 0.22); }

/* ---------- éditions ---------- */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 44px; }
.edition {
  background: var(--panel); border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden;
}
.edition::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.edition.desktop::before { background: linear-gradient(90deg, var(--accent), transparent); }
.edition.web::before { background: linear-gradient(90deg, var(--accent2), transparent); }
.edition-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.edition.desktop .edition-tag { color: var(--accent); background: rgba(45, 212, 238, 0.1); border: 1px solid rgba(45, 212, 238, 0.4); }
.edition.web .edition-tag { color: var(--accent2); background: rgba(157, 123, 255, 0.1); border: 1px solid rgba(157, 123, 255, 0.4); }
.edition h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.edition .sub { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 20px; }
.edition ul { list-style: none; }
.edition li {
  padding: 9px 0 9px 30px; position: relative;
  color: var(--text-lead); font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.edition li:last-child { border-bottom: none; }
.edition li::before {
  content: "→"; position: absolute; left: 2px; font-weight: 800;
}
.edition.desktop li::before { color: var(--accent); }
.edition.web li::before { color: var(--accent2); }

/* tableau comparatif */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--panel-border-soft); }
.compare { width: 100%; border-collapse: collapse; background: var(--panel); min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 0.94rem; }
.compare thead th {
  background: rgba(45, 212, 238, 0.07); font-weight: 800;
  border-bottom: 1px solid var(--panel-border-soft);
}
.compare thead th:nth-child(2) { color: var(--accent); }
.compare thead th:nth-child(3) { color: var(--accent2); }
.compare tbody th { font-weight: 700; color: var(--text-lead); width: 30%; }
.compare tbody td { color: var(--text-dim); }
.compare tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.compare tbody tr:last-child { border-bottom: none; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--red, #d64545); font-weight: 700; }

/* ---------- fonctionnalités ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- badges brokers / intégrations ---------- */
.badge-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--panel-border-soft);
  border-radius: var(--radius-sm); padding: 22px 12px 18px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.badge:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--panel-border);
  box-shadow: 0 0 34px rgba(45, 212, 238, 0.18), 0 18px 34px rgba(0, 0, 0, 0.4);
}
.badge svg { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.badge .badge-name { font-size: 0.88rem; font-weight: 700; color: var(--text-lead); text-align: center; }

/* ---------- sécurité ---------- */
.security-panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 44px 40px;
  box-shadow: 0 0 60px rgba(45, 212, 238, 0.12), 0 30px 60px rgba(0, 0, 0, 0.5);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
}
.security-list { list-style: none; margin-top: 24px; }
.security-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 12px 0;
}
.security-list .fi {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(45, 212, 238, 0.4);
}
.security-list h4 { font-size: 1rem; font-weight: 700; }
.security-list p { font-size: 0.9rem; color: var(--text-dim); }
.security-visual { display: flex; justify-content: center; }
.security-visual svg { width: 100%; max-width: 360px; height: auto; }

/* ---------- contact ---------- */
.contact-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 48px 40px;
  box-shadow: 0 0 60px rgba(98, 70, 234, 0.18), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.avatar {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet-deep), var(--accent));
  padding: 3px; box-shadow: var(--glow-cyan);
}
.avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: #0a0f3d; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: 1px;
}
.contact-card h3 { font-size: 1.4rem; font-weight: 800; }
.contact-card .role { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; }
.contact-card .invite { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 28px; }

.btn-linkedin {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0A66C2; color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 12px; font-weight: 700; font-size: 1.02rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 30px rgba(10, 102, 194, 0.35);
}
.btn-linkedin:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(10, 102, 194, 0.5); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  overflow: hidden;
  border-top: 1px solid rgba(45, 212, 238, 0.35);
  background: rgba(5, 8, 32, 0.65); padding: 34px 0;
}
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-note { color: var(--text-dim); font-size: 0.88rem; }
.footer-note .onprem { color: var(--green); font-weight: 700; }
.footer-right { display: flex; align-items: center; gap: 14px; }
.footer-right a { display: inline-flex; border-radius: 8px; transition: transform .2s; }
.footer-right a:hover { transform: translateY(-2px); }

/* ---------- animations d'apparition ---------- */
.reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* flux animé (lignes de connexion) */
.flow-line { stroke-dasharray: 6 10; animation: flowdash 2.6s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -64; } }
.pulse-node { animation: pulse 2.8s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- accessibilité : réduction de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-line, .pulse-node { animation: none; }
  .hero-layer, .deco { transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .security-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  section { padding: 68px 0; }
  .hero { padding-top: 108px; }
  .editions { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }

  .site-footer .wrap {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 22px;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 8, 32, 0.97); border-bottom: 1px solid var(--panel-border-soft);
    padding: 10px 22px 18px;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 8px; font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
