/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}
.contact {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.contact h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #2c3e50;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}
.form-group textarea {
  resize: vertical;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-submit:hover {
  background-color: #34495e;
}
/* Barre de navigation */
.nav-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; /* Permet le passage à la ligne automatique sur mobile */
    gap: 15px;
    background-color: #343a40; 
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    color: white;
    /* Propriétés ajoutées pour bloquer la barre en haut */
    position: sticky;
    top: 0;
    z-index: 1000; /* Évite que le contenu de la page passe par-dessus la barre */
}
.nav-logo a {
    color: white; 
    text-decoration: none; 
    font-size: 1.2em; 
}
.nav-auth a {
    color: #f8f9fa; 
    text-decoration: none; 
    margin-left: 15px; 
    font-weight: bold; 
    transition: opacity 0.2s ease;
}
.nav-auth a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
/* Alignement propre pour l'onglet message */
.nav-auth a[href="messages.php"] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-auth .btn-logout {
    color: #dc3545;
}
a{
    font-size: 20px;
    font-weight: bold;
    color: red: 
}
/* Alertes d'information PHP */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.alert-success {
    background-color: #D0F7E2;
    color: #000;
    border: 1px solid green;
}
.alert-error {
    background-color: #EDCCC5;
    color: #000;
    border: 1px solid red;}