/* ============================================
   MEDURGENCE — BOOTSTRAP CUSTOM THEME
   Palette: Rouge #D92B2B / Noir / Blanc
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Lato:wght@300;400;700&family=Cairo:wght@300;400;600;700;800&family=DM+Sans:wght@300;400;700&display=swap');

:root {
  --red: #D92B2B;
  --red-dark: #B01E1E;
  --red-light: #FF4444;
  --bs-primary: #D92B2B;
  --bs-primary-rgb: 217,43,43;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Lato', sans-serif;
  --shadow-red: 0 4px 20px rgba(217,43,43,0.35);

  /* Light theme */
  --bg: #ffffff;
  --bg2: #f4f4f4;
  --bg3: #ebebeb;
  --text: #141414;
  --text-muted-custom: #555555;
  --card-bg: #ffffff;
  --card-border: #e5e5e5;
  --nav-bg: rgba(255,255,255,0.97);
  --input-bg: #f8f8f8;
  --input-border: #d0d0d0;
  --border-color: #e0e0e0;
}

[data-theme="dark"] {
  --bg: #111111;
  --bg2: #1a1a1a;
  --bg3: #222222;
  --text: #f0f0f0;
  --text-muted-custom: #aaaaaa;
  --card-bg: #1e1e1e;
  --card-border: #2e2e2e;
  --nav-bg: rgba(13,13,13,0.97);
  --input-bg: #1a1a1a;
  --input-border: #333333;
  --border-color: #2e2e2e;
}

/* ======= BASE ======= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}
/* overflow-x must be on html NOT body — body overflow clips position:fixed navbar on scroll */
html { overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); letter-spacing: 0.02em; }
a { text-decoration: none; }

/* ======= ARABIC / RTL SUPPORT ======= */
[lang="ar"] body,
[dir="rtl"] body {
  font-family: 'Cairo', 'DM Sans', sans-serif;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5 {
  font-family: 'Cairo', 'DM Sans', sans-serif;
  letter-spacing: 0;
}
[dir="rtl"] .font-heading { font-family: 'Cairo', 'DM Sans', sans-serif !important; letter-spacing: 0 !important; }
[dir="rtl"] .section-tag { font-family: 'Cairo', 'DM Sans', sans-serif; letter-spacing: 0; }
[dir="rtl"] .nav-link { font-family: 'Cairo', 'DM Sans', sans-serif !important; }
[dir="rtl"] .btn-cta-call { font-family: 'Cairo', 'DM Sans', sans-serif !important; }
[dir="rtl"] .hero-badge { font-family: 'Cairo', 'DM Sans', sans-serif; letter-spacing: 0; }

/* RTL Navbar fix — Bootstrap uses flex-row, RTL just mirrors it */
[dir="rtl"] .navbar-custom .navbar-collapse .navbar-nav {
  margin-right: auto !important;
  margin-left: unset !important;
}
[dir="rtl"] .navbar-custom .navbar-nav .nav-link.active::after {
  left: unset;
  right: 50%;
  transform: translateX(50%);
}
/* Mobile RTL: align toggler group to the left */
@media (max-width: 991.98px) {
  [dir="rtl"] .navbar-custom .d-flex.d-lg-none {
    flex-direction: row-reverse;
  }
  [dir="rtl"] .navbar-collapse .d-flex.gap-2 {
    justify-content: flex-end;
  }
}
/* Fix navbar mobile collapse z-index + position sticky scroll issue */
.navbar-custom {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* ======= BOOTSTRAP OVERRIDES ======= */
.btn-danger, .bg-danger { background-color: var(--red) !important; border-color: var(--red) !important; }
.btn-danger:hover { background-color: var(--red-dark) !important; border-color: var(--red-dark) !important; box-shadow: var(--shadow-red); }
.btn-outline-danger { color: var(--red) !important; border-color: var(--red) !important; }
.btn-outline-danger:hover { background-color: var(--red) !important; color: #fff !important; }
.text-danger { color: var(--red) !important; }
.border-danger { border-color: var(--red) !important; }

/* ======= UTILITY CLASSES ======= */
.font-heading { font-family: var(--font-heading) !important; }
.text-red { color: var(--red); }
.bg-theme { background-color: var(--bg) !important; }
.bg-theme2 { background-color: var(--bg2) !important; }
.card-theme { background-color: var(--card-bg) !important; border-color: var(--card-border) !important; }
.text-theme { color: var(--text) !important; }
.text-theme-muted { color: var(--text-muted-custom) !important; }
.section-tag {
  display: inline-block;
  background: var(--red);
  color: white;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ======= NAVBAR ======= */
.navbar-custom {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s, background 0.3s;
  padding: 0 !important;
  min-height: 72px;
}
.navbar-custom.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }
.navbar-custom .navbar-brand { padding: 0; }
.logo-icon-wrap {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px;
  flex-shrink: 0;
}
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-main { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; line-height: 1; }
.logo-sub { font-family: var(--font-heading); font-size: 11px; font-weight: 600; color: var(--red); letter-spacing: 2px; text-transform: uppercase; line-height: 1; }

.navbar-custom .nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--red) !important;
  background: rgba(217,43,43,0.07);
}
.navbar-custom .nav-link.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--red); border-radius: 2px;
}

