/**
 * Maghreb Grillage — Charte graphique
 * Adaptation du thème Industrie (orange) → identité Maghreb Grillage
 */

:root {
  /* Couleurs principales */
  --rs-theme-orange: #1a6b42;
  --rs-theme-medium-green: #2d8f5c;
  --rs-theme-bright-green: #3a9460;
  --rs-theme-green: #0f4a2d;
  --rs-theme-light-green: #2d8f5c;
  --rs-bg-dark-green: #0c2318;

  /* Accent cuivré (badges, surlignages) */
  --rs-maghreb-accent: #c8792a;
  --rs-maghreb-accent-light: #e8a04a;

  /* Neutres charte */
  --rs-text-primary: #5c6b73;
  --rs-text-tertiary: #1e2a36;
  --rs-title-primary: #1e2a36;
  --rs-title-secondary: #152a40;
  --rs-bg-primary: #f8faf9;
  --rs-bg-dark-blue: #1e2a36;
}

/* Logo */
.rs-header-logo img,
.rs-footer-widget-logo img,
.offcanvas-logo img,
.maghreb-header-bar__logo img {
  max-height: 70px;
  width: 200px;
max-width:unset;
  object-fit: contain;
}

/* ==========================================================================
   Header moderne (Produits / méga-menu inchangé)
   ========================================================================== */

.maghreb-site-header {
  position: relative;
  z-index: 1000;
}

.maghreb-header-top {
  background: linear-gradient(90deg, #0c2318 0%, #123224 55%, #1a6b42 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  position: relative;
  z-index: 5;
}

.maghreb-header-top__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: 38px;
  flex-wrap: wrap;
}

.maghreb-header-top__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.25s ease;
}

.maghreb-header-top__link:hover {
  color: #fff;
}

.maghreb-header-top__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: 6px;
}

.maghreb-header-top__social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

.maghreb-header-top__social a:hover {
  background: rgba(200, 121, 42, 0.9);
  transform: translateY(-1px);
}

.maghreb-header-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 35, 64, 0.08);
  box-shadow: 0 8px 24px rgba(12, 35, 24, 0.04);
}

.maghreb-header-bar--main {
  position: relative;
  z-index: 3;
}

.maghreb-header-bar--sticky.rs-sticky-header {
  z-index: 1001;
  top: 0 !important;
}

.maghreb-header-bar--sticky.rs-sticky-header.active {
  background: #fff !important;
  box-shadow: 0 12px 36px rgba(12, 35, 24, 0.12);
}

.maghreb-header-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.maghreb-header-bar__logo img {
  max-height: 100%;
}

.maghreb-header-bar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.maghreb-meanmenu-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li {
  margin: 0;
}

.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #1a6b42 !important;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li:not(.menu-produits-mega) > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--rs-theme-orange, #1a6b42);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li:not(.menu-produits-mega) > a:hover,
.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li:not(.menu-produits-mega).current-menu-item > a,
.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li:not(.menu-produits-mega).current_page_item > a {
  color: #1a6b42 !important;
  background: rgba(26, 107, 66, 0.08);
}

.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li:not(.menu-produits-mega) > a:hover::after,
.maghreb-header-bar__nav #mobile-menu-two.main-menu > .multipage-menu > li:not(.menu-produits-mega).current-menu-item > a::after {
  transform: scaleX(1);
}

/* Produits : styles méga-menu existants conservés, léger accent visuel seulement */
.maghreb-header-bar__nav #mobile-menu-two .menu-produits-mega > a.js-produits-filter-toggle {
  background: rgba(26, 107, 66, 0.06);
}

.maghreb-header-bar__nav #mobile-menu-two .submenu-produits-mobile {
  display: none;
}

.maghreb-header-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.maghreb-header-cta {
  white-space: nowrap;
  border-radius: 999px !important;
  padding-inline: 20px !important;
  min-height: 46px;
}

.maghreb-header-burger .bar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f6f4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(20, 35, 64, 0.08);
}

.maghreb-header-burger .bar-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1a6b42;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media only screen and (min-width: 1200px) {
  .maghreb-header-bar--sticky .maghreb-header-bar__inner {
    justify-content: space-between;
  }
}

@media only screen and (max-width: 1199px) {
  .maghreb-header-bar__nav {
    display: none;
  }

  .maghreb-header-cta {
    display: none;
  }

  .maghreb-header-top__inner {
    justify-content: center;
    gap: 14px;
    padding: 6px 0;
  }
}

@media only screen and (max-width: 575px) {
  .maghreb-header-top__link span {
    display: none;
  }

  .maghreb-header-bar__inner {
    min-height: 68px;
  }
}

.rs-footer-widget-logo img {
  max-height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* ==========================================================================
   Shapes animées — variante distincte par section
   ========================================================================== */

main section.maghreb-has-shapes {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

main section.maghreb-has-shapes::before,
main section.maghreb-has-shapes::after,
main section.maghreb-has-shapes .maghreb-shape-extra {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

main section.maghreb-has-shapes > *:not(.maghreb-shape-extra) {
  position: relative;
  z-index: 1;
}

/* —— Hero slider : anneaux discrets —— */
.maghreb-shapes--banner::before {
  width: clamp(180px, 16vw, 320px);
  height: clamp(180px, 16vw, 320px);
  top: 12%;
  right: 6%;
  border-radius: 50%;
  border: 3px solid rgba(45, 143, 92, 0.42);
  background: transparent;
  opacity: 0.7;
  animation: maghreb-shape-ring-pulse 9s ease-in-out infinite;
}

.maghreb-shapes--banner::after {
  width: clamp(120px, 10vw, 220px);
  height: clamp(120px, 10vw, 220px);
  bottom: 18%;
  left: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 121, 42, 0.38), transparent 68%);
  opacity: 0.55;
  animation: maghreb-shape-float-b 12s ease-in-out infinite;
}

.maghreb-shapes--banner .maghreb-shape-extra {
  width: clamp(90px, 8vw, 160px);
  height: clamp(90px, 8vw, 160px);
  top: 28%;
  left: 14%;
  border-radius: 50%;
  border: 2px dashed rgba(26, 107, 66, 0.35);
  background: transparent;
  animation: maghreb-shape-rotate-slow 24s linear infinite;
}

/* —— Features : blobs dégradés —— */
.maghreb-shapes--feature::before {
  width: clamp(220px, 20vw, 420px);
  height: clamp(220px, 20vw, 420px);
  top: -90px;
  right: -70px;
  border-radius: 58% 42% 64% 36% / 48% 52% 44% 56%;
  background:
    radial-gradient(circle at 32% 30%, rgba(45, 143, 92, 0.62), rgba(45, 143, 92, 0) 70%),
    radial-gradient(circle at 74% 70%, rgba(200, 121, 42, 0.5), rgba(200, 121, 42, 0) 72%);
  opacity: 0.52;
  animation: maghreb-shape-morph-a 10s ease-in-out infinite;
}

.maghreb-shapes--feature::after {
  width: clamp(160px, 14vw, 300px);
  height: clamp(160px, 14vw, 300px);
  bottom: -60px;
  left: -45px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 36%, rgba(26, 107, 66, 0.56), rgba(26, 107, 66, 0) 70%),
    radial-gradient(circle at 72% 66%, rgba(200, 121, 42, 0.44), rgba(200, 121, 42, 0) 72%);
  opacity: 0.5;
  animation: maghreb-shape-float-b 11s ease-in-out infinite;
}

.maghreb-shapes--feature .maghreb-shape-extra {
  width: 72px;
  height: 72px;
  top: 42%;
  right: 18%;
  border-radius: 50%;
  background: rgba(200, 121, 42, 0.28);
  animation: maghreb-shape-float-a 8s ease-in-out infinite;
}

/* —— À propos : losanges —— */
.maghreb-shapes--about::before,
.maghreb-shapes--about::after,
.maghreb-shapes--about .maghreb-shape-extra {
  border-radius: 18px;
}

.maghreb-shapes--about::before {
  width: clamp(140px, 12vw, 220px);
  height: clamp(140px, 12vw, 220px);
  top: -40px;
  right: 8%;
  background: linear-gradient(135deg, rgba(45, 143, 92, 0.45), rgba(200, 121, 42, 0.32));
  transform: rotate(45deg);
  animation: maghreb-shape-rotate-slow 22s linear infinite;
}

.maghreb-shapes--about::after {
  width: clamp(100px, 9vw, 160px);
  height: clamp(100px, 9vw, 160px);
  bottom: 10%;
  left: 6%;
  border: 3px solid rgba(26, 107, 66, 0.4);
  background: transparent;
  transform: rotate(25deg);
  animation: maghreb-shape-drift 14s ease-in-out infinite;
}

.maghreb-shapes--about .maghreb-shape-extra {
  width: 56px;
  height: 56px;
  top: 55%;
  right: 22%;
  background: rgba(200, 121, 42, 0.35);
  transform: rotate(45deg);
  animation: maghreb-shape-float-a 9s ease-in-out infinite;
}

