
/* ============================================================
   MODERN DESIGN UPGRADE - NASR s.a.
   ============================================================ */

/* ---- CSS Custom Properties (Design Tokens) ---- */
:root {
  --primary:       #3d7a35;
  --primary-light: #5EA353;
  --primary-dark:  #2b5625;
  --accent:        #4a5fa0;
  --accent-dark:   #3a4e8a;
  --text-dark:     #1a1a2e;
  --text-mid:      #444;
  --text-light:    #777;
  --bg-light:      #f8faf8;
  --bg-white:      #ffffff;
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.13);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Global Enhancements ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.75;
  background: var(--bg-white);
  font-family: "Quicksand", sans-serif;
}

/* About page - Outfit font for French and English */
#main {
  font-family: "Outfit", sans-serif;
}

#main h1, #main h2, #main h3, #main h4, #main h5, #main h6 {
  font-family: "Outfit", sans-serif;
}

#main p, #main span, #main li {
  font-family: "Outfit", sans-serif;
}

/* Changa pour les titres en arabe (RTL) */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: "Changa", sans-serif;
}

/* RTL: Override Outfit with Arabic fonts for all text */
html[dir="rtl"] #main {
  font-family: "Changa", sans-serif !important;
}
html[dir="rtl"] #main p,
html[dir="rtl"] #main span,
html[dir="rtl"] #main li,
html[dir="rtl"] #main div {
  font-family: "Changa", sans-serif !important;
}

/* Bas de page / CTA : Fustat (font d'origine, inchangée) */
#call-to-action .cta-altlang,
#call-to-action .cta-altlang_reg,
#footer .regAR {
  font-family: "Fustat", "Noto Sans Arabic", Arial, sans-serif !important;
}
/* Fustat pour le titre نصر et copyright en arabe */
html[dir="rtl"] #call-to-action .cta-altlangFR,
html[dir="rtl"] #call-to-action .cta-nasr-ar {
  font-family: "Fustat", "Noto Sans Arabic", Arial, sans-serif !important;
}
html[dir="rtl"] #footer .copyright {
  font-family: "Fustat", "Noto Sans Arabic", Arial, sans-serif !important;
}
/* Fustat + bold for hero CTA titre in Arabic */
html[dir="rtl"] .hero-cta-title {
  font-family: "Fustat", "Noto Sans Arabic", Arial, sans-serif !important;
}
html[dir="rtl"] .hero-cta-title strong {
  font-weight: 800;
}

/* ---- Header ---- */
#header {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 32px rgba(82,98,161,0.10);
  border-bottom: 1px solid rgba(82,98,161,0.13);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  height: 72px;
}

/* Header solide au scroll (classe ajoutée par JS) */
#header.header-scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 24px rgba(82,98,161,0.14);
}

#header #logo img {
  transition: var(--transition);
  filter: drop-shadow(0 1px 3px rgba(82,98,161,0.15));
}

/* Navbar Links — light & élégant */
.navbar a, .navbar a:focus {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #000000;
  padding: 8px 14px;
  border-radius: 0;
  transition: color var(--transition), opacity var(--transition);
  position: relative;
}

/* Trait fin sous le lien au survol - désactivé */
.navbar > ul > li > a::after {
  display: none;
}
.navbar > ul > li > a:hover::after,
.navbar > ul > li.active > a::after { display: none; }

.navbar a:hover, .navbar .active, .navbar li:hover > a {
  color: #333333 !important;
  background: transparent;
}

/* Dropdown — glassmorphism */
.navbar .dropdown ul {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(82,98,161,0.13);
  border: 1px solid rgba(82,98,161,0.10);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 0;
  top: calc(100% + 8px);
}
.navbar .dropdown ul a {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 9px 22px;
  color: #3a3a4a;
  transition: var(--transition);
}
.navbar .dropdown ul a:hover {
  color: #5262a1 !important;
  background: rgba(82,98,161,0.05);
  padding-left: 28px;
}

/* Language Switcher */
.language-switcher .nav-link {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 13.5px;
  letter-spacing: 0.8px;
  color: #3a3a4a !important;
}
.language-switcher .dropdown-menu {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(82,98,161,0.13);
  border: 1px solid rgba(82,98,161,0.10);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 0;
  min-width: 140px;
}
.language-switcher .dropdown-item {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a3a4a;
}
.language-switcher .dropdown-item:hover {
  background: rgba(82,98,161,0.06);
  color: #5262a1;
}

/* ---- Hero ---- */
#hero {
  min-height: 364px;
}

/* Voile bleu NASR sur l'image du siège */
#hero::before {
  background: rgba(55, 72, 138, 0.58);
}

