body {
    margin: 0;
  }

.header-container {
  display: flex;
  padding: 0.5rem 1 rem;
  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.5 px #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;
}

.search {
  width: 100%;
  max-width: 800px;
  border: solid #293133;
  border-radius: 15px;
  padding: 1rem 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  position: relative;
}

.head img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.double-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.double-input input {
  padding: 0.5rem;
  border: none;
  border-radius: 15px;
  font-size: 20px;
  text-align: center;
  background-color: transparent;
  outline: none;
  font-family: Inria Sans, sans-serif;
  color: #293133;
}

.icon-left {
  margin: 0rem;
}

.icon-right {
  margin-right: 0.5rem;
  cursor: pointer;
}

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

.bouton {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #01D758;
  color: #293133;
  padding: 1rem 8rem;
  font-size: 20px;
  border-radius: 15px;
  text-decoration: none;
  font-family: "Inria Sans", sans-serif;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.trajet-card {
  margin-top: 6rem;
  width: 100vw;;
  padding: 0.5rem;
  background-color: #048b9a;
  box-sizing: border-box;
}

.trajet-card-light {
    margin-top: 6rem;
  width: 100vw;;
  padding: 0.5rem;
  background-color: #40E0D0;
  box-sizing: border-box;
}

.info-box-light {
  background-color: transparent;
  border: 1px solid #293133 ;
  color: white;
  border-radius: 10px;
  padding: 1rem;
  font-size: 26px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  gap: 6rem;
  align-items: center;
}

.prenom-light {
  font-size: 26px;
  font-weight: bold;
  color: #293133;
  margin-top: 0.5rem;
  text-align: center;
  font-family: Inria Sans, sans-serif;
}

.trajet-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.card-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Colonne gauche */
.info-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -80px;
  width: 250px;
}

.conducteur-photo {
  width: 241px;
  height: 295px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.prenom {
  font-size: 26px;
  font-weight: bold;
  color: white;
  margin-top: 0.5rem;
  text-align: center;
  font-family: Inria Sans, sans-serif;
}

/* Colonne droite */
.info-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.info-box {
  background-color: transparent;
  border: 1px solid #293133 ;
  color: white;
  border-radius: 10px;
  padding: 1rem;
  font-size: 26px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  gap: 6rem;
  align-items: center;
}

.info-box svg {
    flex-shrink: 0;
}

.btn-detail {
    background-color: #01D758;
    width: 400px;
    color: #293133;
    padding: 1.5rem;
    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;
}

.info-btn {
  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;
}

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) {

  body {
    margin: 10px;
  }

  .trajet-card {
    flex-direction: column;
    width: 100%;
    padding: 15px;
  }

  .trajet-content {
    flex-direction: column;
    gap: 20px;
  }

  .card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: auto;
  }

  .conducteur-photo {
    width: 80px;
    height: 80px;
    margin-top: 0;
  }

  .prenom {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  .stars {
    justify-content: center;
    font-size: 1rem;
  }

  .infos-trajet {
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .info-encadre {
    flex: 1 1 45%;
    min-width: 120px;
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .details {
    margin-top: 15px;
    font-size: 0.95rem;
  }

  .btn-trajet {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 15px;
  }

  .carte {
    width: 100%;
    height: 200px;
    margin-top: 15px;
  }
}
