/* Variables et styles généraux - Assurez-vous qu'ils sont cohérents avec vos autres fichiers CSS */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --success: #27ae60;
  --warning: #f39c12;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Navigation (copie de trajets.css pour la cohérence) */
.zone-navigation {
  background-color: var(--primary);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.navbar-link:hover, .navbar-link.active {
  background-color: var(--secondary);
}

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

.titre-principal {
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2.5em;
  margin-top: 20px;
}

/* Messages de connexion */
.login-message {
  text-align: center;
  background-color: var(--warning);
  color: white;
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 1.1em;
}

.login-message .login-link {
  color: white;
  font-weight: bold;
  text-decoration: underline;
  margin-left: 5px;
}

/* Onglets */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab {
  padding: 15px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: var(--primary);
  font-weight: bold;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab:hover {
  background-color: #e0e0e0;
}

.tab.active {
  background-color: var(--secondary);
  color: white;
  border-bottom: 3px solid var(--primary);
}

.tab-content {
  display: none;
  padding: 20px;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Styles pour les cartes de trajet (similaire à trajets.css pour la cohérence) */
.ride-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 15px; /* Espace entre les cartes */
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #eee; /* Légère bordure pour les différencier */
}

.ride-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary);
}

.ride-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.95em;
  color: #555;
}

.ride-detail-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ride-detail-item i {
  color: var(--secondary);
}

.ride-price {
  font-weight: bold;
  color: var(--accent);
  font-size: 1.2em;
}

.ride-status {
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.status-reserved {
  background-color: #e6f7ff;
  color: #1890ff;
}

.status-offered {
  background-color: #f6ffed;
  color: #52c41a;
}

.status-completed {
  background-color: #f0f2f5;
  color: #595959;
}

.ride-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.btn {
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-cancel {
  background-color: #ccc;
  color: #333;
}

.btn-cancel:hover {
  background-color: #bbb;
}

/* Message si aucun trajet */
.no-rides-message {
  text-align: center;
  padding: 20px;
  background-color: var(--light);
  color: #777;
  border-radius: var(--radius);
  margin-top: 20px;
}

/* Footer (copie de trajets.css pour la cohérence) */
.zone-pied {
  background-color: var(--dark);
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

.footer-section a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}
#start-tutorial {
position: fixed;
bottom: 20px;
right: 20px;
background: #3b6e93;
color: white;
padding: 12px 20px;
border: none;
border-radius: 30px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
z-index: 9999;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
transition: background 0.3s;
}    
#start-tutorial:hover {
background: #508bbb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
      flex-direction: column;
      gap: 0.5rem;
  }
  .tabs {
      flex-direction: column;
  }
  .tab {
      text-align: center;
      border-bottom: none;
      border-right: 3px solid transparent;
  }
  .tab.active {
      border-right: 3px solid var(--primary);
      border-bottom: none;
  }
  .ride-card-body {
      flex-direction: column;
      gap: 10px;
  }
}