:root {
  --bg: #eef5ff;
  --navy: #0f172a;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --green: #16a34a;
  --text: #172033;
  --muted: #64748b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(124, 58, 237, 0.14), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, var(--bg) 46%, #f4f8ff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(120deg, rgba(37, 99, 235, 0.045) 0 1px, transparent 1px 32px),
    linear-gradient(60deg, rgba(14, 165, 233, 0.038) 0 1px, transparent 1px 34px);
  opacity: 0.85;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.6rem;
  color: var(--navy);
}

.brand-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.98),
    0 0 14px rgba(14, 165, 233, 0.20),
    0 8px 18px rgba(37, 99, 235, 0.14);
  clip-path: circle(50% at 50% 50%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 99%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 0 99%, transparent 100%);
  contain: paint;
  isolation: isolate;
}

.brand-logo {
  width: 112%;
  height: 112%;
  object-fit: cover;
  display: block;
  transform: translateY(-2px) scale(1.01);
  border-radius: 0;
  clip-path: none;
  max-width: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #334155;
  font-weight: 800;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white !important;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
  border-color: transparent;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
}

.hero {
  padding: 74px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-weight: 900;
  font-size: 0.92rem;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero p {
  margin: 22px 0 0;
  color: #475569;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 800;
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-window {
  position: relative;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  font-weight: 900;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.62);
}

.mock-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: 1.16rem;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.preview-box {
  padding: 16px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.line {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  margin-bottom: 10px;
}

.line.big {
  width: 60%;
  height: 12px;
  background: #bfdbfe;
}

.line.mid {
  width: 80%;
}

.line.small {
  width: 44%;
}

.section {
  padding: 54px 0;
}

.section-title {
  max-width: 810px;
  margin-bottom: 26px;
}

.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: white;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: start;
}

.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  color: #334155;
  line-height: 1.55;
}

.check {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
  font-weight: 900;
}

.keyword-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.keyword-links a {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.10);
  color: #1e3a8a;
  font-weight: 900;
}

.keyword-links a:hover {
  background: rgba(37, 99, 235, 0.12);
}

.faq {
  display: grid;
  gap: 14px;
}

details {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
  color: var(--navy);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.cta {
  margin: 54px 0 70px;
  padding: 34px;
  border-radius: 32px;
  color: white;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #0f172a, #1d4ed8 62%, #0891b2);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.22);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.cta p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.cta .btn {
  background: white;
  color: #1d4ed8;
  border-color: transparent;
}

footer {
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 800;
  color: #334155;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .keyword-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .nav-links a {
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .brand-logo-box {
    width: 50px;
    height: 50px;
  }

  .hero-card,
  .panel,
  .card,
  .cta {
    border-radius: 22px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta .btn {
    width: 100%;
  }
}

/* =========================================================
   MENU SEO GESTIO — header propre + dégradé bouton corrigé
   ========================================================= */

/* Sécurité : pas de scroll horizontal global */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Suppression du flash bleu natif au toucher sur mobile */
a,
button,
.btn,
.nav-links a,
.brand,
.brand-logo-box {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.nav-links a:focus:not(:focus-visible),
.brand:focus:not(:focus-visible) {
  outline: none;
}

/* Bandeau haut blanc pur */
.topbar,
.topbar .container,
.topbar .nav,
.nav,
.nav-links {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Suppression totale des voiles/fondus invisibles */
.topbar::before,
.topbar::after,
.topbar .container::before,
.topbar .container::after,
.topbar .nav::before,
.topbar .nav::after,
.nav::before,
.nav::after,
.nav-links::before {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Aucun fond ou halo rectangulaire sur le bloc marque */
.topbar .brand {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Logo découpé au parent : halo rond, pas de carré */
.topbar .brand-logo-box {
  width: 58px;
  height: 58px;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #ffffff !important;
  background-image: none !important;
  clip-path: circle(50% at 50% 50%) !important;
  -webkit-mask-image: radial-gradient(circle at center, #000 0 99%, transparent 100%) !important;
  mask-image: radial-gradient(circle at center, #000 0 99%, transparent 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.98),
    0 0 14px rgba(14, 165, 233, 0.20),
    0 8px 18px rgba(37, 99, 235, 0.14) !important;
  contain: paint;
  isolation: isolate;
}

.topbar .brand-logo-box::before,
.topbar .brand-logo-box::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

.topbar .brand-logo {
  width: 112% !important;
  height: 112% !important;
  object-fit: cover !important;
  display: block !important;
  transform: translateY(-2px) scale(1.01) !important;
  border-radius: 0 !important;
  clip-path: none !important;
  max-width: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/*
  Correction du bouton bleu :
  l'ancien dégradé diagonal pouvait créer un mini trait de couleur opposée
  dans les arrondis. On force un dégradé horizontal net, sans halo ni bordure.
*/
.btn-primary,
.nav-links .btn-primary,
.hero-actions .btn-primary,
.cta .btn {
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%) !important;
  background-color: #2563eb !important;
  background-image: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Pas de changement de couleur bizarre au clic */
.btn-primary:active,
.nav-links .btn-primary:active,
.hero-actions .btn-primary:active,
.cta .btn:active {
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%) !important;
  background-color: #2563eb !important;
  background-image: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%) !important;
}

/* Le logo Gestio garde le lien vers l'accueil, donc on retire Accueil du menu */
.nav-links a[href="/"] {
  display: none !important;
}

/* Bandeau compact desktop */
.nav {
  min-height: 64px;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 8px 11px;
  font-size: 0.88rem;
}

.nav-links .btn-primary {
  min-height: 42px;
  padding: 0 16px;
}

/* Mobile : bouton connexion en haut à droite + onglets scrollables */
@media (max-width: 700px) {
  .topbar,
  .topbar .container,
  .topbar .nav,
  .nav {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .nav {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 10px 0 9px;
    overflow: hidden;
  }

  .brand {
    grid-column: 1;
    min-width: 0;
    max-width: calc(100% - 132px);
    font-size: 1.34rem;
    gap: 10px;
  }

  .nav-links .btn-primary {
    position: absolute;
    top: 11px;
    right: 0;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    z-index: 5;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 3px 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links::after {
    content: "";
    flex: 0 0 22px;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav-links a:not(.btn-primary) {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-size: 0.80rem;
    font-weight: 850;
    color: #334155;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: none !important;
    filter: none !important;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .nav-links a:not(.btn-primary):hover,
  .nav-links a:not(.btn-primary).active,
  .nav-links a:not(.btn-primary):active {
    color: #1d4ed8;
    background: #f7faff !important;
    background-color: #f7faff !important;
    background-image: none !important;
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: none !important;
    filter: none !important;
  }

  .hero {
    padding-top: 32px;
  }
}

@media (max-width: 420px) {
  .nav {
    padding: 9px 0 8px;
  }

  .brand {
    font-size: 1.28rem;
    max-width: calc(100% - 124px);
  }

  .nav-links {
    gap: 7px;
  }

  .nav-links a:not(.btn-primary) {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.76rem;
  }

  .nav-links .btn-primary {
    top: 10px;
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.80rem;
  }

  .hero {
    padding-top: 30px;
  }
}

