/**
 * AST COMPTA — SaaS landing (standalone). Do not mix with legacy style.css.
 */

:root {
  --sl-blue-a: #3d53dc;
  /* Bleu plus « azure » (moins de composante rouge) pour éviter un rendu violacé sur écran / flous */
  --sl-blue-b: #3b7ded;
  --sl-icon-bg: #f4f7ff;
  --sl-accent: #f8d620;
  --sl-band: #f9f9f9;
  --sl-surface: #ffffff;
  --sl-text: #0a0f1a;
  --sl-muted: #5a6578;
  --sl-white: #ffffff;
  --sl-card-border: #e5e7eb;
  --sl-card-hover-shadow: 0 10px 30px rgba(61, 83, 220, 0.12);
  /* Premium SaaS rounding — single source of truth */
  --sl-radius-sm: 8px;
  --sl-radius: 14px;
  --sl-radius-lg: 24px;
  --sl-radius-pill: 9999px;
  --sl-shadow: 0 4px 12px rgba(10, 15, 26, 0.06), 0 18px 44px rgba(58, 83, 227, 0.07);
  --sl-shadow-soft: 0 2px 8px rgba(10, 15, 26, 0.05), 0 10px 28px rgba(10, 15, 26, 0.04);
  --sl-shadow-hover: 0 10px 28px rgba(10, 15, 26, 0.09), 0 24px 52px rgba(58, 83, 227, 0.12);
  --sl-ease-out: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sl-max: 1120px;
  --sl-nav-h: 72px;
  --sl-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ast-saas {
  margin: 0;
  font-family: var(--sl-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--sl-text);
  background: var(--sl-surface);
  -webkit-font-smoothing: antialiased;
}

h3 {
  font-size: 20px !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.ast-saas .skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--sl-white);
  color: var(--sl-text);
  z-index: 1000;
}

.ast-saas .skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout ---------- */
.sl-container {
  width: min(100% - 40px, var(--sl-max));
  margin-inline: auto;
}

.sl-section {
  padding: clamp(5.25rem, 11vw, 9rem) 0;
}

.sl-section--tight {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.sl-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sl-blue-a);
  margin: 0 0 0.75rem;
}

.sl-hero .sl-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.sl-h2 {
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 1.15rem;
  text-align: center;
  letter-spacing: 0.015em;
  color: var(--sl-text);
}

/* Titres de section intermédiaires (grille services, portail, témoignages) */
.sl-h2.sl-h2--compact {
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
  line-height: 1.2;
}

.sl-h2.sl-h2--compact + .sl-process-grid,
.sl-h2.sl-h2--compact + .sl-faq {
  margin-top: 2.25rem;
}

.sl-h2 + .sl-lead {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.sl-lead {
  color: var(--sl-muted);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.65;
  font-weight: 500;
}

.sl-section--white {
  background: var(--sl-surface);
}

.sl-section--band {
  background: var(--sl-band);
}

/* Deux sections « blanches » à la suite : évite de cumuler deux grands paddings (effet trou d’air entre deux sl-split). */
.sl-section--white:has(+ .sl-section--white) {
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

.sl-section--white + .sl-section--white {
  padding-top: clamp(2rem, 5vw, 3.25rem);
}

/* Bloc portail client (index) : la section précédente est blanche mais sans classe jumelle — évite le double grand padding */
.sl-section--white:has(+ #espace-client) {
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

#espace-client.sl-section {
  padding-top: clamp(2rem, 5vw, 3.25rem);
}

#espace-client .sl-h2 + .sl-lead {
  margin-bottom: 2rem;
}

/* ---------- Nav ---------- */
.sl-nav-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--sl-nav-h);
  display: flex;
  align-items: center;
}

.sl-nav {
  position: relative;
  width: min(100% - 40px, var(--sl-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sl-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--sl-white);
  letter-spacing: -0.02em;
}

.sl-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--sl-radius-sm);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.sl-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sl-menu a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.sl-menu a:hover {
  opacity: 0.85;
}

.sl-nav__dropdown {
  position: relative;
  list-style: none;
}

.sl-nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: default;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.2s;
}

.sl-nav__dropdown-trigger:hover {
  opacity: 0.85;
}

