/* ============================================================
   Baara — Landing Page
   Fonts: Ubuntu (body/headings), JetBrains Mono (numbers/labels)
   ============================================================ */

:root {
  --bg:        #FAF9F6;
  --bg-soft:   #FCFBF9;
  --ink:       #14171B;
  --navy:      #1B2A4A;
  --gold:      #C89B3C;
  --gold-dark: #9C7526;
  --green:     #0E6355;
  --muted:     #565C66;
  --muted-2:   #6B7078;
  --faint:     #9BA0A6;
  --border:    #E7E3DB;
  --max:       1120px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Ubuntu', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--navy); }
::selection { background: rgba(200, 155, 60, 0.35); }

.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--sm  { padding: 10px 20px; font-size: 13.5px; border-radius: 9px; }
.btn--lg  { padding: 14px 26px; font-size: 15px; }
.btn--block { display: flex; width: 100%; padding: 12px; font-size: 14px; }

.btn--navy  { background: var(--navy); color: #fff; }
.btn--navy:hover  { color: #fff; box-shadow: 0 8px 20px -8px rgba(27,42,74,.5); transform: translateY(-1px); }

.btn--gold  { background: var(--gold); color: var(--navy); }
.btn--gold:hover  { color: var(--navy); box-shadow: 0 10px 24px -10px rgba(200,155,60,.7); transform: translateY(-1px); }

.btn--ghost { color: var(--ink); padding-left: 10px; padding-right: 10px; font-weight: 600; }
.btn--ghost:hover { color: var(--gold-dark); }

.btn--outline { border-color: var(--border); color: var(--ink); background: transparent; }
.btn--outline:hover { color: var(--ink); border-color: var(--gold); background: rgba(200,155,60,.06); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--pill {
  display: inline-block;
  background: #FBF0DC;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

/* ---------- Cards (shared) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand__name--sm { font-size: 14px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--ink); }
.nav__links a:not(.btn):hover { color: var(--gold-dark); }
.nav__login { font-weight: 500; }

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px;
}
.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.section__title--light { color: #fff; margin-bottom: 0; }
.section__sub { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 32px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 460px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__note { font-size: 13px; color: var(--faint); margin-top: 22px; }

.stores { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.store {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 9px;
  transition: transform .15s ease;
}
.store:hover { color: #fff; transform: translateY(-1px); }
.store__text { display: flex; flex-direction: column; }
.store__small { font-size: 8.5px; color: #B8BCC2; line-height: 1.2; }
.store__big { font-size: 13px; font-weight: 700; line-height: 1.2; }

/* Badge store pas encore disponible : informatif, non cliquable */
.store--soon { background: #2A3140; cursor: default; }
.store--soon:hover { transform: none; }

/* Invoice preview card */
.invoice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px -30px rgba(27, 42, 74, 0.25);
}
.invoice-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.invoice-card__no {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-dark);
}
.invoice-card__badge {
  background: #E4EFEC;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.invoice-card__client { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.invoice-card__project { font-size: 12.5px; color: var(--muted-2); margin-bottom: 18px; }
.invoice-card__lines { border-top: 1px solid var(--border); padding-top: 14px; }
.invoice-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
}
.invoice-line .paid { color: var(--green); }
.invoice-card__total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  margin-top: 12px;
  padding-top: 14px;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature__title { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.feature__text { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.feature--wide {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.feature--wide .feature__icon { margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--navy); padding: 64px 32px; }
.testimonials__inner { max-width: var(--max); margin: 0 auto; }
.testimonials .section__head { max-width: 520px; margin-bottom: 44px; }
.testimonials .section__title { font-size: 30px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 26px;
  margin: 0;
}
.testimonial blockquote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--border);
  margin: 0 0 18px;
}
.testimonial__name { display: block; font-size: 13px; font-weight: 700; color: #fff; }
.testimonial__role { display: block; font-size: 12px; color: #9BA9C4; }

/* ---------- Pricing ---------- */
.pricing { padding: 72px 32px; }
.pricing .section__head { max-width: 520px; }
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.plan--featured { background: var(--navy); border-color: var(--navy); position: relative; }
.plan__flag {
  position: absolute;
  top: -12px;
  right: 28px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}
.plan__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.plan__name--gold { color: var(--gold); }
.plan__price { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan__price span { font-size: 16px; font-weight: 500; color: var(--faint); }
.plan__price--light { color: #fff; }
.plan__price--light span { color: #9BA9C4; }
.plan__desc { font-size: 13px; color: var(--faint); margin: 0 0 24px; }
.plan__desc--light { color: #9BA9C4; }
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan__list li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink); }
.plan__list--light li { color: #fff; }
.check--green { color: var(--green); }
.check--gold { color: var(--gold); }

.plan__fee {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.plan__fee strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.plan__fee span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.plan__fee--light { border-top-color: rgba(255, 255, 255, 0.18); }
.plan__fee--light strong { color: #fff; }
.plan__fee--light span { color: #9BA9C4; }

.pricing__note {
  text-align: center;
  max-width: 520px;
  margin: 32px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 32px; }
.faq__inner { max-width: 760px; margin: 0 auto; }
.faq .section__head { margin-bottom: 40px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}
.faq__item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 500;
  color: var(--gold-dark);
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }

/* ---------- CTA ---------- */
.cta { padding: 80px 32px; text-align: center; }
.cta__title { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance; }
.cta__sub { font-size: 15px; color: var(--muted); margin: 0 0 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 32px; }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__legal { font-size: 12.5px; color: var(--faint); margin: 0; }
.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer__links a { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.footer__links a:hover { color: var(--gold-dark); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.legal h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.legal__updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 40px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.legal p,
.legal li { font-size: 15px; line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.legal .todo {
  background: #FBF0DC;
  color: #7A5A15;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 4px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }
  .hero__title { font-size: 40px; }
  .invoice-card { order: -1; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__inner,
  .section,
  .testimonials,
  .faq,
  .footer,
  .cta { padding-left: 20px; padding-right: 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }

  .nav__links { gap: 16px; }
  .nav__links a:not(.btn) { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }

  .hero__title { font-size: 34px; }
  .section__title { font-size: 26px; }
  .cta__title { font-size: 27px; }
}

@media (max-width: 400px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .stores { flex-direction: column; }
  .store { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
