body {
  font-family: "Lato", sans-serif;
  box-sizing: content-box;
  word-wrap: break-word;
  word-break: break-all;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

p {
  width: 100%;
  padding: 20px;
  word-break: break-word;
  white-space: normal;
  margin: 0;
}

ul.entete {
  list-style: none;
  background-color: #fad7a0;
  display: flex;
  justify-content: space-between;
  padding: 1.5% 0;
  margin: 0;
  width: 100%;
}

ul.entete li {
  flex-grow: 1;
  text-align: center;
}

ul.entete li a {
  text-decoration: none;
  color: black;
  font-size: 23px;
}

ul.entete li a:hover {
  color: gray;
}

.visible {
  opacity: 1;
}

noscript p {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  position: sticky;
  top: 0;
}

#message {
  z-index: 1500;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: none;
  position: sticky;
  top: 4.1em;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  top: 0;
}

#message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  top: 0;
}

#message.visible {
  opacity: 1;
}

footer {
  background-color: #fce5d1;
  padding: 0;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.login-form, .sources {
  flex: 1;
  text-align: center;
}

.login-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sources ul {
  list-style-type: none;
  padding: 0;
}

.sources ul li {
  margin: 5px 0;
}

.sources ul li a {
  color: #007bff;
  text-decoration: none;
}

.sources ul li a:hover {
  text-decoration: underline;
}

footer input[type="submit"] {
  width: 50%;
  background-color: #fad7a0;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

footer input[type="submit"]:hover {
  background-color: #f2f2f2;
}

footer input {
  width: 50%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

footer input:focus {
  border-color: #fad7a0;
  outline: none;
}

.centre_gauche, .centre_droit {
  display: flex;
  word-break: break-word;
  white-space: normal;
  align-items: center; 
  justify-content: space-between; 
  padding: 20px;
}

.centre_droit {
  background-color: #f2f2f2;
}


.centre_gauche img {
  border: 0.3em solid #fad7a0;
  border-radius: 0.3em;
  width: 30%;
  height: 30%;
}

.centre_droit img {
  border: 0.3em solid #fad7a0;
  border-radius: 0.3em;
  width: 30%;
  height: 30%;
  order: 2;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Cache la sidebar par défaut */
  height: 100%;
  width: 250px;
  background-color: #f4f4f4;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-x: hidden;
}

.sidebar.open {
  left: 0; 
}

.sidebar-nav ul {
  list-style-type: none;
  padding: 0;
}

.sidebar-nav ul li {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.sidebar-nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
}

.sidebar-nav ul li a:hover {
  color: #555;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}


.centre_gauche p, .centre_droit p {
  flex: 1; 
  text-align: center;
}

#openBtn {
    width: 1.7em; 
    height: 1.7em; 
    background-color: #fad7a0; 
    color: white; 
    border: none;
    font-size: 1.7em; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: sticky;
    top: 0;
}


.table {
  width: 50%;
  margin: 0 auto;
  padding: 1em;
  padding-left: 10em;
  border-collapse: collapse;
  text-align: center;
  border: 0.1em solid black;
}

.table th,td{
  border: 0.1em solid black;
}

#openBtn:hover {
    background-color: #fce5d1;
    color: black;
}

/* Media Query pour les tablettes */
@media (max-width: 768px) {
  nav.barreNav {
    font-size: 14px;
  }

  ul.entete {
    flex-direction: column;
    padding: 5% 0;
  }

  ul.entete li a {
    font-size: 20px;
  }

  #message {
    top: 3em;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  footer input[type="submit"], footer input {
    width: 70%;
  }

  .sidebar {
    width: 200px;
  }

  .sidebar-nav ul li {
    padding: 12px 15px;
    font-size: 16px;
  }
}

/* Media Query pour les mobiles */
@media (max-width: 480px) {
  nav.barreNav {
    font-size: 12px;
  }

  ul.entete {
    padding: 7% 0;
  }

  ul.entete li a {
    font-size: 18px;
  }

  #message {
    top: 2em;
  }

  .footer-content {
    padding: 5px;
  }

  footer input[type="submit"], footer input {
    width: 100%;
  }

  .sidebar {
    width: 150px;
  }

  .sidebar-nav ul li {
    padding: 10px 10px;
    font-size: 14px;
  }
}

