.hero-wrapper {
    position: relative;
    margin: 20px 40px;
}

.hero-div{
    min-height:550px;
    background-color: #FFF1E4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;  
    padding: 40px;
    gap: 60px;
}

body {
    overflow-x: hidden;
}

.hero-content{
    flex: 1;
    max-width: 700px;
}

.hero-image{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title{
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title1{
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    margin-top: 20px;
    line-height: 1.2;
}

.titlehover{
    color: #FF802B;
    font-size: 60px;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
}

.title-description{
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    color: #333;
    line-height: 1.5;
}

.div-white{
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
    padding: 10px 10px 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    gap: 10px;
    max-width: 570px;
    margin-bottom: 90px;
    min-width: 460px;
}

svg{
    flex-shrink: 0;
    background-color: white;
}

.input{
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 12px 5px;
    color: #333;
}

.input::placeholder{
    color: #999;
}

.track-button{
    background-color: #FF802B;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.track-button:hover{
    background-color: #e6721f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 128, 43, 0.3);
}

.track-button:active{
    transform: translateY(0);
}
.hero-vector {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
    height: 170px;
    width: auto;
    pointer-events: none;
    animation: slideRightSlow 8s ease-in-out infinite;
}
@keyframes slideRightSlow {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(80px); /* Distance minimale vers la droite */
    }
    100% {
        transform: translateX(0);
    }
}
/* Positionner l'image avis Ã  cÃ´tÃ© de l'image hero - DESKTOP */
.hero-image {
    position: relative;
}

.hero-image .avis {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 350px;
}

.hero-image .para{
   position: absolute;
    left: 220px;  /* Ajuste selon ton besoin */
    top:0%;  /* Au-dessus du cercle ontime */
    z-index: 7;  /* Au-dessus de ontime (qui est z-index: 6) */
    width: 450px;  /* Ajuste la taille selon ton image */
}
.hero-image .para {
    animation: floatParachute 6s ease-in-out infinite;
}
@keyframes floatParachute {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    50% {
        transform: translateY(0) translateX(10px);
    }
    75% {
        transform: translateY(-10px) translateX(5px);
    }
}
/* --- Responsive Design --- */

/* Tablettes (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-wrapper {
    margin: 40px 20px;
  }

  .hero-div {
    flex-direction: column;
    text-align: center;
    margin: 0;
    padding: 30px 20px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .title,
  .title1 {
    font-size: 36px;
  }

  .titlehover {
    font-size: 45px;
  }

  .title-description {
    font-size: 18px;
  }

  .div-white {
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .track-button {
    padding: 12px 28px;
    font-size: 15px;
  }

  .hero-vector {
        height: 120px;
        left: 0;
        bottom: 0;
    }
    
    @keyframes slideRightSlow {
        0% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(50px); /* Distance rÃ©duite pour tablette */
        }
        100% {
            transform: translateX(0);
        }
    }

  .abs {
    display: none;
  }
  .hero-image .avis{
    left: 100px;
  }
  .hero-image .ontime{
    left: 100px;
    top: -100px;
    min-width: 500px;
  }
  .hero-image .para{
    left:170px;
    top: -10px;
  }
  
}

/* Mobiles (max-width: 768px) */
@media (max-width: 768px) {
  .hero-wrapper {
    margin: 20px 10px;
  }

  .hero-div {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 10px;
    gap: 30px;
  }

  .hero-content {
    text-align: start;
    padding: 0;
    min-width: 400px;
    align-self: flex-start;
  }

  .title,
  .title1 {
    font-size: 45px;
  }

  .titlehover {
    font-size: 70px;
  }

  .title-description {
    font-size: 22px;
    line-height: 1.2;
  }

  .div-white {
    flex-direction: row;
    align-items: center;
    gap:10px;

    padding: 10px;
  }

  .input {
    width: 100%;
    padding: 12px;
    text-align: center;
  }

  .track-button {
    width: 100%;
    border-radius: 10px;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    scale: 1.1;
  }

  .hero-vector {
    height: 90px;
    left: 0;
    bottom: 0;
  }
  @keyframes slideRightSlow {
        0% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(30px); /* Distance encore plus rÃ©duite pour mobile */
        }
        100% {
            transform: translateX(0);
        }
    }
}
@media (max-width:650px){
  .hero-image .avis{
    left: 200px;
    max-width: 250px;
  }
}
/* TrÃ¨s petits Ã©crans (max-width: 480px) */
@media (max-width: 480px) {
  .title,
  .title1 {
    font-size: 40px;
  }
.hero-image .avis{
  left: -20px;
  
}
  .titlehover {
    font-size: 55px;
  }
 .hero-image  .imgpro{
    width: 50%;
    min-width: 450px;
    min-height: 350px;
    scale: 1.4;
  }
  .title-description {
    font-size: 16px;
  }

  .div-white {
    box-shadow: none;
    padding: 10px;
    align-items:center;
  }
  .hero-content {
    max-width: 300px;
  }
}
@media (max-width:1600px) and (min-width:1200px){
  .hero-div  .imgpro{
        height: 450px;
        width: auto;
        scale: 1.3;
    }
    .hero-image .para{
      left:10px;
      top: -50px;
    }
}

