* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

header {
  background: #232f3e;
  padding: 20px 0;
  color: white;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 28px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f39c12;
}

.brochure-btn {
  background-color: #27ae60;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.brochure-btn:hover {
  background-color: #219150;
}

.hero {
  position: relative;
  background: url('images/chantier1.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  background: #f39c12;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #d98c10;
}

.section {
  padding: 60px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.services-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-card {
  background: white;
  padding: 20px;
  border-left: 5px solid #f39c12;
  width: 280px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.bg-grey {
  background: #eaeaea;
}

.before-after-wrapper {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.before img,
.after img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 1s ease, transform 0.5s ease;
}

.after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
}

.after img:first-child {
  filter: none;
}

.logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

.avis-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.avis-card {
  background: white;
  border-left: 4px solid #f39c12;
  padding: 20px;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 6px;
}

.quote {
  font-style: italic;
  color: #444;
  margin-bottom: 10px;
}

.author {
  font-weight: bold;
  color: #333;
  text-align: right;
}

form input, form textarea, form select {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ... (styles précédents inchangés) ... */

#resultat {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#resultat.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Footer infos */
footer {
  background: #232f3e;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 15px;
}

footer p.info {
  margin-top: 10px;
  color: #bbb;
}

.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.stars input {
  display: none;
}

.stars label {
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: #f39c12;
}

.before-after-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.before-after-container {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.before-img,
.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
  border-radius: 10px;
}

.after-img {
  opacity: 0;
}

.before-after-container:hover .after-img {
  opacity: 1;
}

.before-after-container:hover .before-img {
  opacity: 0;
}

.logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  z-index: 3;
  pointer-events: none;
}

.realisation-split {
  display: flex;
  justify-content: center;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  gap: 4px; /* petite séparation visible */
}

.split-image {
  width: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 400px; /* Limite la hauteur à 400px */
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: filter 0.5s ease;
}

.logo-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 768px) {
  .realisation-split {
    flex-direction: column;
    gap: 0;
  }

  .split-image {
    width: 100%;
    height: auto;
  }

  .logo-centre {
    width: 60px;
  }
}

.hero {
  position: relative;
  background: url('images/chantier1.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  min-height: 400px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* fondu sombre */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}
