/* ─────────────────────────────────────────────────────────────
   AUTOMATE ALL Site stylesheet (shared)
   Palette Méridien (ivoire + outremer profond) — B2B grand compte
   ───────────────────────────────────────────────────────────── */
@import url("tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ── Motion : pré-état avant prise en main par GSAP ─────────
   .aa-anim-ready est posé par animations.js dès qu'il démarre.
   Sans JS, ou avec prefers-reduced-motion, les éléments restent
   visibles : aucun bloc essentiel ne se cache "pour rien". */
html.aa-anim-ready .aa-section--hero .aa-eyebrow,
html.aa-anim-ready .aa-section--hero .aa-display,
html.aa-anim-ready .aa-section--hero .aa-lead,
html.aa-anim-ready .aa-section--hero .aa-btn,
html.aa-anim-ready .aa-section--hero .aa-kpi,
html.aa-anim-ready .aa-section--hero .aa-logo-slot,
html.aa-anim-ready .svc-hero .aa-eyebrow,
html.aa-anim-ready .svc-hero .aa-display,
html.aa-anim-ready .svc-hero .aa-lead,
html.aa-anim-ready .proc-hero .aa-eyebrow,
html.aa-anim-ready .proc-hero .aa-display,
html.aa-anim-ready .proc-hero .aa-lead,
html.aa-anim-ready .contact-hero .aa-eyebrow,
html.aa-anim-ready .contact-hero .aa-display,
html.aa-anim-ready .contact-hero .aa-lead {
  opacity: 0;
  visibility: hidden;
}

/* Words wrapper for split title (used by GSAP hero reveal) */
.aa-word {
  display: inline-block;
  white-space: pre;
}

@media (prefers-reduced-motion: reduce) {

  html.aa-anim-ready .aa-section--hero .aa-eyebrow,
  html.aa-anim-ready .aa-section--hero .aa-display,
  html.aa-anim-ready .aa-section--hero .aa-lead,
  html.aa-anim-ready .aa-section--hero .aa-btn,
  html.aa-anim-ready .aa-section--hero .aa-kpi,
  html.aa-anim-ready .aa-section--hero .aa-logo-slot,
  html.aa-anim-ready .svc-hero .aa-eyebrow,
  html.aa-anim-ready .svc-hero .aa-display,
  html.aa-anim-ready .svc-hero .aa-lead,
  html.aa-anim-ready .proc-hero .aa-eyebrow,
  html.aa-anim-ready .proc-hero .aa-display,
  html.aa-anim-ready .proc-hero .aa-lead,
  html.aa-anim-ready .contact-hero .aa-eyebrow,
  html.aa-anim-ready .contact-hero .aa-display,
  html.aa-anim-ready .contact-hero .aa-lead {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Nav scrolled state — densification au-delà de 40px */
.aa-nav {
  transition: background var(--aa-duration-standard) var(--aa-ease-out),
    border-color var(--aa-duration-standard) var(--aa-ease-out);
  will-change: transform;
}

.aa-nav.is-scrolled {
  background: rgba(241, 237, 227, 0.94);
  border-bottom-color: rgba(10, 10, 10, 0.10);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--aa-font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--aa-fg);
  background: var(--aa-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.aa-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.aa-wrap-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

.aa-section {
  padding: 120px 0;
  border-top: 1px solid var(--aa-line);
}

.aa-section--tight {
  padding: 80px 0;
}

.aa-section--hero {
  padding: 140px 0 110px;
  border-top: none;
}

.aa-surface {
  background: var(--aa-surface);
}

/* ── Trame "Radial" en fond ─────────────────────────────────
   Motif signature de la charte (nid d'abeille). Discret mais présent.
   Variants : --top (fade vers le bas), --bottom (fade depuis le haut),
   --full (fade aux deux extrémités), --corner (radial top-right). */
.aa-pattern-bg {
  position: relative;
}

.aa-pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(/assets/pattern-radial.svg);
  background-size: 180px 153px;
  background-repeat: repeat;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.aa-pattern-bg > * {
  position: relative;
  z-index: 1;
}

.aa-pattern-bg--top::before {
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0) 100%);
}

.aa-pattern-bg--bottom::before {
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 65%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 65%, rgba(0,0,0,1) 100%);
}

.aa-pattern-bg--full::before {
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
}

.aa-pattern-bg--corner::before {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.13;
}

.aa-pattern-bg--corner-bl::before {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 0% 100%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 0% 100%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.13;
}

/* Renforce l'opacité — réservé aux fonds ivoire les plus clairs (--aa-bg)
   où le motif est sinon trop discret. À combiner avec une variante de fondu. */
.aa-pattern-bg--strong::before {
  opacity: 0.20;
}

/* .aa-light : section "appuyée" — ivoire alt subtil pour différencier
   un bloc CTA ou final sans casser la cohérence éditoriale. */
.aa-light {
  background: var(--aa-bg-alt);
  color: var(--aa-fg);
}

.aa-line {
  border-color: var(--aa-line);
}

.aa-mute {
  color: var(--aa-mute);
}

.aa-accent {
  color: var(--aa-accent);
}

/* ── Typography ─────────────────────────────────────────────── */
.aa-eyebrow {
  font-family: var(--aa-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aa-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.aa-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--aa-accent);
  border-radius: 50%;
  display: inline-block;
}

.aa-display {
  font-weight: 500;
  font-size: clamp(56px, 7.6vw, 112px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}

.aa-h1 {
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

.aa-h2 {
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
}

.aa-h3 {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

.aa-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--aa-fg);
  opacity: 0.82;
  max-width: 58ch;
  margin: 0;
}

.aa-meta {
  font-family: var(--aa-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--aa-mute);
}

.aa-dot {
  color: var(--aa-accent);
}

/* Quand .aa-dot porte le KPI lui-même (chiffre entier coloré, pas un simple
   symbole), on remonte le contraste — sinon les grands nombres deviennent
   illisibles sur ivoire. */
.aa-kpi__n.aa-dot {
  color: var(--aa-accent-strong);
}

/* ── Buttons ────────────────────────────────────────────────── */
.aa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--aa-font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform var(--aa-duration-micro) var(--aa-ease-out),
    background var(--aa-duration-standard) var(--aa-ease-out),
    border-color var(--aa-duration-standard) var(--aa-ease-out);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

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

.aa-btn--primary {
  background: var(--aa-accent);
  color: var(--aa-on-accent);
  border-color: var(--aa-accent);
  position: relative;
  overflow: hidden;
  isolation: isolate; /* crée un stacking context propre pour le ::before */
}

.aa-btn--primary:hover {
  background: var(--aa-accent-deep);
  border-color: var(--aa-accent-deep);
}

/* Trame Radial qui balaie le bouton au hover comme une vague.
   Principe : le motif est posé en fond, masqué par un gradient horizontal
   qui contient une « bande » opaque centrée, encadrée de transparent.
   Le mask fait 3× la largeur du bouton (mask-size 300%) ; aux deux extrêmes
   de mask-position, la bande est hors-bouton (à gauche ou à droite) — donc
   le motif est invisible. Pendant l'animation, la bande traverse le bouton
   de gauche à droite, révélant le motif uniquement le temps du passage.
   `forwards` fige l'état final (bande sortie à droite) ; au unhover, l'état
   revient instantanément à la base (bande à gauche), invisible aussi. */
@keyframes aa-btn-sweep {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

.aa-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Uniquement le motif Radial — aucun wash, aucune teinte.
     La bande révèle juste le pattern charbon sur le vert pur du bouton. */
  background: url(/assets/pattern-radial.svg) 0 50% / 100px 85px repeat;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 38%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 62%,
      rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 38%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 62%,
      rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.aa-btn--primary:hover::before {
  animation: aa-btn-sweep 2.2s var(--aa-ease-out) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .aa-btn--primary:hover::before {
    animation: none;
  }
}

.aa-btn--ghost {
  background: transparent;
  color: var(--aa-fg);
  border-color: rgba(10, 10, 10, 0.3);
}

.aa-btn--ghost:hover {
  border-color: var(--aa-fg);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.aa-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 237, 227, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--aa-line);
}

.aa-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  max-width: 1360px;
  margin: 0 auto;
}

.aa-nav__logo {
  height: 28px;
  display: block;
}

.aa-nav__links {
  display: flex;
  gap: 32px;
  font-family: var(--aa-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aa-fg);
  opacity: 0.82;
}

.aa-nav__links a {
  transition: color var(--aa-duration-micro);
}

.aa-nav__links a:hover {
  color: var(--aa-accent);
}

.aa-nav__links a.is-active {
  color: var(--aa-accent);
}

.aa-nav__cta--desktop {
  display: inline-flex;
}

.aa-nav__drawer-cta {
  display: none;
}

.aa-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--aa-line);
  border-radius: 2px;
  padding: 0;
  color: var(--aa-fg);
  flex-shrink: 0;
}

