/* ============================================================
   BTP SÉNÉGAL 221 — Site CSS
   ------------------------------------------------------------
   Charte : Bleu #0a3d91 · Blanc · Accent doré #f5a623
   Fonts  : Poppins (titres) · Inter (corps / UI)
   ============================================================ */

:root {
  --blue:        #0a3d91;
  --blue-dark:   #062b66;
  --blue-light:  #1e6bd6;
  --accent:      #f5a623;
  --sky:         #eaf2ff;
  --ink:         #12203a;
  --gray:        #5b6b85;
  --line:        #e3e9f4;
  --white:       #ffffff;
  --shadow:      0 12px 40px rgba(10,61,145,.10);
  --radius:      16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92%); margin: 0 auto; }
section { padding: 88px 0; }
.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px;
}
.eyebrow--center { text-align: center; width: 100%; }
.sec-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.sec-sub { color: var(--gray); max-width: 640px; font-size: 1.05rem; margin: 0 auto; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 50px;
  cursor: pointer; border: none; transition: .25s; font-family: 'Inter', sans-serif;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(10,61,145,.28); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.3); }
.btn--whatsapp:hover { background: #1eb257; transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.4);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--outline { background: #fff; color: var(--blue); border: 2px solid var(--line); font-size: .92rem; padding: 11px 20px; }
.btn--outline:hover { border-color: var(--blue); background: var(--sky); }
.btn:active { transform: translateY(0) scale(.98); }

/* ============================================================
   HEADER
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 60px);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 46px; width: auto; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-weight: 500; color: var(--ink); font-size: .98rem; transition: .2s; }
.nav__links a:hover { color: var(--blue); }
.nav__cta-group { display: flex; align-items: center; gap: 14px; }
.nav__phone { font-weight: 700; color: var(--blue); font-size: .95rem; white-space: nowrap; }
.nav__cta { padding: 11px 22px; font-size: .92rem; white-space: nowrap; }
.burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.burger span { width: 26px; height: 3px; background: var(--blue); border-radius: 3px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
  color: #fff; padding: 96px clamp(20px, 4vw, 60px) 108px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 85% 20%, rgba(245,166,35,.25), transparent 40%);
}
.hero__inner {
  position: relative; z-index: 2; max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
}
.hero .eyebrow { color: var(--accent); }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.hero__title span { color: var(--accent); }
.hero__lede { font-size: 1.15rem; color: #d5e3ff; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(6px);
}
.hero__card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.hero__list { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.hero__list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: #eaf2ff; }
.check {
  min-width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  color: #062b66; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--sky); padding: 56px clamp(20px, 4vw, 60px); }
.stats__inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.stat { text-align: center; }
.stat__num { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.6rem); color: var(--blue); line-height: 1; }
.stat__unit { font-size: .42em; color: var(--blue-light); font-weight: 600; }
.stat__label { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); margin-top: 10px; }

/* ============================================================
   CATALOGUE PRODUITS
   ============================================================ */
.grid-produits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.produit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .28s;
}
.produit:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.produit__img-wrap { width: 100%; aspect-ratio: 4/3; background: #fbfcff; flex-shrink: 0; }
.produit__img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.produit__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.produit__index { font-family: 'Poppins', sans-serif; font-size: .8rem; font-weight: 700; color: var(--blue-light); }
.produit__name { font-size: 1.25rem; color: var(--ink); }
.produit__detail { color: var(--gray); font-size: .92rem; margin: 0; }
.produit__price {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--blue);
  margin: 10px 0 4px; padding-top: 12px; border-top: 1px solid var(--line);
}
.produit__currency { font-size: .75em; font-weight: 500; color: var(--gray); }
.produit .btn--outline { margin-top: auto; align-self: flex-start; }

/* ============================================================
   GARANTIES
   ============================================================ */
.garanties { background: var(--sky); }
.garanties__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.garantie {
  display: flex; gap: 20px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: .25s;
}
.garantie:hover { box-shadow: var(--shadow); }
.garantie__num { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--blue-light); line-height: 1; flex: 0 0 auto; }
.garantie h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.garantie p { color: var(--gray); font-size: .94rem; margin: 0; }

/* ============================================================
   ENGAGEMENT
   ============================================================ */
.engagement { text-align: center; }
.engagement__title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; max-width: 780px; margin: 0 auto 22px; color: var(--ink); }
.engagement__copy { color: var(--gray); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================================
   BANNER
   ============================================================ */
.banner-section { padding-top: 0; }
.banner {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 24px; padding: 52px 40px; text-align: center; color: #fff; box-shadow: var(--shadow);
}
.banner h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 12px; }
.banner p { color: #d5e3ff; margin-bottom: 26px; font-size: 1.1rem; }
.banner__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--white); }
.contact__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; align-items: start; }
.contact__info { display: grid; gap: 18px; }
.ci {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px; transition: .25s;
}
a.ci:hover { box-shadow: var(--shadow); }
.ci__ic { min-width: 50px; height: 50px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; font-size: 1.3rem; }
.ci b { display: block; font-family: 'Poppins', sans-serif; font-size: 1.05rem; }
.ci span span { color: var(--gray); font-size: .95rem; }
form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; color: var(--ink); }
form .field { margin-bottom: 18px; }
form input, form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .98rem; transition: .2s; background: #fbfcff;
}
form input:focus, form textarea:focus {
  outline: none; border-color: var(--blue-light); background: #fff;
  box-shadow: 0 0 0 3px rgba(30,107,214,.12);
}
form textarea { resize: vertical; min-height: 110px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #c3cee0; padding: 56px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer__logo { height: 40px; margin-bottom: 16px; }
.footer p { font-size: .95rem; color: #95a4bd; max-width: 320px; }
.footer__col h4 { font-family: 'Poppins', sans-serif; color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: #95a4bd; margin-bottom: 10px; font-size: .95rem; transition: .2s; }
.footer__col a:hover { color: #fff; }
.footer__base { border-top: 1px solid #26364f; padding-top: 22px; text-align: center; font-size: .88rem; color: #7f8ea8; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff;
  padding: 14px 20px; border-radius: 50px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: .25s;
}
.fab:hover { transform: scale(1.05); }
.fab svg { width: 22px; height: 22px; fill: #fff; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 300; transition: width .1s linear;
}

/* ============================================================
   REVEAL AU SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .grid-produits { grid-template-columns: repeat(2, 1fr); }
  .garanties__grid { grid-template-columns: 1fr; }
  .contact__wrap { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .nav__links, .nav__phone { display: none; }
  .nav__links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 20px 6%; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .burger { display: flex; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid-produits { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .nav__cta { display: none; }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}
