/* ==========================================================================
   NEO-PLANNER 2026 — Modern Design System
   Colors from brand: Navy #1b2a4a, Orange #e8521f
   ========================================================================== */

:root {
  --navy: #1b2a4a;
  --navy-light: #263a5e;
  --navy-dark: #111d33;
  --orange: #e8521f;
  --orange-hover: #d44a1a;
  --orange-light: rgba(232,82,31,0.1);
  --gray-50: #f8f9fb;
  --gray-100: #eef1f5;
  --gray-200: #dde2ea;
  --gray-400: #9aa5b4;
  --gray-600: #5a6577;
  --gray-800: #2d3748;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(27,42,74,0.08);
  --shadow-lg: 0 12px 48px rgba(27,42,74,0.12);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-hover); }

.text-accent { color: var(--orange); }

img { max-width: 100%; }

section { padding: 100px 0; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(255,255,255,0.6); }
.section-header h2 { font-size: 42px; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--gray-600); max-width: 640px; margin: 0 auto; }

/* ======= HEADER ======= */
#header {
  background: transparent;
  transition: var(--transition);
  padding: 0;
  z-index: 997;
  top: 0;
  height: 80px;
}
#header.header-scrolled {
  background: rgba(27,42,74,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  height: 70px;
}
#header .container {
  height: 100%;
}
#header .logo img {
  max-height: 44px;
  transition: var(--transition);
}
#header.header-scrolled .logo img {
  max-height: 42px;
}

/* Navbar */
.navbar ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar a:hover, .navbar .active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.navbar .mobile-nav-toggle {
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  display: none;
  transition: var(--transition);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--orange);
  border-radius: 50px;
  transition: var(--transition);
}
.btn-cta:hover { background: var(--orange-hover); color: var(--white); transform: translateY(-1px); }

/* Mobile Nav */
@media (max-width: 991px) {
  .navbar .mobile-nav-toggle { display: block; }
  .navbar ul {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 0;
    z-index: 9998;
    overflow-y: auto;
  }
  .navbar-mobile ul { display: flex; }
  .navbar-mobile .mobile-nav-toggle {
    position: fixed; top: 20px; right: 20px;
    z-index: 9999;
  }
  .navbar a { padding: 12px 16px; font-size: 15px; }
  .btn-cta { display: none; }
}

/* ======= HERO ======= */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}
#hero video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%,-50%);
  object-fit: cover;
}
#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.92) 0%, rgba(17,29,51,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}
.hero-logo-badge {
  display: inline-block;
  margin-bottom: 24px;
}
.hero-logo-badge img {
  height: 90px;
}
.hero-tagline {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 16px;
}
#hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 40px;
  line-height: 1.15;
}
.hero-pillars {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
}
.pillar i {
  font-size: 32px;
  color: var(--orange);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(232,82,31,0.4);
  border-radius: 16px;
  transition: var(--transition);
}
.pillar:hover i { background: rgba(232,82,31,0.15); border-color: var(--orange); }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--orange);
  border-radius: 50px;
  transition: var(--transition);
}
.btn-hero:hover { background: var(--orange-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,82,31,0.3); }

@media (max-width: 768px) {
  #hero h1 { font-size: 32px; }
  .hero-pillars { gap: 20px; }
  .pillar i { width: 52px; height: 52px; font-size: 24px; border-radius: 12px; }
  .pillar { font-size: 12px; }
}

/* ======= SOLUTIONS ======= */
.section-solutions { background: var(--white); }
.solution-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 32px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gray-200);
  transition: var(--transition);
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.solution-card:hover::before { background: var(--orange); }
.solution-card.featured { background: var(--navy); color: var(--white); border-color: var(--navy); }
.solution-card.featured h3 { color: var(--white); }
.solution-card.featured::before { background: var(--orange); }
.solution-card.featured .card-icon i { color: var(--orange); }
.card-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-light);
  border-radius: 16px;
  margin-bottom: 24px;
}
.card-icon i { font-size: 28px; color: var(--orange); }
.solution-card.featured .card-icon { background: rgba(232,82,31,0.2); }
.solution-card h3 { font-size: 22px; margin-bottom: 12px; }
.solution-card p { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin: 0; }
.solution-card.featured p { color: rgba(255,255,255,0.7); }

/* ======= MÉTIERS ======= */
.section-metiers {
  background: var(--navy);
  padding: 100px 0;
}
.metiers-header h2 {
  color: var(--white);
  font-size: 42px;
  line-height: 1.2;
}
.metiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metier-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}
.metier-item:hover { border-color: var(--orange); background: rgba(255,255,255,0.04); }
.metier-item.highlight { border-color: var(--orange); background: rgba(232,82,31,0.1); }
.metier-icon {
  width: 48px; height: 48px; min-width: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--orange);
  border-radius: 12px;
}
.metier-icon i { font-size: 22px; color: var(--orange); }
.metier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .metiers-grid { grid-template-columns: 1fr; }
  .metiers-header { margin-bottom: 32px; }
  .metiers-header h2 { font-size: 32px; }
}

/* ======= TESTIMONIALS ======= */
.section-testimonials { background: var(--gray-50); }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  height: 100%;
}
.testimonial-quote { margin-bottom: 16px; }
.testimonial-quote i { font-size: 36px; color: var(--orange); opacity: 0.3; }
.testimonial-card p { font-size: 15px; line-height: 1.8; color: var(--gray-600); font-style: italic; margin-bottom: 24px; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--gray-100);
  padding-top: 20px;
}
.testimonial-author img {
  width: 50px; height: 50px;
  border-radius: 12px;
  object-fit: cover;
}
.testimonial-author strong { display: block; font-size: 15px; color: var(--navy); }
.testimonial-author span { font-size: 13px; color: var(--gray-400); }