.aa-nav__toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.aa-nav__toggle__icon::before,
.aa-nav__toggle__icon::after,
.aa-nav__toggle__icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--aa-fg);
  transition: transform var(--aa-duration-standard) var(--aa-ease-out),
    opacity var(--aa-duration-micro);
}

.aa-nav__toggle__icon::before {
  top: 0;
}

.aa-nav__toggle__icon span {
  top: 50%;
  transform: translateY(-50%);
}

.aa-nav__toggle__icon::after {
  bottom: 0;
}

.aa-nav.is-open .aa-nav__toggle__icon::before {
  transform: translateY(5px) rotate(45deg);
}

.aa-nav.is-open .aa-nav__toggle__icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

.aa-nav.is-open .aa-nav__toggle__icon span {
  opacity: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.aa-footer {
  border-top: 1px solid var(--aa-line);
  padding: 64px 0 32px;
  background: var(--aa-bg);
}

.aa-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--aa-line);
}

.aa-footer__brand {
  max-width: 420px;
}

.aa-footer__brand img {
  height: 32px;
  margin-bottom: 20px;
}

.aa-footer__brand p {
  color: var(--aa-mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.aa-footer__col h4 {
  font-family: var(--aa-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aa-mute);
  margin: 0 0 18px;
  font-weight: 500;
}

.aa-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aa-footer__col a {
  font-size: 14px;
  color: var(--aa-fg);
  opacity: 0.82;
  transition: opacity var(--aa-duration-micro), color var(--aa-duration-micro);
}

.aa-footer__col a:hover {
  opacity: 1;
  color: var(--aa-accent);
}

.aa-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--aa-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--aa-mute);
  text-transform: uppercase;
}