/* —— Services (fond sombre) : arcs —— */
.maghreb-shapes--services::before {
  width: clamp(280px, 28vw, 520px);
  height: clamp(140px, 14vw, 260px);
  top: -60px;
  left: 12%;
  border-radius: 50% 50% 0 0;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  animation: maghreb-shape-wave 11s ease-in-out infinite;
}

.maghreb-shapes--services::after {
  width: clamp(200px, 18vw, 360px);
  height: clamp(200px, 18vw, 360px);
  bottom: -100px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 121, 42, 0.28), transparent 70%);
  animation: maghreb-shape-float-b 13s ease-in-out infinite;
}

.maghreb-shapes--services .maghreb-shape-extra {
  width: 120px;
  height: 120px;
  top: 35%;
  right: 10%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.14);
  background: transparent;
  animation: maghreb-shape-ring-pulse 10s ease-in-out infinite;
}

/* —— Étapes : anneaux + point —— */
.maghreb-shapes--steps::before {
  width: clamp(200px, 18vw, 340px);
  height: clamp(200px, 18vw, 340px);
  top: -70px;
  right: -50px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  animation: maghreb-shape-ring-pulse 8s ease-in-out infinite;
}

.maghreb-shapes--steps::after {
  width: 48px;
  height: 48px;
  bottom: 22%;
  left: 10%;
  border-radius: 50%;
  background: rgba(200, 121, 42, 0.55);
  box-shadow: 0 0 0 12px rgba(200, 121, 42, 0.15);
  animation: maghreb-shape-float-a 7s ease-in-out infinite;
}

.maghreb-shapes--steps .maghreb-shape-extra {
  width: clamp(120px, 11vw, 200px);
  height: clamp(120px, 11vw, 200px);
  bottom: -40px;
  right: 18%;
  border-radius: 50%;
  border: 2px dotted rgba(255, 255, 255, 0.22);
  background: transparent;
  animation: maghreb-shape-rotate-slow 30s linear infinite reverse;
}

/* —— Portfolio : triangles —— */
.maghreb-shapes--portfolio::before {
  width: clamp(180px, 16vw, 300px);
  height: clamp(180px, 16vw, 300px);
  top: 8%;
  right: 5%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(160deg, rgba(45, 143, 92, 0.42), rgba(45, 143, 92, 0.08));
  border-radius: 0;
  animation: maghreb-shape-drift 12s ease-in-out infinite;
}

.maghreb-shapes--portfolio::after {
  width: clamp(120px, 11vw, 200px);
  height: clamp(120px, 11vw, 200px);
  bottom: 12%;
  left: 6%;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(20deg, rgba(200, 121, 42, 0.4), rgba(200, 121, 42, 0.06));
  border-radius: 0;
  animation: maghreb-shape-float-b 10s ease-in-out infinite;
}

.maghreb-shapes--portfolio .maghreb-shape-extra {
  width: 64px;
  height: 64px;
  top: 40%;
  left: 45%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: rgba(26, 107, 66, 0.3);
  animation: maghreb-shape-rotate-slow 18s linear infinite;
}

/* —— Marques : ellipses douces —— */
.maghreb-shapes--brand::before {
  width: clamp(260px, 24vw, 440px);
  height: clamp(130px, 12vw, 220px);
  top: 20%;
  left: -80px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 72%);
  animation: maghreb-shape-wave 14s ease-in-out infinite;
}

.maghreb-shapes--brand::after {
  width: clamp(180px, 16vw, 300px);
  height: clamp(90px, 8vw, 150px);
  bottom: 15%;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200, 121, 42, 0.35), transparent 70%);
  animation: maghreb-shape-float-a 11s ease-in-out infinite;
}

.maghreb-shapes--brand .maghreb-shape-extra {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 30%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  animation: maghreb-shape-ring-pulse 9s ease-in-out infinite;
}

/* —— Blog : pastilles + ligne —— */
.maghreb-shapes--blog::before {
  width: clamp(200px, 18vw, 360px);
  height: 4px;
  top: 18%;
  right: 8%;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(26, 107, 66, 0.45), rgba(200, 121, 42, 0.4), transparent);
  animation: maghreb-shape-drift 13s ease-in-out infinite;
}

.maghreb-shapes--blog::after {
  width: 18px;
  height: 18px;
  bottom: 20%;
  left: 12%;
  border-radius: 50%;
  background: rgba(45, 143, 92, 0.5);
  box-shadow:
    36px 0 0 rgba(200, 121, 42, 0.4),
    72px 0 0 rgba(26, 107, 66, 0.35),
    108px 0 0 rgba(200, 121, 42, 0.3);
  animation: maghreb-shape-float-a 8s ease-in-out infinite;
}

.maghreb-shapes--blog .maghreb-shape-extra {
  width: clamp(140px, 12vw, 240px);
  height: clamp(140px, 12vw, 240px);
  top: -50px;
  left: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 143, 92, 0.28), transparent 68%);
  animation: maghreb-shape-float-b 12s ease-in-out infinite;
}

/* —— Contact accueil (fond noir) —— */
.maghreb-shapes--contact::before {
  width: clamp(220px, 20vw, 380px);
  height: clamp(220px, 20vw, 380px);
  top: -80px;
  right: -60px;
  border-radius: 50%;
  border: 2px solid rgba(45, 143, 92, 0.35);
  background: transparent;
  animation: maghreb-shape-ring-pulse 10s ease-in-out infinite;
}

.maghreb-shapes--contact::after {
  width: clamp(160px, 14vw, 280px);
  height: 2px;
  bottom: 28%;
  left: 8%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(200, 121, 42, 0.5), transparent);
  animation: maghreb-shape-drift 11s ease-in-out infinite;
}

.maghreb-shapes--contact .maghreb-shape-extra {
  width: 80px;
  height: 80px;
  bottom: 15%;
  right: 15%;
  border-radius: 12px;
  border: 2px solid rgba(200, 121, 42, 0.35);
  background: transparent;
  transform: rotate(12deg);
  animation: maghreb-shape-rotate-slow 20s linear infinite;
}

/* —— Pages produits —— */
.maghreb-shapes--produits-intro::before {
  width: clamp(160px, 14vw, 260px);
  height: clamp(160px, 14vw, 260px);
  top: 10%;
  right: 8%;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, rgba(45, 143, 92, 0.42), rgba(200, 121, 42, 0.28));
  animation: maghreb-shape-rotate-slow 26s linear infinite;
}

.maghreb-shapes--produits-intro::after {
  width: clamp(200px, 18vw, 340px);
  height: clamp(200px, 18vw, 340px);
  bottom: -80px;
  left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 107, 66, 0.32), transparent 70%);
  animation: maghreb-shape-float-b 11s ease-in-out infinite;
}

.maghreb-shapes--produits-grid::before {
  width: clamp(120px, 11vw, 200px);
  height: clamp(120px, 11vw, 200px);
  top: 8%;
  left: 4%;
  border-radius: 20px;
  border: 3px solid rgba(26, 107, 66, 0.35);
  background: transparent;
  transform: rotate(15deg);
  animation: maghreb-shape-drift 13s ease-in-out infinite;
}

.maghreb-shapes--produits-grid::after {
  width: clamp(220px, 20vw, 380px);
  height: clamp(220px, 20vw, 380px);
  bottom: -90px;
  right: -60px;
  border-radius: 58% 42% 55% 45% / 45% 55% 42% 58%;
  background: radial-gradient(circle at 40% 40%, rgba(200, 121, 42, 0.38), transparent 72%);
  animation: maghreb-shape-morph-a 12s ease-in-out infinite;
}

.maghreb-shapes--produits-grid .maghreb-shape-extra {
  width: 48px;
  height: 48px;
  top: 45%;
  right: 12%;
  border-radius: 50%;
  background: rgba(45, 143, 92, 0.4);
  animation: maghreb-shape-float-a 7s ease-in-out infinite;
}

/* —— Pages à propos (sections spécifiques) —— */
.maghreb-shapes--values::before {
  width: clamp(180px, 16vw, 300px);
  height: clamp(180px, 16vw, 300px);
  top: -60px;
  left: -40px;
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, rgba(45, 143, 92, 0.35), rgba(200, 121, 42, 0.3), rgba(45, 143, 92, 0.35));
  animation: maghreb-shape-rotate-slow 28s linear infinite;
}

.maghreb-shapes--values::after {
  width: 24px;
  height: 24px;
  bottom: 25%;
  right: 15%;
  border-radius: 50%;
  background: rgba(200, 121, 42, 0.55);
  box-shadow: 0 0 0 16px rgba(200, 121, 42, 0.12);
  animation: maghreb-shape-ring-pulse 8s ease-in-out infinite;
}

