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

:root {
  --green: #2e7d32;
  --green-light: #4caf50;
  --green-dark: #1b5e20;
  --navy: #0d1f3c;
  --navy-light: #1a3a5c;
  --gold: #f5a623;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --whatsapp: #25d366;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.16);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: #e8f5e9;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p { font-size: 1.125rem; color: var(--gray-500); max-width: 520px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(46,125,50,.35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(46,125,50,.45); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: #20b957; transform: translateY(-2px); }
.btn-large { padding: 18px 36px; font-size: 1rem; border-radius: 100px; width: 100%; justify-content: center; margin-top: 32px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,31,60,.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
}
.nav-logo span {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--whatsapp) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #20b957 !important; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img { object-position: center 60%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,.85) 0%, rgba(13,31,60,.55) 60%, rgba(27,94,32,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  max-width: 760px;
  margin-left: max(24px, calc(50vw - 600px));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 28px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-content h1 span { color: var(--green-light); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.6);
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 28px; height: 28px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy);
  padding: 48px 0;
}
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  display: inline;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--green-light);
  line-height: 1;
}
.stat-suffix { font-size: 1.5rem; font-weight: 700; color: var(--green-light); }
.stat-label {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== SERVICES ===== */
.services { background: var(--gray-50); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { width: 72px; height: 72px; margin-bottom: 24px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.7; }

/* ===== À PROPOS ===== */
.apropos { background: var(--white); }
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.apropos-images {
  position: relative;
  height: 520px;
}
.img-main {
  position: absolute;
  top: 0; left: 0;
  width: 80%;
  height: 80%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.img-secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 50%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  object-fit: cover;
}
.apropos-content .section-tag { display: inline-block; }
.apropos-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin: 12px 0 24px;
  line-height: 1.2;
}
.apropos-content .lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: 16px;
}
.apropos-content p { color: var(--gray-500); margin-bottom: 16px; line-height: 1.8; }
.apropos-features { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
}
.feature svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

/* ===== GALERIE ===== */
.galerie { background: var(--gray-50); }

.missions-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.mission-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mission-card img { height: 160px; object-fit: cover; }
.mission-info {
  padding: 16px;
  background: var(--navy);
}
.mission-ha {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-light);
}
.mission-label {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-item--large { grid-row: span 2; }

.gallery-video { cursor: pointer; }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,31,60,.4);
  transition: var(--transition);
}
.video-play svg { width: 56px; height: 56px; color: white; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.gallery-video.playing .video-play { opacity: 0; }
.gallery-video.playing:hover .video-play { opacity: 1; }

/* ===== CONTACT ===== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: #e8f5e9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 24px; height: 24px; color: var(--green); }
.contact-item strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.contact-item p { color: var(--gray-500); font-size: .95rem; line-height: 1.6; }
.contact-item a { color: var(--green); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.map-placeholder img { height: 100%; object-fit: cover; filter: brightness(.7) saturate(.8); }
.map-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,31,60,.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.map-overlay svg { width: 20px; height: 20px; color: var(--green-light); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 48px 0 32px; }
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: white; }
.footer-brand strong { display: block; color: var(--white); font-size: 1.1rem; font-weight: 800; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--green-light); }
.footer-copy { color: rgba(255,255,255,.35); font-size: .8rem; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.5);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float svg { width: 30px; height: 30px; color: white; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }

/* ===== VIDEO SLIDER ===== */
.video-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.video-slider {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.video-slider:active { cursor: grabbing; }

.video-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16/9;
  max-height: 520px;
  transition: transform .3s ease;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(.45) saturate(1.2);
  transform: scale(1.1);
  z-index: 0;
}

.video-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,31,60,.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
}
.video-play-btn svg {
  width: 72px;
  height: 72px;
  color: white;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .2s ease;
}
.video-play-btn:hover svg { transform: scale(1.1); }
.video-slide.playing .video-play-btn { background: transparent; opacity: 0; }
.video-slide.playing:hover .video-play-btn { opacity: 1; background: rgba(0,0,0,.2); }

.slider-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 2;
}
.slider-btn:hover { background: var(--green); transform: scale(1.05); }
.slider-btn svg { width: 22px; height: 22px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.dot.active {
  background: var(--green);
  width: 28px;
  border-radius: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .missions-stats { grid-template-columns: repeat(2, 1fr); }
  .apropos-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; padding: 12px 32px; }

  .hero-content { padding: 100px 24px 60px; }

  .apropos-grid { grid-template-columns: 1fr; }
  .apropos-images { height: 320px; margin-bottom: 32px; }

  .contact-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--large { grid-row: span 1; }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .footer-brand { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .missions-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ===== LANG BUTTON ===== */
.lang-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  font-family: 'Cairo', 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,.28); }

/* ===== RTL ===== */
html[lang="ar"] body { font-family: 'Cairo', sans-serif; }
[dir="rtl"] .nav-container { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .section-header { direction: rtl; }
[dir="rtl"] .apropos-grid { direction: rtl; }
[dir="rtl"] .apropos-content { text-align: right; }
[dir="rtl"] .feature { flex-direction: row-reverse; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .footer-content { direction: rtl; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
[dir="rtl"] .stats-bar { direction: rtl; }
[dir="rtl"] .nav-links.open { direction: rtl; }

/* Slider toujours LTR quelle que soit la langue */
[dir="rtl"] .video-slider-wrapper { direction: ltr; }
[dir="rtl"] .video-slider { direction: ltr; }