/* ── Marquee ────────────────────────────────────────────────── */
.aa-marquee {
  border-top: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--aa-bg);
}

.aa-marquee__track {
  display: flex;
  gap: 48px;
  animation: aa-marquee 60s linear infinite;
  white-space: nowrap;
  font-family: var(--aa-font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--aa-fg);
  opacity: 0.7;
  text-transform: uppercase;
  width: max-content;
}

.aa-marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}

.aa-marquee__track span::after {
  content: "◆";
  color: var(--aa-accent);
  font-size: 8px;
  opacity: 0.8;
}

@keyframes aa-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── Grid card ──────────────────────────────────────────────── */
.aa-card {
  border: 1px solid var(--aa-line);
  padding: 32px;
  background: var(--aa-bg);
  transition: border-color var(--aa-duration-standard), background var(--aa-duration-standard);
}

.aa-card:hover {
  border-color: rgba(43, 196, 122, 0.45);
}

/* Variante "3D" pour les cards services (Trois disciplines).
   Lift + drop shadow + liseré accent qui s'allume au hover. Le
   parallax interne des éléments est géré par GSAP (animations.js). */
.aa-card--3d {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.45s var(--aa-ease-out),
    border-color var(--aa-duration-standard) var(--aa-ease-out),
    box-shadow 0.5s var(--aa-ease-out);
  will-change: transform;
}

.aa-card--3d:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 245, 168, 0.5);
  box-shadow:
    0 28px 60px -20px rgba(10, 10, 10, 0.18),
    0 12px 24px -12px rgba(10, 10, 10, 0.10);
}

/* Edge-light : liseré outremer dégradé qui s'allume sur le bord supérieur */
.aa-card--3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--aa-accent) 50%,
      transparent 100%);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.5s var(--aa-ease-out),
    transform 0.6s var(--aa-ease-out);
  pointer-events: none;
}