.maghreb-shapes--mission::before {
  width: clamp(300px, 28vw, 500px);
  height: clamp(120px, 10vw, 180px);
  top: 15%;
  right: -60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1), transparent 70%);
  animation: maghreb-shape-wave 13s ease-in-out infinite;
}

.maghreb-shapes--mission::after {
  width: clamp(140px, 12vw, 220px);
  height: clamp(140px, 12vw, 220px);
  bottom: 10%;
  left: 8%;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: rgba(200, 121, 42, 0.28);
  animation: maghreb-shape-drift 11s ease-in-out infinite;
}

.maghreb-shapes--timeline::before {
  width: 3px;
  height: clamp(180px, 22vh, 320px);
  top: 12%;
  left: 50%;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, rgba(26, 107, 66, 0.45), rgba(200, 121, 42, 0.4), transparent);
  animation: maghreb-shape-drift 14s ease-in-out infinite;
}

.maghreb-shapes--timeline::after {
  width: 20px;
  height: 20px;
  top: 30%;
  left: calc(50% - 10px);
  border-radius: 50%;
  background: rgba(45, 143, 92, 0.55);
  box-shadow: 0 48px 0 rgba(200, 121, 42, 0.4), 0 96px 0 rgba(26, 107, 66, 0.35);
  animation: maghreb-shape-float-a 9s ease-in-out infinite;
}

.maghreb-shapes--savoir::before {
  width: clamp(200px, 18vw, 320px);
  height: clamp(140px, 12vw, 220px);
  top: 8%;
  right: 6%;
  border-radius: 8px 8px 40px 8px;
  border: 2px solid rgba(26, 107, 66, 0.35);
  background: transparent;
  animation: maghreb-shape-drift 12s ease-in-out infinite;
}

.maghreb-shapes--savoir::after {
  width: clamp(160px, 14vw, 260px);
  height: clamp(160px, 14vw, 260px);
  bottom: -50px;
  left: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 121, 42, 0.32), transparent 68%);
  animation: maghreb-shape-float-b 10s ease-in-out infinite;
}

.maghreb-shapes--location::before {
  width: 56px;
  height: 56px;
  top: 18%;
  right: 20%;
  border-radius: 50% 50% 50% 0;
  background: rgba(200, 121, 42, 0.45);
  transform: rotate(-45deg);
  animation: maghreb-shape-float-a 8s ease-in-out infinite;
}

.maghreb-shapes--location::after {
  width: clamp(240px, 22vw, 400px);
  height: clamp(240px, 22vw, 400px);
  bottom: -120px;
  left: -80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  animation: maghreb-shape-ring-pulse 11s ease-in-out infinite;
}

/* —— Contact, actualités, réalisations —— */
.maghreb-shapes--contact-intro::before {
  width: clamp(180px, 16vw, 280px);
  height: clamp(120px, 10vw, 180px);
  top: 15%;
  right: 10%;
  border-radius: 12px;
  border: 2px solid rgba(26, 107, 66, 0.35);
  background: transparent;
  transform: rotate(-8deg);
  animation: maghreb-shape-drift 12s ease-in-out infinite;
}

.maghreb-shapes--contact-intro::after {
  width: clamp(200px, 18vw, 340px);
  height: clamp(200px, 18vw, 340px);
  bottom: -70px;
  left: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 121, 42, 0.35), transparent 70%);
  animation: maghreb-shape-float-b 11s ease-in-out infinite;
}

.maghreb-shapes--actualites-intro::before {
  width: clamp(220px, 20vw, 360px);
  height: 3px;
  top: 22%;
  left: 8%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(26, 107, 66, 0.5), rgba(200, 121, 42, 0.4), transparent);
  animation: maghreb-shape-drift 10s ease-in-out infinite;
}

.maghreb-shapes--actualites-intro::after {
  width: 14px;
  height: 14px;
  bottom: 30%;
  right: 12%;
  border-radius: 2px;
  background: rgba(45, 143, 92, 0.5);
  box-shadow: 24px 0 0 rgba(200, 121, 42, 0.4), 48px 0 0 rgba(26, 107, 66, 0.35);
  animation: maghreb-shape-float-a 8s ease-in-out infinite;
}

.maghreb-shapes--actualites-list::before {
  width: clamp(160px, 14vw, 260px);
  height: clamp(160px, 14vw, 260px);
  top: -40px;
  right: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 143, 92, 0.3), transparent 68%);
  animation: maghreb-shape-float-b 12s ease-in-out infinite;
}

.maghreb-shapes--actualites-list::after {
  width: clamp(100px, 9vw, 160px);
  height: clamp(100px, 9vw, 160px);
  bottom: 15%;
  left: 6%;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  background: rgba(200, 121, 42, 0.28);
  animation: maghreb-shape-drift 13s ease-in-out infinite;
}

.maghreb-shapes--realisation-intro::before {
  width: clamp(140px, 12vw, 220px);
  height: clamp(140px, 12vw, 220px);
  top: 12%;
  right: 8%;
  border: 3px solid rgba(26, 107, 66, 0.35);
  background: transparent;
  animation: maghreb-shape-drift 11s ease-in-out infinite;
}

.maghreb-shapes--realisation-intro::after {
  width: clamp(200px, 18vw, 320px);
  height: clamp(200px, 18vw, 320px);
  bottom: -60px;
  left: -40px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(200, 121, 42, 0.3), rgba(45, 143, 92, 0.28), rgba(200, 121, 42, 0.3));
  animation: maghreb-shape-rotate-slow 32s linear infinite;
}

.maghreb-shapes--realisation-grid::before {
  width: clamp(180px, 16vw, 300px);
  height: clamp(180px, 16vw, 300px);
  top: 5%;
  left: -50px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: rgba(45, 143, 92, 0.28);
  animation: maghreb-shape-rotate-slow 24s linear infinite;
}

.maghreb-shapes--realisation-grid::after {
  width: clamp(220px, 20vw, 360px);
  height: clamp(220px, 20vw, 360px);
  bottom: -80px;
  right: -50px;
  border-radius: 50%;
  border: 2px dotted rgba(200, 121, 42, 0.35);
  background: transparent;
  animation: maghreb-shape-ring-pulse 10s ease-in-out infinite;
}

.maghreb-shapes--single-produit::before {
  width: clamp(200px, 18vw, 340px);
  height: clamp(200px, 18vw, 340px);
  top: -70px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 143, 92, 0.32), transparent 70%);
  animation: maghreb-shape-float-b 11s ease-in-out infinite;
}
span.odometer-formatting-mark {
    display: none;
}
.maghreb-shapes--single-produit::after {
  width: clamp(120px, 11vw, 200px);
  height: clamp(120px, 11vw, 200px);
  bottom: 12%;
  left: 5%;
  border-radius: 24px;
  border: 2px solid rgba(200, 121, 42, 0.38);
  background: transparent;
  transform: rotate(20deg);
  animation: maghreb-shape-drift 12s ease-in-out infinite;
}

/* —— Fallbacks pour sections sans classe dédiée —— */
.maghreb-shapes--alt-blob::before {
  width: clamp(200px, 18vw, 360px);
  height: clamp(200px, 18vw, 360px);
  top: -60px;
  right: -40px;
  border-radius: 58% 42% 64% 36% / 48% 52% 44% 56%;
  background: radial-gradient(circle, rgba(45, 143, 92, 0.4), transparent 70%);
  animation: maghreb-shape-morph-a 11s ease-in-out infinite;
}

.maghreb-shapes--alt-ring::before {
  width: clamp(180px, 16vw, 300px);
  height: clamp(180px, 16vw, 300px);
  bottom: 10%;
  left: 8%;
  border-radius: 50%;
  border: 3px solid rgba(26, 107, 66, 0.38);
  background: transparent;
  animation: maghreb-shape-ring-pulse 9s ease-in-out infinite;
}

.maghreb-shapes--alt-diamond::before {
  width: clamp(120px, 11vw, 200px);
  height: clamp(120px, 11vw, 200px);
  top: 15%;
  right: 10%;
  border-radius: 16px;
  background: rgba(200, 121, 42, 0.32);
  transform: rotate(45deg);
  animation: maghreb-shape-rotate-slow 20s linear infinite;
}

.maghreb-shapes--alt-wave::before {
  width: clamp(260px, 24vw, 440px);
  height: clamp(120px, 10vw, 180px);
  top: -40px;
  left: 15%;
  border-radius: 50% 50% 0 0;
  border: 2px solid rgba(45, 143, 92, 0.3);
  background: transparent;
  animation: maghreb-shape-wave 12s ease-in-out infinite;
}

.maghreb-shapes--alt-dots::after {
  width: 12px;
  height: 12px;
  bottom: 20%;
  right: 12%;
  border-radius: 50%;
  background: rgba(200, 121, 42, 0.5);
  box-shadow: 28px -18px 0 rgba(26, 107, 66, 0.4), -20px 24px 0 rgba(45, 143, 92, 0.35);
  animation: maghreb-shape-float-a 8s ease-in-out infinite;
}

