:root {
  --primary-color: #1e2a38;
  --secondary-color: #4a5568;
  --accent-color: #3182ce;
  --text-dark: #2d3748;
  --bg-light: #f9fafb;
  --gradient: linear-gradient(135deg, #1e2a38 0%, #4a5568 100%);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Sections générales */
.section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  background-color: #2c3e50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff !important;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  margin-right: 0.5rem;
  color: #ffffff;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3498db !important;
}



.btn-contact {
  background-color: transparent;
  color: #ffffff !important;
  padding: 0.6rem 1.8rem !important;
  border-radius: 5px;
  font-weight: 600;
  margin-left: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-contact:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0.5)),
    url("../../media/experts/les-echelles-de-la-justice-cyberpunk.jpg")
      center/cover;
  padding-top: 80px;
  color: #ffffff;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #e8e8e8;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
}

.btn-primary-hero {
  background-color: #3498db;
  color: #ffffff;
}

.btn-primary-hero:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.btn-outline-hero {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline-hero:hover {
  background-color: #ffffff;
  color: #2c3e50;
  transform: translateY(-3px);
}

/* Stats Section */
.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(52, 152, 219, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3498db;
  font-size: 1.5rem;
}

.stat-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .btn-hero {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .btn-contact {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Why Choose Us */
.why-choose {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.why-choose::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(30,42,56,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(30, 42, 56, 0.2);
}

.advantage-content h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.advantage-content p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

/* Left Side - Form */
.contact-form-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
  color: #adb5bd;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  background-color: #3498db;
  color: #ffffff;
  border: none;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Right Side - Info Cards */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 25px;
}

/* Map Card */
.map-container {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #e9ecef;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background-color: #2c3e50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: #ffffff;
  font-size: 1.1rem;
}

.contact-details h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.contact-details p {
  font-size: 0.95rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

/* Emergency Card */
.emergency-card {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.emergency-card h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.emergency-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.emergency-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.emergency-contact i {
  font-size: 1.2rem;
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 10px 25px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: #2c3e50;
}

/* Social Links */
.contact-social {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #dee2e6;
}

.contact-social h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
  .contact-form-wrapper,
  .info-card,
  .emergency-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .contact-form-wrapper,
  .info-card {
    padding: 25px;
  }
}

/* Pricing */
.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-action {
  margin-top: auto;
  text-align: center;
}

.pricing-card.featured {
  border: 3px solid var(--accent-color);
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: white;
  padding: 8px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 30px;
}

.pricing-price .currency {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-price .period {
  color: var(--secondary-color);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: #28a745;
  margin-right: 10px;
}

.pricing-features .cross {
  color: #dc3545;
  margin-right: 10px;
}

/* Newsletter */
.newsletter {
  background: var(--gradient);
  color: white;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 1.1rem;
  width: 100%;
  margin-bottom: 20px;
}

.newsletter-btn {
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.newsletter {
  background: linear-gradient(rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0.5)),
    url("../../media/experts/les-juges-marteau-et-livre-sur-la-table-en-bois-fond-de-droit-et-de-la-justice.jpg")
      center/cover;
  padding-top: 80px;
  color: #ffffff;
  text-align: center;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  color: white;
  margin-bottom: 20px;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.8s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn-hero {
    display: block;
    margin: 10px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: none;
    margin-top: 20px;
  }
}

.contact-section .info-card,
.contact-section .contact-form-wrapper,
.contact-section .emergency-card {
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  border: none;
}

.contact-section h4,
.contact-section h5 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.emergency-card {
  background-color: #001f3f;
  /* bleu nuit de la palette */
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
}

/* Back to top button styles - L'Héritage Tech */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  /* width: 50px; */
  /* un peu plus large pour l'icône */
  height: 55px;
  /* un peu plus haut pour l'icône */
  border-radius: 12px;
  /* arrondi subtil */
  display: none;
  z-index: 1000;
  border: none;
  background: linear-gradient(135deg, #c69214, #d6a84a);
  box-shadow: 0 6px 16px rgba(198, 146, 20, 0.35);
  transition: all 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /* icône parfaitement centrée */
  cursor: pointer;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(198, 146, 20, 0.5);
  background: linear-gradient(135deg, #d6a84a, #e0b75c);
}

.back-to-top i {
  font-size: 2rem;
  /* taille icône adaptée au bouton */
  color: #fff;
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

/* Pricing Buttons */
.pricing-toggle-container {
  margin-bottom: 3rem;
}

.pricing-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.pricing-btn {
  padding: 12px 24px;
  border: 2px solid #6c757d;
  background: transparent;
  color: #6c757d;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-btn:first-child {
  border-radius: 8px 0 0 8px;
  border-right: 1px solid #6c757d;
}

.pricing-btn:last-child {
  border-radius: 0 8px 8px 0;
  border-left: 1px solid #6c757d;
}

.pricing-btn:hover {
  background: #f8f9fa;
  color: #2d3748;
}

.pricing-btn.active {
  background: #2d3748;
  color: white;
  border-color: #2d3748;
}

.pricing-btn.active:hover {
  background: #1a202c;
  border-color: #1a202c;
}

.discount-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Pricing Card Enhancements */
.pricing-card.featured {
  border: 2px solid #D4AF37;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s ease;
}

.pricing-card.featured:hover::before {
  left: 100%;
}

.pricing-badge {
  background-color: #D4AF37;
  color: #001F3F;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.btn-primary-gold {
  background: linear-gradient(90deg, #C69214, #D6A84A);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-gold::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: left 0.5s ease;
}

.btn-primary-gold:hover::before {
  left: 100%;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(198, 146, 20, 0.4);
  color: #ffffff;
}

.pricing-card:hover {
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Price Animation */
.amount, .period {
  transition: all 0.3s ease;
}

.amount.updating {
  transform: scale(0.8);
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .back-to-top i {
    font-size: 1.8rem;
  }

  .pricing-buttons {
    flex-direction: column;
    gap: 0;
  }

  .pricing-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 200px;
    text-align: center;
  }

  .pricing-btn:first-child {
    border-bottom: 1px solid #6c757d;
    border-right: 2px solid #6c757d;
  }

  .pricing-btn:last-child {
    border-top: 1px solid #6c757d;
    border-left: 2px solid #6c757d;
  }

  .discount-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}
