/* ============================================
   CSS COMMUN - ASPF
   Styles partagés entre toutes les pages
   ============================================ */

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

:root {
  --primary-blue: #3b5ba8;
  --secondary-blue: #1e3a70;
  --accent-red: #ef4e48;
  --dark-navy: #0f1f3f;
  --light-bg: #fff5f3;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --orange: #ff8c00;
}

/* Map */
#map-asfp {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #ccc;
}

.leaflet-popup-content {
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.popup-title {
  font-weight: bold;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

body {
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: var(--light-bg);
  padding: 12px 0;
  border-bottom: 1px solid #f0e6e4;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.top-contact {
  display: flex;
  gap: 30px;
  align-items: center;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  text-decoration: none;
}

/* Header */
header {
  background: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1001;
}

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

.logo-img {
  height: 60px;
  width: auto;
}

nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

nav > a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
  white-space: nowrap;
}

nav > a:hover {
  color: var(--primary-blue);
}

/* Menu Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  padding: 0;
  transition: transform 0.3s;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.mobile-menu-close span {
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
  align-items: flex-start;
  margin: 40px 0;
}

.mobile-nav > a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.3s;
  width: 100%;
}

.mobile-nav > a:hover {
  color: var(--primary-blue);
}

.mobile-nav-dropdown {
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.mobile-nav-dropdown-toggle {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s;
  width: 100%;
}

.mobile-nav-dropdown-toggle:hover {
  color: var(--primary-blue);
}

.mobile-nav-dropdown-toggle::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary-blue);
  transition: transform 0.3s;
}

.mobile-nav-dropdown-toggle.active::after {
  transform: rotate(45deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--light-bg);
}

.mobile-dropdown-content.active {
  max-height: 500px;
}

.mobile-dropdown-content a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.mobile-dropdown-content a:hover {
  background: white;
  color: var(--primary-blue);
  padding-left: 30px;
}

.mobile-menu-cta {
  margin: 20px;
  padding: 15px;
  background: var(--dark-navy);
  color: white;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.mobile-menu-cta:hover {
  background: var(--primary-blue);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1002;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 0;
  z-index: 1002;
  margin-top: 10px;
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
}

.dropdown-content a:hover {
  background: var(--light-bg);
  color: var(--primary-blue);
  padding-left: 25px;
}

.nav-dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
  animation: fadeInDown 0.3s;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  background: var(--dark-navy);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 31, 63, 0.9) 0%,
    rgba(59, 91, 168, 0.85) 100%
  );
  z-index: 1;
}

.hero-content-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: white;
  padding: 72px 0;
}

.hero-content-center h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 40px;
  color: white;
  font-weight: 800;
  max-width: 1000px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-badges {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  background: var(--accent-red);
  color: white;
  padding: 18px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(239, 78, 72, 0.3);
}

.btn-cta:hover {
  background: #d43e38;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 78, 72, 0.4);
}

.btn-secondary {
  background: var(--primary-blue);
  color: white;
  padding: 18px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #4a6bc0;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-white {
  background: white;
}

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

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* Zones Grid */
.zones-grid-new {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.zones-map {
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.zones-content {
  padding: 20px 0;
}

.zones-intro {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.zones-intro strong {
  color: var(--dark-navy);
  font-weight: 700;
}

.zones-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zones-list li {
  font-size: 17px;
  color: var(--text-dark);
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  font-weight: 500;
}

.zones-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 28px;
  line-height: 1;
}

.zone-label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 400;
  font-style: italic;
  margin-left: 5px;
}

.zone-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.zone-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.testimonial-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
  color: #ffb800;
  font-size: 24px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark-navy);
  font-size: 16px;
  margin-bottom: 5px;
}

.testimonial-location {
  color: var(--text-gray);
  font-size: 14px;
}

/* Footer */
footer {
  background: var(--light-bg);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo-section p {
  color: var(--text-gray);
  margin: 20px 0;
  line-height: 1.7;
}

.footer-title {
  font-weight: 700;
  color: var(--dark-navy);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-link {
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #e0d9d7;
  color: var(--text-gray);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
  .zones-grid-new {
    grid-template-columns: 1fr;
  }

  .zones-map {
    height: 350px;
  }

  nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-content-center h1 {
    font-size: 36px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 48px;
  }

  header .btn-primary {
    margin-left: auto;
    margin-right: 24px;
  }
}

@media (max-width: 767px) {
  .hero-badges {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-content-center h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 32px;
  }

  .zones-map {
    height: 300px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons a {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