/* Texte hero en blanc sur fond bleu */
#hero .hero-content h2,
#hero .hero-content h3 {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  margin-bottom: 18px;
}
#hero .hero-content h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
html[dir="rtl"] #hero .hero-content h3 {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
/* Hero banner AR — fonts + couleur blanche, override !important global span */
#hero .hero-content .hero-nasr-ar {
  font-family: "Fustat", "Noto Sans Arabic", sans-serif !important;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
}
#hero .hero-content .hero-nasr-latin {
  font-family: "Outfit", sans-serif !important;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
}
/* Supprimer soulignement style.css + forcer blanc sur tous spans/em du hero h3 */
#hero .hero-content h3 span,
#hero .hero-content h3 em {
  color: #fff !important;
  text-decoration: none !important;
}
/* Noms propres latins dans contexte arabe — font Outfit */
.latin-name {
  font-family: "Outfit", sans-serif !important;
  font-style: normal;
  unicode-bidi: isolate;
}

/* Hero slogan — Kaushan Script (FR/EN) · Kufam (AR) */
#hero .hero-content .hero-slogan {
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  font-size: 0.85em;
  font-style: normal;
  letter-spacing: 1px;
  text-transform: none;
  display: block;
  color: #fff;
  margin-top: 14px;
  padding-top: 14px;
  opacity: 0.92;
  position: relative;
}
#hero .hero-content .hero-slogan::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  margin: 0 auto 10px;
}
#hero .hero-content .hero-key {
  color: inherit;
  font-weight: 400;
}
html[dir="rtl"] #hero .hero-content .hero-slogan {
  font-family: "Kufam", sans-serif !important;
  letter-spacing: 1px;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #fff;
}
html[dir="rtl"] #hero .hero-content .hero-key {
  font-style: normal !important;
  font-weight: 700 !important;
}
html[dir="rtl"] #hero .hero-content .hero-slogan::before {
  margin: 0 auto 10px;
  background: rgba(255,255,255,0.55);
}

/* Hero buttons */
#hero .hero-content .btn-get-started,
#hero .hero-content .btn-projects {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 8px;
  cursor: pointer;
}
/* Bouton principal : fond vert solide */
#hero .hero-content .btn-get-started {
  background: #5EA353;
  color: #fff;
  border: 2px solid #5EA353;
}
#hero .hero-content .btn-get-started:hover {
  background: transparent;
  color: #5EA353;
  border-color: #5EA353;
}
/* Bouton secondaire : contour blanc transparent */
#hero .hero-content .btn-projects {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
#hero .hero-content .btn-projects:hover {
  background: #fff;
  color: #5262a1;
  border-color: #fff;
}

/* ---- Sections ---- */
section { padding: 60px 0; }
#about   { background: var(--bg-white); }
#services { background: var(--bg-light); }
#contact { background: var(--bg-light); }

/* ---- Feature Cards (index about section) ---- */
.feature-card {
  display: flex;
  flex-direction: row;        /* horizontal: icon left, content right */
  align-items: stretch;       /* body fills full card height */
  gap: 24px;
  border-radius: 20px;
  background: #fff;           /* default — overridden per card below */
  box-shadow: 0 2px 18px rgba(55,72,138,0.09), 0 1px 4px rgba(0,0,0,0.06);
  padding: 28px 28px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  border: none;
}
/* Diagonal accent stripe top-right */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(225deg, rgba(94,163,83,0.12) 0%, transparent 70%);
  border-radius: 0 20px 0 100%;
  pointer-events: none;
}
/* Bottom accent line — slides in on hover */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 48px rgba(55,72,138,0.14), 0 4px 16px rgba(0,0,0,0.08);
}
/* Plain icon — no circle */
.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: 72px;
}
.feature-card-icon i {
  font-size: 3.4rem;
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              color 0.35s;
}
.feature-card:hover .feature-card-icon i {
  transform: scale(1.15);
  color: var(--primary-light);
}
/* Card body — stretches to full card height, content centred inside */
.feature-card-body {
  flex: 1;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;    /* vertically centre title + text in the full height */
}
.feature-card-body h4 {
  font-family: "Quicksand", sans-serif !important;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--accent-dark);
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.feature-card-body p {
  font-family: "Quicksand", sans-serif !important;
  font-size: 1.15rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.85;
}
/* Both cards use the same background tint */
#about .feature-card:nth-child(1),
#about .feature-card:nth-child(2) { background: #f3f7fe; }
/* RTL: icon on the right, text on the left */
html[dir="rtl"] .feature-card {
  flex-direction: row-reverse;
}
html[dir="rtl"] .feature-card::before {
  right: auto; left: 0;
  border-radius: 20px 0 100% 0;
  background: linear-gradient(315deg, rgba(94,163,83,0.12) 0%, transparent 70%);
}
html[dir="rtl"] .feature-card::after { transform-origin: right; }
html[dir="rtl"] .feature-card-body { text-align: right; }
html[dir="rtl"] .feature-card-body h4 {
  font-family: "Changa", sans-serif !important;
  font-size: 1.65rem;
}
html[dir="rtl"] .feature-card-body p {
  font-family: "Changa", sans-serif !important;
}