.btn-cta-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white !important;
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
  padding: 9px 18px; border-radius: 8px; white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn-cta-call:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-red); }

.btn-theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border-color); border-radius: 8px;
  background: var(--bg2); color: var(--text);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.btn-theme-toggle:hover { background: var(--red); color: white; border-color: var(--red); }

/* Mobile nav */
.navbar-toggler { border: none !important; box-shadow: none !important; padding: 6px; }
.navbar-toggler-icon-custom span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; margin: 5px 0;
  transition: all 0.3s;
}
.navbar-collapse {
  background: var(--nav-bg);
  border-top: 1px solid var(--border-color);
}
@media (max-width: 991.98px) {
  .logo-img { height: 48px; }
  .hero-stats-box {
   
    flex-wrap: wrap;
    padding: 12px 16px;
    width: 100%;
    justify-content: space-around;
    gap: 8px;
  }
  .hero-stat-num { font-size: 24px; }
  .hero-stat-divider { height: 30px; margin: 0 10px; }
  .navbar-collapse { padding: 16px 20px 20px; }
  .navbar-nav { gap: 4px; }
  .cta-call-text { display: none; }
}
@media (min-width: 992px) {
  .navbar-collapse { background: transparent; border-top: none; }
}

/* ======= HERO ======= */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.87) 0%, rgba(13,13,13,0.75) 55%, rgba(180,20,20,0.38) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 100px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217,43,43,0.92); color: white;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 4px; margin-bottom: 22px;
  animation: fadeInDown 0.8s ease forwards;
}
.hero-title {
  font-size: clamp(38px, 8vw, 92px);
  font-weight: 800; line-height: 1.0; color: white;
  margin-bottom: 22px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.85);
  line-height: 1.65; margin-bottom: 34px; max-width: 580px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-btns { animation: fadeInUp 0.8s ease 0.5s both; }
.hero-stats-box {
  
  display: flex; align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 18px 28px;
  width: fit-content;
  animation: fadeInUp 0.8s ease 0.6s both;
  flex-wrap: wrap; gap: 0;
}
.hero-stat-num {
  font-family: var(--font-heading); font-size: 34px; font-weight: 800;
  color: var(--red-light); line-height: 1; display: block;
}
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.7); }
.hero-stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.2); margin: 0 20px; }
.hero-scroll-btn {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: white; font-size: 20px; animation: bounce 2s infinite; z-index: 2; cursor: pointer;
}

