/* Variables de couleurs selon la règle de 60/30/10 */
:root {
  --primary-color: #2e74b9;       /* 60% : fonds principaux (en-tête, hero, footer) */
  --secondary-color: #d96653;     /* 30% : boutons et accents */
  --accent-white: #ffffff;        /* 10% : éléments de contraste (cartes, contenus) */
  --text-on-primary: #ffffff;     /* Texte sur fond bleu */
  --text-on-white: #2b2d42;        /* Texte sur fond blanc */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  background-color: var(--accent-white);
  color: var(--text-on-white);
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Mode sombre (invariant, ajustable selon besoin) */
.dark-mode {
  /* Vous pouvez ajuster les variables en mode sombre si nécessaire */
  background-color: #121212;
  color: var(--text-on-primary);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition);
}

.logo img {
  width: 200px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-on-primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-on-primary);
  transition: color 0.3s;
}

#darkModeToggle:hover {
  color: var(--secondary-color);
}

/* Menu hamburger */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--text-on-primary);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  background-color: var(--accent-white);
  width: 70%;
  height: 100%;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 1100;
  padding: 2rem;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-on-white);
  text-decoration: none;
}

/* Section Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background: var(--primary-color);
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.75rem;
  color: var(--text-on-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Boutons d'appel à l'action */
.cta-button {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button.primary {
  background: var(--secondary-color);
  color: var(--accent-white);
}

.cta-button.secondary {
  background: var(--accent-white);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section Chiffres clés */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 3rem 2rem;
  background: var(--accent-white);
}

.stat-card {
  background: var(--secondary-color);
  color: var(--text-on-primary);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Sections communes */
.content-section {
  padding: 4rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .grid-2col {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Listes */
.feature-list,
.icon-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li,
.icon-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Section Solutions */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.problem-card,
.solution-card {
  background: var(--accent-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Section Valeur */
.value-section {
  padding: 4rem 2rem;
  background: var(--accent-white);
  text-align: center;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--accent-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.value-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Section CTA */
.cta-section {
  padding: 4rem 2rem;
  background: var(--primary-color);
  color: var(--text-on-primary);
  text-align: center;
}

.cta-section .cta-content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--text-on-primary);
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--accent-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  .cta-container {
    flex-direction: column;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .mobile-menu a {
    font-size: 1.25rem;
  }
}


/* Nouvelle palette de couleurs */


/* Effet glassmorphism */
.glass-card {
  background: var(--glass-effect);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animation au hover */
.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Loader pour images */
.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Amélioration des boutons */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: var(--transition);
}

.cta-button:hover::after {
  left: 50%;
  top: 50%;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .stats-section {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
}