/* Feuille de styles pour curage-methanisation.fr */

:root {
  --main-color: #1e3a8a; /* bleu foncé */
  --hover-color: #3b82f6; /* bleu clair */
  --bg-color: #f2f6fc;
  --text-color: #1f2937;
  --title-color: #111827;
  --font-family: 'Inter', Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.7;
  font-size: 20px;
}

header, section, footer {
  padding: 60px 20px;
  max-width: 1080px;
  margin: auto;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header-text {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.header-text h1,
.header-text p,
.header-text button {
  text-align: left;
  margin: 0;
}

.header-text h1 {
  font-size: 34px;
  color: var(--title-color);
}

.header-text p {
  font-size: 20px;
}

.header-text button {
  margin-left: 0;
  align-self: flex-start;
}

.header-image {
  flex: 1 1 400px;
  text-align: center;
}

.header-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

h1, h2 {
  color: var(--title-color);
  margin-bottom: 24px;
  text-align: center;
}

ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

ul a {
  color: var(--main-color);
  text-decoration: none;
}

ul a:hover {
  text-decoration: underline;
}

button {
  background: var(--main-color);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  margin: 30px auto 0;
  display: block;
  transition: background 0.3s ease;
}

button:hover {
  background: var(--hover-color);
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: white;
}

form label {
  font-weight: 600;
}

footer {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  border-top: 1px solid #d1d5db;
}

/* Sticky Menu */
nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
  padding: 32px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

nav img.logo {
  height: 50px;
  width: auto;
}

nav a {
  margin: 0 16px;
  text-decoration: none;
  color: var(--main-color);
  font-weight: 600; 
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--hover-color);
}

/* Bloc Services */
#services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

#services .grid div {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.04);
  text-align: left;
}

#services h3 {
  font-size: 20px;
  color: var(--main-color);
  margin-bottom: 12px;
}

/* Bloc Avis */
#avis {
  background-color: #ffffff;
  padding: 60px 20px;
  max-width: 1080px;
  margin: auto;
}

#avis h2 {
  text-align: center;
  color: var(--title-color);
  margin-bottom: 16px;
}

#avis > p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-color);
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.avis-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
}

.avis-texte {
  font-style: italic;
  margin-bottom: 16px;
  font-size: 18px;
  color: #374151;
}

.avis-nom {
  font-weight: 600;
  color: #1f2937;
  text-align: right;
  font-size: 16px;
}

/* Bloc Zone */

#zone {
  background-color: var(--bg-color);
  padding: 60px 20px;
  max-width: 1080px;
  margin: auto;
  border-radius: 8px;
}

#zone h2 {
  text-align: center;
  color: var(--title-color);
  margin-bottom: 20px;
}

#zone > p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-color);
}

.zone-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto 30px;
  max-width: 800px;
}

.zone-list li {
  background-color: #e0e7ff; /* léger bleu pastel */
  border-left: 4px solid var(--main-color);
  padding: 14px 20px;
  margin-bottom: 12px;
  font-size: 17px;
  color: #1e293b;
  border-radius: 6px;
}


@media (max-width: 768px) {
  #avis > p {
    font-size: 16px;
  }

  .avis-texte {
    font-size: 16px;
  }

  .avis-nom {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .header-text h1,
  .header-text p,
  .header-text button {
    text-align: center;
    align-self: center;
  }

  header, section, footer {
    padding: 40px 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  button {
    width: 100%;
    padding: 16px;
  }

  nav a {
    display: inline-block;
    margin: 8px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  nav a {
    font-size: 14px;
  }
}
