/* IMPAKT AGENCY — site vitrine (2026-12) */
:root {
  --ink: #0B0B0B; --ink-2: #4a4a4a; --muted: #7a7a76; --cream: #F4F3EF; --paper: #ffffff; --line: #e4e2dc;
  --orange: #FE6E3C; --orange-d: #e5551f; --green: #1faa59; --green-d: #168a47; --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 11, 11, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Archivo', 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: 'Cairo', var(--font); }
html[lang="ar"] .display, html[lang="ar"] h1, html[lang="ar"] h2 { font-family: 'Cairo', var(--display); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
/* bilingual text: both languages in the page, one shown */
html[lang="fr"] .t-ar, html[lang="ar"] .t-fr { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 11, .96); color: #fff; backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { height: 26px; width: auto; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14px; opacity: .85; }
.nav a:hover, .nav a.on { opacity: 1; color: var(--orange); }
.lang-btn { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; font-family: 'Cairo', var(--font); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 64px; inset-inline: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu-btn { display: block; margin-inline-start: auto; }
  .nav .lang-btn { margin-top: 12px; align-self: flex-start; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; font-family: inherit; transition: transform .12s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-wa { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(31, 170, 89, .35); }
.btn-wa:hover { background: var(--green-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-block { width: 100%; }
.wa-ico { width: 22px; height: 22px; flex: 0 0 auto; }

/* hero */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 18px; opacity: .82; margin: 0 0 26px; max-width: 34em; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1a1a; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; opacity: .85; }
.trust > span::before { content: '✓ '; color: var(--orange); font-weight: 900; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; } .hero-img { aspect-ratio: 4 / 3; } }

/* sections */
section.block { padding: 56px 0; }
section.block.white { background: var(--paper); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); margin: 0; letter-spacing: -.01em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.kicker { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .15s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .pic { aspect-ratio: 1; background: #fff; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.card .desc { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.card .price { font-weight: 900; font-size: 18px; }
.card .price small { font-weight: 600; color: var(--muted); font-size: 13px; }
.card .go { color: var(--orange); font-weight: 800; font-size: 14px; }
.badge { display: inline-block; background: var(--orange); color: #fff; font-weight: 800; font-size: 11px; border-radius: 999px; padding: 3px 9px; letter-spacing: .04em; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--orange); font-weight: 900; margin-bottom: 10px; }
.step p { margin: 0; font-weight: 600; }

/* product page */
.p-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
@media (max-width: 860px) { .p-hero .wrap { grid-template-columns: 1fr; gap: 20px; } }
.p-media { position: sticky; top: 80px; }
@media (max-width: 860px) { .p-media { position: static; } }
.p-main { background: #fff; border-radius: 22px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.p-main img { width: 100%; height: 100%; object-fit: contain; }
.p-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.p-thumbs button { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; cursor: pointer; }
.p-thumbs button.on { border-color: var(--orange); }
.p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; margin: 6px 0 10px; }
.p-info .short { font-size: 17px; color: var(--ink-2); margin: 0 0 16px; }
.hl { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.hl li { padding-inline-start: 26px; position: relative; font-weight: 600; }
.hl li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 900; }

/* simulators */
.sim { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.sim h3 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--orange); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; width: max-content; }
.qty button { width: 44px; height: 46px; border: 0; background: #f3f2ee; font-size: 20px; font-weight: 800; cursor: pointer; }
.qty input { width: 56px; border: 0; text-align: center; font-weight: 800; font-size: 17px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.seg button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.price-box { background: var(--cream); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.price-box .line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.price-box .total { font-size: 22px; font-weight: 900; border-top: 1px dashed #cfcbc2; padding-top: 8px; margin-top: 4px; }
.price-box .total b { color: var(--orange-d); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.err { color: #c62828; font-size: 13px; font-weight: 700; margin: 0; }

/* specs / faq */
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 700; }
.faq details { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* realisations */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery button { border: 0; padding: 0; background: #ddd; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 16; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 12px; }
.lightbox .x { position: absolute; top: 12px; inset-inline-end: 16px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; }

/* floating WhatsApp + mobile sticky bar */
.fab { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; background: var(--green); display: grid; place-items: center; border: 0; box-shadow: 0 10px 26px rgba(0,0,0,.25); cursor: pointer; }
.fab svg { width: 32px; height: 32px; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .sticky-cta .p { font-weight: 900; font-size: 17px; flex: 0 0 auto; }
  .sticky-cta .btn { flex: 1; padding: 13px 16px; }
  body.has-sticky .fab { display: none; }
  body.has-sticky { padding-bottom: 78px; }
}

/* request modal */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(11,11,11,.55); display: none; align-items: flex-end; justify-content: center; }
.modal.open { display: flex; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
@media (min-width: 761px) { .modal { align-items: center; } .sheet { border-radius: 22px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.sheet-head .x { background: #f1f0ec; border: 0; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; cursor: pointer; }
.msg-preview { background: #e9f8ee; border-radius: 12px; padding: 12px; font-size: 13px; white-space: pre-wrap; color: #1d3b2a; max-height: 160px; overflow-y: auto; }

/* footer */
footer { background: var(--ink); color: #fff; padding: 40px 0 90px; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
footer h4 { margin: 0 0 10px; color: var(--orange); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
footer a { display: block; opacity: .8; text-decoration: none; padding: 3px 0; }
footer p { opacity: .7; margin: 8px 0 0; font-size: 14px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.contact-card h3 { margin: 0 0 6px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 700; font-size: 14px; cursor: pointer; line-height: 1.25; }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); flex: 0 0 auto; margin: 0; }
.choice:has(input:checked) { border-color: var(--ink); background: #f6f5f1; }
@media (max-width: 380px) { #reqDesign .seg { grid-template-columns: 1fr; } }

.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery.wide button { aspect-ratio: 4 / 3; }
