/* Styles modernes pour le site d'assurance */
:root {
  /* Palette de couleurs moderne */
  --primary-color: #4361ee; /* Bleu plus vif et moderne */
  --primary-dark: #3a0ca3; /* Bleu foncé pour contraste */
  --secondary-color: #f8f9fa; /* Blanc cassé */
  --accent-color: #f72585; /* Rose vif pour CTA */
  --text-color: #2b2d42; /* Gris foncé presque noir */
  --light-gray: #f1f3f5;
  --medium-gray: #ced4da;
  --dark-gray: #6c757d;
  
  /* Polices modernes */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header moderne */
header {
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent-color);
  margin-left: 3px;
}

.logo-icon {
  margin-right: 8px;
  font-size: 24px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section moderne */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 140px 0 80px;
  text-align: center;
  background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="50" height="50" x="0" y="0" /><rect fill="rgba(255,255,255,0.05)" width="50" height="50" x="50" y="50" /></svg>');
  opacity: 0.3;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Boutons modernes */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: #e5097f;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(247, 37, 133, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Form Section moderne */
.form-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  position: relative;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: var(--secondary-color);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.form-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.form-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Trust Elements modernes */
.trust-elements {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 25px;
}

.trust-badge {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--dark-gray);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-3px);
}

.trust-badge i {
  margin-right: 8px;
  color: var(--primary-color);
  font-size: 18px;
}

/* Features Section moderne */
.features {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

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

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-title p {
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

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

.feature-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: 12px;
  background-color: var(--light-gray);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover .feature-icon,
.feature-card:hover .feature-title,
.feature-card:hover p {
  color: white;
}

.feature-icon {
  font-size: 50px;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: all 0.4s ease;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

/* FAQ Section moderne */
.faq-section {
  background-color: var(--secondary-color);
  padding: 100px 0;
  position: relative;
}

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

.faq-item {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  position: relative;
  padding-left: 25px;
}

.faq-item h3::before {
  content: '\f059';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
}

.faq-item p {
  color: var(--text-color);
  line-height: 1.7;
}

/* Footer moderne */
footer {
  background-color: #2b2d42;
  color: white;
  padding: 80px 0 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #2b2d42;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-column ul li a::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.footer-column ul li a:hover {
  color: white;
  padding-left: 20px;
}

.footer-column ul li a:hover::before {
  color: white;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 15px;
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Styles spécifiques pour chaque type d'assurance */
.health-insurance .hero {
  background-image: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

.pet-insurance .hero {
  background-image: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
}

.home-insurance .hero {
  background-image: linear-gradient(135deg, #7209b7 0%, #3a0ca3 100%);
}

.car-insurance .hero {
  background-image: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
}

/* Animation pour les éléments interactifs */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-primary:hover {
  animation: pulse 1.5s infinite;
}

/* Animations pour les éléments au scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Styles pour les pages About et Legal */
.about-section, .legal-section {
  padding: 120px 0 80px;
  background-color: white;
}

.about-content, .legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text, .legal-text {
  margin-bottom: 40px;
  line-height: 1.8;
}

.about-list, .legal-list {
  padding-left: 20px;
  margin-bottom: 20px;
}

.about-list li, .legal-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.about-list li::before, .legal-list li::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    padding: 80px 20px 40px;
    z-index: 1000;
    text-align: center;
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .nav-menu ul {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu ul li {
    margin: 15px 0;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .form-container {
    padding: 30px 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-info p {
    justify-content: center;
  }
  
  .footer-column ul li a {
    padding-left: 0;
  }
  
  .footer-column ul li a::before {
    display: none;
  }
  
  .footer-column ul li a:hover {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .form-container::before {
    width: 4px;
  }
}
