/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* Layout */
.header {
  background-color: #004d40;
  color: #fff;
  padding: 1rem 1.5rem;
  text-align: center;
}

.header h1 {
  margin-bottom: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.nav-links a {
  color: #e0f2f1;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro {
  text-align: center;
  margin-bottom: 2rem;
}

.intro h2 {
  font-size: 1.8rem;
  color: #00695c;
  margin-bottom: 1rem;
}

.outils h3 {
  margin-bottom: 1rem;
  color: #00796b;
}

.outils-list {
  list-style: none;
  padding-left: 0;
}

.outils-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.outils-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.8rem;
  height: 0.8rem;
  background-color: #00796b;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.outils-list li:hover::before {
  transform: scale(1.3);
  background-color: #004d40;
}

.outils-list a {
  text-decoration: none;
  color: #004d40;
  font-weight: 500;
  transition: color 0.3s ease;
}

.outils-list a:hover {
  color: #00796b;
}

.footer {
  background-color: #004d40;
  color: #e0f2f1;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .intro h2 {
    font-size: 1.4rem;
  }

  .main {
    padding: 0 0.5rem;
  }

  .calc-form {
    padding: 1rem;
  }

  .canvas-style {
    width: 100%;
    height: auto;
  }
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 0.4rem;
}

input[type="number"] {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.btn {
  background-color: #00796b;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #004d40;
}

.result-box {
  margin-top: 2rem;
  padding: 1rem;
  background: #e0f2f1;
  border-radius: 0.5rem;
  color: #004d40;
}

.result-content h3 {
  margin-bottom: 0.5rem;
}

.canvas-style {
  margin-top: 1.5rem;
  max-width: 100%;
  border: 1px dashed #ccc;
  border-radius: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.highlight-card {
  background: #fff;
  border: 2px solid #007B83;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.highlight-card h3 {
  margin-top: 0;
  color: #007B83;
  font-size: 1.3rem;
}

.highlight-card ul {
  list-style-position: inside;
  padding-left: 0;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 1rem;
  margin: auto;
}

.search-container {
  margin-bottom: 2rem;
}

.search-container input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 2px solid #007B83;
  border-radius: 25px;
  outline: none;
  transition: 0.3s;
}

.search-container input:focus {
  border-color: #005f66;
  box-shadow: 0 0 8px rgba(0,123,131,0.3);
}

table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

th {
  background: #007B83;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

tr:hover {
  background-color: #f1f1f1;
}

/* Limite la taille des images sur grands écrans */
@media screen and (min-width: 768px) {
  img {
    max-width: 50%;
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
}

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

h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  margin: 20px;
}

.question {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.response button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.response button:hover {
  background-color: #0056b3;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  position: fixed;
  width: 100%;
  bottom: 0;
}