/* ---- Product Pages RTL Support ---- */
/* Changa font for all product page text in Arabic */
html[dir="rtl"] .prod-title-main,
html[dir="rtl"] .prod-card-custom h3,
html[dir="rtl"] .prod-card-custom p,
html[dir="rtl"] .prod-card-custom li,
html[dir="rtl"] .feature-box h4,
html[dir="rtl"] .feature-box p,
html[dir="rtl"] .prod-service-box h4,
html[dir="rtl"] .prod-service-box p,
html[dir="rtl"] .contact-cta h3,
html[dir="rtl"] .contact-cta p,
html[dir="rtl"] .section-header h2,
html[dir="rtl"] .section-header .subtitle {
  font-family: "Changa", sans-serif !important;
}

/* RTL: Swap arrow direction for lists in Arabic */
html[dir="rtl"] ul[style*="list-style:none"] li i[class*="bi-arrow-left"] {
  margin-right: 0;
  margin-left: 8px;
}
html[dir="rtl"] p[align="justify"] {
  text-align: right;
}
/* RTL: justify text alignment fix */
html[dir="rtl"] p[align="justify"] {
  text-align: right;
}
/* Reverse arrows for RTL: replace me-2/ms-2 with ms-2/me-2 equivalent */
html[dir="rtl"] .prod-list-custom li i.fas,
html[dir="rtl"] .feature-list li i.fas {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}
html[dir="rtl"] .prod-card-icon-custom {
  margin-right: 0;
  margin-left: 12px;
}
/* Reverse flex direction for product cards in RTL */
html[dir="rtl"] .prod-card-custom .d-flex {
  flex-direction: row-reverse;
}
/* Arrow down icon for RTL - no change needed, it's vertical */
html[dir="rtl"] .fa-arrow-down {
  transform: none;
}
/* Section headers with icons - reverse flex for RTL */
html[dir="rtl"] .section-header.text-center h2[style*="display:flex"],
html[dir="rtl"] h2[style*="display:flex"] {
  flex-direction: row-reverse;
}
/* Hero title icon spacing for RTL */
html[dir="rtl"] #hero h3 .fas {
  margin-right: 0 !important;
  margin-left: 0.75rem !important;
}

/* Section Headers */
.section-header h2, .section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-dark);
}
.section-title h2 {
  margin-bottom: 12px;
  padding-bottom: 0;
}

/* ---- About ---- */
#about .content h2 { font-weight: 800; font-size: 2rem; color: var(--accent-dark); }
#about .about-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
#about .about-img img:hover { transform: scale(1.02); }
#about .content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
#about .content i { color: var(--primary-light); font-size: 18px; margin-top: 2px; flex-shrink: 0; }

/* ---- Stats ---- */
.stats-item {
  padding: 32px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(94,163,83,0.15);
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stats-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
}
.stats-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stats-item i { font-size: 44px; color: var(--primary-light); margin-bottom: 12px; display: block; }
.stats-item span { font-size: 40px; font-weight: 800; color: var(--accent-dark); }

/* ---- Service Cards ---- */
.service-box {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  min-height: 300px;
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
}
.service-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, var(--accent-dark), var(--primary-dark));
  border-color: transparent;
  color: #fff;
}
.service-box:hover::before { transform: scaleX(1); }
.service-box i { font-size: 52px; color: var(--primary-light); margin-bottom: 18px; transition: var(--transition); }
.service-box:hover i { color: rgba(255,255,255,0.85); }
.service-box h4 { font-size: 17px; font-weight: 700; color: var(--accent-dark); transition: var(--transition); }
.service-box:hover h4 { color: #fff; }
.service-box p { font-size: 13.5px; color: var(--text-light); transition: var(--transition); }
.service-box:hover p { color: rgba(255,255,255,0.8); }
.service-box .btn-learn-more {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 50px;
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(94,163,83,0.3);
}
.service-box:hover .btn-learn-more {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* Filter Buttons */
#services #services-flters {
  overflow: visible;
  padding: 8px 8px 18px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
#services #services-flters li {
  background: var(--bg-white);
  border: 2px solid rgba(94,163,83,0.2);
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 26px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  cursor: pointer;
}
#services #services-flters li:hover,
#services #services-flters li.filter-active {
  background: linear-gradient(135deg, #37488a 0%, #2c3a70 60%, #1e2850 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(55,72,138,0.35);
  transform: none;
}
/* Ensure filter container row doesn't clip button shadows */
#services .row:has(#services-flters) {
  overflow: visible;
}
#services .col-lg-12:has(#services-flters) {
  overflow: visible;
  padding-bottom: 8px;
}