@media (max-width:1200px){
    .imgpro{
        height: 450px;
        width: auto;
        transform: scale(1.1);
        min-height: 620px;
        min-width: 1000px;
    }
    .hero-content{
      position: relative;
    }
    .hero-image {
    overflow: hidden;  /* â¬…ï¸ Cache ce qui dÃ©passe */
}
}
@media (max-width:1200px) and (min-width:1030px){
     .hero-image .avis{
      left: -70px;
     }
    .hero-image .para{
  left: -150px;
}
}
@media (min-width:1600px) and (max-width:2200px){
  .hero-image .avis{
    left: 200px;
  }
  .imgpro{
    min-width: 1000px;
    max-width: 1200px;
  }
}

@media (min-width:2200px) and (max-width:2800px){
  .hero-image .avis{
    left: 350px;
  }
}




.hero-image .avis {
    animation: slideInLeftAvis 1s ease-out;
}
@keyframes slideInLeftAvis {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(-50%); /* Garde le translateY */
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(-50%); /* Garde le translateY */
    }
}
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation pour l'image hero - vient de la droite */
.hero-image .imgpro {
    animation: slideInRightHero 1s ease-out;
}
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation pour le contenu texte - fade in avec montÃ©e */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour le titre principal avec dÃ©lai */
.title {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Animation pour le titre hover (OnTimePick) avec effet spÃ©cial */
.titlehover {
    animation: fadeInScale 1s ease-out 0.4s backwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation pour la description */
.title-description {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Animation pour la barre de recherche */
.div-white {
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

/* Animation pour le vector en bas Ã  gauche */
@keyframes slideInRightHero {
    0% {
        opacity: 0;
        transform: translateX(100px)  /* Garde le scale existant */
    }
    100% {
        opacity: 1;
        transform: translateX(0)  /* Garde le scale existant */
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-image .ontime {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    width: 450px;
}
.hero-image .ontime {
    animation: slideInTop 1s ease-out 0.3s backwards;
}
@keyframes slideInTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width:1200px){
  .hero-image .ontime{
    left: -150px;
  }
}
@media (max-width: 1024px) {
    .hero-image .ontime {
        width: 400px;
        left: 170px;
    }
}
@media (max-width: 768px) {
    .hero-image .ontime {
        width: 390px;
        top:0px;
        min-width: 400px;
    }
    .hero-image .para{
      left: 130px;
    }
    .div-white{
      max-width: 600px;
      min-width: 500px;
    }
    .track-button{
      width: auto;
    }
}
@media (max-width: 650px) {
    .hero-image .ontime {
        width: 250px;
       
    }
    .div-white{
      max-width: 600px;
      min-width: 550px;
       margin-bottom: 0px;
    }
    .input{
      font-size: 20px;
    }
    .hero-vector{
      left: -20px;
    }
    .aboutus-description1{
      font-weight: 600;
    }
}
@media (max-width:558px){
  .div-white{
    max-width: 500px;
    min-width: 450px;
  }
}
@media (max-width: 480px) {
    .hero-image .ontime {
        width: 180px;
        left: -98px;
        top:-50px;
    }
    .hero-image .para{
      left: -120px;
      top: -70px;
    }
    .ontime, .para{
    left: -120px;
  }
  .div-white{
    max-width: 450px;
    width: 420px;
    min-width: 380px;
    padding: auto 0px;
  }

  .input{
    text-align: start;
    min-width: 0;
    flex: 1;
    padding: 0px 5px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

    /* Add this at the end of hero.css */
    @media (max-width: 480px) {
      .input::placeholder {
        font-size: 12px;
        white-space: nowrap;
      }
    }

    @media (max-width: 392px) {
      .input::placeholder {
        font-size: 11px;
      }
    }

  .div-white svg{
    height: 25px;
  }
  .track-button{
    width: auto;
    max-width: 90px;
    max-height: 40px;
    border-radius: 20px;
  }
}
@media (max-width: 1600px) and (min-width: 1200px) {
    .hero-image .ontime {
        width: 450px;
        left: 30px;
        top: -50px;
    }
}

/* Entre 1600px et 2200px */
@media (min-width: 1600px) and (max-width: 2200px) {
    .hero-image .ontime {
        width: 550px;
        left: 170px;
    }
    .hero-image .imgpro{
      transform: scale(1);
    }
}

/* Grands Ã©crans (min-width: 2200px) */
@media (min-width: 2200px) and (max-width: 2800px) {
    .hero-image .ontime {
        width: 700px;
        left: 350px;
        top: 70px;
    }
}
.hero-image .ontime {
    animation: slideInTop 1s ease-out 0.3s backwards, rotateSlowly 20s linear infinite 1.3s;
}@keyframes rotateSlowly {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}
.hero-image .avis {
    animation: slideInLeftAvis 1s ease-out, fadeInOut 8s ease-in-out infinite;
}
@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    45%, 55% {
        opacity: 0;
    }
}





/* TrÃ¨s petits Ã©crans (max-width: 480px) */
/* TrÃ¨s petits Ã©crans (max-width: 480px) */
@media (max-width: 480px) {
  .title,
  .title1 {
    font-size: 40px;
  }
  
  .hero-image .avis{
    left: -20px;
  }
  
  .titlehover {
    font-size: 55px;
  }
  
  .hero-image .imgpro{
    width: 50%;
    min-width: 450px;
    min-height: 350px;
    scale: 1.4;
  }
  
  .title-description {
    font-size: 16px;
  }

  /* âœ… FORM - CENTRÃ‰ AVEC 90% WIDTH */
  .div-white {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px;
    align-items: center;
    width: 90%;
    max-width: 90%;
    min-width: unset;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
  }
  
  .div-white svg {
    height: 28px;
    width: 28px;
    flex-shrink: 0;
  }
  
  .input {
    flex: 1;
    text-align: start;
    padding: 10px 8px;
    font-size: 14px;
    min-width: 0;
    border: none;
    outline: none;
  }
  
  .track-button {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: start;
    padding: 0 5%;
  }
  
  .hero-image .ontime {
    width: 180px;
    left: -98px;
    top: -50px;
  }
  
  .hero-image .para{
    left: -120px;
    top: -70px;
  }
  
  .ontime, .para{
    left: -120px;
  }
}




@media (max-width:430px) {
  .hero-content{
    max-width: 100%;
    text-align: start; /* Garde texte Ã  gauche */
    padding: 0 5%;
  }
  .hero-vector{
    left: -50px;
    bottom: -30px;
  }
  .hero-div{
    padding: 0px;
  }
  .title, .title1{
    font-size: 30px;
  }
  
  .titlehover{
    font-size: 40px;
  }
  
  .div-white {
    width: 100%;
    max-width: 100%;
    min-width: unset;
    margin: 0 auto 60px auto;
  }
}
/* max-width: 392px */
@media (max-width: 392px) {
  .div-white {
    width: 90%;  /* âœ… ChangÃ© de 80% Ã  90% */
    max-width: 90%;
   ;  /* âœ… ChangÃ© de 320px Ã  unset */
    padding: 6px;
    gap: 6px;
    margin: 0;  
  }
  .title-description{
    font-size: 14px;
    min-height: 40px;
    max-width: 300px;
  }
  .div-white svg {
    height: 24px;
    width: 24px;
  }
  
  .input {
    font-size: 13px;
    padding: 8px 6px;
    text-align: start;
  }
  
  .track-button {
    padding: 8px 16px;
    font-size: 13px;
    max-width: 120px;
  }
  
  .hero-content {
    padding: 0 5%;
    text-align: start;
  }
}