/* RESET & STICKY FOOTER SETUP */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
  background: #f3f3f3;
  overflow-x: hidden; /* Pour éviter un scroll horizontal parasite */
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #9E9E9E;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffde59;
}

.nav-links a.active {
  color: #ffde59;
}

/* HERO (Accueil) */
.hero {
  position: relative;
  min-height: 60vh;
  /* Image locale dans le dossier images */
  background: url("images/hero2.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-overlay {
  background-color: rgba(158, 158, 158, 0.6) !important;
  color: #fff;
  padding: 2rem;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.hero-overlay h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.btn-cta {
  background: #c5840c;
  color: #333;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-cta:hover {
  background: #ffc107;
}

/* HERO (Contact) */
.hero-contact {
  position: relative;
  min-height: 40vh;
  /* Image locale pour la page contact */
  background: url("images/hero2.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-contact-overlay {
  background-color: rgba(158, 158, 158, 0.6);
  color: #fff;
  padding: 2rem;
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.hero-contact-overlay h1 {
  font-size: 2rem;
}

/* MAIN CONTENT (flex: 1 => pousse le footer en bas) */
main {
  flex: 1 0 auto;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 5px;
}

/* SERVICES */
.services {
  text-align: center;
  margin-bottom: 2rem;
}

.services h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #333;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center; /* Centrer l'image et le texte */
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #c5840c;
}

.card p {
  font-size: 0.95rem;
}

.service-note {
  font-style: italic;
  margin: 0.5rem 0;
}

/* CONTACT INFO */
.contact-info {
  margin-top: 2rem;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* FORM SECTION */
.form-section h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.form-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Centrer et limiter la largeur du formulaire */
.form-section form {
  max-width: 500px;
  margin: 0 auto;
}

/* Champs plus grands et pleine largeur */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

/* Bouton stylé */
.btn-submit {
  background: linear-gradient(to right, #ffde59, #ffc107);
  color: #333;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s;
  margin-top: 1rem;
}

/* Bouton désactivé (avant reCAPTCHA) */
.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-submit:hover:enabled {
  background: linear-gradient(to right, #ffc107, #ffb200);
}

/* FOOTER (sticky) */
footer {
  flex-shrink: 0;
  background: #9E9E9E;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }



  .hero-contact {
    min-height: auto;
    padding: 2rem 0;
  }
  .hero-contact-overlay h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  /* Grille de services : 1 colonne en mobile */
  .cards {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Réduction du reCAPTCHA en mobile */
  .g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
  }

  /* Réduction des marges de main pour éviter tout débordement */
  main {
    margin: 1rem auto;
    padding: 1rem;
  }
}