.sl-nav__dropdown-panel {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sl-nav__dropdown-panel a {
  font-size: 0.95rem;
}

@media (min-width: 901px) {
  .sl-nav__dropdown-panel {
    position: absolute;
    /* Collé au trigger : le padding-top remplace l’ancien « gap » et reste dans la zone survolable du <li> */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 248px;
    padding: 0.75rem 0 0.4rem;
    background: var(--sl-white);
    border: 1px solid var(--sl-card-border);
    border-radius: var(--sl-radius-sm);
    box-shadow: var(--sl-shadow-soft);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 60;
  }

  .sl-nav__dropdown:hover .sl-nav__dropdown-panel,
  .sl-nav__dropdown:focus-within .sl-nav__dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sl-nav__dropdown-panel a {
    display: block;
    padding: 0.65rem 1.2rem;
    color: var(--sl-text);
  }

  .sl-nav__dropdown-panel a:hover {
    background: var(--sl-band);
    opacity: 1;
  }

  .sl-nav__dropdown-panel li {
    border-bottom: none;
  }
}

@media (max-width: 900px) {
  .sl-nav__dropdown {
    width: 100%;
  }

  .sl-nav__dropdown-trigger {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 0 0.35rem;
    border-radius: 0;
    text-align: left;
  }

  .sl-nav__dropdown-panel {
    padding: 0 0 0.5rem 1rem;
    margin: 0;
  }

  .sl-nav__dropdown-panel li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sl-nav__dropdown-panel li:last-child {
    border-bottom: none;
  }
}

.sl-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sl-link-ghost {
  color: var(--sl-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  transition: opacity 0.2s;
}

.sl-link-ghost:hover {
  opacity: 0.88;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sl-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--sl-radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sl-btn--white {
  background: var(--sl-white);
  color: var(--sl-text);
  box-shadow: 0 2px 8px rgba(10, 15, 26, 0.06);
}

.sl-btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 15, 26, 0.1);
}

.sl-btn--white:active {
  transform: translateY(0);
}

.sl-btn--yellow {
  background: var(--sl-accent);
  color: var(--sl-text);
  box-shadow: 0 6px 24px rgba(248, 214, 32, 0.35);
}

.sl-btn--yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(248, 214, 32, 0.45);
}

.sl-btn--yellow:active {
  transform: translateY(0);
}

.sl-btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.sl-nav__toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--sl-radius-sm);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--sl-white);
}

.sl-nav__toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
  display: block;
}

.sl-nav__drawer {
  display: contents;
}

@media (min-width: 901px) {
  .sl-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .sl-nav__actions {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }

  .sl-brand {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 900px) {
  .sl-nav__toggle {
    display: grid;
    place-items: center;
  }

  .sl-nav__drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--sl-nav-h);
    max-height: calc(100vh - var(--sl-nav-h));
    overflow-y: auto;
    background: var(--sl-blue-a);
    padding: 0.5rem 1.25rem 1.5rem;
    gap: 0;
    box-shadow: var(--sl-shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .sl-nav.is-open .sl-nav__drawer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sl-menu {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .sl-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sl-menu a {
    display: block;
    padding: 1rem 0;
  }

  .sl-nav__dropdown-panel a {
    padding: 0.75rem 0;
  }

  .sl-nav__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 1rem;
    gap: 0.75rem;
  }

  .sl-nav__actions .sl-btn {
    width: 100%;
  }

  .sl-link-ghost {
    text-align: center;
    padding: 0.75rem;
  }
}

/* ---------- Light header (pages sans hero bleu) ---------- */
.sl-header--light {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sl-surface);
  border-bottom: 1px solid var(--sl-card-border);
}

.sl-header--light .sl-nav-wrap {
  position: relative;
  height: var(--sl-nav-h);
}

.sl-header--light .sl-brand {
  color: var(--sl-text);
}

.sl-header--light .sl-brand__mark {
  background: var(--sl-icon-bg);
}

.sl-header--light .sl-brand__mark path {
  stroke: var(--sl-blue-a);
}

.sl-header--light .sl-menu a {
  color: var(--sl-muted);
}

.sl-header--light .sl-menu a:hover {
  color: var(--sl-text);
  opacity: 1;
}

.sl-header--light .sl-link-ghost {
  color: var(--sl-text);
  opacity: 0.88;
}

.sl-header--light .sl-link-ghost:hover {
  opacity: 1;
}

.sl-header--light .sl-nav__toggle {
  background: var(--sl-band);
  color: var(--sl-text);
}

