html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #333333;
}
header {
  position: relative;
  background: url('img/background-toiture.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 20px 60px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
a{
	color:white !important
}
.logo-container {
  position: relative;
  margin-bottom: 20px;
  z-index: 2;
}
.logo-container img {
  height: 70px;
}
header h1, header p, header a {
  position: relative;
  z-index: 2;
}
header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
header p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}
.btn-primary {
  background: #a71930;
  color: #ffffff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  max-width: 300px;
  text-align: center;
  margin: 20px auto 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: #c82333;
}
.section {
  padding: 60px 20px;
  max-width: 1140px;
  margin: auto;
}
.services, .engagements, .faq, .garantie {
  background: lightgray;
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 40px;
}
@media (max-width: 768px) {
	.services{
			margin: -63px 27px 0 37px
	}
}
h2 {
  color: #0c2946;
  font-size: 2.2rem;
  margin-bottom: 20px;
}
p {
  font-size: 1.2rem;
  line-height: 1.7;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-item, .engagement-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.galerie-chantier {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 30px;
}
.galerie-chantier img {
  width: 100%;
  border-radius: 8px;
}
.faq-item {
  margin-bottom: 30px;
}
.faq-item strong {
  display: block;
  color: #a71930;
  margin-bottom: 8px;
  font-size: 1.3rem;
}
footer {
  background: #0c2946;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}
footer .logo-footer img {
  height: 50px;
  margin-bottom: 10px;
}
form {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
}
input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  background: #a71930;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background: #c82333;
}
.garantie-logo {
  width: 120px;
  display: block;
  margin: 0 0 20px 0;
}
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  header {
    padding: 60px 10px;
    min-height: 350px;
  }
  header h1 {
    font-size: 2.2rem;
  }
  header p {
    font-size: 1.1rem;
  }
}


/* Avis clients */
.avis {
  background: #f5f5f5;
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 40px;
  text-align: center;
}
.note-globale {
  margin-bottom: 20px;
}
.etoiles {
  font-size: 2rem;
  color: #ffc107;
  display: block;
}
.moyenne {
  font-weight: bold;
  margin-top: 5px;
}
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.avis-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.texte-avis {
  font-style: italic;
}
.auteur-avis {
  margin-top: 10px;
  font-weight: bold;
  color: #0c2946;
}


/* Ajustement marges hautes/basses pour meilleure fluidité */
header {
  padding: 80px 20px 40px 20px;
}
.section.seo-local {
  margin-top: 20px;
}


/* Topbar bandeau fixe */
.topbar {
  background-color: #121212;
  color: white;
  font-size: 0.95rem;
  padding: 8px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}
.topbar .phone a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
}
.topbar .phone a:hover {
  text-decoration: underline;
}
header {
  margin-top: 50px; /* Décale le header à cause de la topbar */
}
@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    text-align: center;
  }
  .topbar .phone {
    margin-top: 5px;
  }
}


/* Correction Topbar premium */
.topbar {
  background-color: #121212;
  border-bottom: 1px solid #a71930;
  color: white;
  font-size: 1rem;
  padding: 12px 20px;
  height: 48px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.topbar .phone a {
  white-space: nowrap; /* NE PAS couper sur 2 lignes */
  font-size: 1rem;
}

@media (max-width: 600px) {
  .topbar .phone a {
    font-size: 0.9rem; /* légèrement réduit pour éviter la cassure */
  }
}
header {
  margin-top: 48px; /* Décalage exact de la topbar */
}
.topbar-content {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar .phone a {
  color: #ffcc00 !important;
  text-decoration: none;
  font-weight: bold;
}
.topbar .phone a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .topbar {
	  height: 78px;
	  width:auto;
  }
  .topbar-content {
    flex-direction: column;
    text-align: center;
	padding: 1px 0 0px 0;
	width: 80%;
  }
  .topbar .phone {
    margin-top: 8px;
  }
  .band-intro,
  .container { 
	width: auto !important;
  }
  .band-intro p{
	  max-width: 590px;
  }
}
@media (max-width: 520px) {
	.slogan{
		font-size: 13px;
	}
}
 
/* Hero subtext sur image */
.hero-subtext {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  margin: 20px auto 0 auto;
  max-width: 800px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
}


/* Bandeau Intro après Hero */
.band-intro {
  background-color: #121212;
  color: white;
  text-align: center;
  padding: 30px 20px;
}
.container-why {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}

.why-image {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.why-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.why-image:hover img {
  transform: scale(1.02);
}

.overlay {
  position: relative;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  width: 96%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 12px;
  text-align: center;
  padding: 5px 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.why-text {
  flex: 1;
}


/* Correction bandeau intro full width */
.band-intro {
  background-color: darkslategrey;
  color: white;
  text-align: center;
  padding: 30px 20px;
  width: 100%;
}
.band-intro p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

.container-why {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px;
}

.why-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.why-text {
  flex: 1;
}

@media (max-width: 768px) {
  .container-why {
    flex-direction: column;
  }
  .why-image img {
    max-width: 100%;
  }
}

/* Animation fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


