/* VAMOS DRC — Identité « Kinshasa Circuit »
   Direction : éditorial industriel, ancré RDC, anti-template SaaS */

:root {
  --ink: #101612;
  --ink-soft: #1c2420;
  --moss: #1a5c45;
  --moss-deep: #0e3d2e;
  --volt: #c6f035;
  --volt-dim: #a8cc2e;
  --copper: #b56a35;
  --mist: #ebe8e2;
  --paper: #f3f1ec;
  --line: #d4d0c8;
  --mute: #5e6a63;
  --white: #ffffff;
  --danger: #b42318;
  --warning: #a15c07;
  --success: #1a5c45;
  --info: #1c2420;

  /* Compat héritage templates */
  --blue-900: var(--ink);
  --blue-800: var(--ink-soft);
  --blue-700: #2a3832;
  --green-900: var(--moss-deep);
  --green-800: var(--moss);
  --green-700: var(--moss);
  --green-500: var(--volt);
  --gray-950: var(--ink);
  --gray-900: var(--ink-soft);
  --gray-800: #2a332e;
  --gray-700: #3d4842;
  --gray-600: var(--mute);
  --gray-500: #7a857e;
  --gray-400: #9aa39c;
  --gray-300: var(--line);
  --gray-200: #e0ddd6;
  --gray-100: var(--mist);

  --font-display: "Outfit", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  --radius: 2px;
  --radius-lg: 4px;
  --shadow: none;
  --shadow-sm: none;
  --container: 1920px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(26, 92, 69, 0.15);
}

img { max-width: 100%; display: block; }
a { color: var(--moss); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.container {
  width: min(100% - 0.75rem, var(--container));
  margin-inline: auto;
}

/* —— NAV —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(243, 241, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled .nav-link,
.site-header.is-solid .nav-link,
.site-header.is-scrolled .brand-text,
.site-header.is-solid .brand-text,
.site-header.is-scrolled .nav-toggle,
.site-header.is-solid .nav-toggle {
  color: var(--ink);
}
.site-header.is-scrolled .nav-cta,
.site-header.is-solid .nav-cta {
  background: var(--ink);
  color: var(--volt);
  border-color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  z-index: 2;
}
.brand-mark { display: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: none;
}
.brand-text span {
  font-weight: 600;
  color: var(--volt);
  margin-left: .2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-link {
  color: rgba(255,255,255,.82);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; gap: .15rem; align-items: center; }
.lang-switch a {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .35rem;
  color: inherit;
  opacity: .55;
  border-bottom: 1px solid transparent;
}
.lang-switch a.active {
  opacity: 1;
  border-bottom-color: currentColor;
}
.lang-select {
  appearance: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  padding: .28rem .45rem;
  border-radius: .25rem;
  max-width: 8.5rem;
  cursor: pointer;
}
.lang-select option { color: #111; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--white);
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  margin: 5px auto;
}

/* —— BUTTONS —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: .9rem;
  letter-spacing: -0.01em;
  text-transform: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
}
.btn-primary:hover { background: var(--volt-dim); color: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-secondary:hover { border-color: var(--volt); color: var(--volt); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--volt); }
.btn-ghost { background: transparent; color: var(--moss); padding-inline: .5rem; text-transform: none; letter-spacing: 0; }
.btn-sm { padding: .55rem .9rem; font-size: .75rem; }
.btn-block { width: 100%; }
.nav-cta {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
  padding: .45rem .95rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* —— HERO —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 1.5rem) 0 4.5rem;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(16,22,18,.55) 0%, rgba(16,22,18,.2) 45%, rgba(14,61,46,.55) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(198,240,53,.04) 48px,
      rgba(198,240,53,.04) 49px
    ),
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(26,92,69,.55), transparent 55%),
    linear-gradient(160deg, #0a100e 0%, #152820 50%, #0e3d2e 100%);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: .45;
  mix-blend-mode: overlay;
}
.hero-map {
  position: absolute;
  right: -5%;
  top: 12%;
  width: min(55vw, 580px);
  height: min(55vw, 580px);
  border: 1px solid rgba(198,240,53,.18);
  border-radius: 50%;
  opacity: 0;
  animation: mapIn 1.2s var(--ease) .2s forwards;
}
.hero-map span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.hero-map span:nth-child(2) { inset: 28%; }
.hero-map span:nth-child(3) {
  inset: auto;
  width: 10px;
  height: 10px;
  top: 38%;
  left: 42%;
  background: var(--volt);
  border: 0;
  border-radius: 0;
  animation: pulse 2.8s ease-in-out infinite;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9.5vw, 6.5rem);
  letter-spacing: -0.035em;
  line-height: .92;
  text-transform: none;
  margin-bottom: 1.35rem;
  opacity: 0;
  animation: rise .9s var(--ease) .1s forwards;
}
.hero-brand em {
  font-style: normal;
  color: var(--volt);
  display: inline;
}
.hero h1 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 28ch;
  margin-bottom: .85rem;
  opacity: 0;
  animation: rise .9s var(--ease) .28s forwards;
}
.hero-lead {
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(243,241,236,.74);
  max-width: 40ch;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise .9s var(--ease) .42s forwards;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  opacity: 0;
  animation: rise .9s var(--ease) .55s forwards;
}
.hero-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 70%);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mapIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198,240,53,.5); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(198,240,53,0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* —— SECTIONS —— */
.section { padding: 5rem 0; }
.section-alt {
  background: var(--mist);
  border-block: 1px solid var(--line);
}
.section-dark {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--volt);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head {
  max-width: 560px;
  margin-bottom: 2.75rem;
}
.section-head.centered { margin-inline: auto; text-align: left; }
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: .65rem;
}
.section-dark .eyebrow { color: var(--volt); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  margin-bottom: .75rem;
}
.section-head p { color: var(--mute); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(243,241,236,.65); }

