* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  color: #333;
  background-color: #f0f4f8;
}

header {
  background: #257ce0;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header h1, header a {
  text-decoration: none;
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

main {
  flex: 1; /* prend tout l'espace restant */
  max-width: 85%;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-weight: bold;
}

input[type="text"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  padding: 0.6rem 1rem;
  background-color: #257ce0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #64aef8;
}

#weather p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

#weather h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: white;
  font-size: 0.9rem;
}

.juriLinks {
  text-decoration: none;
  color: white;
}

/* Tablette + (≥ 600px) */
@media (min-width: 600px) {
  main {
    max-width: 700px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 2rem;
  }

  button {
    font-size: 1.1rem;
  }
}

/* Desktop + (≥ 900px) */
@media (min-width: 900px) {
  main {
    max-width: 1000px;  /* plus large pour grand écran */
  }

  form {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  input[type="text"] {
    flex: 1;
  }

  button {
    padding: 0.7rem 1.2rem;
  }
}

/* Très grand desktop + (≥ 1400px) */
@media (min-width: 1400px) {
  main {
    max-width: 1000px;  /* sections prennent presque toute la largeur */
  }
}
