/* ============================================================
   PRODUCT PAGES — shared design (applied via <link> in each page)
   ============================================================ */

/* ── Quicksand pour tout le texte courant FR/EN ── */
html:not([dir="rtl"]) #main { font-family: 'Quicksand', sans-serif !important; }
html:not([dir="rtl"]) #main h1,
html:not([dir="rtl"]) #main h2,
html:not([dir="rtl"]) #main h3 { font-family: 'Outfit', sans-serif !important; }

/* ── Page Hero ───────────────────────────────── */
.prod-page-hero {
  position: relative;
  height: 280px;
  background: url('../img/hero-carousel/SIEGE.png') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  margin-top: 72px;
}
.prod-page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(55,72,138,.40) 0%, rgba(20,28,60,.78) 100%);
}
.prod-page-hero-inner {
  position: relative; z-index: 1;
  padding: 0 0 40px; width: 100%;
}
.prod-page-hero-inner .prod-hero-icon {
  font-size: 48px;
  color: rgba(255,255,255,.90);
  display: block;
  margin-bottom: 14px;
}
.prod-page-hero-inner .eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 6px;
}
.prod-page-hero-inner h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700; color: #fff; margin: 0; line-height: 1.2;
}
html[dir="rtl"] .prod-page-hero-inner { text-align: right; }
html[dir="rtl"] .prod-page-hero-inner h1 { font-family: 'Changa', sans-serif; }
html[dir="rtl"] .prod-page-hero-inner .eyebrow { font-family: 'Changa', sans-serif; }

/* ── Section helpers ─────────────────────────── */
.sec-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #5EA353; margin-bottom: 10px;
}
.sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700; color: #3a4e8a; margin-bottom: 12px;
}
.divider-h {
  width: 48px; height: 3px;
  background: #5EA353; border-radius: 2px;
  margin-bottom: 28px;
}
.divider-h.mx-auto { margin-left: auto; margin-right: auto; }

