main {
  color: #1E1E1E;
}

#pre-main {
  color: #1E1E1E;
  width: 100%;
  height: auto;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.details-container {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  gap: 2rem;
  width: 100%;
  height: auto;
}

.details {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90vw;
  max-width: 600px;
  min-height: 500px; 
  padding: 1.5rem;
  color: #1E1E1E;
  background-color: #fff;
  border-radius: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.details:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.details-img {
  width: 100%;
  max-height: 300px;   
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.details-img img {
  width: auto;
  max-height: 250px;    
  object-fit: contain;
}


.numbers p {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #2e8d41; 
}

.details-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details-text h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
}

.details-text p {
  margin: 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 500px) {
  .details {
    min-height: auto;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .details-img img {
    max-height: 150px;
  }

  .numbers p {
    font-size: 1.5rem;
  }

  .details-text h4 {
    font-size: 1rem;
  }

  .details-text p {
    font-size: 0.9rem;
  }
}



@media (min-width: 600px) {
  .details-container {
    flex-direction: row; 
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .details {
    width: 45vw;
    min-width: 200px;
    max-width: 350px;
  }

  .details-text h4 {
    font-size: 1.1rem; 
  }

  .details-img {
    max-height: 230px; 
  }
}

@media (min-width: 1024px) {
  #pre-main {
    height: 50vw; 
  }

  .details-container {
    flex-direction: row; 
    justify-content: space-evenly; 
  }

  .details {
    width: 25vw; 
    min-width: 250px;
    max-width: 350px;
    height: 30vw;
  }

  .details-text h4 {
    font-size: 1.2rem; 
  }

  .details-img {
    max-height: 250px;
  }
}

.numbers{
  position: absolute;
  font-size: 3rem;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 3rem;
  color:#1E1E1E;
  font-weight: 600;
}

#main-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(60deg, white, rgb(145, 210, 224));
  
}

#main-page img,
#main-page video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.specific-text {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 10% 2rem 2rem 2rem;
  max-width: 45%;
  z-index: 1;
}

.specific-text h1 {
  font-size: 3vw;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.specific-text p{
  font-size: 1.1rem;
}

.specific-text ul {
  margin: 2rem 0;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.buttonOne,
.buttonTwo {
  display: inline-block;
  padding: 1.3rem 1.5rem;
  min-width: 220px;
  border-radius: 25px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in;
}

.buttonOne, .buttonTwo {
    font-size: 1.2rem;
}

.buttonOne {
  border: 2px solid #27b35a;
  background-color: #27b35a;
  color: white;
}

.buttonOne:hover {
  background-color: white;
  color: #27b35a;
}

.buttonTwo {
  border: 2px solid #27b35a;
  background-color: white;
  color: #27b35a;
}

.buttonTwo:hover {
  background-color: #27b35a;
  color: white;
}

#priceN {
  color: #1E1E1E;
  margin-bottom: 2rem;
}

.price {
  text-align: center;
  margin-bottom: 8rem;
  
}

.price p {
  margin-bottom: 3rem;
  color: red;
}

.real-price {
  font-size: 5rem;
}

#next-main{
  display: flex;
  flex-direction: column;
  background-color: #1E1E1E;
  height: 40vw;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.demo-rahona h3{
  font-size: 3rem;
  padding: 2rem;
}

.detail-video {
    display: flex;
    align-items: center;
    width: 70%;
    height: 80%;
}

.detail-video iframe {
    border-radius: 15px;
    width: 100%;
    height: 100%;
}

.specifics{
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.specifics h2{
  color: #1E1E1E;
  font-size: 5rem;
  font-weight: 500;
}

.produits-images{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 100%;
}

.produits-images img{
  width: 250px;
}

span{
  font-weight: bold;
}

/* Responsive rahona*/
@media (max-width: 768px) {
  .specific-text {
    position: static;
    transform: none;
    max-width: 100%;
    padding: 2rem 1rem;
    background-color:#1E1E1E;
    color: white;
    border-radius: 0;
  }

  #main-page img {
    height: auto;
  }

  .specific-text h1 {
    font-size: 1.8rem;
  }

  .specific-text p{
    font-size: 1rem;
  }

  .buttons-container {
    justify-content: center;
  }

  .buttonOne, .buttonTwo {
    min-width: 160px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .buttonTwo{
    border: 2px solid white;
  }

  .specifics h2{
    font-size: 3rem;
  }

  #next-main{
    height: 400px;
  }
}

@media (max-width: 480px) {
  #pre-main {
    height: auto;
    margin-bottom: 3rem;
  }

  .details {
    width: 90%;
    height: auto;
  }

  .specific-text {
    padding-top: 4rem;
  }

  .specific-text h3 {
    font-size: 6vw;
  }

  .specific-text p, .specific-text ul{
    font-size: smaller;
  }

  .buttons-container {
    justify-content: center;
  }
  
  .buttonOne, .buttonTwo{
    font-size: smaller;
  }

  .price{
    font-size: smaller;
  }

  .specifics h2, .demo-rahona h3{
    font-size: 2rem;
  }

  #next-main{
    height: 350px;
  }

  .detail-video{
    width: 100%;
    
  }

  .details-img iframe{
    
  }

}
