body {
    margin: 0;
  }

section {
    font-family: inria sans, sans-serif;
  }
  
.header-container {
    display: flex;
    padding: 0.5rem 1rem;
    justify-content: space-between;
    align-items: center;
}
  
header {
    position: relative;
    z-index: 10;
    background: #293133;
    height: 120px;
    overflow: hidden;
}

header img {
    height: 60px;
    vertical-align: middle;
}
  
h1 {
    color:#293133;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color:#01D758;
    font-family: Inder;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
}

.logo-title {
    margin-left: 2rem;
    display: flex;
    align-items: flex-start;
    font-size: 50px;
    font-family: Inder, sans-serif;
    color: #293133;
    -webkit-text-stroke: 0.5px #01D758;
}

.ride {
    margin-top: 20px;
}

.icone {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-right: 2rem;
}

.head {
    position: relative;
    height: 500px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 6rem;
}

.big-image {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 700px;
    background-size: cover;
    background-position: bottom;
    filter: opacity(0.5);
    z-index: 0;
}

.head img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: bottom;
    display: block;
}
.overlay-1 {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.titre-trajet {
    font-size: 96px;
    color: black;
    font-family: inder, sans-serif;
    margin: 0;
}


.trajet img {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.infos-conducteur {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem; 
    position: relative;
    z-index: 5;
}

.info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.driver-photo {
    width: 250px; 
    height: 310px; 
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 300px; 
    z-index: 2;
}

.driver-photo img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.driver-info {
    background-color: #40E0D0;
    color: black; 
    padding: 10px 5px;
    border-radius: 15px;
    border: 1px solid black ;
    font-family: inria, sans-serif;
    font-size: 36px;
    width: 568px;
    height: 230px;
    display: flex;
    flex-direction: column;
    margin-left: 250%;
}

.name h3 {
    font-size: 36px;
    margin: 0;
    margin-left: 800%;
    font-family: inria sans, sans-serif;
}

.vehicle-info {
    margin-top: 10px;
    text-align: center;
}

.vehicle-info ul {
    padding-left: 0;
    list-style-type: none;
}

.vehicle-info p {
    margin-bottom: 10px;
}

.depart-arrivee {
    box-sizing: border-box;
    background-color: #048B9A;
    color: white;
    padding: 100px 20px;
    width: 100%;
    position: relative;
    margin-top: -80px; 
    z-index: 0;
    font-size: 36px;
    text-align: center; 
}

.depart-arrivee p {
    font-size: 36px;
    text-align: left;
}

.itineraire {
    text-align: center; 
    padding: 20px;
}

.avis {
    background-color: #40E0D0;
    color: black;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid black;
    font-size: 36px;
    width: 500px;
    height: 200px;
    position: absolute;
    z-index: 11;
    left: 50%;
    transform: translate(-50%);
}


.avis-content{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px;
    font-size: 20px;
    font-family: inria sans, sans-serif;
}

.avis svg {
    margin-right: 5px;
}

.avis-container {
    z-index: 10;
    position: relative;
    margin-top: -80px;
    margin-left: -400px;
    width: 100%;
    height: 80px;
}

.container-image {
    position: relative;
    width: 100%;
    margin-top: 0;
    z-index: 0;
}

.image-container img {
    width: 100%; 
    height: auto;
    display: block;
    transform: scaleX(-1);
}

.overlay-2 {
    position: absolute;
    top: -100%;
    left: 50%;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 12;
}

.participer-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 12;
}

.participer-btn {
    padding: 1.5rem;
    width: 300px;
    position: relative;
    z-index: 10;
    font-family: inria sans, sans-serif;
    background-color: #01D758;
    color: #293133;
    font-size: 26px;
    border: 1px solid #293133;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

footer {
    background-color: #293133;
    padding: 1rem 2rem;
    font-family: inder, sans-serif;
    color: white;
}

footer h1.footer-container {
    color: (#293133);
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #01D758;
    font-family: Inder, sans-serif;
    font-size: 40px;
    font-weight: 400;
    display: inline-flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
}

.planete-img {
    z-index: 10;
    width: 100%;
}

footer h1.footer-container img {
    height: 50px;
    vertical-align: middle;
}

footer h1.footer-container .ride {
    margin-top: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.email, .mentions{
    margin: 0;
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .logo-title {
    font-size: 32px;
    margin-left: 0;
  }

  header img {
    height: 40px;
  }

  .icone {
    margin-right: 0;
    margin-top: 1rem;
  }

  .titre-trajet {
    font-size: 36px;
    padding: 0 1rem;
  }

  .infos-conducteur {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
  }

  .driver-photo {
    position: static;
    width: 150px;
    height: 180px;
    box-shadow: none;
  }

  .driver-info {
    margin-left: 0;
    width: 100%;
    height: auto;
    padding: 20px;
    font-size: 20px;
  }

  .name h3 {
    font-size: 24px;
    margin-left: 0;
    text-align: center;
  }

  .depart-arrivee {
    padding: 2rem 1rem;
    font-size: 20px;
    text-align: center;
    margin-top: 1rem;
  }

  .avis {
    position: static;
    width: 90%;
    height: auto;
    margin: 2rem auto;
    font-size: 18px;
    padding: 20px;
  }

  .participer-container {
    justify-content: center;
    padding: 1rem;
  }

  .participer-btn {
    width: 90%;
    font-size: 20px;
    padding: 1rem;
  }

  .image-container img {
    transform: none;
  }
}
