/* 🏝️ Zil Evasion - Design Moderne avec Couleurs du Logo */

:root {
  /* Couleurs du Logo Zil Evasion */
  --primary-color: #E91E63;
  --primary-hover: #C2185B;
  --secondary-color: #00BCD4;
  --accent-color: #FF6B9D;
  --tropical-blue: #40C4FF;
  
  /* Couleurs système */
  --text-dark: #1F2937;
  --text-medium: #6B7280;
  --text-light: #9CA3AF;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --border-color: #E5E7EB;
  --success-color: #10B981;
  --danger-color: #EF4444;
  
  /* Gradients inspirés du logo */
  --gradient-primary: linear-gradient(135deg, #E91E63 0%, #FF6B9D 100%);
  --gradient-tropical: linear-gradient(135deg, #00BCD4 0%, #40C4FF 100%);
  --gradient-combined: linear-gradient(135deg, #E91E63 0%, #00BCD4 100%);
  
  /* Bordures et ombres */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(233, 30, 99, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(233, 30, 99, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(233, 30, 99, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Navigation */
.navbar {
  background: var(--bg-white) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  max-height: 45px;
  width: auto;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-combined);
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  margin-bottom: 2rem;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

/* Search Card */
.search-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  margin-top: -80px;
}

.search-tabs {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-light);
  padding: 0.25rem;
  border-radius: var(--radius-md);
}

.search-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-medium);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.search-tab.active {
  background: var(--text-dark);
  color: white;
}

/* Form Controls */
.form-floating > .form-control,
.form-floating > .form-select,
.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: var(--bg-light);
  transition: all 0.2s;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

.form-floating > label {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Buttons */
.btn-primary,
.btn-search {
  background: var(--gradient-primary);
  border: none;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover,
.btn-search:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

/* Flight Cards */
.flight-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.flight-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.flight-info {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
}

.airline-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.airline-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  box-shadow: var(--shadow-sm);
}

.airline-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.airline-details small {
  color: var(--text-medium);
  font-size: 0.85rem;
}

.flight-route {
  text-align: center;
}

.route-airports {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.route-duration {
  color: var(--text-medium);
  font-size: 0.875rem;
}

.flight-time {
  text-align: center;
}

.time-display {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.time-date {
  color: var(--text-medium);
  font-size: 0.875rem;
}

/* Flight Details in Cards */
.flight-card .border-top {
  border-color: var(--border-color) !important;
  margin-top: 1rem !important;
  padding-top: 1rem !important;
}

.flight-card small {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.flight-card small i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.flight-card small strong {
  color: var(--text-dark);
  font-weight: 600;
}

.flight-price {
  text-align: right;
}

.price-amount {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.price-label {
  color: var(--text-medium);
  font-size: 0.85rem;
}

.btn-dark {
  background: var(--text-dark);
  border: none;
  transition: all 0.3s;
}

.btn-dark:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* Filters Sidebar */
.filters-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.filters-sidebar h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.filter-option label {
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-count {
  background: var(--bg-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-medium);
}

/* Flight Details Page */
.flight-details-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.flight-segment {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.flight-segment:last-child {
  border-bottom: none;
}

.segment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.airport-info {
  flex: 1;
}

.airport-code {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
}

.airport-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.airport-date {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.airport-name {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.flight-duration {
  text-align: center;
  padding: 0 2rem;
}

.duration-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.duration-line::before,
.duration-line::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border-color);
}

.duration-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Fare Summary */
.fare-summary {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 2rem;
}

.fare-summary h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.fare-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.fare-item:last-of-type {
  border-bottom: 2px solid var(--text-dark);
  margin-bottom: 1rem;
}

.fare-label {
  color: var(--text-medium);
  font-weight: 500;
}

.fare-amount {
  font-weight: 700;
  color: var(--text-dark);
}

.fare-discount {
  color: var(--success-color);
}

.total-fare {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}

.total-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
}

/* Payment Page */
.payment-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.payment-header {
  margin-bottom: 2rem;
}

.payment-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.discount-alert {
  background: #D1FAE5;
  border: 1px solid #10B981;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: #065F46;
  font-weight: 600;
  margin-bottom: 2rem;
}

.payment-methods {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.payment-method-icon {
  width: 50px;
  height: 35px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.card-icons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.card-icon {
  font-size: 1.5rem;
}

.btn-pay {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  transition: all 0.2s;
}

.btn-pay:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Booking Summary */
.booking-summary {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.booking-summary h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.booking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.booking-item:last-child {
  border-bottom: none;
}

.booking-icon {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.booking-details {
  flex: 1;
}

.booking-route {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.booking-info {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* Trip Type Selector */
.trip-type-selector {
  display: inline-flex;
  gap: 1rem;
}

.form-check-input {
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-dark);
}

/* Badges */
.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-success {
  background: #D1FAE5;
  color: #065F46;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

/* Alert Messages */
.alert {
  border-radius: var(--radius-md);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

.alert-info {
  background: #DBEAFE;
  color: #1E40AF;
}

.alert-warning {
  background: #FEF3C7;
  color: #92400E;
}

.alert-danger {
  background: #FEE2E2;
  color: #991B1B;
}

/* Loading States */
.spinner-border {
  border-color: var(--primary-color);
  border-right-color: transparent;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary.bg-opacity-10 {
  background-color: rgba(233, 30, 99, 0.1) !important;
}

.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

.badge.bg-light.text-primary {
  background: rgba(233, 30, 99, 0.1) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(233, 30, 99, 0.2);
}

/* Passenger Section */
.passenger-section {
  background: var(--bg-light);
  transition: all 0.3s;
}

.passenger-section:hover {
  box-shadow: var(--shadow-sm);
}

/* Dropdown Passengers */
.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
}

.dropdown-menu .btn-outline-secondary {
  width: 35px;
  height: 35px;
  padding: 0;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.dropdown-menu .btn-outline-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Multicity Flight Segments */
.flight-segment {
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.flight-segment:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.flight-segment .card-body {
  padding: 1.5rem;
}

.flight-segment h6 {
  color: var(--text-dark);
  font-size: 1rem;
}

.flight-segment .btn-outline-danger {
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
  transition: all 0.2s;
}

.flight-segment .btn-outline-danger:hover {
  background: var(--danger-color);
  color: white;
}

#flight-segments-container {
  position: relative;
}

#add-flight-segment {
  border: 2px dashed var(--primary-color);
  background: transparent;
  transition: all 0.3s;
}

#add-flight-segment:hover {
  background: var(--primary-color);
  color: white !important;
  border-style: solid;
}

/* Segment Datepicker */
.segment-datepicker {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
    border-radius: 0;
  }
  
  .search-card {
    margin-top: 0;
    border-radius: var(--radius-md);
  }
  
  .flight-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .flight-route,
  .flight-time,
  .flight-price {
    text-align: left;
  }
  
  .search-tab {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .flight-card .row {
    text-align: center !important;
  }
  
  .flight-card .col-md-4 {
    margin-top: 1rem;
  }
}
