/* ─── Font ──────────────────────────────────────────────────
   Place Inter-VariableFont_opsz,wght.ttf in static/fonts/
   ──────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ─── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #111;
  background: #fff;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: #111; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Layout ────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; border-bottom: 1px solid #e5e7eb; }
.section-head { margin-bottom: 28px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #888; display: block; margin-bottom: 6px; }
.section-title { font-size: clamp(20px, 2.5vw, 30px); font-weight: 700; color: #111; letter-spacing: -.03em; margin-bottom: 6px; }
.section-sub { font-size: 14px; color: #666; max-width: 52ch; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 13px; font-weight: 500; padding: 8px 18px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn-dark { background: #111; color: #fff; border-color: #111; }
.btn-dark:hover { background: #333; text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #111; border-color: #e5e7eb; }
.btn-outline:hover { border-color: #ccc; background: #f9f9f9; text-decoration: none; }
.btn-brand { background: #e35000; color: #fff; border-color: #e35000; }
.btn-brand:hover { background: #c94700; text-decoration: none; color: #fff; }
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #20bb5a; text-decoration: none; color: #fff; }

/* ─── Header ────────────────────────────────────────────── */
#site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid #e5e7eb; }
.header-inner { display: flex; align-items: center; height: 56px; gap: 24px; }
.logo { font-weight: 700; font-size: 15px; color: #111; display: flex; align-items: center; gap: 3px; }
.logo:hover { text-decoration: none; }
.logo-dot { color: #e35000; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { font-size: 13px; color: #555; padding: 5px 10px; border-radius: 4px; }
.nav-link:hover { color: #111; background: #f5f5f5; text-decoration: none; }
.nav-link.active { color: #111; font-weight: 500; }
.nav-cta { margin-left: 8px; font-size: 13px; font-weight: 500; background: #25D366; color: #fff; padding: 5px 14px; border-radius: 4px; display: flex; align-items: center; gap: 6px; }
.nav-cta:hover { background: #20bb5a; text-decoration: none; color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.burger span { display: block; width: 20px; height: 1.5px; background: #111; transition: .15s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Footer ────────────────────────────────────────────── */
#site-footer { padding: 14px 0 10px; font-size: 13px; color: #888; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.footer-inner a { color: #888; }
.footer-inner a:hover { color: #111; }
.footer-sep { color: #ddd; }
.footer-legal { font-size: 11px; color: #111; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; }

/* ─── WhatsApp float ────────────────────────────────────── */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 200; width: 48px; height: 48px; background: #25D366; color: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.15); transition: .15s; }
.wa-float:hover { transform: scale(1.06); text-decoration: none; color: #fff; }
.wa-tip { position: absolute; right: 56px; background: #111; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.wa-tip::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: #111; }
.wa-float:hover .wa-tip { opacity: 1; }

/* ─── Hero (homepage) ───────────────────────────────────── */
#hero { border-bottom: 1px solid #e5e7eb; padding: 72px 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #888; border: 1px solid #e5e7eb; padding: 4px 12px; border-radius: 100px; margin-bottom: 24px; }
.hero-tag span { width: 6px; height: 6px; background: #e35000; border-radius: 50%; display: inline-block; }
#hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 700; color: #111; line-height: 1.08; letter-spacing: -.04em; margin-bottom: 16px; }
#hero > .wrap > .hero-inner > p { font-size: 16px; color: #666; max-width: 52ch; line-height: 1.7; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 36px; margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5e7eb; flex-wrap: wrap; }
.metric-val { font-size: 28px; font-weight: 700; color: #111; letter-spacing: -.04em; line-height: 1; }
.metric-label { font-size: 12px; color: #888; margin-top: 4px; }

/* ─── Services (2-col, no tabs) ─────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e5e7eb; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.service-card { background: #fff; padding: 28px; }
.service-card:hover { background: #fafafa; }
.service-icon { font-size: 22px; margin-bottom: 12px; }
.service-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.service-card > p { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.6; }
.service-feats { margin-bottom: 20px; }
.service-feats li { font-size: 13px; color: #444; padding: 5px 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 8px; }
.service-feats li::before { content: '—'; color: #ccc; flex-shrink: 0; font-size: 11px; margin-top: 2px; }
.service-feats li:last-child { border-bottom: none; }
.service-link { font-size: 13px; font-weight: 500; color: #111; }

/* ─── Products (3-col) ──────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.product-card { background: #fff; padding: 28px; border-right: 1px solid #e5e7eb; }
.product-card:last-child { border-right: none; }
.product-card:hover { background: #fafafa; }
.product-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.product-card > p:not(.product-tag) { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.6; }
.product-tag { font-size: 12px; font-weight: 600; color: #888; margin-bottom: 12px; }
.product-card .btn { margin-top: 16px; }

/* ─── Projects (2-col) ──────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.project-card { border: 1px solid #e5e7eb; border-radius: 4px; padding: 22px 24px; }
.project-card:hover { background: #fafafa; }
.project-badge { font-size: 11px; font-weight: 600; color: #888; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.project-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 2px; }
.project-city { font-size: 12px; color: #bbb; margin-bottom: 10px; }
.project-desc { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.project-result { font-size: 13px; color: #111; font-weight: 500; padding-top: 12px; border-top: 1px solid #f0f0f0; }

/* ─── Numbers ────────────────────────────────────────────── */
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.num-cell { padding: 28px 24px; border-right: 1px solid #e5e7eb; }
.num-cell:last-child { border-right: none; }
.num-val { font-size: 32px; font-weight: 700; color: #111; letter-spacing: -.04em; line-height: 1; }
.num-label { font-size: 12px; color: #888; margin-top: 6px; line-height: 1.4; }

/* ─── Why ────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.why-items { margin-top: 20px; }
.why-item { padding: 16px 0; border-bottom: 1px solid #e5e7eb; display: flex; gap: 16px; }
.why-num { font-size: 11px; font-weight: 700; color: #ccc; flex-shrink: 0; width: 24px; margin-top: 3px; }
.why-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.02em; }
.why-item p { font-size: 13px; color: #666; line-height: 1.6; }
.why-box { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.why-box-top { background: #111; padding: 20px 24px; }
.why-box-big { font-size: 40px; font-weight: 700; color: #fff; letter-spacing: -.05em; line-height: 1; }
.why-box-top > p { font-size: 13px; color: #888; margin-top: 4px; }
.why-box-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid #e5e7eb; }
.why-box-row:last-child { border-bottom: none; }
.why-box-row span:first-child { font-size: 13px; color: #555; }
.why-box-row span:last-child { font-size: 13px; font-weight: 600; color: #111; }

/* ─── Testimonials ───────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.testi-card { padding: 24px; border-right: 1px solid #e5e7eb; }
.testi-card:last-child { border-right: none; }
.testi-stars { font-size: 12px; color: #f59e0b; margin-bottom: 12px; }
.testi-card blockquote { font-size: 13px; color: #555; line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testi-name { font-size: 13px; font-weight: 600; color: #111; }
.testi-role { font-size: 12px; color: #888; margin-top: 2px; }

/* ─── CTA band ───────────────────────────────────────────── */
.cta-band { background: #111; padding: 56px 0; }
.cta-band-inner { text-align: center; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); color: #fff; letter-spacing: -.03em; margin-bottom: 8px; font-weight: 700; }
.cta-band p { color: #888; font-size: 14px; margin-bottom: 28px; }
.cta-band-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── Page hero (inner pages) ───────────────────────────── */
.page-hero { border-bottom: 1px solid #e5e7eb; padding: 56px 0; }
.breadcrumb { font-size: 12px; color: #888; margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #111; }
.page-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 700; letter-spacing: -.04em; max-width: 18ch; margin-bottom: 12px; }
.page-hero p { font-size: 14px; color: #666; max-width: 54ch; line-height: 1.7; margin-bottom: 20px; }

/* ─── Features table ─────────────────────────────────────── */
.features-table { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.feat-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; align-items: flex-start; }
.feat-row:last-child { border-bottom: none; }
.feat-row:hover { background: #fafafa; }
.feat-icon { width: 36px; height: 36px; border: 1px solid #e5e7eb; border-radius: 4px; display: grid; place-items: center; font-size: 14px; }
.feat-row h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; letter-spacing: -.02em; }
.feat-row p { font-size: 13px; color: #666; line-height: 1.6; }

/* ─── Sectors ────────────────────────────────────────────── */
.sectors-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.sector { padding: 24px; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.sector:nth-child(2n) { border-right: none; }
.sector:nth-last-child(-n+2) { border-bottom: none; }
.sector-emoji { font-size: 20px; margin-bottom: 10px; }
.sector h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.02em; }
.sector p { font-size: 13px; color: #666; line-height: 1.6; }

/* ─── Steps ──────────────────────────────────────────────── */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.step { padding: 20px; border-right: 1px solid #e5e7eb; }
.step:last-child { border-right: none; }
.step-num { font-size: 20px; font-weight: 700; color: #e5e7eb; letter-spacing: -.04em; margin-bottom: 8px; }
.step h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 12px; color: #666; line-height: 1.6; }

/* ─── Inline CTA ─────────────────────────────────────────── */
.inline-cta { border: 1px solid #e5e7eb; border-radius: 6px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inline-cta h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.inline-cta p { font-size: 13px; color: #666; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 720px; }
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; cursor: pointer; font-size: 14px; font-weight: 500; gap: 16px; user-select: none; }
.faq-q::after { content: '+'; color: #888; flex-shrink: 0; font-size: 18px; line-height: 1; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { font-size: 13px; color: #666; line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 14px; }

/* ─── Modules (produit page) ─────────────────────────────── */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.mod-cell { padding: 16px 20px; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.mod-cell:nth-child(3n) { border-right: none; }
.modules-grid .mod-cell:nth-last-child(-n+3) { border-bottom: none; }
.mod-emoji { font-size: 16px; margin-bottom: 6px; }
.mod-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.mod-desc { font-size: 12px; color: #888; }

/* ─── Pricing (produit page) ─────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.pricing-col { padding: 24px; border-right: 1px solid #e5e7eb; }
.pricing-col:last-child { border-right: none; }
.pricing-col.featured { background: #111; }
.pricing-name { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #888; margin-bottom: 6px; }
.pricing-col.featured .pricing-name { color: #666; }
.pricing-price { font-size: 22px; font-weight: 700; letter-spacing: -.04em; color: #111; margin-bottom: 4px; }
.pricing-col.featured .pricing-price { color: #fff; }
.pricing-desc { font-size: 13px; color: #666; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; line-height: 1.55; }
.pricing-col.featured .pricing-desc { color: #888; border-color: rgba(255,255,255,.1); }
.pricing-features { margin-bottom: 20px; }
.pricing-features li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; padding: 4px 0; }
.pricing-features li::before { content: '✓'; color: #1a5c38; font-weight: 700; flex-shrink: 0; font-size: 12px; }
.pricing-col.featured .pricing-features li { color: rgba(255,255,255,.7); }
.pricing-col.featured .pricing-features li::before { color: #6ee7a5; }

/* ─── Responsive ─────────────────────────────────────────── */

/* Tablet — 3-col grids become 2-col */
@media (max-width: 960px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card:nth-child(2) { border-right: none; }
  .product-card:nth-child(3) { border-right: none; border-top: 1px solid #e5e7eb; grid-column: span 2; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .num-cell:nth-child(2) { border-right: none; }
  .num-cell:nth-child(n+3) { border-top: 1px solid #e5e7eb; }
  .num-cell:nth-child(4) { border-right: none; }
}

/* Burger menu */
@media (max-width: 820px) {
  .burger { display: flex; }
  .main-nav { display: none; position: fixed; inset: 56px 0 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 2px; overflow-y: auto; border-top: 1px solid #e5e7eb; }
  .main-nav.open { display: flex; }
  .nav-link { font-size: 15px; padding: 10px; width: 100%; }
  .nav-cta { margin: 8px 0 0; width: 100%; justify-content: center; padding: 10px 14px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Spacing */
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  #hero { padding: 44px 0; }
  .cta-band { padding: 40px 0; }

  /* Products → 1 col */
  .products-grid { grid-template-columns: 1fr; }
  .product-card,
  .product-card:nth-child(2),
  .product-card:nth-child(3) { border-right: none; border-top: none; grid-column: auto; border-bottom: 1px solid #e5e7eb; }
  .product-card:last-child { border-bottom: none; }
  .product-card .btn { width: 100%; justify-content: center; }

  /* Projects → 1 col */
  .projects-grid { grid-template-columns: 1fr; }

  /* Why → 1 col, tighter gap */
  .why-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Testimonials → 1 col */
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card { border-right: none; border-bottom: 1px solid #e5e7eb; }
  .testi-card:last-child { border-bottom: none; }

  /* Pricing → 1 col (2-col trop serré avec la colonne featured sombre) */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-col { border-right: none; border-bottom: 1px solid #e5e7eb; }
  .pricing-col:last-child { border-bottom: none; }

  /* Services → 1 col */
  .services-grid { grid-template-columns: 1fr; }

  /* Sectors → 1 col */
  .sectors-grid { grid-template-columns: 1fr; }
  .sector { border-right: none; }
  .sector:nth-last-child(-n+2) { border-bottom: 1px solid #e5e7eb; }
  .sector:last-child { border-bottom: none; }

  /* Steps → 2 col */
  .steps-row { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-top: 1px solid #e5e7eb; }

  /* Modules → 2 col */
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .mod-cell:nth-child(3n) { border-right: 1px solid #e5e7eb; }
  .mod-cell:nth-child(2n) { border-right: none; }

  /* Hero metrics */
  .hero-metrics { gap: 20px; margin-top: 28px; padding-top: 24px; }

  /* Footer: hide | separators when wrapping */
  .footer-sep { display: none; }
  .footer-inner { gap: 4px 14px; }
}

/* Small phones */
@media (max-width: 480px) {
  .section { padding: 32px 0; }
  #hero { padding: 36px 0; }

  /* CTA buttons stack vertically */
  .cta-band-btns { flex-direction: column; align-items: stretch; }
  .cta-band-btns .btn { justify-content: center; }

  /* Hero buttons stack */
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }

  /* Steps and modules → 1 col */
  .steps-row { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid #e5e7eb; }
  .step:last-child { border-bottom: none; }
  .modules-grid { grid-template-columns: 1fr; }
  .mod-cell { border-right: none; }
}
