/* 1)Global style */ 

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

body {
  background-color: rgb(221, 221, 221);
}

h2{
  font-size: 1.5rem;
}

main {
  margin-top: 30px;
}

section {
  background-color: white;
  padding: 20px;
  margin-bottom:10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin: 20px;
}

/* 2)Titre*/ 

header {
  background-color: #0077cc;
  color: white;
  padding: 20px;
  text-align: center;
}

nav ul {
  list-style:none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  text-decoration: none;
}

nav a {
  color: white;
  font-weight: bold;
}

footer {
  background-color: #0077cc;
  color: white;
  text-align: center;
  padding: 5px;
  bottom: 0%;
  width: 100%;
  font-size: 0.8rem;
}
  
ul {
  margin: 30px;
}


form {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

fieldset {
  border: none ;
  margin-bottom: 20px;
}

legend {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  color: #555;
}

input[type="text"],
input[type="e-mail"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="radio"] {
  margin-right: 8px;
}

input[type="submit"] {
  background-color: #0078D7;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 10px;
}

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

.conteneur {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  max-width: 1200px;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

}

.conteneur img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.conteneur img:hover {
  transform: scale(1.03);
}