.aa-card--3d:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Trame Radial discrète sur les cards 3D — fondu radial qui descend
   du coin haut-droit, ne masque pas le contenu, s'intensifie au hover. */
.aa-card--3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(/assets/pattern-radial.svg);
  background-size: 140px 119px;
  background-repeat: repeat;
  background-position: top right;
  opacity: 0.09;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 100% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
  mask-image: radial-gradient(ellipse 75% 90% at 100% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
  transition: opacity 0.5s var(--aa-ease-out);
  z-index: 0;
}

.aa-card--3d:hover::after {
  opacity: 0.16;
}

/* Le contenu de la card doit rester au-dessus de la trame */
.aa-card--3d > * {
  position: relative;
  z-index: 1;
}

.aa-card__num {
  font-family: var(--aa-font-mono);
  font-size: 12px;
  color: var(--aa-accent);
  letter-spacing: 0.06em;
}

.aa-card h3 {
  margin: 20px 0 12px;
}

.aa-card p {
  color: var(--aa-mute);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ── Utility ────────────────────────────────────────────────── */
.aa-cta-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.aa-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
}

.aa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.aa-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--aa-line);
}

.aa-grid-3>* {
  border-right: 1px solid var(--aa-line);
}

.aa-grid-3>*:last-child {
  border-right: none;
}

.aa-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.aa-kpi {
  padding: 40px 32px;
  border-right: 1px solid var(--aa-line);
}

.aa-kpi:last-child {
  border-right: none;
}

.aa-kpi__n {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--aa-fg);
}

.aa-kpi__t {
  font-family: var(--aa-font-mono);
  font-size: 11px;
  color: var(--aa-mute);
  letter-spacing: 0.08em;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ── Bracket frame (sig. visuel) ────────────────────────────── */
.aa-bracket {
  position: relative;
  padding: 48px;
}

.aa-bracket::before,
.aa-bracket::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--aa-accent);
}

.aa-bracket::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.aa-bracket::after {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

/* ── Schema (data flow) ─────────────────────────────────────── */
.aa-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding: 48px 0 80px;
}

.aa-flow__node {
  position: relative;
  background: var(--aa-surface);
  border: 1px solid var(--aa-line);
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.45s var(--aa-ease-out),
    border-color 0.28s var(--aa-ease-out),
    background 0.28s var(--aa-ease-out);
  cursor: crosshair;
}

.aa-flow__node::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 20%, rgba(124, 245, 168, 0.07) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.aa-flow__node::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--aa-accent-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--aa-ease-out);
}

.aa-flow__node.is-active {
  border-color: rgba(27, 139, 85, 0.65);
  background: rgba(43, 196, 122, 0.10);
  box-shadow: 0 0 28px -8px rgba(27, 139, 85, 0.45);
}

.aa-flow__node.is-active::before {
  opacity: 1;
}

.aa-flow__node.is-active::after {
  transform: scaleX(1);
}

.aa-flow__node.is-active .aa-meta {
  color: var(--aa-accent-strong);
  transition: color 0.25s;
}

/* Escalier ascendant gauche→droite.
   box-shadow avec offset X+Y : les layers derrière chaque card sont
   décalés comme de vraies cartes physiques empilées. */
.aa-flow__node[data-stack="2"] {
  padding-bottom: calc(24px);
  box-shadow:
    -8px 8px 0 0 transparent,
    -8px 8px 0 1px transparent;
}

.aa-flow__node[data-stack="3"] {
  padding-bottom: calc(24px);
  box-shadow:
    -8px 8px 0 0 transparent,
    -8px 8px 0 1px transparent,
    16px 16px 0 0 transparent,
    16px 16px 0 1px transparent;
}

.aa-flow__node[data-stack="2"].is-stacked {
  box-shadow:
    -8px 8px 0 0 var(--aa-surface),
    -8px 8px 0 1px var(--aa-line);
}

.aa-flow__node[data-stack="3"].is-stacked {
  box-shadow:
    -8px 8px 0 0 var(--aa-surface),
    -8px 8px 0 1px var(--aa-line),
    -16px 16px 0 0 var(--aa-surface),
    -16px 16px 0 1px var(--aa-line);
}

