:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --accent-orange: #ea580c;
  --light-orange: #fed7aa;
  --dark-blue: #0f172a;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #1e293b;
  --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Header moderne - IDENTIQUE À INDEX1.PHP */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 12px 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary-blue);
  transition: all 0.3s ease;
  z-index: 1001;
  order: 2;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent-orange);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  order: 3;
}

/* Menu hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1002;
  position: relative;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  order: 1;
}

.mobile-menu-toggle:hover {
  background: rgba(30, 58, 138, 0.1);
}

.mobile-menu-toggle.active {
  color: var(--accent-orange);
}

/* Navigation principale */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--dark-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 6px;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  transform: translateX(5px);
}

.nav-link {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent-orange);
}

.nav-link.active {
  color: var(--accent-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.lang-selector {
  display: flex;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 25px;
  padding: 3px;
  margin-right: 15px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  background: rgba(30, 58, 138, 0.1);
}

.cta-button {
  background: var(--gradient-accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

/* Overlay mobile */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Éléments desktop/mobile */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

/* Page Title Section */
.page-title {
  background: var(--gradient-primary);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0.3;
}

.page-title-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
}

.breadcrumbs .current {
  color: var(--accent-orange);
  font-weight: 600;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img,
.placeholder-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

.placeholder-image {
  height: 400px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
}

.about-text p {
  color: var(--medium-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--medium-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0.3;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

/* Correction pour que les titres soient blancs dans la section stats */
.stats-section .section-title {
  color: var(--white) !important;
}

.stats-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 15px;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent-orange);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
}

.footer-contact h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

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

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .nav {
    gap: 15px;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .about-content {
    gap: 40px;
  }
  
  .page-title h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 1;
  }
  
  .logo {
    order: 2;
    flex: 1;
    justify-content: center;
  }
  
  .nav {
    order: 3;
  }

  /* Menu mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 100px 30px 30px;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    margin: 0;
  }
  
  .nav-menu > li:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 18px 0;
    width: 100%;
    font-size: 1.1rem;
    justify-content: space-between;
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  /* Dropdown mobile */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 8px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
    padding: 8px 0;
  }

  .dropdown-menu a {
    padding: 12px 20px;
    margin: 0;
    border-radius: 0;
    font-size: 1rem;
    transform: none;
  }

  .dropdown-menu a:hover {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    transform: none;
  }

  /* Éléments mobile */
  .mobile-only {
    display: block;
    width: 100%;
  }

  .desktop-only {
    display: none;
  }

  .lang-selector {
    margin: 25px 0;
    width: 100%;
    justify-content: center;
    padding: 4px;
  }

  .lang-btn {
    padding: 12px 20px;
    font-size: 1rem;
    flex: 1;
    justify-content: center;
  }

  .cta-button {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    font-size: 1rem;
  }

  /* Page mobile */
  .page-title {
    padding: 100px 0 40px;
  }

  .page-title h1 {
    font-size: 2.2rem;
  }

  /* About mobile */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  /* Sections mobile */
  .about-section,
  .features-section,
  .stats-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  /* Grids mobile */
  .features-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Footer mobile */
  .footer {
    padding: 50px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    padding: 0 5px;
  }

  .logo {
    font-size: 20px;
  }

  .nav-menu {
    max-width: 280px;
    padding: 80px 20px 30px;
  }

  .mobile-menu-toggle {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-card,
  .stat-card {
    padding: 30px 20px;
  }

  .footer-content {
    gap: 30px;
  }
}

/* Micro-interactions et performance */
.feature-card,
.stat-card {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}