/* ======= URGENCE BANNER ======= */
.urgence-banner {
  background: var(--red); padding: 14px;
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.urgence-tel { color: white; font-size: 20px; text-decoration: underline; }
.urgence-icon-pulse { animation: pulse 1.5s infinite; font-size: 18px; }

/* ======= SECTION TITLE ======= */
.section-title-lg {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800; line-height: 1.1; color: var(--text);
}

/* ======= SERVICE CARDS ======= */
.service-card-custom {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer; position: relative; overflow: hidden;
  height: 100%;
}
.service-card-custom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transition: transform 0.3s;
  transform-origin: left;
}
.service-card-custom:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.service-card-custom:hover::before { transform: scaleX(1); }
.svc-icon-red { width: 64px; height: 64px; border-radius: 12px; background: rgba(217,43,43,0.1); color: var(--red); font-size: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.svc-icon-dark { width: 64px; height: 64px; border-radius: 12px; background: var(--bg3); color: var(--text); font-size: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-card-custom h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.service-card-custom p { font-size: 14px; color: var(--text-muted-custom); line-height: 1.6; margin-bottom: 20px; }
.svc-link { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.svc-link:hover { gap: 10px; color: var(--red); }

/* ======= WHY US ======= */
.why-img-custom { width: 100%; height: 500px; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
.why-badge-float {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--red); color: white; padding: 20px 22px;
  border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; font-family: var(--font-heading); font-size: 14px; font-weight: 700; line-height: 1.3;
  box-shadow: var(--shadow-red);
}
.why-list-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text);
  padding: 10px 0; border-bottom: 1px solid var(--border-color);
}
.why-list-item:last-child { border-bottom: none; }

/* ======= CTA BANNER ======= */
.cta-banner {
  position: relative;
  background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1600&q=80') center/cover;
  padding: 100px 0;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(13,13,13,0.88); }
.cta-content { position: relative; z-index: 2; }
.cta-icon-big { font-size: 52px; color: var(--red); animation: pulse 2s infinite; }

/* ======= TESTIMONIALS ======= */
.testi-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 32px 26px; height: 100%;
}
.testi-card.featured { background: var(--red); border-color: var(--red); }
.testi-stars { color: #FFB800; font-size: 13px; }
.testi-card.featured .testi-stars { color: rgba(255,255,255,0.9); }

/* ======= PAGE HEADER ======= */
.page-header {
  background: linear-gradient(135deg, #0d0d0d 0%, #1e1e1e 60%, rgba(180,20,20,0.8) 100%);
  padding: 120px 0 60px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url('img/contact\ ambulance\ tunisie\ \(1\).png') center/cover;
  opacity: 0.1;
}
.page-header-inner { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 800; color: white; margin-bottom: 10px; }
.page-header p { font-size: 18px; color: rgba(255,255,255,0.75); }
.breadcrumb-custom {
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.breadcrumb-custom a { color: var(--red-light); }

/* ======= VALUE CARDS ======= */
.value-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 36px 26px; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s; height: 100%;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.value-icon { font-size: 40px; color: var(--red); margin-bottom: 18px; }
.value-card h3 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted-custom); line-height: 1.6; }

/* ======= TEAM CARDS ======= */
.team-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; height: 100%;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.team-img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.team-role { font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }

/* ======= AMBULANCE CARD ======= */
.ambulance-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; }
.ambulance-card img { width: 100%; height: 260px; object-fit: cover; }
.amb-badge { display: inline-block; background: rgba(217,43,43,0.1); color: var(--red); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.equip-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted-custom); padding: 4px 0; }
.equip-item i { color: var(--red); width: 16px; }

/* ======= SERVICE DETAIL ======= */
.service-detail-img { width: 100%; height: 380px; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.12); }
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); padding: 6px 0; }
.feature-item i { color: var(--red); font-size: 15px; }

/* ======= PRIX CARDS ======= */
.price-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 36px 24px; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s; height: 100%;
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.price-card:hover::before { transform: scaleX(1); }
.price-amount { font-family: var(--font-heading); font-size: 38px; font-weight: 800; color: var(--red); line-height: 1.1; margin: 14px 0; }

