/* ===================================================
   Dr. Lahmamssi Fatima Zahra — Feuille de styles principale
   Endocrinologue · Diabétologue · Nutritionniste · Fès
   =================================================== */

/* --------- RESET & VARIABLES --------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #0A2D5E;
  --secondary:  #2E9CCA;
  --accent:     #4AB8E8;
  --bg-light:   #F5F9FF;
  --white:      #FFFFFF;
  --text:       #1A2535;
  --text-soft:  #4A6B85;
  --text-light: #6B8CAA;
  --success:    #27AE60;
  --border:     rgba(46,156,202,0.18);
  --shadow:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(10,45,94,0.12);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: 0.28s ease;
  --font-ar:    'Cairo', 'Noto Sans Arabic', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* Arabic RTL override */
body.rtl {
  direction: rtl;
  font-family: var(--font-ar);
}

img { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }

/* --------- TYPOGRAPHY --------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.section-title-ar {
  display: block;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* --------- LAYOUT --------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 80px 0; }

/* --------- BUTTONS --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(46,156,202,0.35);
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,45,94,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--bg-light);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* --------- NAVBAR --------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  padding: 0.9rem 0;
  transition: box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(10,45,94,0.10);
  padding: 0.65rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.nav-logo-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  transition: all var(--transition);
}
.nav-links a:hover { background: var(--bg-light); color: var(--primary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.87rem;
  color: var(--text);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--secondary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--bg-light);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button,
.lang-toggle a {
  padding: 0.3rem 0.75rem;
  border: none;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-light);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.lang-toggle button.active,
.lang-toggle a.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background: transparent;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------- HERO --------- */
#hero {
  padding: 140px 0 80px;
  background: linear-gradient(150deg, #F0F6FF 0%, #E8F4FF 40%, #F5F9FF 100%);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,156,202,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(10,45,94,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46,156,202,0.10);
  border: 1px solid rgba(46,156,202,0.25);
  color: var(--secondary);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}
.hero-badge::before { content: '✦'; }
.hero-title {
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
  max-width: 520px;
}
.hero-desc-ar {
  display: none;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--secondary);
}
.stat-number {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Hero image side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  background: linear-gradient(135deg, #C8DEFF 0%, #A8C8F0 50%, #8AB4E8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-photo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230A2D5E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.photo-placeholder-icon { font-size: 5rem; opacity: 0.6; }
.photo-placeholder-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  padding: 0 1rem;
  opacity: 0.8;
}
.photo-placeholder-title {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
  padding: 0 1rem;
}
.hero-badge-float {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  white-space: nowrap;
  border: 2px solid var(--bg-light);
}
.hero-badge-float .dot {
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.hero-decor-circle {
  position: absolute;
  top: -24px; right: -24px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.12;
}
.hero-decor-circle2 {
  position: absolute;
  bottom: 40px; right: -32px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.10;
}

/* --------- TRUST STRIP --------- */
#trust-strip {
  background: #EEF6FF;
  border-top: 1px solid rgba(46,156,202,0.15);
  border-bottom: 1px solid rgba(46,156,202,0.15);
  padding: 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.4rem 0.75rem;
  flex: 1;
  justify-content: center;
  min-width: 150px;
}
.trust-item span:first-child { font-size: 1.2rem; }
.trust-sep {
  width: 1px;
  height: 24px;
  background: rgba(46,156,202,0.2);
}

/* --------- SERVICES --------- */
#services {
  background: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p {
  color: var(--text-soft);
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 1rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46,156,202,0.35);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(46,156,202,0.12); }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1rem; line-height: 1.6; }
.service-kw {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1rem;
}
.service-link:hover { color: var(--primary); gap: 0.65rem; }

/* --------- CONDITIONS --------- */
#conditions {
  background: var(--bg-light);
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.condition-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.condition-item:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}
.condition-fr {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
}
.condition-ar {
  display: none;
  font-family: var(--font-ar);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}

/* --------- ABOUT --------- */
#about {
  background: var(--white);
}
.about-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-photo {
  position: relative;
}
.about-photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 20px;
  background: linear-gradient(160deg, #C8DEFF 0%, #A8C8F0 60%, #8AB4E8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 4rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.about-photo-frame .photo-placeholder-name {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  px: 1rem;
}
.about-photo-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.about-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.about-stat-mini {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}
.about-stat-mini strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}
.about-stat-mini span { font-size: 0.78rem; color: var(--text-light); }

.about-diplomas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
}
.diploma-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  border-left: 3px solid var(--secondary);
}
.diploma-badge .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.about-bio {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}
.about-points {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.about-point::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* --------- PARCOURS --------- */
#parcours {
  background: var(--primary);
  color: white;
}
#parcours h2 { color: white; }
#parcours .section-label { color: var(--accent); }
.parcours-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.parcours-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 2px;
  background: rgba(74,184,232,0.3);
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(74,184,232,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}
.step-card:hover .step-num {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
}
.step-icon { font-size: 1.5rem; }
.step-card h3 { color: white; margin-bottom: 0.6rem; font-size: 1rem; }
.step-card p { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.6; }