@media (max-width: 900px) {
  .sl-header--light .sl-nav__drawer {
    background: var(--sl-surface);
    border-top: 1px solid var(--sl-card-border);
    box-shadow: var(--sl-shadow-soft);
  }

  .sl-header--light .sl-menu > li {
    border-bottom-color: var(--sl-card-border);
  }

  .sl-header--light .sl-menu a {
    color: var(--sl-text);
  }

  .sl-header--light .sl-nav__dropdown-trigger {
    color: var(--sl-text);
  }

  .sl-header--light .sl-nav__dropdown-panel li {
    border-bottom-color: rgba(10, 15, 26, 0.08);
  }
}

.sl-header--light .sl-nav__dropdown-trigger {
  color: var(--sl-muted);
}

.sl-header--light .sl-nav__dropdown-trigger:hover {
  color: var(--sl-text);
  opacity: 1;
}

@media (min-width: 901px) {
  .sl-header--light .sl-nav__dropdown-panel a {
    color: var(--sl-text);
  }
}

/* ---------- Page intro (fond blanc, même esprit que l’accueil sans bandeau bleu) ---------- */
.sl-section--first {
  padding-top: clamp(2.75rem, 6vw, 4.25rem);
}

.sl-page-hero {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  padding-bottom: clamp(0.5rem, 2vw, 1rem);
}

.sl-page-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.95rem, 4.25vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--sl-text);
}

.sl-page-hero__subtitle {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: var(--sl-muted);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.65;
  font-weight: 500;
}

.sl-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.sl-page-hero__trust {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sl-muted);
  letter-spacing: 0.02em;
}

