/*Yann Aebischer
12.01.2026
La il y a tout les objets que ils y a sur tout les pages*/
body {
  /*change la couleure de l'arriere plan + enleve les marge de la page*/
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: white;
}

main {
  /*crée des marges pour que les texte soit  pas colller trop pres*/
  margin-left: 100px;
  margin-right: 100px;
}

header,
footer {
  background-color: #D7141C;
  color: white;
  text-align: center;
}

#Logo {
  /*platztiert das logo am richtigen ort*/
  float: left;
  height: 144.4px;
  display: inline-block;
}

h1 {
  display: inline-block;
}

h2 {
  text-align: center;
  font-size: 300%;
}

h3 {
  font-size: 100%;
}

.barre_de_navigation {
  /*place la barre parfaitement en place*/
  color: white;
  padding: 15px;
  text-decoration: none;
  /*https://www.w3schools.com/html/html_links_colors.asp*/
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.pied {
  color: white;
  text-decoration: none;
  /*https://www.w3schools.com/html/html_links_colors.asp*/
}

.table {
  display: flex;
  gap: 20px;
}

.table table {
  border-collapse: collapse;
  width: 100%;
}

/* Tout ce qui est en lien avec le mode sombre à été crée par une cooperation entre ChatGBT et endti
mes.dev(https://endtimes.dev/no-javascript-dark-mode-toggle/)*/
.darkmode-switch {
  position: absolute;
  top: 10px;
  right: 10px;
}

.darkmode-switch label {
  background: #ddd;
  padding: 8px 15px;
  border-radius: 5px;
}

#color-mode {
  display: none;
}

#color-mode:checked+.color-scheme-wrapper {
  background: black;
  color: white;
}

#color-mode:checked+.color-scheme-wrapper .darkmode-switch label {
  background: black;
  color: white;
}

@media screen and (max-width: 735px) {

  /*fait que sur un Natel nous avons une autre affiche comme la barre de navigation nêst pas en lign
  e mais en collone*/
  #Logo {
    display: none;
  }

  main {
    margin-left: 50px;
    margin-right: 50px;
  }

  .barre_de_navigation {
    display: flex;
    flex-direction: column;
  }

  @media screen and (max-width: 500px) {
    main {
      margin-left: 20px;
      margin-right: 20px;
    }
  }
}