/* --------- TÉMOIGNAGES --------- */
#testimonials {
  background: var(--bg-light);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -12px; left: 24px;
  font-size: 4rem;
  color: var(--secondary);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.6;
}
.testimonial-stars { color: #F39C12; font-size: 0.85rem; margin-bottom: 1rem; }
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}
.testimonial-info span {
  font-size: 0.78rem;
  color: var(--text-light);
}
.testimonials-reviews {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.review-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.review-badge .stars { color: #F39C12; }
.review-badge .platform { color: var(--text-light); font-weight: 400; }

/* --------- BLOG --------- */
#blog {
  background: var(--white);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.blog-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.20);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.blog-card-body { padding: 1.5rem; }
.blog-card-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.blog-card-meta::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  display: inline-block;
}
.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.87rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-link:hover { color: var(--primary); gap: 0.6rem; }
.blog-cta { text-align: center; margin-top: 2.5rem; }

/* --------- FAQ --------- */
#faq {
  background: var(--bg-light);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(46,156,202,0.3); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  gap: 1rem;
  user-select: none;
}
.faq-icon {
  width: 28px; height: 28px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--secondary);
  flex-shrink: 0;
  transition: all var(--transition);
  font-weight: 700;
}
.faq-item.open .faq-icon {
  background: var(--secondary);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.4rem;
}
.faq-answer.show {
  max-height: 200px;
  padding: 0 1.4rem 1.2rem;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* --------- CONTACT --------- */
#contact {
  background: var(--primary);
  color: white;
}
#contact h2 { color: white; }
#contact .section-label { color: var(--accent); }
#contact .section-title-ar { color: rgba(255,255,255,0.5); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}
.contact-item-text span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}
.contact-item-text a:hover { color: white; }
.contact-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-platforms p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.platform-link {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}
.platform-link:hover {
  background: rgba(255,255,255,0.20);
  color: white;
}
.map-container {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}
.map-placeholder {
  height: 200px;
  background: rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
.map-placeholder .map-icon { font-size: 2rem; }

/* Contact form */
.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group select option { background: var(--primary); color: white; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1rem 2rem;
}
.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.75rem;
}

/* --------- FOOTER --------- */
#footer {
  background: #060F1E;
  color: rgba(255,255,255,0.7);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}
.footer-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.footer-logo-sub { font-size: 0.68rem; color: rgba(255,255,255,0.45); font-weight: 400; }
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 0.6rem;
}
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social:hover { background: var(--secondary); color: white; }
.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--accent); }
.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item .icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-seo {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  max-width: 800px;
  margin: 0.5rem 0 0;
  line-height: 1.6;
}
.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--accent); }

/* --------- FLOATING WHATSAPP --------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 0.85rem 1.4rem 0.85rem 1rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
  animation: wa-bounce 2s ease-in-out 2s 3;
}
.wa-float:hover {
  background: #1fba59;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}
.wa-float svg { width: 24px; height: 24px; fill: white; flex-shrink: 0; }
@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 640px) {
  .wa-float .wa-text { display: none; }
  .wa-float { padding: 1rem; border-radius: 50%; }
}

/* --------- NOTIFICATION TOAST --------- */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: var(--success);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(39,174,96,0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1100;
  max-width: 300px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* --------- MOBILE NAV OVERLAY --------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 998;
  padding: 90px 2rem 2rem;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--secondary); background: var(--bg-light); }
.mobile-menu-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-lang {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* --------- SCROLL TO TOP --------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  z-index: 899;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--secondary); transform: translateY(-2px); }

/* --------- RESPONSIVE --------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .conditions-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 400px; margin: 0 auto; }
  .parcours-steps { grid-template-columns: repeat(2, 1fr); }
  .parcours-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-desc { margin: 0 auto 0.75rem; }
  .hero-desc-ar { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
  .trust-items { justify-content: center; }
  .trust-sep { display: none; }
  .trust-item { min-width: 140px; }
  .services-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .parcours-steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .conditions-grid { grid-template-columns: 1fr; }
  .about-stats-mini { grid-template-columns: 1fr 1fr; }
}

/* --------- ANIMATIONS --------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* =========================================================
   RTL / ARABIC OVERRIDES
   ========================================================= */

/* Base RTL */
body.rtl {
  direction: rtl;
  font-family: var(--font-ar);
  text-align: right;
}


/* Dropdown menu — open from right side */
body.rtl .dropdown-menu { left: auto; right: 0; }


/* FAQ icon alignment */
body.rtl .faq-question { text-align: right; }
body.rtl .faq-icon { margin-left: 0; margin-right: auto; }

/* About bio line-height (Arabic text is denser) */
body.rtl .about-bio { line-height: 2; }

/* Blog link direction */
body.rtl .blog-link { direction: rtl; }

/* Contact item icons stay visual on left */
body.rtl .contact-item { flex-direction: row; }
body.rtl .contact-item-text { text-align: right; }

/* Form labels */
body.rtl label { text-align: right; display: block; }
body.rtl input,
body.rtl select,
body.rtl textarea { text-align: right; direction: rtl; }

/* Footer legal */
body.rtl .footer-legal { flex-direction: row-reverse; }

/* Conditions grid — show Arabic, hide French (works for the static /ar/ page too) */
body.rtl .condition-item { flex-direction: row; }
body.rtl .condition-fr { display: none; }
body.rtl .condition-ar { display: block; font-family: var(--font-ar); }

/* Parcours step icons — keep centered */
body.rtl .step-card { text-align: center; }

/* Trust strip items */
body.rtl .trust-items { direction: rtl; }

/* Mobile menu */
body.rtl .mobile-menu { text-align: right; }

/* Section label letter-spacing breaks Arabic — remove it */
body.rtl .section-label { letter-spacing: 0; text-transform: none; }

/* Nav logo */
body.rtl .nav-logo-text { text-align: right; }

/* Hero stat labels */
body.rtl .stat-label { font-family: var(--font-ar); }

/* Footer bot