/* ---- Product description list items (arrow bullet alignment) ---- */
dd li, .content li,
.section-header .content ul li,
.col-md-10.content ul li,
#services .content ul li,
.prod-text li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  list-style: none;
  margin-bottom: 4px;
}
dd li > i.bi, .content li > i.bi,
.section-header .content ul li > i.bi,
.col-md-10.content ul li > i.bi,
#services .content ul li > i.bi,
.prod-text li > i.bi {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--primary-light);
}
/* RTL: mirror the arrow icon direction */
html[dir="rtl"] dd li > i.bi-arrow-right,
html[dir="rtl"] .content li > i.bi-arrow-right,
html[dir="rtl"] .col-md-10.content ul li > i.bi-arrow-right,
html[dir="rtl"] .prod-text li > i.bi-arrow-right {
  transform: scaleX(-1);
}

/* ---- Contact Boxes ---- */
.contact-address, .contact-phone, .contact-email {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.contact-address:hover, .contact-phone:hover, .contact-email:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(94,163,83,0.2);
}
.contact-address i, .contact-phone i, .contact-email i {
  font-size: 36px;
  color: var(--primary-light);
  margin-bottom: 12px;
  display: block;
  transition: var(--transition);
}
.contact-address:hover i, .contact-phone:hover i, .contact-email:hover i {
  transform: scale(1.15);
  color: var(--primary-dark);
}
.contact-address h3, .contact-phone h3, .contact-email h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

/* ---- CTA Section ---- */
#call-to-action {
  background: linear-gradient(135deg, #37488a 0%, #2c3a70 60%, #1e2850 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
#call-to-action::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
#call-to-action .cta-title { color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1.5; }
/* Wrapper for the two equalised name lines */
#call-to-action .cta-names-wrapper {
  display: inline-block;
  margin-top: 2px;
}
#call-to-action .cta-names-wrapper .cta-altlang,
#call-to-action .cta-names-wrapper .cta-altlangFR2 {
  display: block;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  transform-origin: left center; /* overridden per element by JS for RTL */
}
#call-to-action .cta-altlang { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
#call-to-action .cta-altlangFR2 { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
/* CTA button — rond, cohérent avec les boutons héros */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 34px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* ---- Footer ---- */
#footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d1b2a 100%);
  color: rgba(255,255,255,0.8);
  padding: 16px 0 12px;
  text-align: center;
}
#footer .copyright {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-bottom: 8px;
}
#footer .copyright strong { color: var(--primary-light); }
/* Company name + address above legal line */
#footer .footer-company-info {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 8px;
  font-family: "Outfit", sans-serif;
}
#footer .footer-company-info strong { color: rgba(255,255,255,0.85); font-weight: 600; }
html[dir="rtl"] #footer .footer-company-info {
  font-family: "Fustat", "Noto Sans Arabic", sans-serif !important;
}
html[dir="rtl"] #footer .footer-company-info .footer-nasr-name {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 13px;
}
/* Separator + Arabic legal block */
#footer .regAR {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  direction: rtl;
  font-family: "Fustat", "Noto Sans Arabic", Arial, sans-serif !important;
  line-height: 1.7;
  padding-top: 4px;
  margin-bottom: 4px;
}
#footer .regFR {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  padding-top: 4px;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* ---- Back To Top ---- */
.back-to-top {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  box-shadow: 0 4px 16px rgba(94,163,83,0.4);
  transition: var(--transition);
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74,95,160,0.4);
}

/* ---- Iframe Maps ---- */
.container iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ---- Clients/Partners ---- */
#clients { background: var(--bg-light); padding: 40px 0; }
#clients img { opacity: 0.55; filter: grayscale(30%); transition: var(--transition); }
#clients img:hover { opacity: 1; filter: none; transform: scale(1.05); }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  background: linear-gradient(90deg, var(--bg-light), var(--bg-white));
  border-bottom: 1px solid rgba(94,163,83,0.15);
  padding: 14px 0;
}
.breadcrumbs h2 { color: var(--accent-dark); font-weight: 700; }

/* ---- Agences Cards ---- */
.agence-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-light);
  transition: var(--transition);
  margin-bottom: 20px;
}
.agence-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-left-color: var(--accent); }

/* ---- Form ---- */
.php-email-form input,
.php-email-form textarea,
.php-email-form select {
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
  width: 100%;
}
.php-email-form input:focus, .php-email-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(94,163,83,0.12);
}
.php-email-form button[type="submit"] {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(94,163,83,0.35);
}
.php-email-form button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(94,163,83,0.45); }

