/*
   But : Mettre en forme le fichier html   
   Auteur : Yann Blanchard
   Date :   05.06.2024 / V1.0 
*/

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background: #2c3e50; /* Bleu foncé */
  color: white;
  padding: 20px;
  text-align: center;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

.logo {
  max-width: 20%;
  height: auto;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  padding: 10px;
}

main {
  padding: 20px;
  text-align: center;
}

.results-container {
  background-color: #f7fbfc; /* Very light blue background */
  border: 1px solid #2c3e50; /* Dark blue border */
  border-radius: 8px; /* Rounded corners */
  padding: 20px;
  margin-top: 20px;
  width: 80%;
  max-width: 700px;
  margin: 20px auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.results-container h2 {
  margin-top: 0;
  color: #2c3e50; /* Dark blue */
  font-weight: bold;
}

.results-container ul {
  list-style: none;
  padding: 0;
}

.results-container ul li {
  padding: 10px;
  border-bottom: 1px solid #bdd4e7; /* Light blue border */
  transition: background-color 0.3s;
}

.results-container ul li:hover {
  background-color: #e1ecf4; /* Slightly darker blue on hover */
}

thead {
  background-color: #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2c3e50; /* Bleu foncé */
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.rounded-button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.rounded-button:hover {
  background-color: #0056b3;
}


.map-container {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px auto;
  max-width: 90%;
}


#mapid {
  height: 600px;
  border: 2px solid #2a3d66; /* Dark blue */
  border-radius: 8px;
}

#boutonRetour {
  margin-right: 100%;
  padding: 10px 20px;
  font-size: 16px;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#boutonRetour:hover {
  background-color: #0056b3;
}

footer {
  background: #2c3e50; /* Bleu foncé */
  color: #fff;
  text-align: center;
  padding: 20px 0;
  bottom: 0;
  width: 100%;
  margin-top: 20px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.footer-content p {
  margin: 0;
  line-height: 1.6;
}

.footer-content a {
  color: #3498db; /* Bleu clair */
  text-decoration: none;
}


@media (min-width: 768px) {
  .header-content {
    justify-content: flex-start;
    text-align: left;
  }

  header h1 {
    margin-right: 20px;
  }

  .search-container input {
    width: 500px;
  }
}