.section-testimonials .swiper-pagination { margin-top: 32px; position: relative; }
.section-testimonials .swiper-pagination-bullet { width: 10px; height: 10px; background: var(--gray-200); opacity: 1; }
.section-testimonials .swiper-pagination-bullet-active { background: var(--orange); width: 28px; border-radius: 5px; }

/* ======= ABOUT / SOCIÉTÉ ======= */
.section-about { background: var(--white); }
.about-tabs {
  gap: 8px;
  border: none !important;
}
.about-tabs .nav-link {
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  text-align: left;
}
.about-tabs .nav-link.active, .about-tabs .nav-link:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-color: var(--navy) !important;
}
.tab-content h3 { font-size: 24px; margin-bottom: 16px; }
.tab-content p { font-size: 15px; color: var(--gray-600); }
.tab-content ul { padding-left: 20px; color: var(--gray-600); }
.tab-content ul li { margin-bottom: 6px; font-size: 15px; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}
.btn-link:hover { gap: 10px; }

/* ======= VALUES ======= */
.section-values { background: var(--gray-50); }
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-icon {
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange-light);
  border-radius: 20px;
  margin-bottom: 24px;
}
.value-icon i { font-size: 32px; color: var(--orange); }
.value-card h4 { font-size: 20px; margin-bottom: 12px; }
.value-card p { font-size: 15px; color: var(--gray-600); margin: 0; }

/* ======= SERVICES ======= */
.section-services { background: var(--white); }
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  transition: var(--transition);
}
.service-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.service-card > i {
  font-size: 36px;
  color: var(--navy);
  display: block;
  margin-bottom: 20px;
}
.service-card h4 { font-size: 18px; margin-bottom: 16px; }
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 14px;
  color: var(--gray-600);
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.service-card.accent {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.service-card.accent > i { color: var(--orange); }
.service-card.accent h4 { color: var(--white); }
.service-card.accent p { color: rgba(255,255,255,0.7); }

/* ======= RÉALISATIONS ======= */
.section-realisations { background: var(--gray-50); }

/* ======= GÉOPICS ======= */
.section-geopics {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-geopics::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -60px;
  width: 400px; height: 400px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.08;
}
.geopics-content { position: relative; z-index: 1; }
.geopics-content h2 { font-size: 48px; color: var(--white); margin-bottom: 8px; }
.geopics-tagline {
  font-size: 20px;
  font-style: italic;
  color: var(--orange);
  margin-bottom: 32px;
  font-weight: 500;
}
.geopics-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.geopics-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.geopics-feature i {
  font-size: 22px;
  color: var(--orange);
  width: 44px; height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
}
.geopics-events {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.geopics-events h4 { color: var(--orange); font-size: 16px; margin-bottom: 4px; }
.geopics-events p { color: rgba(255,255,255,0.7); margin: 0; font-size: 14px; }
.geopics-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}

/* ======= TEAM ======= */
.section-team { background: var(--white); }
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.team-avatar {
  width: 80px; height: 80px;
  background: var(--navy);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.team-avatar i { font-size: 36px; color: var(--white); }
.team-card h4 { font-size: 18px; margin-bottom: 4px; }
.team-role {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 12px;
}
.team-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 8px; }

/* ======= CONTACT ======= */
.section-contact { background: var(--gray-50); padding-bottom: 80px; }
.contact-map { margin: -20px 0 0; }
.contact-map iframe { display: block; border-radius: 0; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
}
.contact-card i { font-size: 32px; color: var(--orange); margin-bottom: 16px; display: block; }
.contact-card h4 { font-size: 18px; margin-bottom: 12px; }
.contact-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 8px; }
.contact-card a { color: var(--navy); font-weight: 500; }
.contact-card a:hover { color: var(--orange); }

/* ======= FOOTER ======= */
#footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 0; }
.footer-main { padding: 64px 0 40px; }
.footer-logo { height: 48px; margin-bottom: 16px; }
.footer-desc { font-size: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
#footer h5 { color: var(--white); font-size: 16px; margin-bottom: 20px; }
#footer ul { list-style: none; padding: 0; }
#footer ul li { margin-bottom: 10px; }
#footer ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
#footer ul li a:hover { color: var(--orange); }
.footer-contact-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-contact-list i { color: var(--orange); font-size: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ======= BACK TO TOP ======= */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px; bottom: 20px;
  z-index: 996;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  transition: var(--transition);
}
.back-to-top.active { visibility: visible; opacity: 1; }
.back-to-top:hover { background: var(--orange-hover); color: var(--white); }
.back-to-top i { font-size: 28px; }

/* ======= ANIMATIONS ======= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======= PRELOADER (keep for compatibility) ======= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--navy);
  transition: opacity 0.6s ease;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  border: 4px solid var(--orange);
  border-top-color: transparent;
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======= RESPONSIVE ======= */
@media (max-width: 1200px) {
  .section-header h2 { font-size: 36px; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 30px; }
  .geopics-content h2 { font-size: 36px; }
  .geopics-features { grid-template-columns: 1fr; }
}

/* ======= SWIPER OVERRIDES ======= */
.testimonials-slider {
  overflow: hidden;
}
.testimonials-slider .swiper-slide {
  opacity: 0.4;
  transition: opacity 0.3s;
}
.testimonials-slider .swiper-slide-active,
.testimonials-slider .swiper-slide-next {
  opacity: 1;
}
