: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 */
.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);
}

/* css de la page profil */
        .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, .btn-logout {
            background-color: #42b983;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
        .btn-logout {
          margin-left: 10px;
        }
        .edit-btn:hover, .btn-logout: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;
}