/* —— SERVICES : bandes éditoriales —— */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.service-item:hover { background: rgba(16,22,18,.03); }
.service-icon { display: none; }
.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--moss);
  letter-spacing: -0.02em;
}
.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: .4rem;
}
.service-item p {
  color: var(--mute);
  font-size: .98rem;
  max-width: 48ch;
}
.link-arrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
  align-self: center;
}
.link-arrow::after { content: " →"; color: var(--moss); }

/* —— MODULES : index catalogue —— */
.module-rail {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.module-tile {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-left: 0;
  box-shadow: none;
  color: inherit;
  transition: padding-left .3s var(--ease), background .25s;
}
.module-tile:hover {
  transform: none;
  box-shadow: none;
  background: rgba(198,240,53,.12);
  padding-left: .75rem;
}
.module-tile h3 { font-size: 1.35rem; margin: 0; }
.module-tile .tagline {
  color: var(--mute);
  font-size: .95rem;
  margin: 0;
  grid-column: 2;
}
.module-code {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--moss);
  align-self: center;
}

/* —— PLANS : colonnes sobres —— */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
.plan {
  padding: 2rem 1.5rem;
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.plan:last-child { border-right: 0; }
.plan.is-featured {
  background: var(--ink);
  color: var(--white);
  transform: none;
  box-shadow: none;
  border-color: var(--ink);
}
.plan.is-featured .plan-name,
.plan.is-featured .plan-price { color: var(--white); }
.plan.is-featured .plan-desc,
.plan.is-featured .plan-features li { color: rgba(243,241,236,.7); }
.plan.is-featured .plan-features li::before { background: var(--volt); }
.plan.is-featured .plan-features li { border-bottom-color: rgba(255,255,255,.12); }
.plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: -0.02em;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1.1rem 0 .2rem;
}
.plan-price small {
  font-size: .85rem;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0;
}
.plan.is-featured .plan-price small { color: var(--volt); }
.plan-desc { color: var(--mute); font-size: .9rem; margin-bottom: 1.25rem; }
.plan-features { flex: 1; margin-bottom: 1.5rem; }
.plan-features li {
  padding: .5rem 0 .5rem 1.1rem;
  position: relative;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85rem;
  width: 6px;
  height: 6px;
  background: var(--moss);
}

/* —— TESTIMONIALS —— */
.quote-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.quote {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 14rem;
  gap: 2rem;
  align-items: end;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  quotes: none;
}
.quote blockquote::before { content: none; }
.quote cite {
  font-style: normal;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: right;
}
.quote cite span {
  display: block;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mute);
  margin-top: .35rem;
  font-size: .85rem;
}