/* ======= FORM STYLES ======= */
.form-control-custom, .form-select-custom {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100%;
}
.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(217,43,43,0.12) !important;
  outline: none !important;
}
.form-control-custom::placeholder { color: var(--text-muted-custom) !important; opacity: 0.7; }
.form-label-custom {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.form-label-custom i { color: var(--red); font-size: 12px; }
.required-star { color: var(--red); margin-left: 2px; }
.form-section-label {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--red);
  border-bottom: 2px solid var(--red); padding-bottom: 6px;
  margin: 24px 0 16px; display: block;
}
.urgence-alert {
  background: var(--red); color: white; border-radius: 8px;
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-heading); font-size: 15px; font-weight: 700;
  margin-bottom: 28px;
}
.urgence-check-label {
  display: flex; align-items: center; gap: 12px;
  background: rgba(217,43,43,0.06); border: 2px solid rgba(217,43,43,0.3);
  border-radius: 8px; padding: 14px 18px; cursor: pointer;
  transition: all 0.2s; margin-bottom: 6px;
}
.urgence-check-label:has(input:checked) { background: rgba(217,43,43,0.12); border-color: var(--red); }
.urgence-check-label input { width: 18px; height: 18px; accent-color: var(--red); }
.location-wrap { position: relative; }
.location-wrap input { padding-right: 50px !important; }
.btn-locate {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--red); color: white; border: none; border-radius: 6px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; transition: background 0.2s;
}
.btn-locate:hover { background: var(--red-dark); }
.btn-submit-main {
  width: 100%; background: var(--red); color: white; border: none;
  border-radius: 8px; padding: 16px; font-family: var(--font-heading);
  font-size: 20px; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px;
}
.btn-submit-main:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }

/* ======= CONTACT CARDS ======= */
.contact-info-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-info-card:hover { border-color: var(--red); transform: translateX(4px); }
.contact-icon-box { width: 48px; height: 48px; background: var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; flex-shrink: 0; }
.contact-icon-box.whatsapp { background: #25D366; }
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted-custom); font-weight: 700; }
.contact-value { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--text); }
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--red); }
.map-embed { width: 100%; height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border); }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ======= FAQ ======= */
.faq-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 28px; height: 100%; }
.faq-card h4 { font-family: var(--font-heading); font-size: 18px; color: var(--text); margin-bottom: 10px; }
.faq-card p { font-size: 14px; color: var(--text-muted-custom); line-height: 1.65; margin: 0; }

/* ======= RDV INFO BOX ======= */
.rdv-ci-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.rdv-ci-icon { width: 44px; height: 44px; background: rgba(217,43,43,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 18px; flex-shrink: 0; }
.rdv-ci-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted-custom); font-weight: 700; }
.rdv-ci-val { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--text); }
.rdv-ci-val a { color: var(--text); }

/* ======= FOOTER ======= */
.footer-custom { background: #0d0d0d; color: white; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 15px; transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-right: 8px;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: white; }
.footer-heading {
  font-family: var(--font-heading); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: white;
  margin-bottom: 18px; padding-bottom: 8px;
  border-bottom: 2px solid var(--red); display: inline-block;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s, padding-left 0.2s; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--red-light); padding-left: 4px; }
