:root {
  --primary-color: #508bbb;       /* Bleu moderne */
  --secondary-color: #3b6e93;     /* Bleu plus foncé */
  --background-color: #F8F9FA;    /* Gris très clair */
  --text-color: #343A40;          /* Gris foncé */
  --border-color: #ced4da;        /* Gris clair pour bordures */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.zone-test {
  background-color: #eef5ff;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border-left: 4px solid var(--primary-color);
}

.titre-test {
  color: var(--primary-color);
  margin-top: 0;
}

.texte-test {
  margin-bottom: 0;
}

.message-bienvenue {
  background-color: #dff0d8;
  color: #3c763d;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 15px 0;
  text-align: center;
}

.zone-accueil {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.btn-inscription, .btn-connexion {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-inscription:hover, .btn-connexion:hover {
  background-color: var(--secondary-color);
}

.zone-navigation {
  background-color: var(--primary-color);
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-item {
  margin: 0 15px;
}

.navbar-link {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.navbar-link:hover, .navbar-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.zone-contenu {
  flex-grow: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  margin-bottom: 30px;
}

.titre-principal {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-erreur {
  text-align: center;
  padding: 50px 0;
}

.titre-erreur {
  color: #d9534f;
}

.zone-pied {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
}
/* Styles pour les onglets */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  margin-right: 5px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.tab.active {
  background-color: white;
  border-color: var(--border-color);
  border-bottom: 2px solid white;
  margin-bottom: -1px;
  color: var(--primary-color);
  font-weight: bold;
}

.tab:hover:not(.active) {
  background-color: #e9ecef;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Styles pour les formulaires */
.form-container {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.form-container h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
}

.form-check {
  margin-right: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.form-row > div {
  flex: 1;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-group label {
  margin-right: 10px;
  margin-bottom: 0;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.info-banner {
  background-color: #d1ecf1;
  color: #0c5460;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #0c5460;
}

.success-banner {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #155724;
}

.featured-routes {
  margin-top: 40px;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.route-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.route-header {
  font-weight: bold;
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.route-details {
  margin-bottom: 15px;
  font-size: 14px;
}

.route-detail {
  display: flex;
  margin-bottom: 5px;
}

.detail-label {
  width: 30%;
  font-weight: 600;
}

.route-action {
  text-align: center;
}

.route-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.route-btn:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .routes-grid {
    grid-template-columns: 1fr;
  }
  
  .zone-accueil {
    flex-direction: column;
    align-items: center;
  }
}
/* css de la page profill */
        .profile-container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .profile-header {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }
        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 20px;
            border: 3px solid #42b983;
        }
        .profile-info {
            flex-grow: 1;
        }
        .profile-section {
            margin-bottom: 25px;
        }
        .profile-section h3 {
            border-bottom: 2px solid #42b983;
            padding-bottom: 5px;
            color: #2c3e50;
        }
        .info-row {
            display: flex;
            margin: 10px 0;
        }
        .info-label {
            width: 150px;
            font-weight: bold;
            color: #555;
        }
        .info-value {
            flex-grow: 1;
        }
        .edit-btn {
            background-color: #42b983;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
        .edit-btn:hover {
            background-color: #3aa876;
        }
        .edit-mode input {
            width: 100%;
            padding: 5px;
            margin: 5px 0;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
/*Bouton tutoriel*/
#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;
}

/*Style inscription et connexion*/
/* Centrage général des éléments dans le formulaire */
form.form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
h2#inscription,#connexion {
  text-align: center;
}
/* Labels */
form label {
  display: block;
  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: left;
}

/* Champs de texte */
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form input[type="password"] {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  margin-top: 0.3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  background-color: #fff;
  color: var(--text-color);
  display: block;
}

/* Focus */
form input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Bouton d'inscription et de connexion */
button.inscription,.connexion {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 400px;
  padding: 0.9rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button.inscription:hover {
  background-color: var(--secondary-color);
}
button.connexion:hover {
  background-color: var(--secondary-color);
}

/* Lien de connexion et d'inscription */
p {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}
a.connect,.notconnect {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}
a.connect:hover {
  text-decoration: underline;
}
a.notconnect:hover {
  text-decoration: underline;
}

/* Affichage d'erreur éventuel */
#form .error {
  background-color: #f8d7da;
  color: #842029;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #f5c2c7;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
    