/* —— BLOG —— */
.post-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.post-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
}
.post-item time {
  font-size: .75rem;
  color: var(--mute);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: .35rem;
}
.post-item h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.post-item h3 a { color: inherit; }
.post-item p { color: var(--mute); font-size: .95rem; margin: 0; grid-column: 2; }

/* —— CTA BAND —— */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 16ch;
}

/* —— PAGE HERO —— */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 2.75rem;
  background: var(--ink);
  color: var(--white);
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 55%);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  text-transform: none;
  letter-spacing: -0.025em;
  margin-bottom: .65rem;
}
.page-hero p {
  color: rgba(243,241,236,.7);
  max-width: 42ch;
  font-size: 1.05rem;
}

/* —— FORMS —— */
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: .4rem;
  color: var(--ink);
}
.form-control {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--moss);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.form-errors { color: var(--danger); font-size: .8rem; margin-top: .25rem; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background:
    linear-gradient(150deg, rgba(16,22,18,.92), rgba(14,61,46,.8)),
    linear-gradient(160deg, #101612, #1a5c45);
  color: white;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.auth-visual h1 { color: white; font-size: 2.25rem; text-transform: none; letter-spacing: -0.025em; margin-bottom: 1rem; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--paper);
}
.auth-card { width: min(100%, 420px); }
.auth-card h2 { margin-bottom: .35rem; text-transform: none; }
.auth-card .sub { color: var(--mute); margin-bottom: 1.75rem; }

/* Pages hors layout large (connexion, communauté…) */
body.page-classic {
  --container: 1120px;
}
body.page-classic .page-classic-wrap,
body.page-classic .offer-form-wrap {
  max-width: 820px;
  width: 100%;
}

/* Connexion / inscription — composition centrée, non étirée */
body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(198, 240, 53, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 80%, rgba(26, 92, 69, 0.18), transparent 50%),
    linear-gradient(165deg, #ebe8e2 0%, #f3f1ec 45%, #e4e1da 100%);
}
body.auth-page .flash-wrap {
  top: 1rem;
}
body.auth-page .auth-shell {
  width: min(880px, 100%);
  min-height: 0;
  max-height: none;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(16, 22, 18, 0.1);
  overflow: hidden;
}
body.auth-page .auth-visual {
  min-height: 420px;
  padding: 1.75rem 1.85rem 2rem;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    linear-gradient(155deg, rgba(16, 22, 18, 0.94) 8%, rgba(14, 61, 46, 0.88) 55%, rgba(26, 92, 69, 0.82)),
    radial-gradient(circle at 80% 20%, rgba(198, 240, 53, 0.22), transparent 45%),
    #101612;
}
body.auth-page .auth-visual .brand {
  margin-bottom: 0 !important;
}
body.auth-page .auth-visual h1 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.15;
  max-width: 14ch;
  margin-bottom: 0.65rem;
}
body.auth-page .auth-visual p {
  margin: 0;
  opacity: 0.85;
  max-width: 28ch;
  font-size: 0.95rem;
  line-height: 1.45;
}
body.auth-page .auth-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  align-items: center;
}
body.auth-page .auth-card {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}
body.auth-page .auth-card-wide {
  max-width: 400px;
}
body.auth-page .auth-shell-register {
  width: min(920px, 100%);
}
body.auth-page .auth-visual .brand-text {
  color: #fff;
  font-size: 1.15rem;
}
body.auth-page .auth-visual .brand-text span {
  color: var(--volt);
}
body.auth-page .auth-card h2 {
  font-size: 1.45rem;
}
body.auth-page .auth-card .sub {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}
body.auth-page .form-control {
  width: 100%;
}
body.auth-page .btn-block {
  width: 100%;
}
body.auth-page .auth-links {
  margin-top: 1.15rem;
  font-size: 0.9rem;
}
body.auth-page .auth-links-back {
  margin-top: 0.4rem;
}

/* —— FLASH —— */
.flash-wrap {
  position: fixed;
  top: calc(var(--nav-h) + .75rem);
  right: 1rem;
  z-index: 2000;
  display: grid;
  gap: .5rem;
  max-width: 360px;
}
.flash {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  font-size: .9rem;
  animation: fadeUp .4s var(--ease);
}
.flash-success { border-left-color: var(--moss); }
.flash-danger { border-left-color: var(--danger); }
.flash-warning { border-left-color: var(--warning); }

