/* Variables modernes */
:root {
  /* Couleurs modernes */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #f8fafc;
  --dark: #0f172a;
  --light: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --success: #10b981;
  
  /* Effets */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Arrondis */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
.assurance-modern {
  color: var(--dark);
  line-height: 1.6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Conteneur principal */
.assurance-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* En-tête de page */
.assurance-hero {
  position: relative;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: var(--light);
  padding: 6rem 0;
  overflow: hidden;
  margin-bottom: 4rem;
}

.assurance-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.4;
}

.assurance-hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.assurance-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(to right, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.assurance-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.assurance-section {
  padding: 6rem 0;
  position: relative;
}

.assurance-section.bg-light {
  background-color: var(--gray-100);
}

/* Grille de fonctionnalités */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* Cartes */
.feature-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
  box-shadow: 0 15px 20px -5px rgba(37, 99, 235, 0.4);
}

.feature-card h3 {
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.feature-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.feature-card:hover h3::after {
  width: 60px;
  background: var(--primary-light);
}

.feature-card p {
  color: var(--gray-600);
  margin-top: 1rem;
  line-height: 1.7;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  z-index: -1;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.1);
}

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

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* FAQ */
.faq-section {
  background: var(--light);
  border-radius: var(--radius-lg);
  /* box-shadow: var(--shadow); */
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: var(--transition);
}

.faq-item summary:hover {
  background-color: var(--gray-100);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 2rem 1.5rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-content p {
  margin-bottom: 1rem;
}

.faq-content ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.faq-content li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.faq-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Section CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.4;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .assurance-hero h1 {
    font-size: 3rem;
  }
  
  .assurance-section {
    padding: 5rem 0;
  }
}

@media (max-width: 768px) {
  .assurance-hero {
    padding: 5rem 0;
  }
  
  .assurance-hero h1 {
    font-size: 2.5rem;
  }
  
  .assurance-hero p {
    font-size: 1.125rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .faq-item summary {
    padding: 1.25rem 1.5rem;
    padding-right: 3rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .assurance-hero {
    padding: 4rem 0;
  }
  
  .assurance-hero h1 {
    font-size: 2rem;
  }
  
  .assurance-section {
    padding: 4rem 0;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}
