/* Cassora × Payset DA — page composition on Payset tokens */
body.aq-page {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
}

body.aq-page .m-header__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}

body.aq-page .m-header__logo img { display: none; }
body.aq-page .m-header__logo::after { content: "Solaria"; }

.aq-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(var(--section-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--section-pad-x), env(safe-area-inset-right));
}

/* Hero — Payset m02/m03 form (centered + photo card) */
.aq-page .m-hero__title {
  max-width: 18ch;
}
.aq-page .m-guarantee__tx-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aq-page .m-guarantee__tx-row > div img { display: none; }
.aq-page .m-guarantee__actions {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 24px;
}
.aq-page .m-guarantee__actions .btn-lime {
  text-decoration: none;
  border-radius: 999px;
  padding: 18px 32px;
  font-size: 15px;
  font-weight: 600;
}
.aq-hero-trust {
  flex-wrap: wrap;
  gap: 10px 14px;
}
.aq-hero-trust__item {
  font-size: 14px;
  color: var(--text-2);
}
.aq-hero-trust__item b {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}
.aq-hero-trust__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stone);
  display: inline-block;
}
.aq-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.aq-btn-lime,
.aq-btn-ink,
.aq-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.aq-btn-lime:hover,
.aq-btn-ink:hover,
.aq-btn-ghost:hover {
  transform: translateY(-1px);
}
.aq-btn-lime {
  background: var(--lime);
  color: var(--ink);
  border: 1px solid transparent;
}
.aq-btn-lime:hover { background: var(--mint); }
.aq-btn-ink {
  background: var(--ink);
  color: var(--lime);
  border: 1px solid transparent;
}
.aq-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.aq-btn-ghost:hover { background: rgba(18, 19, 20, 0.04); }
.aq-page .m-hero__ctas {
  justify-content: center;
  gap: 12px;
}
/* Expertise — Payset m10: 2 cards centered when they fit; else 1 card + L/R peeks */
.aq-page .aq-expertise .m-solutions__viewport {
  overflow: hidden;
}
.aq-page .aq-expertise .m-solutions__track {
  scroll-snap-type: none;
  scroll-behavior: auto;
  padding: 0;
  overscroll-behavior-x: contain;
}

/* Mobile / native swipe: browser momentum + mandatory center snap (app-like) */
.aq-page .aq-expertise.is-native-swipe .m-solutions__track {
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: default;
}
.aq-page .aq-expertise.is-native-swipe .aq-expertise-card {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex: 0 0 min(300px, 78%);
  width: min(300px, 78%);
  min-width: min(300px, 78%);
  height: 440px;
  min-height: 440px;
}
.aq-page .aq-expertise.is-native-swipe .aq-expertise-card:hover {
  transform: none;
}
.aq-page .aq-expertise.is-native-swipe .m-solutions__track.is-dragging {
  scroll-snap-type: x mandatory;
  cursor: default;
}

@media (max-width: 768px) {
  .aq-page .aq-expertise .aq-expertise-card {
    flex: 0 0 min(300px, 78%);
    width: min(300px, 78%);
    min-width: min(300px, 78%);
    height: 440px;
    min-height: 440px;
  }
}
.aq-page .aq-expertise-card {
  background-color: #CFC8C1;
  background-image: none !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 28px 24px 24px;
  transition: transform 0.25s var(--ease-out);
}
.aq-page .aq-expertise-card:hover {
  transform: translateY(-2px);
  background-size: auto;
}
.aq-page .aq-expertise-card .m-solutions__copy {
  position: relative;
  z-index: 2;
  max-width: 260px;
  width: auto;
}
.aq-page .aq-expertise-icon {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin: 8px 0 16px;
  pointer-events: none;
  user-select: none;
}
.aq-page .aq-expertise-icon .aq-icon-svg {
  width: min(260px, 88%);
  height: auto;
  display: block;
}
.aq-page .aq-expertise-card .m-solutions__cta {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
}

/* Security — Payset m08 protect (mint copy on forest) */
.aq-page .m-protect__lead {
  max-width: 640px;
}
.aq-page .m-protect__pillar p {
  color: #B7E8C9;
}
@media (max-width: 1100px) {
  .aq-page .m-protect__visual {
    height: auto;
    padding: 0;
  }
  .aq-page .m-protect__visual img {
    width: min(420px, 100%);
    height: auto;
  }
}

/* Section heads */
.aq-section { padding: 72px 0; }
.aq-section__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--forest); margin-bottom: 12px;
}
.aq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.4px;
  max-width: 18ch;
  margin: 0 0 16px;
  color: var(--text-dark);
}
.aq-section__sub {
  max-width: 54ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  margin-bottom: 36px;
}