.maghreb-shapes--alt-arc::before {
  width: clamp(200px, 18vw, 340px);
  height: clamp(200px, 18vw, 340px);
  top: -80px;
  right: -50px;
  border-radius: 50%;
  border-top: 4px solid rgba(200, 121, 42, 0.45);
  border-right: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid transparent;
  background: transparent;
  animation: maghreb-shape-rotate-slow 18s linear infinite;
}

@keyframes maghreb-shape-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 24px, 0) scale(1.1); }
}

@keyframes maghreb-shape-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -16px, 0) scale(1.14); }
}

@keyframes maghreb-shape-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes maghreb-shape-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes maghreb-shape-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(16px, -20px, 0); }
}

@keyframes maghreb-shape-wave {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(1); }
  50% { transform: translate3d(-12px, 8px, 0) scaleX(1.06); }
}

@keyframes maghreb-shape-morph-a {
  0%, 100% {
    border-radius: 58% 42% 64% 36% / 48% 52% 44% 56%;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    border-radius: 42% 58% 36% 64% / 52% 48% 56% 44%;
    transform: translate3d(-14px, 18px, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  main section.maghreb-has-shapes::before,
  main section.maghreb-has-shapes::after,
  main section.maghreb-has-shapes .maghreb-shape-extra {
    animation: none !important;
  }
}

.loader-icon img {
  max-height: 48px;
  width: auto;
}

/* Accent cuivré sur titres surlignés */
.rs-theme-orange,
.rs-section-title .rs-theme-orange {
  color: var(--rs-maghreb-accent) !important;
}

/* Sous-titres de section — flèche SVG */
.rs-section-subtitle svg path {
  fill: var(--rs-theme-orange) !important;
}

/* Réseaux sociaux header */
.rs-theme-social.has-transparent.has-orange a:hover {
  color: var(--rs-theme-orange);
  border-color: var(--rs-theme-orange);
}

/* Boutons primaires — vert avec hover plus foncé */
.rs-btn.has-theme-orange.has-bg {
  background: var(--rs-theme-orange) !important;
}

.rs-btn.has-theme-orange.has-bg::before {
  background-color: var(--rs-theme-green) !important;
}

.rs-btn.has-theme-orange.has-bg:hover {
  background: var(--rs-theme-green) !important;
}

/* Tous les boutons avec effet slide — plus d'orange au survol */
.rs-btn.has-bg::before {
  background-color: var(--rs-theme-green) !important;
}

/* Boutons ronds portfolio, navigation slider, etc. */
.rs-btn.has-theme-orange.has-circle:hover,
.rs-square-btn.has-theme-orange:hover {
  background: var(--rs-theme-green) !important;
}

.rs-swiper-btn.hover-orange:hover,
.rs-swiper-btn.has-bg-white.hover-orange:hover,
.rs-swiper-btn.has-light-orange:hover {
  background: var(--rs-theme-green) !important;
  border-color: var(--rs-theme-green) !important;
  color: var(--rs-white) !important;
}

/* Pagination slider */
.swiper-pagination.has-theme-orange .swiper-pagination-bullet-active {
  background: var(--rs-theme-orange);
}

/* Compteurs */
.rs-counter-one .rs-counter-number,
.rs-counter-one .prefix {
  color: var(--rs-theme-orange);
}

/* Back to top */
.backtotop-wrap svg path {
  stroke: var(--rs-theme-orange);
}

.backtotop-wrap:hover svg path {
  stroke: var(--rs-maghreb-accent);
}

/* Formulaire contact */
.rs-contact-form .rs-btn.black-bg {
  background: var(--rs-theme-orange);
  border-color: var(--rs-theme-orange);
}

.rs-contact-form .rs-btn.black-bg:hover {
  background: var(--rs-theme-green);
  border-color: var(--rs-theme-green);
}

/* Footer stroke text */
.rs-footer-stroke-text {
  -webkit-text-stroke-color: rgba(26, 107, 66, 0.35);
}

/* Selection */
::selection {
  background: rgba(26, 107, 66, 0.2);
  color: var(--rs-title-primary);
}

/* Photos produits — cadrage uniforme */
.rs-portfolio-one .rs-portfolio-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rs-portfolio-one .rs-portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rs-services-tab-content-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.rs-services-tab-content-thumb {
  aspect-ratio: unset;
  overflow: hidden;
  background: linear-gradient(135deg, #0c2318 0%, #152820 100%);
  border-radius: 4px;
}

/* Section CTA export (entre portfolio et marques) */
.rs-cta-one {
  position: relative;
  z-index: 3;
}

.rs-cta-one .rs-cta-wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
}

.rs-cta-one .rs-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #0c2318;
  background-image: url("../images/bg/cta-bg-01.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.rs-cta-one .rs-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 35, 24, 0.9) 0%, rgba(18, 42, 31, 0.78) 42%, rgba(26, 107, 66, 0.68) 100%),
    radial-gradient(ellipse 80% 120% at 100% 50%, rgba(200, 121, 42, 0.22), transparent 58%);
  pointer-events: none;
}

.rs-cta-one .rs-cta-wrapper::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #c8792a 0%, #1a6b42 100%);
  z-index: 2;
  pointer-events: none;
}

.rs-cta-one .rs-cta-item-wrapper {
  position: relative;
  z-index: 1;
}

.rs-cta-one .rs-cta-number,
.rs-cta-one .rs-cta-number .odometer-value,
.rs-cta-one .rs-cta-title,
.rs-cta-one .rs-cta-descrip p {
  color: #fff;
}

.rs-cta-one .rs-cta-number {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
}

@media only screen and (max-width: 991px) {
  .rs-cta-one .rs-cta-item-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .rs-cta-one .rs-cta-btn {
    justify-content: center;
  }
}

.rs-about-bg-thumb,
.rs-banner-bg-thumb {
  background-size: cover !important;
  background-position: center center !important;
}

/* Bannière accueil — hauteur et cadrage uniformes du slider */
.rs-banner-one .rs-banner-slider-wrapper {
  min-height: clamp(420px, 52vw, 720px);
}

.rs-banner-one .rs-banner-slider-wrapper .swiper {
  height: clamp(420px, 52vw, 720px) !important;
}

.rs-banner-one .rs-banner-slider-wrapper .swiper-wrapper,
.rs-banner-one .rs-banner-slider-wrapper .swiper-slide {
  height: 100% !important;
}

/* Affichage propre du slider : contrôles au-dessus du header sticky */
.rs-banner-one .rs-banner-navigation,
.rs-banner-one .rs-pagination.swiper-pagination,
.rs-banner-one .swiper-button-prev,
.rs-banner-one .swiper-button-next {
  z-index: 1103 !important;
}

.rs-banner-one .rs-banner-item-wrapper {
  position: relative;
  height: 100%;
  min-height: clamp(420px, 52vw, 720px);
  padding: clamp(48px, 7vw, 96px) 0;
  padding-top: calc(clamp(48px, 7vw, 96px) + 28px);
  padding-inline-start: clamp(80px, 10vw, 150px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  z-index: 1;
}

.rs-banner-one .rs-banner-bg-thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Cadrage fin par slide */
.rs-banner-one .swiper-slide:nth-child(1) .rs-banner-bg-thumb {
  background-position: center center;
}

.rs-banner-one .swiper-slide:nth-child(2) .rs-banner-bg-thumb {
  background-position: center 55%;
}

.rs-banner-one .swiper-slide:nth-child(3) .rs-banner-bg-thumb {
  background-position: center 45%;
}

.rs-banner-one .swiper-slide:nth-child(4) .rs-banner-bg-thumb {
  background-position: center 30%;
}

.rs-banner-one .swiper-slide:nth-child(5) .rs-banner-bg-thumb {
  background-position: center 25%;
}

.rs-banner-one .swiper-slide:nth-child(6) .rs-banner-bg-thumb {
  background-position: center 35%;
}

.rs-banner-one .swiper-slide:nth-child(7) .rs-banner-bg-thumb {
  background-position: center 40%;
}

@media only screen and (max-width: 991px) {
  .rs-banner-one .rs-banner-bg-thumb {
    width: 100%;
  }

  .rs-banner-one .rs-banner-item-wrapper {
    padding-top: clamp(48px, 7vw, 96px);
    padding-inline-start: 0;
  }
}

/* Contact — fond couleur (sans image) */
.rs-contact-one {
  background: linear-gradient(135deg, #0c2318 0%, #122a1f 45%, #1a6b42 100%);
}

.rs-contact-one .rs-contact-bg {
  background: transparent !important;
  background-image: none !important;
}

.rs-contact-one .rs-contact-form-bg-thumb {
  display: none;
}

.rs-contact-one .rs-contact-form {
  background: rgba(15, 74, 45, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Footer — fond couleur (sans image) */
.rs-footer-one {
  background: linear-gradient(135deg, #0c2318 0%, #122a1f 45%, #1a6b42 100%);
}

.rs-footer-one .rs-footer-bg-thumb {
  background: transparent !important;
  background-image: none !important;
}

/* Bloc avantages — 4 cartes alignées */
.rs-feature-one {
  position: relative;
  z-index: 2;
}

.rs-feature-one .row > [class*="col-"] {
  display: flex;
}

.rs-feature-one .rs-feature-item {
  background: #ffffff;
  border: 1px solid rgba(20, 35, 64, 0.08);
  min-height: 270px;
  height: 100%;
  width: 100%;
  padding: 36px 28px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(12, 35, 24, 0.06);
}

.rs-feature-one .rs-feature-item::before {
  color: rgba(20, 35, 64, 0.07);
  z-index: 0;
  inset-inline-end: 12px;
  bottom: -18px;
  font-size: clamp(110px, 9vw, 190px);
  font-weight: 700;
  line-height: 1;
}

.rs-feature-one .rs-feature-icon,
.rs-feature-one .rs-feature-title,
.rs-feature-one .rs-feature-descrip {
  position: relative;
  z-index: 1;
}

.rs-feature-one .rs-feature-title {
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: #1a6b42;
  text-decoration: underline;
}

.rs-feature-one .rs-feature-descrip p {
  margin: 0;
  line-height: 1.65;
  color: var(--rs-text-primary);
}

/* Hover discret — sans fond orange/vert */
.rs-feature-one .rs-feature-item:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(12, 35, 24, 0.12);
}

.rs-feature-one .rs-feature-item:hover .rs-feature-icon svg path {
  fill: var(--rs-theme-orange);
}

.rs-feature-one .rs-feature-item:hover .rs-feature-title {
  color: #1a6b42;
}

.rs-feature-one .rs-feature-item:hover .rs-feature-descrip p {
  color: var(--rs-text-primary);
}

@media only screen and (max-width: 991px) {
  .rs-feature-one .rs-feature-item {
    min-height: 0;
  }
}

/* À propos — bannière gammes produits */
.rs-about-one .rs-about-thumb {
  height: auto;
  margin-top: 20px;
}

.rs-about-one .rs-about-products-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  clip-path: polygon(0% 0%, 96% 0, 100% 11%, 100% 100%, 0% 100%);
  box-shadow: 0 14px 40px rgba(12, 35, 24, 0.12);
  background: #fff;
}

.rs-about-one .rs-about-products-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.rs-about-one .rs-about-products-links {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}

.rs-about-one .rs-about-products-links a {
  pointer-events: auto;
  display: block;
  height: 100%;
  transition: background 0.25s ease;
}

.rs-about-one .rs-about-products-links a:hover {
  background: rgba(26, 107, 66, 0.12);
}

@media only screen and (max-width: 767px) {
  .rs-about-one .rs-about-products-links {
    display: none;
  }
}

.offcanvas-gallery-thumb-wrapper .offcanvas-popup-thumb img[src*="produits/"] {
  object-fit: cover;
  object-position: center center;
}

.rs-services-one .rs-services-tab-content-thumb:has(img[src*="produits/"]) {
  height: auto;
  margin: 0;
}

.rs-services-one .rs-services-tab-content-thumb img[src*="produits/"] {
  height: auto !important;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

.rs-services-one .rs-services-tab-content-thumb.has-clip img[src*="produits/"] {
  clip-path: none;
}

.rs-banner-slide-grillage .rs-banner-bg-thumb,
.rs-banner-slide-panneaux .rs-banner-bg-thumb,
.rs-banner-slide-gabions .rs-banner-bg-thumb,
.rs-banner-slide-barbele .rs-banner-bg-thumb,
.rs-banner-slide-chantier .rs-banner-bg-thumb,
.rs-banner-slide-poteaux .rs-banner-bg-thumb {
  background-size: cover !important;
  background-position: center center !important;
}

.rs-banner-slide-grillage .rs-banner-content,
.rs-banner-slide-panneaux .rs-banner-content,
.rs-banner-slide-gabions .rs-banner-content,
.rs-banner-slide-barbele .rs-banner-content,
.rs-banner-slide-chantier .rs-banner-content,
.rs-banner-slide-poteaux .rs-banner-content {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* Processus — cartes alignées et hover discret */
.rs-work-step-one {
  overflow: hidden;
}

.rs-work-step-one .rs-work-step-section-title {
  font-size: clamp(72px, 13vw, 180px);
  color: rgba(220, 224, 228, 0.85);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  line-height: 0.85;
  margin: 0;
  padding-top: 10px;
  user-select: none;
  pointer-events: none;
}

.rs-work-step-one .rs-work-step-wrapper {
  margin-top: clamp(-70px, -7vw, -95px);
  position: relative;
  z-index: 2;
}

.rs-work-step-one .row > [class*="col-"] {
  display: flex;
}

.rs-work-step-one .rs-work-step-item {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px 36px;
  min-height: 300px;
  box-shadow: 0 8px 30px rgba(12, 35, 24, 0.06);
  border-bottom: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rs-work-step-one .rs-work-step-title {
  font-size: 20px;
  line-height: 1.35;
  color: var(--rs-title-secondary);
  margin: 0;
  min-height: 54px;
}

.rs-work-step-one .rs-work-step-icon {
  margin: 24px 0 20px;
  flex-shrink: 0;
}

.rs-work-step-one .rs-work-step-icon svg {
  width: 58px;
  height: 58px;
  fill: var(--rs-theme-orange);
}

.rs-work-step-one .rs-work-step-icon svg path {
  fill: var(--rs-theme-orange);
}

.rs-work-step-one .rs-work-step-icon::before {
  font-size: clamp(68px, 7vw, 96px);
  opacity: 0.07;
  color: var(--rs-title-secondary);
  inset-inline-end: 8px;
}

.rs-work-step-one .rs-work-step-descrip {
  margin-top: auto;
}

.rs-work-step-one .rs-work-step-descrip p {
  margin: 0;
  line-height: 1.65;
  color: var(--rs-text-primary);
}

.rs-work-step-one .rs-work-step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(12, 35, 24, 0.12);
  border-color: transparent;
}

.rs-work-step-one .rs-work-step-item:hover .rs-work-step-icon::before {
  opacity: 0.1;
  color: var(--rs-theme-orange);
}

@media only screen and (max-width: 991px) {
  .rs-work-step-one .rs-work-step-wrapper {
    margin-top: -45px;
  }

  .rs-work-step-one .rs-work-step-item {
    min-height: 0;
  }

  .rs-work-step-one .rs-work-step-title {
    min-height: 0;
  }
}

@media only screen and (max-width: 575px) {
  .rs-work-step-one .rs-work-step-section-title {
    font-size: 52px;
  }

  .rs-work-step-one .rs-work-step-wrapper {
    margin-top: -30px;
  }
}

/* Filtre produits — style Dirickx exact */
:root {
  --maghreb-header-h: 90px;
  --maghreb-filter-green: #1a6b42;
  --maghreb-filter-yellow: #f0c419;
}

.menu-produits-mega > a::after {
  display: none !important;
}

.menu-produits-mega > a.is-active {
  position: relative;
}

.menu-produits-mega > a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  background: var(--maghreb-filter-yellow);
}

.maghreb-produits-filter {
  position: fixed;
  top: var(--maghreb-header-h);
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--maghreb-filter-green);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.maghreb-produits-filter.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  min-height: calc(100vh - var(--maghreb-header-h));
}

.maghreb-produits-filter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 380px;
  padding: 48px 56px 56px;
}

.maghreb-filter-col {
  padding: 0 40px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 280px;
}

.maghreb-filter-col--1 {
  padding-inline-start: 0;
}

.maghreb-filter-col--3 {
  border-inline-end: none;
  padding-inline-end: 0;
}

.maghreb-filter-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  min-height: 44px;
}

.maghreb-filter-arrow {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  flex-shrink: 0;
}

.maghreb-filter-col--3 .maghreb-filter-head {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.maghreb-filter-col3-title {
  text-transform: uppercase;
  font-weight: 600;
}

.maghreb-filter-col--2:not(.is-visible) .maghreb-filter-col2-body,
.maghreb-filter-col--3:not(.is-visible) .maghreb-filter-col3-body {
  display: none;
}

.maghreb-filter-col--2:not(.is-visible) .maghreb-filter-head,
.maghreb-filter-col--3:not(.is-visible) .maghreb-filter-head {
  opacity: 0;
  visibility: hidden;
}

.maghreb-filter-col--2.is-visible .maghreb-filter-head,
.maghreb-filter-col--3.is-visible .maghreb-filter-head {
  opacity: 1;
  visibility: visible;
}

.maghreb-filter-col--2.is-visible .maghreb-filter-col2-body,
.maghreb-filter-col--3.is-visible .maghreb-filter-col3-body {
  display: block;
}

.maghreb-filter-col2-body,
.maghreb-filter-col3-body {
  animation: maghreb-filter-step-in 0.28s ease;
}

@keyframes maghreb-filter-step-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.maghreb-produits-filter[data-step="1"] .maghreb-filter-col--2,
.maghreb-produits-filter[data-step="1"] .maghreb-filter-col--3 {
  pointer-events: none;
}

.maghreb-produits-filter[data-step="2"] .maghreb-filter-col--3 {
  pointer-events: none;
}

.maghreb-produits-filter[data-step="3"] .maghreb-filter-col--3 {
  pointer-events: auto;
}

.maghreb-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.maghreb-filter-link {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: start;
  cursor: pointer;
  transition: font-weight 0.15s ease;
}

.maghreb-filter-link.is-active {
  font-weight: 700;
}

.maghreb-filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #fff;
}

.maghreb-filter-icon svg {
  width: 36px;
  height: 36px;
}

.maghreb-filter-col2-panel,
.maghreb-filter-col3-panel {
  display: none;
}

.maghreb-filter-col2-panel.is-active,
.maghreb-filter-col3-panel.is-active {
  display: block;
}

.maghreb-filter-list--text a {
  display: block;
  padding: 18px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.maghreb-filter-list--text a:hover {
  opacity: 0.82;
  font-weight: 400;
}

@media only screen and (min-width: 1200px) {
  .menu-produits-mega > .submenu-produits-mobile,
  .menu-produits-mega > .submenu,
  .menu-produits-mega > .sub-menu {
    display: none !important;
  }

  .menu-produits-mega:hover > .submenu,
  .menu-produits-mega:hover > .sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scaleY(0) !important;
  }
}

@media only screen and (max-width: 1199px) {
  .maghreb-produits-filter {
    display: none !important;
  }

  .menu-produits-mega > a.is-active::before {
    display: none;
  }
}

/* Masquer Template Settings (panneau démo du template) */
.rs-theme-settings-area {
  display: none !important;
}

/* Barre d'outils WordPress + header fixe */
body.admin-bar .maghreb-produits-filter {
  top: calc(var(--maghreb-header-h) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .maghreb-produits-filter {
    top: calc(var(--maghreb-header-h) + 46px);
  }
}

body.admin-bar .rs-header-area.rs-sticky-header.is-sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .rs-header-area.rs-sticky-header.is-sticky {
    top: 46px;
  }
}

/* Menu WordPress actif */
.main-menu .current-menu-item > a,
.main-menu .current-menu-ancestor > a,
.main-menu .current_page_item > a {
  color: var(--rs-theme-orange) !important;
}

/* Bouton flottant WhatsApp */
.maghreb-whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.maghreb-whatsapp-btn:hover {
  background: #20bd5a;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.maghreb-whatsapp-btn__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px 14px;
  background: #1e2a36;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.maghreb-whatsapp-btn__tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  background: #1e2a36;
  transform: translateY(-50%) rotate(45deg);
}

.maghreb-whatsapp-btn:hover .maghreb-whatsapp-btn__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media only screen and (max-width: 575px) {
  .maghreb-whatsapp-btn {
    bottom: 84px;
    right: 20px;
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .maghreb-whatsapp-btn__tooltip {
    display: none;
  }
}

/* Breadcrumb / hero pages internes */
.maghreb-page-hero,
.rs-breadcrumb-one.maghreb-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 110px;
  background: linear-gradient(135deg, #0c2318 0%, #122a1f 45%, #1a6b42 100%);
}

.maghreb-page-hero-bg,
.rs-breadcrumb-one .rs-breadcrumb-bg.maghreb-page-hero-bg,
.rs-breadcrumb-one .rs-breadcrumb-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 0 !important;
  background: linear-gradient(135deg, #0c2318 0%, #122a1f 45%, #1a6b42 100%) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.maghreb-page-hero > .container,
.rs-breadcrumb-one.maghreb-page-hero > .container {
  position: relative;
  z-index: 2;
}

.maghreb-page-hero .rs-breadcrumb-title,
.maghreb-page-hero .rs-breadcrumb-menu ul li,
.maghreb-page-hero .rs-breadcrumb-menu ul li span,
.maghreb-page-hero .rs-breadcrumb-menu ul li span a,
.maghreb-page-hero .rs-breadcrumb-menu ul li:not(:last-child)::before {
  color: #fff !important;
}

.maghreb-page-hero .rs-breadcrumb-menu ul li span a:hover {
  color: #c8792a !important;
}

.maghreb-about-intro-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(12, 35, 24, 0.12);
}

.maghreb-about-stats .rs-counter-item {
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.08);
  padding: 32px 24px;
  box-shadow: 0 8px 30px rgba(12, 35, 24, 0.06);
}

.maghreb-about-card {
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.08);
  padding: 36px 32px;
  height: 100%;
  box-shadow: 0 8px 30px rgba(12, 35, 24, 0.06);
}

.maghreb-about-card-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-maghreb-accent);
  margin-bottom: 14px;
}

