/* =========================
   MOTEUR – BASE COHÉRENTE
========================= */

.moteur-wrapper{
  width:100%;
  padding:20px 0;
  background:transparent;
}

/* =========================
   BARRE JAUNE
========================= */
.moteur-bar{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  background:#ffb700;
  border-radius:14px;
  padding:8px;
  overflow:visible;
}

/* =========================
   CHAMPS BLANCS
========================= */
.moteur-field{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  padding:12px 16px;
  min-height:56px;
  border-radius:12px; /* 👈 suit le bloc jaune */
  flex:1;
}

/* INPUTS */
.moteur-field input{
  background:transparent;
  border:0 !important;
  box-shadow:none !important;
  outline:none;
  font-size:18px;
  font-weight:500;
  padding:0;
  width:100%;
}

/* ICÔNES */
.moteur-icon{
  min-width:22px;
  text-align:center;
  opacity:.7;
}

/* =========================
   BOUTON
========================= */
.moteur-submit{
  background:#0071c2;
  color:#fff;
  border:0;
  border-radius:12px;
  height:56px;
  padding:0 28px;
  font-size:20px;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}

/* =========================
   DATES (2 BLOCS DISTINCTS)
========================= */
.moteur-date input{
  font-weight:600;
  font-size:18px;
}

/* =========================
   TYPO GLOBALE
========================= */
.moteur-people-label{
  font-weight:500;
  font-size:16px;
}

/* =========================
   DROPDOWN PERSONNES
========================= */

.moteur-people{
  position:relative;
}

/* DROPDOWN CACHÉ */
#personCountSelector .dropdown-content{
  display:none;
  position:absolute;
  top:calc(100% + 14px);
  right:0;                /* 🔥 ALIGNÉ À DROITE COMME BOOKING */
  min-width:360px;
  background:#fff;
  border-radius:14px;
  padding:18px;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
  z-index:9999;
}

/* OUVERT */
#personCountSelector .dropdown-content.active{
  display:block;
}

/* =========================
   MOBILE
========================= */
@media (max-width:768px){

  .moteur-bar{
    flex-direction:column;
    padding:10px;
  }

  .moteur-field,
  .moteur-submit{
    width:100%;
  }

  #personCountSelector .dropdown-content{
    width:100%;
    box-shadow:none;
    margin-top:10px;
  }
}

/* ===== PAX : UNE SEULE LIGNE (BOOKING STYLE) ===== */

.moteur-people-label{
  display:flex;
  align-items:center;
  white-space:nowrap;        /* 🔥 interdit le retour à la ligne */
  overflow:hidden;           /* cache le surplus */
  text-overflow:ellipsis;    /* … si trop long */
  width:100%;

}

#personCountText{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:block;
    font-size:16px;
  font-weight:600;
  width:100%;
}

/* FIX HAUTEUR VISUELLE DU CHAMP PAX */

.moteur-people-label{
  display:flex;
  align-items:center;
  min-height:44px;      /* 👈 équivalent input */
}

#personCountText{
  line-height:36px;     /* 👈 mêm baseline que les inputs */
	font-size:16px;
	font-weight:600;
}

/* =========================
   BOUTON TERMINER (CLONE RECHERCHER)
========================= */

#personCountSelector .dropdown-content .btn{
  background:#0071c2;
  color:#fff;
  border:0;
  border-radius:12px;
  height:56px;
  font-size:20px;
  font-weight:600;
  cursor:pointer;
  width:100%;
  margin-top:16px;
}

/* hover cohérent */
#personCountSelector .dropdown-content .btn:hover{
  background:#005fa3;
}

/* état désactivé si besoin */
#personCountSelector .dropdown-content .btn:disabled{
  background:#cfd8e3;
  cursor:not-allowed;
}


#personCountSelector .dropdown-content .btn{
  transition:background .2s ease, transform .1s ease;
}

#personCountSelector .dropdown-content .btn:active{
  transform:scale(.98);
}

/* =========================
   BOUTONS +/- PREMIUM
========================= */

.moteur-counter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.moteur-counter label{
  font-size:16px;
  font-weight:600;
  color:#6b7280;
}

.counter{
  display:flex;
  align-items:center;
  gap:12px;
}

/* boutons + / - */
.counter button{
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid #d1d5db;
  background:#f9fafb;
  color:#374151;
  font-size:20px;
  font-weight:500;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .15s ease;
}

/* hover premium */
.counter button:hover{
  background:#e6f0fa;
  border-color:#0071c2;
  color:#0071c2;
}

/* active */
.counter button:active{
  transform:scale(.95);
}

/* disabled (si tu l'utilises plus tard) */
.counter button:disabled{
  opacity:.4;
  cursor:not-allowed;
  background:#f3f4f6;
}

/* valeur centrale */
.counter input{
  width:36px;
  text-align:center;
  border:0;
  background:transparent;
  font-size:20px;
  font-weight:600;
  color:#111827;
  pointer-events:none;
}

/* =========================
   MOBILE – DROPDOWN PAX ROBUSTE
========================= */
@media (max-width:768px){

  /* IMPORTANT : aucun parent ne doit couper */
  .moteur-wrapper,
  .moteur-bar,
  .container,
  .row,
  .col-12{
    overflow:visible !important;
  }

  #personCountSelector{
    width:100%;
  }

  #personCountSelector .dropdown-content{
    display:none;
    position:absolute;

    top:calc(100% + 2px);
    left:0;
    right:0;

    width:100%;
    min-width:0;

    background:#fff;
    border-radius:14px;
    padding:18px;

    max-height:65vh;
    overflow-y:auto;

    box-shadow:0 12px 30px rgba(0,0,0,.2);
    z-index:99999;
  }

  /* état ouvert (JS) */
  #personCountSelector .dropdown-content.active{
    display:block;
  }

  /* bouton toujours visible */
  #personCountSelector .dropdown-content .btn{
    position:sticky;
    bottom:0;
    margin-top:16px;
  }
}