.aa-flow__node[data-stack="2"].is-stacked.is-active {
  box-shadow:
    0 0 28px -8px rgba(27, 139, 85, 0.45),
    -8px 8px 0 0 var(--aa-surface),
    -8px 8px 0 1px rgba(27, 139, 85, 0.6);
}

.aa-flow__node[data-stack="3"].is-stacked.is-active {
  box-shadow:
    0 0 28px -8px rgba(27, 139, 85, 0.45),
    -8px 8px 0 0 var(--aa-surface),
    -8px 8px 0 1px rgba(27, 139, 85, 0.5),
    -16px 16px 0 0 var(--aa-surface),
    -16px 16px 0 1px rgba(27, 139, 85, 0.7);
}

.aa-flow__node h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.aa-flow__node p {
  margin: 0;
  font-size: 13px;
  color: var(--aa-mute);
  line-height: 1.5;
}

.aa-flow__arrow {
  width: 40px;
  height: 2px;
  background: var(--aa-accent-strong);
  position: relative;
  align-self: center;
  transition: box-shadow 0.3s var(--aa-ease-out);
}

.aa-flow__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--aa-accent-strong);
  border-top: 2px solid var(--aa-accent-strong);
  transform: rotate(45deg);
}

.aa-flow__node.is-active+.aa-flow__arrow,
.aa-flow__arrow:has(+ .aa-flow__node.is-active) {
  box-shadow: 0 0 12px 2px rgba(27, 139, 85, 0.6);
}

/* ── Testimonial ────────────────────────────────────────────── */
.aa-testimonial {
  padding: 40px;
  border: 1px solid var(--aa-line);
  background: var(--aa-surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.4s var(--aa-ease-out),
              box-shadow 0.4s var(--aa-ease-out);
  will-change: transform;
}

.aa-testimonial.is-hover {
  border-color: rgba(43, 196, 122, 0.45);
  box-shadow: 0 16px 40px -18px rgba(10, 10, 10, 0.14);
}

.aa-testimonial p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  color: var(--aa-fg);
  letter-spacing: -0.005em;
}

.aa-testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--aa-line);
  margin-top: auto;
}

.aa-testimonial__avatar {
  width: 40px;
  height: 40px;
  background: var(--aa-bg);
  border: 1px solid var(--aa-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--aa-font-mono);
  font-size: 12px;
  color: var(--aa-accent);
  letter-spacing: 0.04em;
  transition: border-color 0.4s var(--aa-ease-out);
}

.aa-testimonial.is-hover .aa-testimonial__avatar {
  border-color: rgba(43, 196, 122, 0.55);
}

.aa-testimonial__name {
  font-size: 14px;
  font-weight: 600;
}

