/* ==========================================================================
   Fabula Global Tech LLC: main stylesheet
   Style reference: gemeosagency.com (cream bg, near-black type, airy)
   ========================================================================== */

:root {
  --bg: #faf9ee;
  --bg-soft: #f3f1e2;
  --card: #fffef7;
  --ink: #1f1f1f;
  --body: #33322c;
  --muted: #6f6d60;
  --line: rgba(31, 31, 31, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Manrope", Arial, sans-serif;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
}

p {
  max-width: 68ch;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--card);
  border-color: var(--ink);
}

.btn-light {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

/* --------------------------------------------------------------------------
   Sections / typography helpers
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

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

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(88px, 12vw, 150px) 0 clamp(72px, 9vw, 120px);
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.hero .lead {
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Grids and cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 31, 31, 0.07);
}

.card p {
  font-size: 0.97rem;
  color: var(--muted);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg-soft);
  color: var(--ink);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* "Pourquoi nous choisir" list */

.points {
  counter-reset: point;
}

.point {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 260px 1fr;
  gap: 20px;
  align-items: baseline;
}

.point-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.point h3 {
  font-size: 1.15rem;
}

.point p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Links with arrow */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Dark call-to-action band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: calc(var(--radius-lg) + 8px);
  padding: clamp(48px, 7vw, 80px) clamp(28px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  color: var(--bg);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.cta-band p {
  margin-top: 10px;
  color: rgba(250, 249, 238, 0.72);
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
}

.page-head .lead {
  margin-top: 20px;
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.prose {
  max-width: 720px;
}

.prose p + p {
  margin-top: 18px;
}

.facts {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 8px 28px;
}

.facts div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

.facts div:first-child {
  border-top: 0;
}

.facts dt {
  font-weight: 700;
  color: var(--ink);
}

.facts dd {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--body);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.08);
}

.form-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info .card {
  gap: 6px;
  padding: 24px 26px;
}

.contact-info .card h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-info .card a,
.contact-info .card p {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--body);
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 20px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 72px) 0 32px;
  margin-top: clamp(48px, 7vw, 88px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 320px;
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul a {
  font-size: 0.95rem;
  color: var(--body);
}

.footer ul a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .point {
    grid-template-columns: 56px 1fr;
  }

  .point p {
    grid-column: 2;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    left: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(31, 31, 31, 0.1);
    display: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--bg-soft);
  }

  .header.nav-open .nav-links {
    display: flex;
  }

  .header.nav-open .burger span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .header.nav-open .burger span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .burger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-band {
    display: block;
  }

  .cta-band .btn {
    margin-top: 24px;
  }
}