.maghreb-about-card h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--rs-title-secondary);
}

.maghreb-about-card p {
  margin: 0;
  line-height: 1.7;
}

.maghreb-about-timeline--v2 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(26, 107, 66, 0.08), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(200, 121, 42, 0.1), transparent 38%),
    #f8faf9;
}

.maghreb-about-timeline--v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(26, 107, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 107, 66, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 85%);
  pointer-events: none;
}

.maghreb-timeline-v2__lead {
  margin: 18px auto 0;
  max-width: 620px;
  line-height: 1.7;
  color: var(--rs-text-primary);
}

.maghreb-timeline-v2 {
  position: relative;
  max-width: 980px;
  margin: 20px auto 0;
  padding: 12px 0 8px;
}

.maghreb-timeline-v2__track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(26, 107, 66, 0.14);
  overflow: hidden;
}

.maghreb-timeline-v2__progress {
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #1a6b42 0%, #c8792a 100%);
  transition: height 0.15s ease-out;
  box-shadow: 0 0 18px rgba(26, 107, 66, 0.35);
}

.maghreb-timeline-v2__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.maghreb-timeline-v2__item:last-child {
  margin-bottom: 0;
}

.maghreb-timeline-v2__item--left .maghreb-timeline-v2__card {
  grid-column: 1;
}