.sl-btn--ghost-dark {
  background: transparent;
  color: var(--sl-text);
  border: 2px solid var(--sl-card-border);
  box-shadow: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sl-btn--ghost-dark:hover {
  transform: translateY(-2px);
  border-color: var(--sl-muted);
  box-shadow: var(--sl-shadow-soft);
}

.sl-btn--ghost-dark:active {
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.sl-hero {
  position: relative;
  min-height: min(88vh, 760px);
  padding: calc(var(--sl-nav-h) + 3rem) 0 4.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sl-blue-a);
}

.sl-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Formes décoratives : lignes blanches uniquement (pas de fond saturé → pas d’effet violet) */
.sl-hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sl-hero__shape {
  position: absolute;
  display: block;
  will-change: transform;
}

/* Blocs type « pilule » / panneaux (même esprit que la forme gauche) */
.sl-hero__shape--slab {
  border-radius: var(--sl-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sl-hero__shape--slab--tall {
  width: 52px;
  height: min(28vh, 168px);
}

.sl-hero__shape--square {
  border-radius: var(--sl-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Droite : barre horizontale */
.sl-hero__shape--r1 {
  width: min(42vw, 220px);
  height: 52px;
  right: -2%;
  top: 20%;
  transform: rotate(11deg);
  animation: sl-hero-drift-r1 21s ease-in-out infinite alternate;
}

/* Carré */
.sl-hero__shape--r2 {
  width: min(20vw, 86px);
  height: min(20vw, 86px);
  right: 6%;
  top: 40%;
  transform: rotate(-9deg);
  animation: sl-hero-drift-r2 25s ease-in-out infinite alternate;
}

/* Rectangle vertical */
.sl-hero__shape--r3 {
  right: 12%;
  top: 12%;
  transform: rotate(14deg);
  animation: sl-hero-drift-r3 19s ease-in-out infinite alternate;
}

/* Arc segment (cercle tronqué par le bord de l’écran) */
.sl-hero__shape--arc {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  left: -18%;
  bottom: -22%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: transparent;
  animation: sl-hero-drift-d 20s ease-in-out infinite alternate;
}

.sl-hero__shape--pill {
  width: min(55vw, 280px);
  height: 56px;
  left: 12%;
  top: 38%;
  border-radius: var(--sl-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(-18deg);
  animation: sl-hero-drift-e 24s ease-in-out infinite alternate;
}

@keyframes sl-hero-drift-r1 {
  0% {
    transform: rotate(11deg) translate(0, 0);
  }
  100% {
    transform: rotate(8deg) translate(-16px, 18px);
  }
}

@keyframes sl-hero-drift-r2 {
  0% {
    transform: rotate(-9deg) translate(0, 0);
  }
  100% {
    transform: rotate(-12deg) translate(12px, -14px);
  }
}

@keyframes sl-hero-drift-r3 {
  0% {
    transform: rotate(14deg) translate(0, 0);
  }
  100% {
    transform: rotate(11deg) translate(10px, 20px);
  }
}

@keyframes sl-hero-drift-d {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, -14px);
  }
}

@keyframes sl-hero-drift-e {
  0% {
    transform: rotate(-18deg) translate(0, 0);
  }
  100% {
    transform: rotate(-14deg) translate(16px, 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-hero__shape {
    animation: none !important;
  }

  .sl-hero__content.sl-hero-float {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sl-float-card--tr,
  .sl-float-card--bl {
    animation: none;
  }

  .sl-float-card--tr {
    transform: translateX(37%);
  }

  .sl-float-card--bl {
    transform: translateX(-37%);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .sl-float-card--tr {
    transform: translateX(24%);
  }

  .sl-float-card--bl {
    transform: translateX(-24%);
  }
}

@media (max-width: 600px) {
  .sl-hero__shape--e {
    display: none;
  }

  .sl-hero__shape--r1 {
    width: 140px;
    height: 44px;
    right: -6%;
    top: 16%;
  }

  .sl-hero__shape--r2 {
    width: 56px;
    height: 56px;
    right: 2%;
    top: 48%;
  }

  .sl-hero__shape--r3 {
    display: none;
  }
}

.sl-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.sl-hero__content.sl-hero-float {
  animation: sl-hero-content-float 6s ease-in-out infinite;
}

@keyframes sl-hero-content-float {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-6px);
  }
  75% {
    transform: translateY(6px);
  }
}

.sl-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.95rem, 4.25vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--sl-white);
}

.sl-hero__subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  line-height: 1.65;
  font-weight: 500;
}

.sl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.sl-btn--ghost-light {
  background: transparent;
  color: var(--sl-white);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.sl-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.sl-btn--ghost-light:active {
  transform: translateY(0);
}

.sl-hero__trust {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
}

/* ---------- Narrative blocks (problem / solution) ---------- */
.sl-narrow {
  max-width: 720px;
  margin-inline: auto;
}

.sl-narrative__title {
  font-size: clamp(1.85rem, 3.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.015em;
  margin: 0 0 1.35rem;
  text-align: center;
  color: var(--sl-text);
}

.sl-narrative__text {
  margin: 0 0 1rem;
  color: var(--sl-muted);
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: center;
  font-weight: 500;
}

.sl-narrative__text:last-child {
  margin-bottom: 0;
}

.sl-narrative__emphasis {
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--sl-text);
  text-align: center;
}

.sl-cta-final__micro {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ---------- Features grid ---------- */
.sl-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sl-feature-grid {
    grid-template-columns: 1fr;
  }
}

.sl-feature-card {
  background: var(--sl-surface);
  border-radius: var(--sl-radius);
  padding: 1.85rem 1.6rem;
  border: 1px solid var(--sl-card-border);
  box-shadow: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sl-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sl-card-hover-shadow);
}

.sl-feature-card__icon,
.sl-feature-card__icon.icon {
  width: 52px;
  height: 52px;
  border-radius: var(--sl-radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  background: var(--sl-icon-bg);
  color: var(--sl-blue-a);
  transition: transform 0.25s ease;
}

.sl-feature-card:hover .sl-feature-card__icon {
  transform: scale(1.1);
}

.sl-feature-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  letter-spacing: 0.01em;
  color: var(--sl-text);
}

.sl-feature-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sl-muted);
  line-height: 1.62;
  font-weight: 500;
}

/* ---------- Split sections ---------- */
.sl-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.sl-split--reverse .sl-split__visual {
  order: -1;
}

@media (max-width: 900px) {
  .sl-split {
    grid-template-columns: 1fr;
  }

  .sl-split--reverse .sl-split__visual {
    order: 0;
  }
}

.sl-split__visual {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.sl-split__img {
  border-radius: var(--sl-radius-lg);
  box-shadow: var(--sl-shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.sl-float-card {
  position: absolute;
  z-index: 2;
  max-width: 220px;
  padding: 1rem 1.35rem 1.1rem 1.45rem;
  font-size: 0.8rem;
  border-radius: var(--sl-radius);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 2px 4px rgba(61, 83, 220, 0.04),
    0 12px 40px rgba(10, 15, 26, 0.12),
    0 4px 14px rgba(10, 15, 26, 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}

.sl-float-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: min(3.4rem, calc(100% - 1.5rem));
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sl-blue-b) 0%, var(--sl-blue-a) 100%);
  box-shadow: 0 0 12px rgba(61, 83, 220, 0.25);
}

/* À cheval sur le bord du visuel : ~37 % du badge hors du cadre photo */
.sl-float-card--tr {
  top: 10%;
  right: 0;
  transform: translateX(37%);
  animation: sl-float-badge-tr 4.2s ease-in-out infinite;
}

.sl-float-card--bl {
  bottom: 12%;
  left: 0;
  transform: translateX(-37%);
  animation: sl-float-badge-bl 4.9s ease-in-out 0.4s infinite;
}

@keyframes sl-float-badge-tr {
  0%,
  100% {
    transform: translateX(37%) translateY(0);
  }
  33% {
    transform: translateX(calc(37% + 6px)) translateY(-16px);
  }
  66% {
    transform: translateX(calc(37% - 5px)) translateY(-7px);
  }
}

@keyframes sl-float-badge-bl {
  0%,
  100% {
    transform: translateX(-37%) translateY(0);
  }
  33% {
    transform: translateX(calc(-37% - 6px)) translateY(16px);
  }
  66% {
    transform: translateX(calc(-37% + 5px)) translateY(7px);
  }
}

@media (max-width: 900px) {
  .sl-float-card--tr {
    animation-name: sl-float-badge-tr-sm;
  }

  .sl-float-card--bl {
    animation-name: sl-float-badge-bl-sm;
  }

  @keyframes sl-float-badge-tr-sm {
    0%,
    100% {
      transform: translateX(24%) translateY(0);
    }
    33% {
      transform: translateX(calc(24% + 4px)) translateY(-12px);
    }
    66% {
      transform: translateX(calc(24% - 3px)) translateY(-5px);
    }
  }

  @keyframes sl-float-badge-bl-sm {
    0%,
    100% {
      transform: translateX(-24%) translateY(0);
    }
    33% {
      transform: translateX(calc(-24% - 4px)) translateY(12px);
    }
    66% {
      transform: translateX(calc(-24% + 3px)) translateY(5px);
    }
  }
}

.sl-float-card__label {
  font-weight: 600;
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  color: rgba(61, 83, 220, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.3;
}

.sl-float-card__val {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--sl-text);
  margin: 0;
}

/* Titres principaux dans les bandeaux split (h2) — même échelle que .sl-h2--compact */
.sl-split__h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 1.1rem;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: var(--sl-text);
  text-align: left;
}

/* Sous-titre portail (h3) : aligné sur .sl-feature-card__title */
.sl-split__h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--sl-text);
}

