* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.rtx-section {
  order: -1;
  margin-bottom: 40px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f0f0f;
  padding: 40px 20px;
  color: #fff;
  padding-top: 70px;
}

.header {
  background-color: #a4e5a0;
  padding: 20px 30px;
  text-align: center;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 36px;
  color: #1d421d;
}

.images-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.image-row {
  display: flex;
  justify-content: center;
}

.image-row.left {
  justify-content: flex-start;
}

.image-row.right {
  justify-content: flex-end;
}

.image-row img {
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  background: white;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-row img:hover {
  transform: scale(1.07);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.rtx-section {
  margin-top: 80px;
  text-align: center;
}

.rtx-section h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #a4e5a0;
}

.minia {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  margin-bottom: 40px;
}

.comparison-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.comparison-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.img-compare {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: ew-resize;
}

.img-wrapper {
  background-size: cover;
  background-position: center;
  height: 100%;
  position: absolute;
  top: 0;
}

.left-img {
  left: 0;
  width: 100%;
  clip-path: inset(0 50% 0 0);
  z-index: 1;
}

.right-img {
  left: 0;
  width: 100%;
  clip-path: inset(0 0 0 50%);
  z-index: 2;
}

.slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 3;
}

.handle {
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: #a4e5a0;
  color: #1d421d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  user-select: none;
}

.btn-accueil {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #70d6ff;
  color: white;
  padding: 10px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accueil:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