.aa-testimonial__role {
  font-family: var(--aa-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--aa-mute);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {

  .aa-wrap,
  .aa-wrap-narrow {
    padding: 0 24px;
  }

  .aa-section {
    padding: 80px 0;
  }

  .aa-section--tight {
    padding: 64px 0;
  }

  .aa-section--hero {
    padding: 64px 0 48px;
  }

  /* Generic grids collapse */
  .aa-grid-2,
  .aa-grid-3,
  .aa-grid-4,
  .aa-cta-split {
    grid-template-columns: 1fr;
  }

  .aa-cta-split {
    gap: 40px;
  }

  /* Tame oversized inline gaps on grids */
  .aa-grid-2[style*="gap"],
  .aa-grid-3[style*="gap"] {
    gap: 32px !important;
  }

  .aa-grid-3 {
    border: none;
  }

  .aa-grid-3>* {
    border-right: none !important;
    border-bottom: 1px solid var(--aa-line);
  }

  .aa-grid-3>*:last-child {
    border-bottom: none;
  }

  /* KPIs: 2x2 on tablet/phone, single col on tiny screens */
  .aa-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .aa-kpi {
    border-right: none;
    border-bottom: 1px solid var(--aa-line);
    padding: 28px 20px;
  }

  .aa-kpi:nth-child(odd) {
    border-right: 1px solid var(--aa-line);
  }

  .aa-kpi:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Trust logos */
  .aa-trust-grid {
    grid-template-columns: 1fr;
  }

  .aa-trust-grid .aa-logo-slot {
    border-right: none;
    border-bottom: 1px solid var(--aa-line);
  }

  .aa-trust-grid .aa-logo-slot:last-child {
    border-bottom: none;
  }

  /* Footer */
  .aa-footer {
    padding: 48px 0 28px;
  }

  .aa-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 32px;
  }

  .aa-footer__brand {
    grid-column: 1 / -1;
  }

  .aa-footer__bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
  }

  /* Schema flow */
  .aa-flow {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .aa-flow__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .aa-flow__node[data-stack="2"],
  .aa-flow__node[data-stack="3"] {
    padding-bottom: 24px;
  }

  /* Nav: hide desktop links + CTA, show hamburger */
  .aa-nav__inner {
    padding: 14px 24px;
  }

  .aa-nav__cta--desktop {
    display: none;
  }

  .aa-nav__toggle {
    display: inline-flex;
  }

  .aa-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 24px 24px;
    background: rgba(241, 237, 227, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--aa-line);
    font-size: 14px;
    letter-spacing: 0.04em;
    opacity: 1;
  }

  .aa-nav.is-open .aa-nav__links {
    display: flex;
  }

  .aa-nav__links a:not(.aa-nav__drawer-cta) {
    padding: 18px 0;
    border-bottom: 1px solid var(--aa-line);
    color: var(--aa-fg);
    opacity: 0.85;
  }

  .aa-nav__links a.is-active:not(.aa-nav__drawer-cta) {
    color: var(--aa-accent);
    opacity: 1;
  }

  .aa-nav__links .aa-nav__drawer-cta {
    display: inline-flex;
    margin-top: 20px;
    justify-content: center;
    padding: 16px 22px;
    font-size: 14px;
  }

  /* Cards & containers: tighter padding */
  .aa-card {
    padding: 28px 24px;
  }

  .aa-bracket {
    padding: 32px 24px;
  }

  .aa-testimonial {
    padding: 28px 24px;
    gap: 18px;
    border-right: 1px solid var(--aa-line) !important;
  }

  .aa-testimonial p {
    font-size: 16px;
  }

  /* Marquee softer on mobile */
  .aa-marquee {
    padding: 20px 0;
  }

  .aa-marquee__track {
    gap: 32px;
    font-size: 11px;
    animation-duration: 45s;
  }

  .aa-marquee__track span {
    gap: 32px;
  }

  /* Buttons readable & tap-sized */
  .aa-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* ── Phone (≤ 480px) ────────────────────────────────────────── */
@media (max-width: 480px) {

  .aa-wrap,
  .aa-wrap-narrow {
    padding: 0 18px;
  }

  .aa-section {
    padding: 64px 0;
  }

  .aa-section--hero {
    padding: 48px 0 40px;
  }

  /* Tight typography on small phones */
  .aa-display {
    font-size: 40px;
    line-height: 1.02;
  }

  .aa-h1 {
    font-size: 32px;
    line-height: 1.06;
  }

  .aa-h2 {
    font-size: 26px;
    line-height: 1.1;
  }

  .aa-h3 {
    font-size: 19px;
  }

  .aa-lead {
    font-size: 16px;
  }

  .aa-kpi {
    padding: 22px 16px;
  }

  .aa-kpi__n {
    font-size: 32px;
  }

  .aa-kpi__t {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  /* KPIs single column on tiny screens */
  .aa-grid-4 {
    grid-template-columns: 1fr;
  }

  .aa-kpi {
    border-right: none !important;
    border-bottom: 1px solid var(--aa-line);
  }

  .aa-kpi:nth-child(odd) {
    border-right: none !important;
  }

  .aa-kpi:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--aa-line);
  }

  .aa-kpi:last-child {
    border-bottom: none;
  }

  .aa-card {
    padding: 24px 20px;
  }

  .aa-card h3 {
    margin: 16px 0 10px;
    font-size: 19px;
  }

  .aa-testimonial {
    padding: 24px 20px;
  }

  .aa-bracket {
    padding: 28px 20px;
  }

  .aa-btn {
    padding: 13px 18px;
    font-size: 13px;
  }

  .aa-eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}