.sl-split__text {
  color: var(--sl-muted);
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 500;
}

.sl-split__copy > .sl-checks {
  margin-top: 1.15rem;
}

.sl-split__copy > .sl-checks + .sl-split__text {
  margin-top: 0.85rem;
}

.sl-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sl-checks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.8rem;
  color: var(--sl-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.sl-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--sl-blue-a);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  border-radius: var(--sl-radius-sm);
}

/* ---------- Portal ---------- */
.sl-portal__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--sl-surface);
  border-radius: var(--sl-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: none;
  border: 1px solid var(--sl-card-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sl-portal__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sl-card-hover-shadow);
}

.sl-portal__card h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .sl-portal__card {
    grid-template-columns: 1fr;
  }
}

.sl-portal__mock {
  position: relative;
  border-radius: var(--sl-radius);
  overflow: hidden;
  box-shadow: var(--sl-shadow-soft);
}

.sl-portal__mock img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.sl-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.sl-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--sl-radius-sm);
  background: rgba(58, 83, 227, 0.1);
  color: var(--sl-blue-a);
}

/* ---------- Testimonials ---------- */
.sl-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sl-testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.sl-testimonial {
  background: var(--sl-surface);
  border-radius: var(--sl-radius);
  padding: 1.6rem 1.45rem;
  border: 1px solid var(--sl-card-border);
  box-shadow: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sl-testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--sl-card-hover-shadow);
}

.sl-stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.sl-testimonial__quote {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  color: var(--sl-text);
  line-height: 1.62;
  font-weight: 500;
}

.sl-testimonial__name {
  font-weight: 700;
  font-size: 0.9rem;
}

.sl-testimonial__meta {
  font-size: 0.8rem;
  color: var(--sl-muted);
  margin-top: 0.15rem;
}

/* ---------- Final CTA ---------- */
.sl-cta-final {
  background: var(--sl-blue-a);
  text-align: center;
  padding: clamp(4.5rem, 10vw, 6.5rem) 1.5rem;
  position: relative;
  overflow: hidden;
}

