/*
        Auteur: Cléa Egger
        Date: 6 décembre 2024
        Description: les différent styles de mon projet
*/

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  text-align: center;
  padding: 20px;
  border-bottom: 2px solid #ccc;
}

header .logo img {
  width: 80px;
  height: auto;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #333;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

main {
  padding: 20px;
  text-align: center;
}

main section img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
}

div>img {
  height: 150px;
  width: auto;
  padding: auto;
}

.idoles {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.item.reverse {
  flex-direction: row-reverse;
}

.item img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.item p {
  flex: 1;
  text-align: justify;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #1e3c72;
  color: white;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #fff;
}

th,
td {
  text-align: center;
  padding: 12px;
  border: 1px solid #ddd;
}

th {
  background-color: #186abd;
  color: #fff;
}

tr:nth-child(even) {
  background-color: #b7c9fa;
}

tr:hover {
  background-color: #f1f1f1;
}

.calendar {
  margin: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #003366;
  margin-bottom: 20px;
}

main {
  padding: 20px;
  text-align: center;
}

main section img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
}

div>img {
  height: 150px;
  width: auto;
}

.idoles {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.item.reverse {
  background-color: rgb(138, 189, 240);
  flex-direction: row-reverse;
}

.item img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.item p {
  flex: 1;
  text-align: justify;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #1e3c72;
  color: white;
  margin-top: 20px;
}

.calendar {
  margin: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results,
.ranking {
  margin: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .idoles {
    flex-direction: column;
  }

  .item {
    flex-direction: column;
    text-align: center;
  }

  .item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .item img {
    width: 95%;
    max-width: 150px;
  }

  header {
    padding: 10px;
  }

  nav ul li {
    margin: 0 10px;
  }

  .item p {
    font-size: 12px;
  }

  footer {
    padding: 5px;
  }
}