body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-image: url('../IMG/ECRAN.jpg'); /* adapte le chemin si nécessaire */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.titre-principal {
	position: fixed;
	text-align: center;
	padding: 40px 20px 0 20px; /* padding-bottom mis à 0 */
	font-size: 1.8em;
	color: #2980B9;
	width: 100%;
	margin: 0;
	position: relative;
	z-index: 2;
	visibility: visible;
}

.titre-principal h1,
.titre-principal h2 {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.slogan {
  color: #2c3e50; /* gris très foncé, élégant et lisible */
  text-align: center;
  font-weight: normal;
  margin: 20px 0;
}

header {
  background-image: url('../IMG/INDEX.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  width: 100%;
  aspect-ratio: 16 / 9; /* adapte selon le format réel de ton image */
  margin: 0;
  padding: 0;
  border: none;
  height: 300px; /* test temporaire */
}

.intro {
  padding: 10px;
  text-align: center;
}

.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #2980b9;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

main {
  margin-top: 10px; /* hauteur totale du bloc fixe */
  padding: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
}

.service-box {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* assombrit l'image pour lisibilité */
  z-index: 1;
}

.service-box:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.service-box .label {
  position: relative;
  z-index: 2;
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

/* Images spécifiques */
.familiale {
  background-image: url('../IMG/familiale.jpg');
}

.fonciere {
  background-image: url('../IMG/fonciere.png');
}

.successorale {
  background-image: url('../IMG/successorale.jpg');
}

.produits {
  background-image: url('../IMG/produits.jpg');
}

footer {
  background-color: rgba(255, 255, 255, 0.8); /* fond clair semi-transparent */
  color: #2c3e50;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  border-top: 1px solid #ccc;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-nav {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #2980b9;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #3498db;
}

.credit {
  font-size: 0.8em;
  color: #666;
  margin-top: 10px;
}



@media screen and (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