.footer-links i { font-size: 10px; color: var(--red); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--red-light); }
.footer-contact-item i { width: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ======= ANIMATIONS ======= */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes bounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(8px); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

/* ======= REVEAL ON SCROLL ======= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-dropdown .dropdown-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.lang-dropdown .dropdown-toggle:hover {
  background: rgba(217,43,43,0.12);
  border-color: var(--red);
  color: var(--red);
}
.lang-dropdown .dropdown-menu {
  min-width: 150px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 6px;
  background: var(--card-bg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.lang-dropdown .dropdown-item {
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all .15s;
}
.lang-dropdown .dropdown-item:hover,
.lang-dropdown .dropdown-item.active {
  background: rgba(217,43,43,0.1);
  color: var(--red);
}
.lang-dropdown .dropdown-item.active {
  font-weight: 700;
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .navbar-nav { flex-direction: row-reverse; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .footer-links li a i { transform: scaleX(-1); }
[dir="rtl"] .why-list-item i { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .contact-info-card { flex-direction: row; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .section-title-lg { text-align: right; }
[dir="rtl"] .hero-badge { text-align: right; }
[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
[dir="rtl"] .font-heading { font-family: 'Segoe UI', Tahoma, sans-serif; }

/* ============================================
   RESPONSIVE FIXES — TABLET (≤ 991px)
   ============================================ */
@media (max-width: 991.98px) {
  /* Why section — fix badge overflow below image */
  .why-badge-float {
    position: static;
    display: inline-flex;
    margin-top: 16px;
    margin-bottom: 4px;
  }

  /* Why image — reduce height */
  .why-img-custom { height: 340px; }

  /* Hero content spacing */
  .hero-content { padding-top: 90px; }

  /* CTA banner — reduce padding */
  .cta-banner { padding: 70px 0; }
}

/* ============================================
   RESPONSIVE FIXES — SMALL (≤ 767px)
   ============================================ */
@media (max-width: 767.98px) {
  /* Page header — reduce top padding */
  .page-header { padding: 100px 0 40px; }

  /* Service detail images — reduce height */
  .service-detail-img { height: 260px; }

  /* Why image */
  .why-img-custom { height: 280px; }

  /* CTA banner */
  .cta-banner { padding: 60px 0; }

  /* Testimonials — remove scale on featured card */
  .testi-card.featured { transform: none !important; }

  /* Ambulance card image */
  .ambulance-card img { height: 220px; }

  /* Urgence banner — wrap nicely */
  .urgence-banner { padding: 10px 12px; line-height: 1.7; }

  /* Footer bottom — center on small screens */
  .footer-bottom .container-xl {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE FIXES — EXTRA SMALL (≤ 575px)
   ============================================ */
@media (max-width: 575.98px) {
  /* ---- NAVBAR ---- */
  .navbar-custom { min-height: 62px; }
  .btn-cta-call { padding: 8px 12px; font-size: 13px; }

  /* ---- HERO ---- */
  .hero-content { padding-top: 80px; }
  .hero-desc { font-size: 15px; }
  .hero-btns .btn { font-size: 14px; padding: 10px 16px; }
  .hero-stats-box { padding: 10px 12px;  display: none;}
  .hero-stat-num { font-size: 20px; }
  .hero-stat-divider { margin: 0 8px; height: 28px; }

  /* ---- URGENCE BANNER ---- */
  .urgence-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .urgence-banner .opacity-50 { display: none; }
  .urgence-tel { font-size: 17px; }

  /* ---- PAGE HEADER ---- */
  .page-header { padding: 88px 0 28px; }
  .page-header p { font-size: 15px; }

  /* ---- CTA BANNER ---- */
  .cta-banner { padding: 50px 0; }
  .cta-icon-big { font-size: 40px; }

  /* ---- SECTION TITLE ---- */
  .section-title-lg { font-size: clamp(28px, 7vw, 48px); }

  /* ---- CARDS ---- */
  .service-card-custom { padding: 24px 18px; }
  .value-card { padding: 24px 18px; }
  .faq-card { padding: 20px; }
  .testi-card { padding: 22px 18px; }

  /* ---- SERVICE IMAGES ---- */
  .service-detail-img { height: 220px; }
  .ambulance-card img { height: 200px; }
  .why-img-custom { height: 240px; }

  /* ---- FORM ---- */
  .urgence-alert { font-size: 13px; padding: 12px 14px; gap: 10px; }
  .form-section-label { font-size: 11px; }
  .btn-submit-main { font-size: 17px; padding: 14px; }

  /* ---- CONTACT ---- */
  .contact-info-card { padding: 14px 16px; gap: 12px; }
  .map-embed { height: 220px; }

  /* ---- RDV INFO CARDS ---- */
  .rdv-ci-card { padding: 12px 14px; gap: 12px; }

  /* ---- FOOTER ---- */
  .footer-heading { font-size: 13px; }
  .footer-bottom { text-align: center; }
  .footer-bottom .container-xl {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

/* ============================================
   RTL RESPONSIVE FIXES
   ============================================ */
[dir="rtl"] @media (max-width: 991.98px) {
  .hero-content { text-align: right; }
}
[dir="rtl"] .why-badge-float {
  right: auto;
  left: -18px;
}
@media (max-width: 991.98px) {
  [dir="rtl"] .why-badge-float { left: auto; }
}