.maghreb-timeline-v2__item--right .maghreb-timeline-v2__card {
  grid-column: 3;
}

.maghreb-timeline-v2__item--left .maghreb-timeline-v2__card {
  justify-self: end;
}

.maghreb-timeline-v2__item--right .maghreb-timeline-v2__card {
  justify-self: start;
}

.maghreb-timeline-v2__dot {
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #1a6b42;
  box-shadow: 0 0 0 8px rgba(26, 107, 66, 0.1);
  z-index: 2;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.maghreb-timeline-v2__dot--active {
  border-color: #c8792a;
  box-shadow: 0 0 0 8px rgba(200, 121, 42, 0.18);
}

.maghreb-timeline-v2__dot-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(26, 107, 66, 0.35);
  animation: maghreb-timeline-pulse 2.4s ease-out infinite;
}

.maghreb-timeline-v2__dot--active .maghreb-timeline-v2__dot-pulse {
  border-color: rgba(200, 121, 42, 0.5);
}

@keyframes maghreb-timeline-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.maghreb-timeline-v2__card {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.08);
  border-radius: 16px;
  padding: 28px 26px 24px;
  box-shadow: 0 14px 40px rgba(12, 35, 24, 0.08);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.maghreb-timeline-v2__card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.08);
  transform: rotate(45deg);
  top: 50%;
  margin-top: -9px;
}

.maghreb-timeline-v2__item--left .maghreb-timeline-v2__card {
  position: relative;
}

.maghreb-timeline-v2__item--left .maghreb-timeline-v2__card::after {
  right: -9px;
  border-left: none;
  border-bottom: none;
}

.maghreb-timeline-v2__item--right .maghreb-timeline-v2__card {
  position: relative;
}

.maghreb-timeline-v2__item--right .maghreb-timeline-v2__card::after {
  left: -9px;
  border-right: none;
  border-top: none;
}

.maghreb-timeline-v2__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(12, 35, 24, 0.14);
  border-color: rgba(26, 107, 66, 0.22);
}

.maghreb-timeline-v2__item:hover .maghreb-timeline-v2__dot {
  transform: scale(1.12);
  box-shadow: 0 0 0 10px rgba(26, 107, 66, 0.16);
}