/* Contact form section — same visual as CTA */
#contact-form-section {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  padding: 60px 0 50px;
}
#contact-form-section .cta-title { color: #fff; }
#contact-form-section .cta-text { color: rgba(255,255,255,0.85); }
#contact-form-section .php-email-form { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 32px; margin-top: 24px; }
#contact-form-section .php-email-form input,
#contact-form-section .php-email-form textarea {
  background: rgba(255,255,255,0.95);
  color: var(--text-dark);
  border-color: rgba(255,255,255,0.3);
}
#contact-form-section .php-email-form input[type="submit"] {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(94,163,83,0.35);
}
html[dir="rtl"] #contact-form-section .col-lg-9 { text-align: right; }
html[dir="rtl"] #contact-form-section .cta-title { text-align: right; }
html[dir="rtl"] #contact-form-section .cta-text { text-align: right; }
html[dir="rtl"] #contact-form-section .cta-nasr-latin,
html[dir="rtl"] #contact-form-section .cta-altlangFR2 {
  font-family: "Outfit", sans-serif !important;
}

/* ---- RTL Arabic Support ---- */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] li,
html[dir="rtl"] td,
html[dir="rtl"] th,
html[dir="rtl"] label,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] .navbar a,
html[dir="rtl"] .section-title,
html[dir="rtl"] .card-title {
  font-family: "Changa", sans-serif !important;
  letter-spacing: 0;
  line-height: 1.8;
}
/* RTL Navbar — items flow right→left so الرئيسية sits on the far right */
html[dir="rtl"] .navbar ul {
  direction: rtl;
  flex-direction: row;
  display: flex;
  justify-content: flex-start;
  padding-right: 30px;
}
html[dir="rtl"] .navbar a i { margin-left: 0; margin-right: 5px; }
html[dir="rtl"] .navbar .dropdown ul { left: auto; right: 14px; direction: rtl; flex-direction: column; display: block; }
html[dir="rtl"] .navbar .dropdown ul a:hover { padding-left: 22px; padding-right: 28px; }
html[dir="rtl"] #header .container { flex-direction: row-reverse !important; }
html[dir="rtl"] #header .navbar { flex-direction: row-reverse; }
html[dir="rtl"] .souscribe-btn { margin-right: 20px; margin-left: 10px; }
html[dir="rtl"] #header .language-switcher { margin-right: 15px; margin-left: 0; }
html[dir="rtl"] #about .about-img img { margin-left: 0; margin-right: -15px; }
html[dir="rtl"] .feature-item { flex-direction: row-reverse; }
html[dir="rtl"] .feature-item i { margin-right: 0; margin-left: 20px; }
html[dir="rtl"] .agence-card { border-left: none; border-right: 4px solid var(--primary-light); }
html[dir="rtl"] .agence-card:hover { transform: translateX(-4px); border-right-color: var(--accent); }
html[dir="rtl"] #header .container { flex-direction: row-reverse; }

/* RTL CTA — text right-aligned */
html[dir="rtl"] #call-to-action .col-lg-9 { text-align: right; }
html[dir="rtl"] #call-to-action .cta-title { text-align: right; }
/* CTA first line Arabic: نصر – NASR s.a. */
#call-to-action .cta-line1-ar {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  direction: rtl;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}
#call-to-action .cta-nasr-ar { font-size: 1.5rem; font-weight: 800; }
#call-to-action .cta-sep { font-size: 1.3rem; opacity: 0.8; }
#call-to-action .cta-nasr-latin { font-size: 1.25rem; font-weight: 600; opacity: 0.9; letter-spacing: 0.5px; }
/* Force Outfit on Latin CTA spans — override RTL global Changa !important */
html[dir="rtl"] #call-to-action .cta-nasr-latin,
html[dir="rtl"] #call-to-action .cta-sep,
html[dir="rtl"] #call-to-action .cta-altlangFR2 {
  font-family: "Outfit", sans-serif !important;
}
html[dir="rtl"] #call-to-action .cta-names-wrapper { text-align: right; }
html[dir="rtl"] #call-to-action .cta-btn-container { text-align: right !important; }
html[dir="rtl"] #call-to-action .cta-text { text-align: right; }
/* التزاماتنا — item 1 rightmost in Arabic (float-based layout) */
html[dir="rtl"] .features .feature-numbered { float: right; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #hero { min-height: 252px; }
  #hero .hero-content h3 { font-size: clamp(1.3rem, 5vw, 2rem) !important; }
  section { padding: 40px 0; }
  #call-to-action { padding: 40px 0; text-align: center; }
  #call-to-action .cta-btn-container { margin-top: 20px; }
  .service-box { min-height: 260px; }
}
@media (max-width: 480px) {
  #hero { min-height: 210px; }
  .section-header h2, .section-title h2 { font-size: 1.5rem; }
  #hero .hero-content h3 { font-size: clamp(1.1rem, 6vw, 1.6rem) !important; }
  .stats-item span { font-size: 30px; }
}

