@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --ink: #06101f;
  --ink-soft: #2a3d56;
  --muted: #6a7c93;
  --line: #d5dde8;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --navy: #0a1a33;
  --accent: #1a6dff;
  --accent-deep: #0d4fd1;
  --accent-soft: #e8f0ff;
  --steel: #4a6d8c;
  --steel-soft: #7a9bb8;
  --product: #c9dde8;
  --ok: #1f7a4d;
  --shadow: 0 18px 50px rgba(6, 16, 31, 0.12);
  --radius: 4px;
  --max: 1120px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Figtree", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: #d7deea;
  font-size: 0.875rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
}

.topbar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.topbar__meta a:hover {
  color: white;
}

.topbar__badge {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #8eb6ff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.logo--footer {
  background: transparent;
  padding: 0;
}

.logo--footer img {
  height: 56px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: white;
}

.btn--accent:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(6, 16, 31, 0.92) 0%, rgba(10, 26, 51, 0.72) 42%, rgba(26, 109, 255, 0.35) 100%),
    url("../images/chantier.png") center / cover no-repeat;
  animation: heroShift 18s ease-in-out infinite alternate;
}

@keyframes heroShift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero__content {
  padding: 7rem 0 4.5rem;
  max-width: 720px;
}

.hero__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  opacity: 0;
  animation: riseIn 0.8s ease forwards;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 18ch;
  opacity: 0;
  animation: riseIn 0.8s ease 0.12s forwards;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  opacity: 0;
  animation: riseIn 0.8s ease 0.22s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: riseIn 0.8s ease 0.32s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section__head {
  margin-bottom: 2rem;
  max-width: 620px;
}

.section__head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.section__head p {
  margin: 0;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.55rem;
}

.underline {
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem 0 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split--reverse > :first-child {
  order: 2;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent), var(--navy)) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 3px var(--surface);
  position: relative;
}

.check-list li::after {
  content: "";
  position: absolute;
}

.materials {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.55rem 0.85rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-inline-start: 3px solid var(--accent);
}

.visual-panel {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #050b14;
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.visual-panel--contain {
  background: #000;
}

.visual-panel--contain img {
  object-fit: contain;
  padding: 1.25rem;
}

.visual-caption {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(6, 16, 31, 0.82);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1;
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #c9d2e0;
}

.feature__n {
  font-family: var(--display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.step__n {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-family: var(--display);
  font-weight: 800;
  border-radius: var(--radius);
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.step ul {
  display: grid;
  gap: 0.35rem;
}

.step li {
  color: var(--ink-soft);
  padding-inline-start: 0.9rem;
  position: relative;
}

.step li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65rem;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
  border-radius: 50%;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, rgba(6, 16, 31, 0.94), rgba(13, 79, 209, 0.78)),
    linear-gradient(90deg, #06101f, #1a6dff);
  color: white;
  padding: 3.5rem 0;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  font-family: var(--display);
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.specs th,
.specs td {
  text-align: start;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.specs th {
  width: 42%;
  color: var(--ink-soft);
  font-weight: 600;
}

.specs tr:last-child th,
.specs tr:last-child td {
  border-bottom: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-item {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--accent-deep);
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(26, 109, 255, 0.35);
  border-color: var(--accent);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(180deg, #e8f0ff, var(--bg));
  border-bottom: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.gallery__item {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__item--product {
  background: #050b14;
  min-height: 320px;
}

.gallery__item--product img {
  object-fit: contain;
  padding: 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 0 0.6rem;
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  max-width: 55ch;
  color: var(--ink-soft);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a:hover {
  color: var(--accent-deep);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c5cedc;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .logo__tag {
  color: #8eb6ff;
  display: block;
  margin-top: 0.35rem;
}

.footer-about {
  margin: 1rem 0 0;
  max-width: 34ch;
  color: #9eabbf;
}

.site-footer h4 {
  margin: 0 0 0.9rem;
  color: white;
  font-size: 0.95rem;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #8b98ad;
}

.whatsapp-float {
  position: fixed;
  inset-inline-end: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1fa855;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(31, 168, 85, 0.35);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

.lang-fr,
.lang-ar {
  display: none;
}

html[lang="fr"] .lang-fr,
html[lang="ar"] .lang-ar {
  display: contents;
}

html[lang="ar"] .lang-fr {
  display: none;
}

html[lang="fr"] .lang-ar {
  display: none;
}

/* block-level bilingual helpers */
.i18n-block.lang-fr,
.i18n-block.lang-ar {
  display: none;
}

html[lang="fr"] .i18n-block.lang-fr,
html[lang="ar"] .i18n-block.lang-ar {
  display: block;
}

html[lang="fr"] span.lang-fr,
html[lang="ar"] span.lang-ar,
html[lang="fr"] a.lang-fr,
html[lang="ar"] a.lang-ar {
  display: inline;
}

@media (max-width: 960px) {
  .split,
  .split--reverse,
  .feature-strip,
  .contact-grid,
  .footer-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }

  .feature-strip {
    margin-top: 1.5rem;
  }

  .nav {
    display: none;
    position: absolute;
    inset-inline: 1.25rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-actions .btn--accent {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding: 5.5rem 0 3rem;
  }

  .visual-panel {
    min-height: 300px;
  }
}