/* Portfolio cards — referral/solutions language */
/* Portfolio — leaders module (3 cols, no clay panel) */
.a-projects {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.a-projects .a-leaders__intro {
  margin-bottom: 28px;
  text-align: center;
}
.a-projects .a-leaders__intro .aq-section__eyebrow {
  margin-bottom: 12px;
  text-align: center;
}
.a-projects .a-leaders__intro h2 {
  margin: 0 auto 12px;
  text-align: center;
  max-width: 18ch;
}
.a-projects .a-leaders__intro p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.aq-filters--center {
  justify-content: center;
  margin-bottom: 32px;
}
.a-projects__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.a-project {
  position: relative;
  background: var(--ink);
  aspect-ratio: 3 / 4; /* 4:3 hauteur:largeur */
  min-height: 0;
  height: auto;
  padding: 28px 24px 80px;
  overflow: hidden;
  color: var(--text-light);
}
.a-project:nth-child(3n+2),
.a-project:nth-child(3n) {
  background: var(--ink);
}
.a-project__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.a-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.a-project__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(18, 19, 20, 0.62) 0%,
    rgba(18, 19, 20, 0.38) 42%,
    rgba(18, 19, 20, 0.55) 100%
  );
  transition: background 0.2s var(--ease-out, ease);
}
.a-project.is-open .a-project__shade {
  background: rgba(41, 42, 46, 0.94);
}
.a-project__body {
  position: relative;
  z-index: 2;
}
/* Same typography as leaders bio overlay */
.a-project__body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-light, #fafafa);
}
.a-project__body .role {
  color: var(--lime);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 16px;
  display: block;
}
.a-project__body > p {
  font-size: 15px;
  line-height: 24px;
  margin: 0;
  color: rgba(250, 250, 250, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.a-project.is-open .a-project__body > p {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.a-project .a-leader__more {
  z-index: 4;
}
.a-project__meta,
.a-project__actions {
  display: none;
}
.a-project.is-open .a-project__meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(250, 250, 250, 0.16);
  font-size: 13px;
  line-height: 20px;
}
.a-project.is-open .a-project__actions {
  display: block;
  margin-top: 16px;
}
.a-project__meta div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: rgba(250, 250, 250, 0.7);
}
.a-project__meta b {
  color: #fff;
  font-weight: 600;
  text-align: right;
}
.a-project__link {
  display: inline-block;
  margin-right: 14px;
  color: var(--lime);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.a-project__link:hover { color: var(--mint); }

.aq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.aq-filters button {
  border: 1px solid var(--clay);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.aq-filters button.is-active {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}
.aq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aq-card {
  background: #fff;
  border: 1px solid var(--clay);
  border-radius: var(--card-r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  transition: transform .15s ease, border-color .15s ease;
}
.aq-card:hover { transform: translateY(-2px); border-color: var(--stone); }
.aq-card__status { display: flex; flex-wrap: wrap; gap: 6px; }
.aq-chip {
  font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 999px;
  background: #eaf8ef; color: var(--forest);
}
.aq-chip--muted { background: #f0eeea; color: var(--muted); }
.aq-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.aq-card__loc { font-size: 14px; color: var(--muted); }
.aq-card__meta {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--clay);
  font-size: 13px;
}
.aq-card__meta div { display: flex; justify-content: space-between; gap: 12px; }
.aq-card__meta b { font-weight: 600; }
.aq-card__links { display: flex; gap: 10px; }
.aq-card__links a {
  font-size: 13px; font-weight: 600; color: var(--forest); text-decoration: none;
}

/* Steps — FX problem cards */
.aq-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aq-step {
  background: #fff;
  border: 1px solid var(--clay);
  border-radius: var(--card-r);
  padding: 24px;
  min-height: 220px;
}
.aq-step__n {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 16px;
}
.aq-step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.aq-step p { font-size: 15px; line-height: 24px; color: var(--muted); }

/* Track record — centered, no dark card */
.aq-band {
  background: transparent;
  border-radius: 0;
  padding: 24px 16px 8px;
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.aq-band .aq-section__eyebrow {
  color: var(--forest, #0B3D2E);
}
.aq-band h2 {
  color: var(--ink);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.aq-band .aq-section__sub {
  color: var(--muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.aq-band .aq-cta-row {
  justify-content: center;
  margin-bottom: 0;
}

/* Invest form — referral form card */
.aq-invest {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: start;
}
.aq-progress {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.aq-progress__row {
  background: #fff;
  border: 1px solid var(--clay);
  border-radius: 16px;
  padding: 16px 18px;
}
.aq-progress__row span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.aq-progress__row b { font-family: var(--font-display); font-size: 22px; }
.aq-form {
  background: #fff;
  border-radius: var(--card-r);
  padding: 28px;
  display: grid;
  gap: 12px;
}
.aq-form input,
.aq-form select,
.aq-form textarea {
  width: 100%;
  border: 0;
  background: rgba(105,100,100,.05);
  border-radius: 12px;
  padding: 16px 15px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}
.aq-form textarea { min-height: 120px; resize: vertical; }
.aq-form button[type=submit] {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font: inherit;
  font-weight: 600;
  padding: 16px;
  cursor: pointer;
}
.aq-form__legal { font-size: 12px; line-height: 18px; color: var(--muted); }

/* Page hero — same scale as Contact / About */
.aq-page-hero {
  text-align: center;
  padding: 72px 0 40px;
}
.aq-page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 auto 24px;
  max-width: 18ch;
}
.aq-page-hero__sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 auto;
}

/* Article pages */
.aq-article { padding: 80px 0 100px; }
.aq-article--after-hero { padding-top: 24px; }
.aq-article h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  letter-spacing: -.4px;
  max-width: 18ch;
  margin: 0 0 24px;
}
.aq-article .lead {
  font-size: 20px;
  line-height: 32px;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 32px;
}
.aq-article p {
  font-size: 18px;
  line-height: 30px;
  max-width: 68ch;
  margin: 0 0 18px;
  color: #333;
}
.aq-article h2 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  margin: 40px 0 14px;
}

/* Project detail */
.aq-project-hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: end;
}
.aq-project-meta {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--card-r);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.aq-project-meta span { font-size: 12px; color: rgba(255,255,255,.55); display: block; margin-bottom: 4px; }
.aq-project-meta b { font-family: var(--font-display); font-size: 24px; color: var(--lime); }

/* Footer — Payset chrome: pad 64/80/80, inner ~1000 (narrower than body 1280) */
.aq-footer {
  padding-top: var(--footer-pad-top);
  padding-bottom: var(--footer-pad-bottom);
  padding-left: max(var(--footer-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--footer-pad-x), env(safe-area-inset-right));
  border-top: 1px solid var(--clay);
  margin-top: 40px;
}
.aq-footer__inner {
  max-width: var(--container-footer);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.aq-footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.aq-footer p, .aq-footer a {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
  text-decoration: none;
}
.aq-footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 12px;
}
.aq-footer ul { list-style: none; display: grid; gap: 8px; }
.aq-footer__legal {
  max-width: var(--container-footer);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--clay);
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

.hp-banner {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  display: flex; gap: 12px; padding: 10px 14px;
  background: rgba(18,19,20,.92); color: #fff;
  font-family: var(--font-ui); font-size: 12px; border-radius: 12px;
}
.hp-banner a { color: var(--lime); font-weight: 600; text-decoration: none; }

@media (max-width: 1100px) {
  .aq-grid, .aq-steps, .aq-invest, .aq-project-hero, .aq-footer__inner,
  .a-projects__grid {
    grid-template-columns: 1fr;
  }
  .aq-page .m-hero__title { font-size: clamp(48px, 12vw, 96px); line-height: 0.95; }
  .aq-band { padding: 16px 0 0; }
}

@media (max-width: 768px) {
  .aq-section { padding: 48px 0; }
  .aq-form { padding: 20px 16px; }
  .aq-page-hero h1,
  .aq-project-hero h1 {
    font-size: clamp(36px, 10vw, 56px);
  }
  .aq-btn-lime,
  .aq-btn-ghost,
  .aq-btn-ink {
    min-height: 44px;
  }
  .m-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .m-hero__ctas .aq-btn-lime,
  .m-hero__ctas .aq-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* --- Mobile nav drawer -------------------------------------------------- */
.m-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.m-header__menu-btn span,
.m-header__menu-btn span::before,
.m-header__menu-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.m-header__menu-btn span::before,
.m-header__menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.m-header__menu-btn span::before { top: -6px; }
.m-header__menu-btn span::after { top: 6px; }
body.nav-open .m-header__menu-btn span { background: transparent; }
body.nav-open .m-header__menu-btn span::before { top: 0; transform: rotate(45deg); }
body.nav-open .m-header__menu-btn span::after { top: 0; transform: rotate(-45deg); }

.aq-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.aq-nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.aq-nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 19, 20, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.aq-nav-drawer.is-open .aq-nav-drawer__backdrop { opacity: 1; }
.aq-nav-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(360px, 100%);
  height: 100%;
  background: var(--bg);
  padding: max(24px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease-out);
  box-shadow: 8px 0 32px rgba(18, 19, 20, 0.12);
  will-change: transform;
}
.aq-nav-drawer.is-open .aq-nav-drawer__panel { transform: translateX(0); }
.aq-nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.aq-nav-drawer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.aq-nav-drawer__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.aq-nav-drawer__links {
  display: grid;
  gap: 4px;
}
.aq-nav-drawer__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
}
.aq-nav-drawer__links a:hover,
.aq-nav-drawer__links a.is-active {
  background: rgba(18, 19, 20, 0.04);
}
.aq-nav-drawer__cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aq-nav-drawer__cta .m-header__cta {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

@media (max-width: 1100px) {
  .m-header__menu-btn { display: inline-flex; }
  .m-header__actions { gap: 8px; }
}
