/* ======================================================
   GTINO – ACTIVATION & DESACTIVATIOn du FILTRAGE en FRONT
====================================================== */

/* ===========================
   ÉTAT GLOBAL MODALE
=========================== */

/* État caché mais présent pour animation */
.gtino-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;     /* 🔥 centrage vertical */
  justify-content: center; /* 🔥 centrage horizontal */
  z-index: 2147483647;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* État visible */
.gtino-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===========================
   ÉTAT GLOBAL MODALE VEHICULE SELECTIONÉ
=========================== */

.gtino-modal-content .title-succes-vehicle-modal {
    color: #4CAF50 !important;
}

.gtino-modal-vehicle-line {
    text-align: center;
    margin-top: 5px;
}

.gtino-modal-vehicle-label {
    display: inline-block;
    background: rgba(25, 118, 210, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* ===========================
   TOAST VEHICULE SELECTIONÉ
=========================== */

.gtino-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);

  /* 🔥 GLASS EFFECT */
  background: rgba(76, 175, 80, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #fff;
  
  padding: 14px 22px;
  border-radius: 12px;
  
  font-size: 14px;
  font-weight: 600;
 
  /* 🔥 LÉGER CONTOUR POUR LISIBILITÉ */
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* 🔥 SHADOW PROFONDE */
  box-shadow:
    0 8px 25px rgba(0,0,0,0.2),
    0 20px 60px rgba(0,0,0,0.25);

  /* 🔥 LÉGER CONTOUR POUR DÉTACHER */
  border: 1px solid rgba(0,0,0,0.05);
  
  z-index: 9999;
  
  opacity: 0;
  transition: all 0.4s ease;
  
  pointer-events: none;
    white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gtino-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.check-saved-vehicle {
    margin-right: 8px;
}



/* ===========================
   BACKDROP
=========================== */

.gtino-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);

  opacity: 0;
  transition: opacity 240ms ease-out;
}

.gtino-modal.is-open .gtino-modal-backdrop {
  opacity: 1;
}

/* ===========================
   CONTENU – SCALE + FADE
=========================== */

.gtino-modal-content {
  position: relative;
  max-width: 450px;
  margin: 10vh auto;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  transform: scale(0.92);
  opacity: 0;
  transition: transform 240ms ease-out, opacity 240ms ease-out;
}

.gtino-modal.is-open .gtino-modal-content {
  transform: scale(1);
  opacity: 1;
}

/* ===========================
   TITRE
=========================== */

.gtino-modal-content h3 {
  margin: 0 0 14px 0;
  font-size: 1.25rem;
  font-weight: 700;
  /*color: #222;*/
  line-height: 1.3;
  text-align: center;
}

/* ===========================
   BLOC TIP
=========================== */

.gtino-modal-tip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #f7f7f7;
  border-left: 4px solid #1976D2;
  border-radius: 6px;
  font-size: 0.9em;
  color: #444;
}

.gtino-modal-tip-icon {
  font-size: 1.1em;
  line-height: 1.2;
  margin-top: 2px;
}

.gtino-modal-tip p {
  margin: 0 0 6px 0;
}

.gtino-modal-tip p:last-child {
  margin-bottom: 0;
}

/* ===========================
   CHECKBOX
=========================== */

.gtino-modal-checkbox {
  display: flex;
  align-items: center; /* 👈 centrage vertical */
  gap: 10px;
  margin: 16px 0;
  font-size: 0.9em;
  text-align: left;
}

.gtino-modal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0; /* évite l’écrasement */
}

/* ===========================
   BOUTONS
=========================== */

.gtino-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* Base commune */
.gtino-modal .gtino-btn {
  appearance: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 6px;
  line-height: 1;
}

/* Confirmer */
.gtino-modal .gtino-btn.confirm {
  background: #d32f2f;
  color: #fff;
}

.gtino-modal .gtino-btn.confirm:hover {
  background: #b71c1c;
}

/* Annuler */
.gtino-modal .gtino-btn.cancelModal {
  background: #eee;
  color: #333;
}

.gtino-modal .gtino-btn.cancelModal:hover {
  background: #d5d5d5;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 480px) {

  .gtino-modal-content h3 {
    font-size: 1.1rem;
    letter-spacing: -0.2px;
  }
  
    .gtino-modal-tip-icon {
      align-self: flex-start;
    }

  .gtino-modal-content {
    margin: 5vh 16px;
    max-width: none;
  }

  .gtino-modal-actions {
    flex-direction: column;
  }

  .gtino-modal .gtino-btn {
    width: 100%;
  }
  
  .gtino-modal-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
    
    
}