/* ---- Entrance Animation ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.service-box, .stats-item, .contact-address, .contact-phone, .contact-email {
  will-change: transform;
}

/* ============================================================
   PRODUCT PAGE TEMPLATE
   ============================================================ */

/* --- Product Intro: icon + text --- */
.prod-intro { background: var(--bg-white); padding: 70px 0 50px; }
.prod-illus {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.prod-icon-wrapper {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f0f8ee 0%, #dff0dc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(94,163,83,0.20);
  border: 3px solid rgba(94,163,83,0.15);
}
.prod-icon-wrapper i {
  font-size: 88px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prod-highlights { list-style: none; padding: 0; margin: 18px 0 0; }
.prod-highlights li {
  padding: 7px 0;
  font-size: 15px;
  color: #3e496a;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
}
.prod-highlights li::before {
  display: none;
}
.prod-highlights li i { color: #3e496a; font-size: 16px; margin-top: 2px; flex-shrink: 0; }

/* --- Coverage / Guarantees cards --- */
.prod-coverage {
  background: var(--bg-light);
  padding: 60px 0;
}
.prod-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.prod-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-light);
  transition: var(--transition);
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}
.prod-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(94,163,83,0.28);
}
.prod-card-icon i { font-size: 22px; color: #fff; }
.prod-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.prod-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Process steps --- */
.prod-steps { background: var(--bg-white); padding: 60px 0; }
.prod-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 36px;
  position: relative;
}
.prod-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.prod-step-num {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(74,95,160,0.30);
}
.prod-step h4 { font-size: 15px; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.prod-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* --- Services contact boxes --- */
.prod-services { background: var(--bg-light); padding: 60px 0; }
.prod-service-box {
  background: linear-gradient(135deg, #5268b0 0%, #7082cc 100%);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  color: #fff;
  height: 100%;
  box-shadow: 0 6px 24px rgba(74,95,160,0.22);
  transition: var(--transition);
}
.prod-service-box:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(74,95,160,0.32); }
.prod-service-box .psb-icon {
  font-size: 36px;
  margin-bottom: 14px;
  opacity: 0.90;
  display: block;
}
.prod-service-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 10px;
}
.prod-service-box p {
  font-size: 14px;
  opacity: 0.88;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prod-service-box p i { flex-shrink: 0; }
.prod-service-box a { color: #fff; text-decoration: none; }
.prod-service-box a:hover { text-decoration: underline; opacity: 0.9; }

/* --- RTL Product Template --- */
/* In RTL flexbox, DOM order is naturally reversed (first child = rightmost),
   so prod-illus (first in DOM) appears on the RIGHT without any order override. */
html[dir="rtl"] .prod-text  { text-align: right; }
html[dir="rtl"] .prod-highlights li { flex-direction: row-reverse; }
html[dir="rtl"] .prod-step { direction: rtl; }
html[dir="rtl"] .prod-service-box { text-align: right; }
html[dir="rtl"] .prod-service-box p { flex-direction: row-reverse; }

/* --- Responsive Product Template --- */
@media (max-width: 768px) {
  .prod-intro { padding: 40px 0; }
  .prod-icon-wrapper { width: 140px; height: 140px; margin-bottom: 28px; }
  .prod-icon-wrapper i { font-size: 60px; }
  /* On mobile, stack icon above text regardless of language direction */
  html[dir="rtl"] .prod-illus, .prod-illus { order: 1 !important; }
  html[dir="rtl"] .prod-text,  .prod-text  { order: 2 !important; }
  .prod-cards-grid, .prod-steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .prod-cards-grid, .prod-steps-grid { grid-template-columns: 1fr; }
}

/* --- Download Button (Conditions Générales) --- */
.prod-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: 0 6px 24px rgba(58,78,138,0.28);
  transition: var(--transition);
  border: none;
  max-width: 100%;
}
.prod-dl-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(58,78,138,0.38);
  color: #fff !important;
}
.prod-dl-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.prod-dl-icon i { font-size: 24px; color: #fff; }
.prod-dl-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  font-family: "Outfit", sans-serif;
}
.prod-dl-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.prod-dl-arrow i { font-size: 16px; color: #fff; }
html[dir="rtl"] .prod-dl-btn { flex-direction: row-reverse; }
html[dir="rtl"] .prod-dl-label { text-align: right; }

/* ============================================================
   END MODERN DESIGN UPGRADE
   ============================================================ */

/* Header when scrolled */
#header.header-scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#header.header-scrolled #logo img {
  width: 40%;
}

#header .navbar > ul > li > a,
#header .navbar > ul > li > span,
#header .navbar ul li a {
  color: #ffffff !important;
  font-weight: 500;
}

#header .navbar > ul > li > a:hover,
#header .navbar > ul > li.active > a {
  color: var(--primary-light) !important;
}