/* —— FOOTER —— */
.site-footer {
  background: var(--ink);
  color: rgba(243,241,236,.55);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(243,241,236,.55); }
.site-footer a:hover { color: var(--volt); }
.site-footer ul li { margin-bottom: .45rem; font-size: .92rem; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}
.socials { display: flex; gap: .5rem; }
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* —— DASHBOARDS —— */
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; width: 100%; }
.sidebar .brand-text { color: white; font-size: 1rem; }
.sidebar nav { margin-top: 2rem; display: grid; gap: .15rem; flex: 1; }
.sidebar {
  background: var(--ink);
  color: white;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.sidebar a {
  color: rgba(255,255,255,.7);
  padding: .6rem .75rem;
  font-size: .88rem;
  font-weight: 600;
  border-left: 2px solid transparent;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(198,240,53,.08);
  color: var(--volt);
  border-left-color: var(--volt);
}
.sidebar-account {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: .15rem;
}
.sidebar-account-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  padding: 0 .75rem .35rem;
}
.sidebar-logout {
  color: #f0a8a0 !important;
}
.sidebar-logout:hover {
  color: #ffd0cb !important;
  border-left-color: #f0a8a0 !important;
  background: rgba(240,168,160,.08) !important;
}
.app-main { background: var(--mist); }
.app-top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-user {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.app-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: .35rem;
  line-height: 1.25;
}
.app-user-name {
  font-weight: 650;
  font-size: .9rem;
  color: var(--ink);
}
.app-user-role {
  font-size: .72rem;
  color: var(--mute);
}
.app-content {
  padding: 1.25rem 1.5rem 1.75rem;
  width: min(100%, 1920px);
  margin-inline: auto;
  box-sizing: border-box;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.app-card {
  background: var(--paper);
  padding: 1.35rem;
  border-top: 3px solid var(--accent, var(--moss));
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.app-card h3 {
  font-size: 1.2rem;
  margin: 0;
}
.app-card p {
  color: var(--mute);
  font-size: .92rem;
  flex: 1;
  margin: 0;
}
.app-card-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.app-workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--moss));
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.stat {
  background: var(--paper);
  padding: 1.15rem;
  box-shadow: none;
  border-radius: 0;
}
.stat .label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mute);
  font-weight: 700;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: .3rem;
  letter-spacing: -0.03em;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.panel h3 {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td {
  text-align: left;
  padding: .7rem .4rem;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mute);
}
.badge {
  display: inline-block;
  padding: .15rem .45rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 0;
  border: 1px solid currentColor;
}
.badge-success { background: transparent; color: var(--moss); }
.badge-warning { background: transparent; color: var(--copper); }
.badge-danger { background: transparent; color: var(--danger); }
.badge-info { background: transparent; color: var(--ink); }