.maghreb-timeline-v2__card--highlight {
  background: linear-gradient(145deg, #ffffff 0%, #f3faf6 100%);
  border-color: rgba(200, 121, 42, 0.35);
}

.maghreb-timeline-v2__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.maghreb-timeline-v2__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(26, 107, 66, 0.1);
  color: #1a6b42;
  font-size: 24px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.maghreb-timeline-v2__card:hover .maghreb-timeline-v2__icon {
  background: #1a6b42;
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.maghreb-timeline-v2__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #1a6b42 0%, #2d8f5c 100%);
  box-shadow: 0 8px 20px rgba(26, 107, 66, 0.25);
}

.maghreb-timeline-v2__card--highlight .maghreb-timeline-v2__year {
  background: linear-gradient(135deg, #c8792a 0%, #e8a04a 100%);
  box-shadow: 0 8px 20px rgba(200, 121, 42, 0.28);
}

.maghreb-timeline-v2__title {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--rs-title-secondary);
}

.maghreb-timeline-v2__text {
  margin: 0;
  line-height: 1.7;
  color: var(--rs-text-primary);
}

.maghreb-timeline-v2__item.is-revealed .maghreb-timeline-v2__card {
  animation: maghreb-timeline-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes maghreb-timeline-card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 991px) {
  .maghreb-timeline-v2__track {
    left: 18px;
    transform: none;
  }

  .maghreb-timeline-v2__item {
    grid-template-columns: 36px 1fr;
    gap: 18px;
    padding-left: 8px;
  }

  .maghreb-timeline-v2__dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .maghreb-timeline-v2__item--left .maghreb-timeline-v2__card,
  .maghreb-timeline-v2__item--right .maghreb-timeline-v2__card {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
  }

  .maghreb-timeline-v2__item--left .maghreb-timeline-v2__card::after,
  .maghreb-timeline-v2__item--right .maghreb-timeline-v2__card::after {
    left: -9px;
    right: auto;
    border-right: none;
    border-top: none;
  }
}

.maghreb-about-gallery {
  display: grid;
  gap: 16px;
}

.maghreb-about-gallery-main img,
.maghreb-about-gallery-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  min-height: 220px;
  background: linear-gradient(135deg, #0c2318 0%, #1a6b42 100%);
}

.maghreb-about-gallery-main img {
  min-height: 280px;
}

.maghreb-about-gallery-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.maghreb-about-list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
}

.maghreb-about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.maghreb-about-list li i {
  color: var(--rs-theme-orange);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.maghreb-about-location-text {
  margin-top: 18px;
  line-height: 1.7;
  max-width: 520px;
}

.maghreb-about-location-list {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.maghreb-about-location-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.maghreb-about-location-item i {
  font-size: 24px;
  color: var(--rs-theme-orange);
  margin-top: 2px;
}

.maghreb-about-location-item p {
  margin: 4px 0 0;
}

.maghreb-about-location-item a {
  color: inherit;
}

.maghreb-about-map-inner {
  min-height: 320px;
  border-radius: 8px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, rgba(12, 35, 24, 0.15) 0%, rgba(26, 107, 66, 0.55) 100%), linear-gradient(135deg, #0c2318 0%, #1a6b42 100%);
  color: #fff;
}

.maghreb-about-map-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.maghreb-about-map-inner p {
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

@media only screen and (max-width: 767px) {
  .maghreb-page-hero {
    padding-top: 120px;
    padding-bottom: 90px;
  }

  .maghreb-about-gallery-secondary {
    grid-template-columns: 1fr;
  }
}

/* Page Réalisations */
.maghreb-realisation-intro__text {
  margin: 0;
  line-height: 1.75;
  color: var(--rs-text-primary);
}

.maghreb-realisation-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.maghreb-realisation-filter button {
  border: 1px solid rgba(20, 35, 64, 0.12);
  background: #fff;
  color: var(--rs-title-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.maghreb-realisation-filter button:hover,
.maghreb-realisation-filter button.active {
  background: #1a6b42;
  border-color: #1a6b42;
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 107, 66, 0.22);
}

.maghreb-realisation-grid {
  margin: 0 -15px;
}

.maghreb-realisation-grid .grid-item {
  width: 33.3333%;
  padding: 15px;
}

.maghreb-realisation-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(12, 35, 24, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.maghreb-realisation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(12, 35, 24, 0.14);
}

.maghreb-realisation-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0c2318 0%, #1a6b42 100%);
}

.maghreb-realisation-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.maghreb-realisation-card:hover .maghreb-realisation-card__thumb img {
  transform: scale(1.06);
}

.maghreb-realisation-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 35, 24, 0.72);
  backdrop-filter: blur(4px);
}

.maghreb-realisation-card__body {
  padding: 24px 22px 26px;
}

.maghreb-realisation-card__body h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--rs-title-secondary);
}

.maghreb-realisation-card__body p {
  margin: 0 0 16px;
  line-height: 1.65;
  color: var(--rs-text-primary);
}

.maghreb-realisation-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.maghreb-realisation-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a6b42;
}

.maghreb-realisation-card__meta i {
  font-size: 16px;
}

.maghreb-realisation-cta.rs-cta-one {
  margin-top: 0;
}

.maghreb-realisation-cta .rs-cta-wrapper {
  padding: 56px 48px;
  border-radius: 12px;
  overflow: hidden;
}

.maghreb-realisation-cta .rs-cta-descrip p {
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

@media only screen and (max-width: 767px) {
  .maghreb-realisation-cta .rs-cta-wrapper {
    padding: 40px 24px;
  }

  .maghreb-realisation-cta .text-xl-end {
    text-align: start !important;
  }
}

@media only screen and (max-width: 1199px) {
  .maghreb-realisation-grid .grid-item {
    width: 50%;
  }
}

@media only screen and (max-width: 767px) {
  .maghreb-realisation-grid .grid-item {
    width: 100%;
  }

  .maghreb-realisation-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .maghreb-realisation-filter button {
    flex-shrink: 0;
  }
}

/* Page Actualités */
.maghreb-actualites-intro__text {
  margin: 0;
  line-height: 1.75;
  color: var(--rs-text-primary);
}

.maghreb-contact-intro__text {
  margin: 0;
  line-height: 1.75;
  color: var(--rs-text-primary);
}

.maghreb-produits-intro__text {
  margin: 0;
  line-height: 1.75;
  color: var(--rs-text-primary);
}

.maghreb-produits-catalogue {
  background: #fff;
}

.maghreb-produits-doc-card {
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(12, 35, 24, 0.08);
  height: 100%;
}

.maghreb-produits-doc-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.maghreb-produits-doc-card__body {
  padding: 20px;
}

.maghreb-produits-doc-card__body h4 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.maghreb-cpt-produits-empty {
  margin: 0;
  padding: 24px;
  border-radius: 12px;
  background: #f5f8f6;
  color: var(--rs-text-primary);
}

.maghreb-cpt-produit-card {
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(12, 35, 24, 0.08);
  height: 100%;
}

.maghreb-cpt-produit-card__thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Slider photos sur la card produit (overlay contrôles Swiper) */
.maghreb-cpt-produit-card__thumb.rs-swiper {
  position: relative;
}

.maghreb-cpt-produit-card__thumb.rs-swiper .swiper-button-prev,
.maghreb-cpt-produit-card__thumb.rs-swiper .swiper-button-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  z-index: 3;
}

.maghreb-cpt-produit-card__thumb.rs-swiper .swiper-button-prev {
  left: 10px !important;
}

.maghreb-cpt-produit-card__thumb.rs-swiper .swiper-button-next {
  right: 10px !important;
}

.maghreb-cpt-produit-card__thumb.rs-swiper .swiper-pagination {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 10px !important;
  z-index: 3;
}

.maghreb-cpt-produit-card__body {
  padding: 20px;
}

.maghreb-cpt-produit-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 107, 66, 0.12);
  color: #1a6b42;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.maghreb-cpt-produit-card__body h4 {
  margin: 0 0 10px;
  font-size: 21px;
}

.maghreb-cpt-produit-card__body p {
  margin: 0 0 14px;
  color: var(--rs-text-primary);
  line-height: 1.65;
}

.maghreb-cpt-produit-card__meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.maghreb-cpt-produit-card__meta li {
  color: #1a6b42;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.maghreb-single-produit__nav {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.maghreb-single-produit__content {
  background: #fff;
  border: 1px solid rgba(20, 35, 64, 0.1);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(12, 35, 24, 0.08);
}

.maghreb-single-produit__excerpt {
  margin: 0 0 16px;
  color: var(--rs-text-primary);
  line-height: 1.65;
}

