:root {
  --green: #0f3d2e;
  --green-2: #16543f;
  --gold: #f2b705;
  --gold-2: #d99e00;
  --red: #c8342b;
  --ink: #16201c;
  --muted: #5d6b65;
  --line: #e2e7e4;
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 61, 46, .08);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold-2); margin-bottom: .4rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .98rem; font-family: inherit; transition: .15s; }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-2); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- En-tête ---------- */
.topbar { background: var(--green); color: #dfe9e4; font-size: .82rem; }
.topbar .wrap { display: flex; gap: 18px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--green); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: var(--gold); display: grid; place-items: center; font-size: .95rem; letter-spacing: -.02em; }
.logo small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
nav.menu { display: flex; gap: 22px; align-items: center; }
nav.menu a { text-decoration: none; font-weight: 500; font-size: .95rem; }
nav.menu a:hover { color: var(--gold-2); }
.burger { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--green); }
@media (max-width: 960px) {
  .burger { display: block; }
  nav.menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 10px 4px; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(242,183,5,.25), transparent 60%), linear-gradient(160deg, var(--green) 0%, #0a2a20 100%); color: #fff; padding: 84px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.hero h1 span { color: var(--gold); }
.hero p { color: #d3e2db; font-size: 1.12rem; max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: #fff; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 24px; }
.hero-card h3 { color: var(--gold); }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; }
.hero-card li b { display: block; }
.hero-card li span { color: #c0d3ca; font-size: .9rem; }
.ic { flex: 0 0 38px; height: 38px; border-radius: 10px; background: rgba(242,183,5,.16); display: grid; place-items: center; font-size: 1.15rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 56px 0 64px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.stat b { display: block; font-family: "Poppins"; font-size: 1.6rem; color: var(--green); }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cartes génériques ---------- */
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.service { transition: .2s; text-decoration: none; display: block; }
.card.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { background: #fff4cc; margin-bottom: 14px; width: 46px; height: 46px; flex-basis: 46px; font-size: 1.35rem; }
.card p { color: var(--muted); margin: 0; }
.check { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.check li::before { content: "✓"; color: var(--green-2); font-weight: 800; margin-right: 8px; }
.price-tag { font-family: "Poppins"; font-weight: 700; color: var(--green); font-size: 1.3rem; margin-top: 12px; }
.price-tag small { font-weight: 500; color: var(--muted); font-size: .8rem; }

/* ---------- Inventaire ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin: 26px 0 22px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters input[type=search] { grid-column: 1 / -1; } }
input, select, textarea { width: 100%; padding: .75em .9em; border: 1px solid #cfd8d3; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-size: .9rem; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .2s; display: flex; flex-direction: column; }
.vcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.vcard .ph { aspect-ratio: 16/10; background: var(--bg-soft); position: relative; }
.vcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; padding: .25em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #fff; }
.badge.usage { background: #e3f4ea; color: #1b6b42; }
.badge.accidente { background: #fde4e1; color: var(--red); }
.badge.reconstruit { background: #fff1c7; color: #8a6500; }
.badge.reserve { left: auto; right: 10px; background: var(--ink); color: #fff; }
.badge.star { left: auto; right: 10px; background: var(--gold); color: var(--green); }
.vcard .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard h3 { margin: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .86rem; }
.vprice { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vprice b { font-family: "Poppins"; font-size: 1.3rem; color: var(--green); }
.vprice span { color: var(--muted); font-size: .85rem; }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(10,25,19,.65); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 18px; max-width: 980px; width: 100%; overflow: hidden; position: relative; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 1.3rem; cursor: pointer; }
.vd { display: grid; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 820px) { .vd { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 16/11; background: #111; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #f0f2f1; }
.thumbs img { width: 76px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.thumbs img.on { opacity: 1; border-color: var(--gold); }
.vd-info { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.alert { background: #fff6dc; border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.alert.red { background: #fdeceb; border-color: var(--red); }
.estimator { background: var(--bg-soft); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.estimator .row { display: flex; justify-content: space-between; font-size: .93rem; }
.estimator .total { font-weight: 700; color: var(--green); border-top: 1px solid var(--line); padding-top: 8px; }

/* ---------- Tableau transfert ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.prices { width: 100%; border-collapse: collapse; min-width: 560px; }
table.prices th, table.prices td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.prices th { background: var(--green); color: #fff; font-weight: 600; font-size: .9rem; }
table.prices td b { color: var(--green); }
table.prices tr:last-child td { border-bottom: 0; }

/* ---------- Étapes export ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--green); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }
.ports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ports span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .88rem; }

/* ---------- Bandeau B2B ---------- */
.b2b { background: linear-gradient(135deg, var(--green), #0a2a20); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.b2b p, .b2b li { color: #d3e2db; }
.b2b .check li::before { color: var(--gold); }
@media (max-width: 820px) { .b2b { grid-template-columns: 1fr; padding: 28px 20px; } }

/* ---------- Formulaire ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form label { font-size: .86rem; font-weight: 600; display: grid; gap: 5px; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-item .ic { background: #fff4cc; }
.success { background: #e3f4ea; color: #1b6b42; padding: 16px; border-radius: 12px; }
.error { background: #fdeceb; color: var(--red); padding: 12px; border-radius: 10px; }

/* ---------- Pied de page ---------- */
footer { background: #0a2a20; color: #b7c9c0; padding: 50px 0 24px; font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; margin: 0 0 10px; }
footer a { text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--gold); }
footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.demo-bar { background: var(--gold); color: var(--green); text-align: center; font-size: .85rem; padding: 6px 12px; font-weight: 600; }
section[id] { scroll-margin-top: 76px; }
@media (max-width: 600px) { .topbar .wrap { justify-content: center; } .topbar .wrap > span:last-child { display: none; } }

/* ---------- Passerelle vers MobiDakar ---------- */
.md-promo { background: linear-gradient(135deg, #0a4d68, #06303f); }
.btn-md { background: #ff7a1a; color: #fff; }
.btn-md:hover { background: #e8660a; }