/* —— CHAT —— */
.chat-launcher {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
}
.wa-fab, .chat-fab {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .25s var(--ease);
}
.wa-fab { background: #1f9b4f; color: white; text-decoration: none; }
.chat-fab { background: var(--ink); color: var(--volt); }
.wa-fab:hover, .chat-fab:hover { transform: translateY(-2px); color: white; }
.chat-fab:hover { color: var(--volt); }
.chat-panel {
  width: min(340px, calc(100vw - 2rem));
  height: 440px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; animation: fadeUp .3s var(--ease); }
.chat-head {
  background: var(--ink);
  color: white;
  padding: .9rem 1rem;
  font-family: var(--font-display);
  font-weight: 650;
  text-transform: none;
  font-size: .95rem;
  letter-spacing: -0.01em;
}
.chat-head small {
  display: block;
  font-weight: 500;
  opacity: .65;
  font-size: .7rem;
  margin-top: .2rem;
  text-transform: none;
  letter-spacing: 0;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.bubble {
  max-width: 88%;
  padding: .6rem .8rem;
  font-size: .88rem;
  line-height: 1.4;
  border-radius: 0;
}
.bubble-bot, .bubble-agent {
  background: var(--white);
  border: 1px solid var(--line);
  align-self: flex-start;
}
.bubble-visitor {
  background: var(--ink);
  color: var(--white);
  align-self: flex-end;
}
.chat-input {
  display: flex;
  gap: .4rem;
  padding: .65rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  padding: .55rem .7rem;
  background: var(--white);
}
.chat-input button {
  background: var(--volt);
  color: var(--ink);
  border: 0;
  padding: 0 .85rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .75rem;
}

/* —— MISC —— */
.prose { max-width: 68ch; }
.prose h2 { margin: 1.75rem 0 .75rem; font-size: 1.35rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.arch-diagram {
  display: grid;
  gap: .65rem;
  padding: 1.5rem;
  background: var(--ink);
  color: white;
  border-radius: 0;
}
.arch-row { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.arch-node {
  padding: .55rem .85rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: rgba(255,255,255,.85);
}
.arch-hub {
  background: var(--volt);
  color: var(--ink);
  border: 0;
  padding: .9rem 1.25rem;
  font-size: .85rem;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-item p { margin-top: .7rem; color: var(--mute); }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--ink); padding-left: 1.25rem; }
.timeline-step {
  display: block;
  padding-bottom: 1.25rem;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -1.55rem;
  top: .35rem;
  width: 10px;
  height: 10px;
  background: var(--volt);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.timeline-step:not(:last-child) .timeline-dot::after { display: none; }
.status-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.status-chip {
  font-size: .65rem;
  font-weight: 700;
  padding: .25rem .45rem;
  background: transparent;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 0;
}
.status-chip.done { border-color: var(--moss); color: var(--moss); }
.status-chip.current { border-color: var(--ink); background: var(--ink); color: var(--volt); }

.newsletter-inline {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.newsletter-inline input {
  flex: 1;
  min-width: 200px;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: white;
  border-radius: 0;
}
.newsletter-inline input::placeholder { color: rgba(255,255,255,.4); }

.workspace-band {
  border: 1px solid var(--ink);
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(198,240,53,.15), transparent 40%),
    var(--paper);
}

/* —— RESPONSIVE —— */
@media (max-width: 980px) {
  .plans, .footer-grid, .stat-grid, .two-col, .quote {
    grid-template-columns: 1fr;
  }
  .quote cite { text-align: left; }
  .plan { border-right: 0; border-bottom: 1px solid var(--ink); }
  .plan:last-child { border-bottom: 0; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  body.auth-page {
    align-items: stretch;
    padding: 1rem;
  }
  body.auth-page .auth-shell {
    width: min(420px, 100%);
    margin-inline: auto;
    min-height: auto;
  }
  body.auth-page .auth-panel {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .module-tile, .service-item {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .service-item .link-arrow { justify-self: start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 120; }
  .nav-links { display: none; }
  .nav-actions .nav-link,
  .nav-actions .lang-switch { display: none; }
  .nav-actions { gap: 0.4rem; }
  .nav-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }

  .nav.is-open .nav-links,
  .nav.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    z-index: 110;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav-links {
    top: 0;
    padding: calc(var(--nav-h) + 1rem) 1.35rem 1rem;
    gap: 0.35rem;
    border: 0;
  }
  .nav.is-open .nav-actions {
    top: auto;
    padding: 1rem 1.35rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    gap: 0.65rem;
    border-top: 1px solid rgba(255,255,255,.12);
    background: var(--ink-soft);
  }
  .nav.is-open .nav-actions .nav-link,
  .nav.is-open .nav-actions .lang-switch {
    display: block;
  }
  .nav.is-open .nav-link {
    color: white;
    font-size: 1.2rem;
    padding: 0.55rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav.is-open .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }
  .nav.is-open .lang-select {
    width: 100%;
    max-width: none;
    font-size: 0.95rem;
    padding: 0.55rem 0.65rem;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .nav-toggle span { transition: transform .2s ease, opacity .2s ease; }

  body.nav-open,
  body.filters-open {
    overflow: hidden;
    touch-action: none;
  }

  .post-item { grid-template-columns: 1fr; gap: .35rem; }
  .hero-map { opacity: .35; }
  .plans { border-left: 0; border-right: 0; }

  .site-header .container.nav {
    width: min(100% - 0.85rem, 1920px);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .flash-wrap { padding-inline: 0.75rem; }
  .site-footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .footer-grid { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .brand-text { font-size: 1.05rem; }
  :root { --nav-h: 60px; }
}
