/* Variables et configuration de base */
:root {
  --primary-color: #002395; /* Bleu France */
  --secondary-color: #ED2939; /* Rouge France */
  --accent-color: #FFFFFF; /* Blanc */
  --dark-color: #111827;
  --light-color: #F3F4F6;
  --text-color: #1F2937;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Réinitialisation et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-family: 'Montserrat', sans-serif;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(237, 41, 57, 0.3);
}

.btn-primary:hover {
  background: #c1001a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(237, 41, 57, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.btn-secondary {
  background: white;
  color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation */
header {
  background-color: var(--dark-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo h1 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 21px;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s;
}

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

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23FFF' points='50 0, 100 50, 50 100, 0 50'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 30px;
  opacity: 0.1;
}

.hero-content {
  padding: 6rem 0 8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  padding-right: 3rem;
}

.hero-text h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-shapes {
  position: relative;
  width: 300px;
  height: 300px;
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape-1 {
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.1);
  top: 70px;
  left: 70px;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: var(--secondary-color);
  opacity: 0.8;
  top: 90px;
  left: 40px;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  top: 40px;
  left: 140px;
  animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

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

.feature-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background-color: rgba(0, 35, 149, 0.1);
  border-radius: 50%;
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Process Section */
.process {
  padding: 5rem 0;
  background-color: #f0f2f5;
  position: relative;
}

.process-steps {
  margin-top: 3rem;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.step {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  width: 100%;
  max-width: 320px;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  background: var(--gradient);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.step-divider {
  display: none;
}

.process-note {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
  color: #666;
}

/* Stats Section */
.stats {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: white;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.testimonial {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  max-width: 350px;
  width: 100%;
}

.rating {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #4B5563;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--gradient);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding-top: 4rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo h3 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.footer-brand p {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.link-group h4 {
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.link-group ul {
  list-style: none;
}

.link-group ul li {
  margin-bottom: 0.8rem;
}

.link-group ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.link-group ul a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-text h2 {
    font-size: 2.3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-color);
    transition: 0.3s;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    padding: 2rem;
  }
  
  .hero-content {
    flex-direction: column;
    padding: 5rem 0;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .step {
    max-width: 100%;
  }
  
  .footer-main {
    flex-direction: column;
  }
  
  .footer-brand {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: space-around;
    width: 100%;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .container {
    width: 95%;
  }
  
  .hero-text h2 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .link-group {
    text-align: center;
  }
}