.sl-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  pointer-events: none;
}

.sl-cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.sl-cta-final__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  font-weight: 700;
  color: var(--sl-white);
  letter-spacing: 0.015em;
  line-height: 1.18;
}

.sl-cta-final__text {
  margin: 0 0 1.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

.sl-cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

/* ---------- Prose / value blocks ---------- */
.sl-prose {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.sl-prose--left {
  text-align: left;
  margin-inline: 0;
}

.sl-prose p {
  color: var(--sl-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.sl-prose p:last-child {
  margin-bottom: 0;
}

.sl-prose.sl-prose--tight-after p:last-child {
  margin-bottom: 0.35rem;
}

.sl-about-wrap {
  max-width: 720px;
  margin-inline: auto;
}

.sl-about-wrap .sl-prose.sl-prose--left {
  margin-inline: auto;
}

.sl-about-wrap .sl-checks {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ---------- Process (service pages) ---------- */
.sl-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sl-process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .sl-process-grid {
    grid-template-columns: 1fr;
  }
}

.sl-process-step {
  background: var(--sl-surface);
  border: 1px solid var(--sl-card-border);
  border-radius: var(--sl-radius);
  padding: 1.5rem 1.35rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sl-process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-card-hover-shadow);
}

.sl-process-step__num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--sl-white);
  background: var(--sl-blue-a);
  border-radius: var(--sl-radius-sm);
  margin-bottom: 1rem;
}

.sl-process-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--sl-text);
  letter-spacing: 0.01em;
}

.sl-process-step__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sl-muted);
  line-height: 1.62;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.sl-faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sl-faq__item {
  border: 1px solid var(--sl-card-border);
  border-radius: var(--sl-radius);
  background: var(--sl-surface);
  overflow: hidden;
}

.sl-faq__item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--sl-text);
  line-height: 1.45;
}

.sl-faq__item summary::-webkit-details-marker {
  display: none;
}

.sl-faq__body {
  padding: 0 1.25rem 1.15rem;
  color: var(--sl-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 500;
}

.sl-faq__body p {
  margin: 0;
}

/* ---------- Footer ---------- */
.sl-footer {
  background: var(--sl-text);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.sl-footer a:hover {
  color: var(--sl-white);
}

.sl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
  .sl-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .sl-footer__grid {
    grid-template-columns: 1fr;
  }
}

.sl-footer__brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sl-white);
  margin-bottom: 0.75rem;
}

.sl-footer__desc {
  margin: 0;
  line-height: 1.6;
  max-width: 280px;
}

.sl-footer__col h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.sl-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sl-footer__col li {
  margin-bottom: 0.6rem;
}

.sl-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Page contact ---------- */
.sl-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .sl-contact-cards {
    grid-template-columns: 1fr;
  }
}

.sl-contact-card {
  background: var(--sl-surface);
  border: 1px solid var(--sl-card-border);
  border-radius: var(--sl-radius);
  padding: 1.5rem 1.35rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sl-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-card-hover-shadow);
}

.sl-contact-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sl-muted);
  margin: 0 0 0.75rem;
}

.sl-contact-card__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sl-text);
  line-height: 1.55;
}

.sl-contact-card a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sl-blue-a);
}

.sl-contact-card a:hover {
  opacity: 0.88;
}

.sl-contact-card .sl-contact-card__hint {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sl-muted);
}

.sl-form {
  max-width: 640px;
  margin: 0 auto;
}

.sl-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}

@media (max-width: 600px) {
  .sl-form__grid {
    grid-template-columns: 1fr;
  }
}

.sl-form__field--full {
  grid-column: 1 / -1;
}

.sl-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--sl-text);
}

.sl-field input,
.sl-field select,
.sl-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--sl-font);
  font-size: 1rem;
  border: 1px solid var(--sl-card-border);
  border-radius: var(--sl-radius-sm);
  background: var(--sl-surface);
  color: var(--sl-text);
}

.sl-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.sl-field input:focus,
.sl-field select:focus,
.sl-field textarea:focus {
  outline: none;
  border-color: var(--sl-blue-a);
  box-shadow: 0 0 0 3px rgba(61, 83, 220, 0.12);
}

.sl-form__actions {
  margin-top: 1.5rem;
}

/* ---------- Scroll reveal (see assets/js/saas-landing.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

.reveal.delay-4 {
  transition-delay: 0.4s;
}
