/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arial', sans-serif;
  background: url('images/hero-eau.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.8);
}
.navbar a {
  color: #0077cc;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}
.navbar a:hover {
  color: #005fa3;
}
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}
.hero-content h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 5px black;
  margin-bottom: 20px;
}
.btn {
  background-color: #0077cc;
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background-color: #005fa3;
}
.section {
  background: rgba(255, 255, 255, 0.85);
  margin: 50px 20px;
  padding: 50px 20px;
  border-radius: 20px;
}
.section h2 {
  font-size: 2.5rem;
  color: #0077cc;
  margin-bottom: 40px;
}
.grid-3, .grid-4 {
  display: grid;
  gap: 30px;
  padding: 20px;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.card, .product-card, .testimonial-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}
.card .icon {
  font-size: 3rem;
  margin-bottom: 10px;
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.cta-section {
  text-align: center;
  background: rgba(0, 119, 204, 0.9);
  color: white;
  padding: 50px 20px;
  margin: 50px 20px;
  border-radius: 20px;
}
.cta-section .btn {
  background: white;
  color: #0077cc;
  margin-top: 20px;
}
.cta-section .btn:hover {
  background: #f0f0f0;
}
.footer {
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #555;
}
/* Grande image sous le titre */
.main-photo {
  text-align: center;
  margin-top: 20px;
}
.main-photo img.img-large {
  max-width: 45%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 40px;
}

/* Galerie de petites images */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.photo-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.site-by {
  color: #0077cc;
  text-decoration: underline;
  font-weight: bold;
}

.site-by:hover {
  color: #005fa3;
  text-decoration-thickness: 2px;
}

/* Cible uniquement iPhone / iOS */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-device-width: 768px) {
    body {
      background-attachment: scroll !important; /* corrige fond figé */
      -webkit-text-size-adjust: 100%; /* empêche le zoom auto sur texte */
    }

    .hero {
      min-height: 100vh; /* force le calcul correct sur iOS */
    }

    .btn {
      font-size: 1rem;
    }

    input, select, textarea {
      font-size: 16px; /* empêche le zoom auto sur les champs */
    }
  }
}
.icon img {
  width: 50px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
