:root {
  --ink: #17212b;
  --muted: #5b6673;
  --line: #d9e1e8;
  --paper: #f8fafc;
  --white: #ffffff;
  --navy: #12324a;
  --teal: #047b83;
  --green: #1f8a5f;
  --gold: #d98c00;
  --red: #c5443f;
  --shadow: 0 18px 44px rgba(18, 50, 74, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  background: var(--navy);
  color: #edf7fb;
  font-size: 14px;
}

.topbar-inner, .nav-inner, .section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 6px 0;
}

.contact-mini {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text strong {
  display: block;
  font-size: 20px;
}

.brand-text span {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #263747;
  font-size: 15px;
}

.nav-links a.active {
  color: var(--teal);
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.lang-switch button {
  border: 0;
  padding: 9px 12px;
  min-width: 48px;
  background: white;
  color: var(--navy);
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--navy);
  color: white;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 44px;
}

.btn.secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero {
  min-height: 560px;
  color: white;
  background:
    linear-gradient(90deg, rgba(13, 35, 52, .88), rgba(13, 35, 52, .54), rgba(13, 35, 52, .25)),
    var(--hero-image) center/cover;
  display: flex;
  align-items: center;
  transition: background-image .35s ease;
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: .98;
  margin: 22px 0 18px;
}

.hero p {
  max-width: 650px;
  color: #edf7fb;
  font-size: 19px;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-dots, .promo-dots {
  display: flex;
  gap: 8px;
}

.hero-dots { margin-top: 30px; }
.promo-dots { justify-content: center; margin-top: 16px; }

.hero-dots button, .promo-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  cursor: pointer;
}

.promo-dots button { background: #c6d3dc; width: 26px; }
.hero-dots button.active { background: white; }
.promo-dots button.active { background: var(--teal); }

.page-hero {
  padding: 80px 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(13, 35, 52, .9), rgba(13, 35, 52, .55)),
    url("images/baniere2.jpg") center/cover;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(13, 35, 52, .9), rgba(13, 35, 52, .55)),
    url("images/baniere1.jpg") center/cover;
}

.services-hero {
  background:
    linear-gradient(90deg, rgba(13, 35, 52, .9), rgba(13, 35, 52, .55)),
    url("images/baniere3.jpg") center/cover;
}

.shop-hero {
  background:
    linear-gradient(90deg, rgba(13, 35, 52, .9), rgba(13, 35, 52, .55)),
    url("images/produit1.jpg") center/cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(13, 35, 52, .9), rgba(13, 35, 52, .55)),
    url("images/baniere4.jpg") center/cover;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 680px;
  color: #edf7fb;
  font-size: 18px;
}

section { padding: 72px 0; }
section:nth-of-type(even) { background: white; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
  margin: 0;
}

.promo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 100%);
  gap: 0;
  transition: transform .45s ease;
}

.promo-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 4;
}

.promo-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 50, 74, .9);
  color: white;
  font-size: 24px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: var(--shadow);
}

.promo-card, .service-card, .product-card, .client-card, .team-card, .about-box, .contact-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 50, 74, .08);
}

.promo-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  min-height: 270px;
}

.promo-card img, .service-card img, .product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 210px;
}

.promo-body, .service-body, .product-body, .client-card, .team-card, .about-box, .contact-box {
  padding: 20px;
}

.price {
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
  margin: 10px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  background: #fff3d7;
  color: #704700;
  font-size: 13px;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 356px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card img {
  height: 165px;
  min-height: 165px;
}

.service-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.service-body h3, .product-body h3, .client-card h3, .team-card h3 {
  margin: 0 0 8px;
  line-height: 1.18;
  font-size: 19px;
}

.service-body p, .product-body p, .client-card p, .team-card p, .about-box p, .contact-box p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 15px;
}

.service-link {
  color: var(--teal);
  font-weight: 800;
  margin-top: 8px;
}

.shop-band {
  background: #eef7f5;
  border-top: 1px solid #cfe2dd;
  border-bottom: 1px solid #cfe2dd;
}

.product-grid, .client-grid, .team-grid, .partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shop-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.shop-page-status {
  color: var(--muted);
  font-weight: 700;
}

.product-card img {
  height: 190px;
  min-height: 190px;
  transition: opacity .2s ease;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.product-card {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  background: #eef7f5;
}

.product-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.social-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.social-mini a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: white;
  font-weight: 700;
}

.product-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--green);
}

.clients {
  background:
    linear-gradient(90deg, rgba(248,250,252,.96), rgba(248,250,252,.84)),
    url("images/baniere4.jpg") center/cover;
}

.client-card, .partner-card { min-height: 170px; }

.client-card img, .partner-card img, .team-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.partner-card {
  padding: 20px;
}

.client-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-weight: 800;
  margin-bottom: 14px;
}

.about-layout, .contact-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.about-box h3 {
  margin: 0 0 12px;
  font-size: 25px;
}

.team-card {
  min-height: 150px;
  border-left: 5px solid var(--teal);
}

.team-card .btn {
  margin-top: 10px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 35, 52, .62);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.service-modal.open { display: flex; }

.service-dialog {
  width: min(900px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 330px;
}

.service-dialog-content { padding: 28px; }
.service-dialog h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.1; }
.service-dialog p { color: var(--muted); margin: 0 0 14px; }
.service-dialog ul { margin: 0 0 20px; padding-left: 20px; color: #344657; }
.service-dialog img { height: 100%; min-height: 340px; width: 100%; object-fit: cover; }

.modal-close {
  border: 0;
  background: var(--navy);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  float: right;
  margin-left: 12px;
}

footer {
  background: var(--navy);
  color: #dceaf1;
  padding: 28px 0;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  font-size: 14px;
}

.footer-inner h3, .footer-inner h4 {
  color: white;
  margin: 0 0 10px;
}

.footer-inner p { margin: 6px 0; }
.footer-menu { display: grid; gap: 7px; }

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  gap: 10px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.whatsapp { background: #22a35a; }
.chat { background: var(--gold); color: #1f2328; }

.chatbot {
  position: fixed;
  right: 18px;
  bottom: 148px;
  width: min(360px, calc(100% - 36px));
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 44;
  overflow: hidden;
  display: none;
}

.chatbot.open { display: block; }
.chat-head {
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.chat-head button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.bot-msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  background: #edf4f7;
}

.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-replies button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}

.chat-question {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-question input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.chat-question button {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

.user-msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  background: #e8f6ef;
  margin-left: 28px;
}

@media (max-width: 980px) {
  .nav-inner { align-items: flex-start; padding: 14px 0; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; flex-wrap: wrap; }
  .promo-card, .contact-layout, .about-layout { grid-template-columns: 1fr; }
  .service-grid, .product-grid, .client-grid, .team-grid, .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-dialog { grid-template-columns: 1fr; }
  .service-dialog img { min-height: 250px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar-inner { justify-content: flex-start; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .hero { min-height: 520px; }
  .hero p { font-size: 17px; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .service-grid, .product-grid, .client-grid, .team-grid, .partner-grid { grid-template-columns: 1fr; }
  .promo-card { min-height: 0; }
  .promo-arrows { padding: 0 6px; }
  .promo-arrow { width: 38px; height: 38px; }
  .floating-actions { right: 12px; bottom: 12px; }
}
