h2.title {
  text-align: center;
  margin: 40px 0 50px;
  font-size: 2.5em;
}

h2{
	font-size: 1.5em;
	margin-top: 100px;
}

#text-centre{
	text-align: center;
}

.produits {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 60px;
}

/* ✅ Grille avec 3 colonnes */
.grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
	margin-bottom: 50px;
	margin-top: 50px;
}

.produit {
  text-align: center;
}

.carre {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease; 
}

.carre:hover {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
	background-color: #1d1d1d;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  line-height: 1.4em;
}

.carre:hover .overlay {
  opacity: 0.85;
}

.carre:hover .overlay p{
  opacity: 1;
}

h3 {
  margin-top: 15px;
  font-size: 1.1em;
}

/* 🟨 Produit "mis en avant" = 2 colonnes */
.produit-large {
  display: flex;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  grid-column: span 2;
  height: 100%;
  min-height: 100%;
}

.visuel-gauche {
  width: 56%;
  min-height: 100%;
}

.texte-droite {
  padding: 32px;
  display: flex;
  flex-direction: column;
  width: 60%;
	gap: 16px;
}

.texte-droite h3 {
  margin: 0 0 10px;
  font-size: 1.5em;
}

.texte-droite p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5em;
}

.produit-large,
.produit {
  min-width: 0; 
}



.devis {
	margin-bottom: 100px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 763px) {
  /* ✅ Responsive tablette : 2 colonnes */
@media (max-width: 900px) {
  .grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .produit-large {
    grid-column: span 2;
    flex-direction: row;
  }

  .visuel-gauche {
    width: 40%;
    height: auto;
  }

  .texte-droite {
    width: 60%;
  }
}

@media (max-width: 600px) {
  .grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .produit-large {
    all: unset;
    display: block;
    background: none;
  }

  .produit-large .visuel-gauche {
    display: none; 
  }

  .produit-large .texte-droite {
    padding: 0;
    text-align: center;
  }

  .produit-large .texte-droite h3 {
    font-size: 1em;
    margin: 10px 0 5px;
  }

  .produit-large .texte-droite p {
    display: none; 
  }

  .produit-large {
    position: relative;
    background-color: #d3d3d3;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
  }

  .produit-large::before {
    content: '';
    display: block;
    padding-top: 100%; 
  }

  .produit-large .texte-droite {
    position: absolute;
    inset: 0;
    padding: 20px;
    color: white;
    background: rgba(0,0,0,0.0);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .produit-large:hover .texte-droite {
    background: rgba(0,0,0,0.6);
  }

  .produit-large:hover .texte-droite p {
    display: block;
    font-size: 0.85em;
    margin-top: 8px;
    color: #fff;
    line-height: 1.4em;
  }

  .produit-large h3 {
    margin: 0;
    color: #fff;
  }
}



}

.overlay p{
	color: white;
}

.visuel-gauche img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#orange{
	background-color: #FDBD01;
}

#vert{
	background-color: #CEDC9D;
}

#mobile{
	display: none;
}

/* Version mobile */
@media (max-width: 768px) {
   .produit-large {
    display:none;
  }
	
	h2.title{
		display: block !important;
		font-size: 1.8em;
	}
	
	#mobile{
		display: block;
	}
}


.carre {
  position: relative;
  width: 100%;
  height: 300px; /* ajuste selon ta maquette */
  overflow: hidden;
}

.carre img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* garde les proportions */
  display: block;
}


.carre .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

