* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* * {
  outline: 1px solid red; /* Visualiser tous les éléments pour le débogage 
} */

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  display: grid;
  grid-template-rows: auto 1fr auto; 
  min-height: 100vh;
}

header {
  width: 100%;
  background-color: rgb(40, 98, 136);
  padding: 20px 0;
  text-align: center;
}

h1 {
  color: rgb(0, 0, 0);
  font-size: 2rem;
  margin: 10px 0; 
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  background-color: rgb(40, 98, 136);
  font-size: 18px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: rgb(25, 80, 110);
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 80vh;  
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
}

.box {
  width: 300px;
  height: 200px;
  background-color: rgb(40, 98, 136);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.box a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: 0.3s;
}

.box a:hover {
  color: black;
}

button {
  background-color: rgb(8, 146, 100);
  color: white;
  border: none;
  border-radius: 5px !important;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: rgb(5, 120, 85); 
}

.conteneur {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.conteneur div {
  background-color: #e8e8e8;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.conteneur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  width: 100%;
  background-color: #286288;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: auto; 
}


@media screen and (max-width: 1280px) {
  .conteneur {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .conteneur {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .conteneur {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
