*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Bannière */
.main-container {
  background-color: white;
  
}
.circuits-banner {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.56) 0%,
      rgba(0, 0, 0, 0.32) 50%,
      rgba(0, 0, 0, 0.64) 100%
    ),
    url(../images/circuits/backgrond_circuits.jpg);
  box-shadow: 0px 15px 44px rgba(0, 0, 0, 0.2);
  background-size: cover;
  background-position: center;
}

.circuits-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  font-family: "Nunito";
}

.circuits-content h1 {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-size: 70px;
  line-height: 80px;
  /* identical to box height, or 114% */
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--color-orange);
  text-underline-offset: 25px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ededed;
  text-shadow: 0px 0px 40px #000000;
  /* Inside auto layout */
  flex: none;
  order: 0;
  flex-grow: 0;
}
.flight-path-decorator {
  position: relative;
  top: -130px;
  margin-top: 0px;
  z-index: 1;
  display: flex;
  justify-content: center;
  /* margin-bottom: -30px; */
}

.image-flight{
  max-width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* ========================= Circuits Container ========================= */
.circuits-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 80px auto;
  padding: 0 50px;
}

/* ========================= Circuits Section ========================= */
.circuits-section,
.circuits-concepts,
.circuits-ville1,
.ville-plus {
  display: none;
  width: 100%;
  margin: 0;
  padding: 40px 0;
  position: relative;
  top: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.circuits-section.active,
.circuits-concepts.active,
.circuits-ville1.active,
.ville-plus.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.circuits-cards {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 50px;
  width: 100%;
  margin-top: 0; /* Reset any top margin on cards container */
}

/* ------------------------- Filters Row ------------------------- */
.circuits-filters {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 20px auto; /* Increased bottom margin */
  padding: 0 50px;
  position: relative;
  min-height: 60px;
  flex-wrap: wrap;
  background: white;
  z-index: 10;
  box-shadow: 0 10px 15px -10px rgba(0,0,0,0.1);
}

/* Button styles */
.circuits-filters .btn {
  height: 50px;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  padding: 0 20px;
  transition: all 0.2s ease;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
}

/* Specific button adjustments */
.circuits-filters .btn-wide {
  min-width: 180px;
}

.circuits-filters .btn-wider {
  min-width: 200px;
}

/* Active state for buttons */
.circuits-filters .btn-blue {
  background: #223F7A;
  color: white;
  border: 2px solid #223F7A;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.circuits-filters .btn-outline-blue {
  background: white;
  color: #223F7A;
  border: 2px solid #223F7A;
}

.circuits-filters .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.circuits-filters .btn:active {
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  height: 53px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-blue {
  background: #223F7A;
  color: #FDFDFD; 
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid #223F7A;
  min-width: 245px; 
  white-space: nowrap;
}

.btn-outline-blue {
  background: transparent;
  color: #223F7A;
  border: 2px solid #223F7A;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.25));
  min-width: 129px; 
  white-space: nowrap;
}

.btn-wide { width: fit-content; }
.btn-wider { width: fit-content; }

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ------------------------- Circuit Card ------------------------- */
.circuit-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 35px;
  width: 100%;
  max-width: 1180px;
  min-height: 484px;
  margin: 0 auto;
}

.circuit-card.reverse { flex-direction: row-reverse; }

.card-image {
  width: 357px;
  min-width: 357px;
  height: 484px;
  background-size: cover;
  background-position: center;
  border-radius: 25px;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  height: 484px;
  background: #FDFDFD; /* white */
  border: 3px solid rgba(89, 24, 2, 0.05);
  border-radius: 25px;
  padding: 0 30px;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 42px;
  text-transform: capitalize;
  color: #232323;
}
.card-title.small {
  font-size: 25px;
  line-height: 38px;
}

.route {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  width: 100%;
}
.route.compact { max-width: 582px; }

.city {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #223F7A; /* blue */
  text-align: center;
}

.route-line {
  flex: 1;
  border-top: 2px solid #223F7A; /* blue */
  height: 0;
  position: relative;
}

.route-line::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid #223F7A; /* blue */
  border-top: 2px solid #223F7A; /* blue */
  transform: translateY(-55%) rotate(45deg);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #232323;
}

.card-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.price-row.tight { gap: 25px; }

.price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  height: 53px;
  min-width: 184px; /* left */
  background: #D55E1E; /* orange */
  color: #FDFDFD; /* white */
  border: 2px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 7px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
  text-align: center;
}

.dashed-divider {
  flex: 1;
  border-top: 2px dashed #223F7A; /* blue */
  height: 0;
  transform: rotate(0.23deg);
}

.details-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #223F7A; /* blue */
  text-decoration: underline;
}

/* ========================= Responsive ========================= */
@media (max-width: 1200px) {
  .circuits-section { padding: 0 30px; }
  .circuit-card { gap: 24px; }
  .card-image { width: 320px; min-width: 320px; height: 440px; }
  .card-body { height: 440px; }
}

@media (max-width: 992px) {
  .circuits-filters { flex-wrap: wrap; }
  .btn, .price { padding: 14px 28px; height: 48px; font-size: 16px; }
  .circuit-card, .circuit-card.reverse {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }
  .card-image {
    width: 100%;
    min-width: 0;
    height: 300px;
    border-radius: 20px;
  }
  .card-body {
    width: 100%;
    height: auto;
    padding: 24px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
    .circuits-banner {
    height: 400px;
  }
  .circuits-content h1 {
    font-size: 2.2rem;
  }
  .flight-path-decorator {
    top: -70px;
    margin-bottom: -50px;
  }
  .circuits-section { gap: 32px; }
  .card-title { font-size: 24px; line-height: 34px; }
  .card-title.small { font-size: 22px; line-height: 32px; }
  .city { font-size: 14px; }
  .features p { font-size: 14px; line-height: 21px; }
  .price { min-width: 160px; font-size: 16px; }
}

@media (max-width: 480px) {
  .circuits-banner {
    height: 400px;
  }
  .flight-path-decorator {
    top: -60px;
    margin-bottom: -50px;
  }
  .circuits-section { padding: 0 16px; }
  .btn { width: 100%; min-width: 0; }
  .btn-wide, .btn-wider { min-width: 0; }
  .card-image { height: 220px; }
  .price-row { gap: 12px; }
  .price { flex: 0 0 auto; padding: 12px 20px; height: auto; min-width: 0; }
  .details-link { font-size: 15px; }
}