.maghreb-single-produit__meta {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.maghreb-single-produit__meta li {
  color: var(--rs-text-primary);
}

.maghreb-single-produit__meta strong {
  color: #1a6b42;
}

.maghreb-single-produit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.maghreb-single-produit__spacer {
  display: none;
}

@media only screen and (max-width: 767px) {
  .maghreb-produits-doc-card > img {
    height: 190px;
  }

  .maghreb-cpt-produit-card__thumb img {
    height: 190px;
  }

  .maghreb-single-produit__content {
    padding: 18px;
  }
}

.maghreb-contact-v2 {
  position: relative;
}

.maghreb-contact-v2__wrapper {
  background: linear-gradient(140deg, #0c2318 0%, #123224 55%, #1a6b42 100%);
  border-radius: 18px;
  padding: 52px;
  box-shadow: 0 24px 56px rgba(12, 35, 24, 0.2);
  overflow: hidden;
}

.maghreb-contact-v2__wrapper .rs-section-title,
.maghreb-contact-v2__wrapper .descrip {
  color: #fff;
}

.maghreb-contact-v2__cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.maghreb-contact-v2__card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.maghreb-contact-v2__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 107, 66, 0.85);
  color: #fff;
  font-size: 20px;
}

.maghreb-contact-v2__card h6 {
  color: #fff;
  margin: 3px 0 6px;
  font-size: 17px;
}

.maghreb-contact-v2__card p,
.maghreb-contact-v2__card a {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.6;
}

.maghreb-contact-v2__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.maghreb-contact-v2__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.maghreb-contact-v2__social a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.maghreb-contact-v2__form-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  height: 100%;
}

.maghreb-contact-v2__form-wrap .rs-contact-form-title {
  margin-bottom: 10px;
}

.maghreb-contact-v2__form-wrap .descrip {
  color: var(--rs-text-primary);
  margin-bottom: 20px;
}

@media only screen and (max-width: 991px) {
  .maghreb-contact-v2__wrapper {
    padding: 36px 24px;
  }
}

.maghreb-actualites-list .rs-blog-item.has-grid .rs-blog-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.maghreb-actualites-cta .rs-cta-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

@media only screen and (max-width: 767px) {
  .maghreb-actualites-list .rs-blog-item.has-grid .rs-blog-thumb img {
    height: 190px;
  }
}

/* ==========================================================================
   Dynamisme — ambiance, motion, hovers
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  :root {
    --maghreb-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --maghreb-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Fond vivant léger (section claire) */
  .rs-feature-one,
  .maghreb-produits-intro,
  .maghreb-realisation-intro,
  .maghreb-cpt-produits-section {
    position: relative;
    isolation: isolate;
  }

  .rs-feature-one::before,
  .maghreb-produits-intro::before,
  .maghreb-realisation-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(900px 420px at 8% 12%, rgba(26, 107, 66, 0.07), transparent 60%),
      radial-gradient(700px 380px at 92% 78%, rgba(200, 121, 42, 0.06), transparent 55%);
    animation: maghreb-ambient-drift 18s ease-in-out infinite alternate;
  }

  @keyframes maghreb-ambient-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, 12px, 0) scale(1.04); }
  }

  /* Reveal au scroll */
  .maghreb-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
      opacity 0.7s var(--maghreb-ease),
      transform 0.7s var(--maghreb-ease);
    will-change: opacity, transform;
  }

  .maghreb-reveal.is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .maghreb-reveal--left {
    transform: translate3d(-32px, 0, 0);
  }

  .maghreb-reveal--left.is-inview {
    transform: translate3d(0, 0, 0);
  }

  .maghreb-reveal--scale {
    transform: scale(0.96);
  }

  .maghreb-reveal--scale.is-inview {
    transform: scale(1);
  }

  /* Stagger children */
  .maghreb-stagger > .maghreb-reveal:nth-child(1) { transition-delay: 0.05s; }
  .maghreb-stagger > .maghreb-reveal:nth-child(2) { transition-delay: 0.12s; }
  .maghreb-stagger > .maghreb-reveal:nth-child(3) { transition-delay: 0.19s; }
  .maghreb-stagger > .maghreb-reveal:nth-child(4) { transition-delay: 0.26s; }
  .maghreb-stagger > .maghreb-reveal:nth-child(5) { transition-delay: 0.33s; }
  .maghreb-stagger > .maghreb-reveal:nth-child(6) { transition-delay: 0.4s; }

  /* Hero titles — légère respiration */
  .rs-banner-one .rs-banner-title {
    animation: maghreb-title-rise 0.9s var(--maghreb-ease-out) both;
  }

  .rs-banner-one .rs-banner-descrip,
  .rs-banner-one .rs-banner-btn {
    animation: maghreb-title-rise 0.9s var(--maghreb-ease-out) 0.15s both;
  }

  @keyframes maghreb-title-rise {
    from {
      opacity: 0;
      transform: translate3d(0, 22px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  /* Banner ken burns léger sur slide active */
  .rs-banner-one .swiper-slide-active .rs-banner-bg-thumb {
    animation: maghreb-kenburns 8s ease-out forwards;
  }

  @keyframes maghreb-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
  }

  .rs-banner-one .rs-banner-bg-thumb {
    transition: transform 0.6s var(--maghreb-ease);
    will-change: transform;
  }

  /* Cards / features — lift + shine */
  .rs-feature-one .rs-feature-item,
  .maghreb-cpt-produit-card,
  .maghreb-realisation-card,
  .rs-portfolio-one .rs-portfolio-item,
  .rs-blog-one .rs-blog-item,
  .rs-work-step-one .rs-work-step-item {
    transition:
      transform 0.45s var(--maghreb-ease),
      box-shadow 0.45s var(--maghreb-ease),
      border-color 0.35s ease;
  }

  .rs-feature-one .rs-feature-item:hover,
  .maghreb-cpt-produit-card:hover,
  .maghreb-realisation-card:hover,
  .rs-work-step-one .rs-work-step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(12, 35, 24, 0.14);
  }

  .maghreb-cpt-produit-card__thumb,
  .maghreb-realisation-card__thumb,
  .rs-blog-item .rs-blog-thumb {
    overflow: hidden;
  }

  .maghreb-cpt-produit-card__thumb img,
  .maghreb-realisation-card__thumb img,
  .rs-blog-item .rs-blog-thumb img {
    transition: transform 0.7s var(--maghreb-ease);
  }

  .maghreb-cpt-produit-card:hover .maghreb-cpt-produit-card__thumb img,
  .maghreb-realisation-card:hover .maghreb-realisation-card__thumb img,
  .rs-blog-item:hover .rs-blog-thumb img {
    transform: scale(1.06);
  }

  /* Features icon bounce soft */
  .rs-feature-one .rs-feature-icon {
    transition: transform 0.45s var(--maghreb-ease);
  }

  .rs-feature-one .rs-feature-item:hover .rs-feature-icon {
    transform: translateY(-4px) scale(1.06);
  }

  /* Boutons — micro spring */
  .rs-btn.has-bg,
  .rs-btn.has-icon {
    transition: transform 0.3s var(--maghreb-ease), box-shadow 0.3s ease;
  }

  .rs-btn.has-theme-orange.has-bg:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 107, 66, 0.28);
  }

  /* Header sticky — ombre douce quand actif */
  .rs-sticky-header.active {
    box-shadow: 0 10px 30px rgba(12, 35, 24, 0.1);
    backdrop-filter: blur(8px);
  }

  /* WhatsApp — pulse discret */
  .maghreb-whatsapp-btn {
    animation: maghreb-wa-pulse 2.8s ease-in-out infinite;
  }

  .maghreb-whatsapp-btn:hover {
    animation: none;
    transform: scale(1.08);
  }

  @keyframes maghreb-wa-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55), 0 0 0 10px rgba(37, 211, 102, 0.12); }
  }

  /* Section titles — underline grow */
  .rs-section-title {
    position: relative;
  }

  .rs-section-subtitle.has-theme-orange {
    letter-spacing: 0.04em;
  }

  /* Product filter tabs — livelier */
  .maghreb-gamme-filter button,
  .rs-portfolio-tab button {
    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.25s var(--maghreb-ease),
      box-shadow 0.25s ease;
  }

  .maghreb-gamme-filter button:hover,
  .rs-portfolio-tab button:hover {
    transform: translateY(-2px);
  }

  .maghreb-gamme-filter button.active,
  .rs-portfolio-tab button.active {
    box-shadow: 0 8px 18px rgba(26, 107, 66, 0.18);
  }

  /* Marquee / brand area subtle sheen */
  .rs-brand-one {
    position: relative;
    overflow: hidden;
  }

  .rs-brand-one::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 60%
    );
    transform: translateX(-120%);
    animation: maghreb-sheen 7s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes maghreb-sheen {
    0%, 35% { transform: translateX(-120%); }
    55% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
  }

  /* Contact block glow */
  .maghreb-contact-v2__wrapper {
    position: relative;
  }

  .maghreb-contact-v2__wrapper::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 121, 42, 0.28), transparent 70%);
    top: -60px;
    right: -40px;
    animation: maghreb-ambient-drift 12s ease-in-out infinite alternate;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maghreb-reveal,
  .maghreb-reveal--left,
  .maghreb-reveal--scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .maghreb-whatsapp-btn,
  .rs-banner-one .rs-banner-title,
  .rs-brand-one::after {
    animation: none !important;
  }
}
