/* Variables et configuration de base */
:root {
  /* Couleurs - Utilisation du bleu comme thème principal, différent du thème rouge-rose précédent */
  --primary-gradient: linear-gradient(135deg, #4BCAFF 0%, #0078D4 100%);
  --primary-color: #0078D4;
  --primary-light: #4BCAFF;
  --secondary-color: #005FB8;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f5f9ff;
  --bg-dark: #001F3F;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --box-shadow: 0 8px 30px rgba(0, 120, 212, 0.12);
  
  /* Typographie */
  --font-main: 'Raleway', sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  
  /* Espacement */
  --spacing-xs: 0.25rem;     /* 4px */
  --spacing-sm: 0.5rem;      /* 8px */
  --spacing-md: 1rem;        /* 16px */
  --spacing-lg: 1.5rem;      /* 24px */
  --spacing-xl: 2rem;        /* 32px */
  --spacing-2xl: 3rem;       /* 48px */
  --spacing-3xl: 4rem;       /* 64px */
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: 1.5rem;
  --header-height: 5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75em;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* Utilitaires */
.container {
  max-width: var(--container-width);
  padding: 0 var(--container-padding);
  margin: 0 auto;
  width: 100%;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: var(--spacing-2xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: var(--font-size-md);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 120, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 120, 212, 0.35);
  color: white;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

/* Layout */
section {
  padding: var(--spacing-3xl) 0;
}

/* Header et Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.logo-img {
  width: 42px;
  height: 42px;
  margin-right: 10px;
}

.logo-text span {
  color: var(--primary-color);
}

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

.nav-link {
  font-weight: 600;
  color: var(--text-color);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--primary-gradient);
  transition: width var(--transition-normal);
}

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

.nav-link.btn {
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-md);
}

.nav-link.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 120, 212, 0.25);
}

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

.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: var(--text-color);
  transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + var(--spacing-2xl));
  padding-bottom: var(--spacing-3xl);
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

.hero-btns {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 2;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-gradient);
  z-index: 1;
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

/* Section Fonctionnalités */
.features {
  background-color: var(--bg-color);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-normal);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.feature-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.feature-icon {
  width: 40px;
  height: 40px;
}

.feature-title {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
}

.feature-text {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Section Comment ça marche */
.how-it-works {
  background-color: var(--bg-light);
  position: relative;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--spacing-2xl);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 28%;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-size: var(--font-size-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.step-divider {
  flex-grow: 1;
  height: 2px;
  background: var(--primary-light);
  opacity: 0.3;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.step-text {
  color: var(--text-light);
  font-size: var(--font-size-md);
}

.step-icon {
  width: 60px;
  height: 60px;
  margin-top: var(--spacing-md);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

/* Section FAQ */
.faq {
  background-color: var(--bg-color);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.accordion-header {
  padding: var(--spacing-lg);
  font-weight: 600;
  font-size: var(--font-size-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-fast);
}

.accordion-header::after {
  content: '';
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  transform: rotate(45deg);
  transition: all var(--transition-fast);
}

.accordion-item.active .accordion-header {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.accordion-item.active .accordion-header::after {
  transform: rotate(-135deg);
  border-color: var(--primary-color);
}

.accordion-content {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.accordion-item.active .accordion-content {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  max-height: 1000px;
}

/* Section CTA */
.cta {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  padding: var(--spacing-3xl) 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  color: white;
}

.cta-text {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  margin-right: var(--spacing-sm);
}

.footer-logo-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.footer-brand p {
  opacity: 0.8;
  font-size: var(--font-size-md);
}

.footer h4 {
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

.footer-bottom a {
  color: white;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: white;
}

/* Media Queries pour Responsivité */
@media (max-width: 1024px) {
  :root {
    --font-size-4xl: 2.25rem;
    --font-size-3xl: 1.75rem;
  }
  
  .steps {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .step {
    width: 100%;
    max-width: 350px;
  }
  
  .step-divider {
    width: 2px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 3rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 1;
    text-align: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-visual {
    order: 0;
    margin-bottom: var(--spacing-lg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    flex-direction: column;
    background-color: white;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    z-index: 999;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1000;
  }
  
  .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);
  }
}