html[dir="rtl"] .sec-label  { font-family: 'Changa', sans-serif; display: block; text-align: right; }
html[dir="rtl"] .sec-title  { font-family: 'Changa', sans-serif; text-align: right; }
html[dir="rtl"] .divider-h  { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .divider-h.mx-auto { margin-left: auto; margin-right: auto; }

/* Quand le conteneur est text-center, garder centré même en RTL */
html[dir="rtl"] .text-center .sec-label,
html[dir="rtl"] .text-center .sec-title { text-align: center; }
html[dir="rtl"] .text-center .divider-h { margin-left: auto; margin-right: auto; }

/* ── Section backgrounds (alternating) ──────── */
.ps-white { padding: 72px 0 56px; background: #fff; }
.ps-grey  { padding: 56px 0;      background: #f4f7fa; }
.ps-white-sm { padding: 56px 0;   background: #fff; }

/* ── Section header container RTL ───────────── */
html[dir="rtl"] .mb-5,
html[dir="rtl"] .mb-4 { text-align: right; }
html[dir="rtl"] .text-center.mb-5,
html[dir="rtl"] .text-center.mb-4 { text-align: right !important; }

/* ── Suppress old title-line and prod-title-main styles ── */
.title-line { display: none !important; }

/* ── CTA block ───────────────────────────────── */
.prod-cta {
  background: #f4f7fa;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  border-top: 3px solid #5EA353;
}
.prod-cta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 700;
  color: #3a4e8a; margin-bottom: 10px;
}
.prod-cta p { font-size: 15px; color: #666; margin: 0; line-height: 1.7; }
html[dir="rtl"] .prod-cta { text-align: right; direction: rtl; }
html[dir="rtl"] .prod-cta h3,
html[dir="rtl"] .prod-cta p { font-family: 'Changa', sans-serif !important; }

/* ── Service boxes — supprimer le trait vert ── */
.prod-service-box { border-top: none !important; }

/* ── auto-service-box — design moderne (fond clair) ── */
.auto-service-box {
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  box-shadow: 0 2px 12px rgba(58,78,138,.06);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.auto-service-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3a4e8a, #5EA353);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
html[dir="rtl"] .auto-service-box::before { transform-origin: right; }
.auto-service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58,78,138,.15);
  border-color: transparent;
}
.auto-service-box:hover::before { transform: scaleX(1); }

.auto-service-box i.psb-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef2fb 0%, #dce4f3 100%);
  color: #3a4e8a;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  transition: background .3s, color .3s;
}
.auto-service-box:hover i.psb-icon {
  background: #3a4e8a; color: #fff;
}
.auto-service-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #5EA353;
  margin-bottom: 12px;
  padding-bottom: 0; border-bottom: none;
}
.auto-service-box p {
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
  line-height: 1.6;
}
.auto-service-box p:last-child { margin-bottom: 0; }
.auto-service-box a {
  color: #3a4e8a;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.auto-service-box a:hover { color: #5EA353; text-decoration: none; }

html[dir="rtl"] .auto-service-box { text-align: center; direction: rtl; }
html[dir="rtl"] .auto-service-box h4,
html[dir="rtl"] .auto-service-box p { font-family: 'Changa', sans-serif !important; }
html[dir="rtl"] .auto-service-box p a[href^="tel"],
html[dir="rtl"] .auto-service-box p a[href^="fax"],
html[dir="rtl"] .auto-service-box p a[href^="mailto"] { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ── Service boxes style auto (bleu #3a4e8a) ── */
.prod-page-service-box {
  background: #3a4e8a;
  border-radius: 14px;
  padding: 28px;
  color: #fff;
  height: 100%;
  border-top: none !important;
  box-shadow: 0 6px 24px rgba(58,78,138,.22);
  transition: transform .3s, box-shadow .3s;
}
.prod-page-service-box:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(58,78,138,.32); }
.prod-page-service-box i.psb-icon { font-size: 32px; display: block; margin-bottom: 14px; opacity: .9; }
.prod-page-service-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px; font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 10px;
}
.prod-page-service-box p { font-size: 14px; opacity: .88; margin-bottom: 4px; }
.prod-page-service-box a { color: #fff; text-decoration: none; }
.prod-page-service-box a:hover { text-decoration: underline; }

html[dir="rtl"] .prod-page-service-box { text-align: right; direction: rtl; }
html[dir="rtl"] .prod-page-service-box h4,
html[dir="rtl"] .prod-page-service-box p { font-family: 'Changa', sans-serif !important; }
html[dir="rtl"] .prod-page-service-box p a[href^="tel"],
html[dir="rtl"] .prod-page-service-box p a[href^="fax"],
html[dir="rtl"] .prod-page-service-box p a[href^="mailto"] { direction: ltr; unicode-bidi: embed; }

/* ── Service section ─────────────────────────── */
.ps-grey .section-header { text-align: left; margin-bottom: 32px; }
.ps-grey .section-header h2 {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(20px, 2.5vw, 28px) !important;
  font-weight: 700 !important; color: #3a4e8a !important;
}
html[dir="rtl"] .ps-grey .section-header { text-align: right; }
html[dir="rtl"] .ps-grey .section-header h2 { font-family: 'Changa', sans-serif !important; }

/* ── Feature box RTL ─────────────────────────── */
html[dir="rtl"] .feature-box { text-align: right; direction: rtl; }
html[dir="rtl"] .feature-box h4,
html[dir="rtl"] .feature-box p { font-family: 'Changa', sans-serif !important; }

/* ── Prod card custom RTL ────────────────────── */
html[dir="rtl"] .prod-card-custom { text-align: right; direction: rtl; }
html[dir="rtl"] .prod-card-custom h3,
html[dir="rtl"] .prod-card-custom p,
html[dir="rtl"] .prod-card-custom li { font-family: 'Changa', sans-serif !important; }
html[dir="rtl"] .prod-card-custom .d-flex { flex-direction: row-reverse; }
html[dir="rtl"] .prod-list-custom li { flex-direction: row-reverse; font-family: 'Changa', sans-serif !important; }

/* ── Prod service box RTL ────────────────────── */
html[dir="rtl"] .prod-service-box { text-align: right; direction: rtl; }
html[dir="rtl"] .prod-service-box h4,
html[dir="rtl"] .prod-service-box p { font-family: 'Changa', sans-serif !important; }
html[dir="rtl"] .prod-service-box p a[href^="tel"],
html[dir="rtl"] .prod-service-box p a[href^="fax"],
html[dir="rtl"] .prod-service-box p a[href^="mailto"] { direction: ltr; unicode-bidi: embed; }

/* ── Map ─────────────────────────────────────── */
html[dir="rtl"] .container iframe { direction: ltr; }

/* ── Download button RTL ─────────────────────── */
html[dir="rtl"] .prod-dl-btn { flex-direction: row-reverse; }
html[dir="rtl"] .prod-dl-label { text-align: right; font-family: 'Changa', sans-serif !important; }