#header .dropdown ul {
  background: var(--primary-dark);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(35, 44, 72, 0.3);
}

#header .dropdown ul li a {
  color: #fff !important;
}

#header .dropdown ul li a:hover {
  background: var(--primary);
  color: var(--primary-light) !important;
}

#header .language-switcher a {
  color: #fff !important;
}

#header .mobile-nav-toggle {
  color: #5262a1 !important;
}

/* ---- Services Page Elegant Styles ---- */
.services-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.services-filters button {
  padding: 12px 28px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services-filters button:hover,
.services-filters button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(75, 115, 197, 0.4);
}

.services-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(35, 44, 72, 0.12);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(35, 44, 72, 0.2);
}

.services-card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-card-icon i {
  font-size: 42px;
  color: #fff;
}

.services-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.services-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.services-card-text {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.services-card-link {
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.services-card-link:hover {
  color: var(--primary-dark);
}

.services-card-link i {
  transition: transform 0.3s ease;
}

.services-card-link:hover i {
  transform: translateX(4px);
}

/* Services Hero */
.services-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.services-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.services-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* RTL adjustments */
html[dir="rtl"] .services-card-link:hover i {
  transform: translateX(-4px);
}

html[dir="rtl"] .services-filters {
  flex-direction: row-reverse;
}

/* ============================================================
   AUTO PAGE STYLES
   ============================================================ */

/* Blue color variables */
:root {
  --waikawa-gray-50: #f4f7fa;
  --waikawa-gray-100: #e5ebf4;
  --waikawa-gray-200: #d1ddec;
  --waikawa-gray-300: #b2c6de;
  --waikawa-gray-400: #8da9cd;
  --waikawa-gray-500: #728ebf;
  --waikawa-gray-600: #5f78b1;
  --waikawa-gray-700: #566aa6;
  --waikawa-gray-800: #485685;
  --waikawa-gray-900: #3e496a;
  --waikawa-gray-950: #292e42;
}

/* Hero white icon */
#hero .hero-content h3 .text-white {
  color: #ffffff !important;
}

/* Main title */
.prod-title-main {
  font-size: 2.2rem;
  font-weight: 800;
  color: #3d7a35;
  margin-bottom: 10px;
}

/* Title decorative line - HIDDEN */
.title-line { display: none; }

/* Section header h2 without underline */
.section-header h2 {
  border: none !important;
  padding-bottom: 0 !important;
}

.section-header h2::after {
  display: none !important;
}

/* Product card - custom style */
.prod-card-custom {
  background: #e5ebf4;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  height: 100%;
  width: 90%;
  margin: 0 auto;
}

.prod-card-custom .card-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.prod-card-custom .card-title-row h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3e496a;
  margin-bottom: 0;
}

.prod-card-custom h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3e496a;
  margin-bottom: 18px;
}

.prod-card-custom p {
  color: #3e496a;
}

.prod-card-custom ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.prod-card-custom ul li {
  color: #3e496a;
  padding: 10px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.prod-card-custom ul li::before {
  display: none;
}

.prod-card-icon-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  margin-right: 15px;
}

.prod-card-custom .card-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.prod-card-custom h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3e496a;
  margin-bottom: 0;
}

.prod-card-icon-custom i,
.prod-card-icon-custom .fas,
.prod-card-custom li i,
.prod-card-custom li .fas {
  font-size: 36px;
  color: #3e496a;
}

.prod-card-custom ul li i {
  font-size: 18px;
}

/* Feature boxes - Garanties optionnelles en rouge/orange */
.feature-box {
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dd 100%);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-box .feature-icon {
  color: #8B2500;
}

.feature-box i,
.feature-box .fas,
.feature-icon i {
  color: #8B2500;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: auto;
  height: auto;
  margin: 0;
  display: inline;
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #8B2500;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: #5a2d0c;
  margin: 0;
}

.feature-box i,
.feature-box .fas {
  color: #8B2500;
}

/* Info boxes */
.info-box, .usage-box {
  background: #f5faf3;
  border-radius: 16px;
  padding: 30px;
  color: #305328;
}

.info-box i, .usage-box i,
.info-box .fas, .usage-box .fas {
  color: #305328 !important;
}

.info-box h3, .usage-box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #12240f;
}

/* Vehicle types */
.vehicle-type, .usage-item {
  background: #f5faf3;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.vehicle-type:hover, .usage-item:hover {
  background: #e7f5e3;
  transform: scale(1.05);
}

.vehicle-type i, .usage-item i {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
  color: #305328;
}

.vehicle-type span, .usage-item span {
  font-size: 1rem;
  font-weight: 600;
  color: #305328;
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
}

.contact-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-cta p {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 25px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Text colors */
.text-primary { color: #3d7a35 !important; }
.text-success { color: #3d7a35 !important; }
.text-info { color: #485685 !important; }
.text-white { color: #ffffff !important; }
.text-warning { color: #ffc107 !important; }
.text-muted { color: #6c757d !important; }

/* Subtitle */
.subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-top: 10px;
}

/* RTL adjustments */
html[dir="rtl"] .prod-title-main {
  text-align: center;
}

html[dir="rtl"] .prod-card h3 {
  text-align: right;
}

/* ============================================================
   HISTORY PAGE TIMELINE STYLES
   ============================================================ */

.timeline-container {
  position: relative;
  padding: 20px 0;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: calc(90%);
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: -64px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(94, 163, 83, 0.3);
  z-index: 2;
}

.timeline-icon i {
  font-size: 32px;
  color: #fff;
}

.timeline-icon.bg-primary { background: #3e496a; }
.timeline-icon.bg-info { background: #292e42; }
.timeline-icon.bg-success { background: #3a672e; }
.timeline-icon.bg-warning { background: #294423; }

.timeline-date.bg-primary { background: #3e496a; color: #fff; }
.timeline-date.bg-info { background: #292e42; color: #fff; }
.timeline-date.bg-success { background: #3a672e; color: #fff; }
.timeline-date.bg-warning { background: #294423; color: #fff; }

.timeline-content {
  background: #e5ebf4;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #292e42;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 1.05rem;
  color: #292e42;
  line-height: 1.7;
  margin: 0;
}

.timeline-date {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

html[dir="rtl"] .timeline-content {
  text-align: right;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 28px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
  }
  
  .timeline-icon {
    left: 0 !important;
  }
}

/* ============================================================
   HISTORY PAGE TIMELINE STYLES
   ============================================================ */

.timeline-container {
  position: relative;
  padding: 20px 0;
  max-width: 900px;
  margin: 0 auto;
}

html[dir="rtl"] .timeline-content {
  text-align: right;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 28px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
  }
  
  .timeline-icon {
    left: 0 !important;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: calc(90%);
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
}

.timeline-icon {
  position: absolute;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(94, 163, 83, 0.3);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-icon,
.timeline-item:nth-child(even) .timeline-icon {
  left: -52px;
}

.timeline-content {
  background: #e5ebf4;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

.timeline-date {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

html[dir="rtl"] .timeline-container::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

html[dir="rtl"] .timeline-item {
  width: calc(50% - 40px);
}

html[dir="rtl"] .timeline-item:nth-child(odd) {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .timeline-item:nth-child(even) {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .timeline-item:nth-child(odd) .timeline-icon {
  left: -64px;
  right: auto;
}

html[dir="rtl"] .timeline-item:nth-child(even) .timeline-icon {
  right: -64px;
  left: auto;
}

.timeline-icon {
  width: 72px;
  height: 72px;
  left: -64px;
}

.timeline-icon i {
  font-size: 32px;
  color: #fff;
}

.timeline-icon.bg-primary { background: #3e496a; }
.timeline-icon.bg-info { background: #292e42; }
.timeline-icon.bg-success { background: #3a672e; }
.timeline-icon.bg-warning { background: #294423; }

html[dir="rtl"] .timeline-content {
  text-align: right;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 28px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
  }
  
  .timeline-icon {
    left: 0 !important;
    width: 56px;
    height: 56px;
  }
  
  .timeline-icon i {
    font-size: 24px;
  }
  
  .timeline-date {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   ABOUT PAGE STYLES
   ============================================================ */

.about-card {
  background: #f4f7fa;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-card h5 {
  color: #292e42;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 1.4;
}

.about-card .card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.about-card .card-icon i {
  font-size: 48px;
}
  margin: 0 auto 16px;
}

.about-card .card-icon i {
  font-size: 28px;
  color: #fff;
}

.about-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #292e42;
  margin: 0;
}

.values-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.values-box .values-content {
  font-size: 1.1rem;
  color: #292e42;
  line-height: 1.8;
}

.iso-image-wrapper img {
  border: 4px solid #e5ebf4;
}

.partner-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.partner-card .partner-logo {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.partner-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #292e42;
}

.partner-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.partner-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .about-card {
    margin-bottom: 16px;
  }
  
  .values-box {
    padding: 24px 16px;
  }
}

.values-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.value-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.value-item span {
  font-size: 14px;
  font-weight: 600;
  color: #292e42;
}

.iso-image-wrapper-sm img {
  max-width: 180px;
  border: 3px solid #478237;
}

.partner-card-sm {
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-card-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.partner-card-sm .partner-img {
  max-width: 80px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}

.partner-card-sm h6 {
  font-size: 11px;
  font-weight: 600;
  color: #292e42;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .values-grid {
    gap: 16px;
  }
  
  .value-number {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .iso-image-wrapper-sm img {
    max-width: 140px;
  }
}
