/* Pour le header  */
#rentalogo{
  width: 80px;
  height:80px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

#userPublicId{
  display: none;
}
#iconman{
  background-color: rgb(42, 157, 196);
  color:rgb(24, 56, 200)
}
.flagslangue{
  width: 25px;
  height:25px;
}
.flagscountry{
  width: 23px;
  height: 16px;
}
.countrylistcontener{
  max-height: 50vh;
  overflow-y: auto;
  background-color: #f5f8fa;
  max-width: 280px;
}
#departchoisi{
  white-space: nowrap; 
  overflow-x: auto;
}
#languelist{
  min-width: 12px;
}
/* Pour le footer */
#rentalogofooter{
  width: 80px;
  height:80px;
}
#copyrightdiv{
  background-color: rgba(0, 0, 0, 0.2)
}

/* Style par défaut (blanc) */
.social-icon svg {
  transition: fill 0.25s ease, transform 0.2s ease;
  fill: white;
}

/* Facebook : bleu officiel */
.social-icon.facebook:hover svg {
  fill: #1877F2;
  transform: scale(1.15);
}

/* TikTok : dégradé => on utilise un “pseudo dégradé” simplifié */
.social-icon.tiktok:hover {
  background-color: white;
  border-color: white;
  color: black;
}
/* Applique l'effet "Glitch" chromatique sur l'icône SVG elle-même */
.social-icon.tiktok:hover svg {
  filter: drop-shadow(2px 2px 0px #ff0050) drop-shadow(-2px -2px 0px #00f2ea);
}


/* YouTube : rouge officiel */
.social-icon.youtube:hover svg {
  fill: #FF0000;
  transform: scale(1.15);
}

#websitedivbot{
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Pour la page index */
#carouselExampleIndicatorsindex{
  background-color: lightgrey;
}
#index_section1{
  background-color: #8dccf5;
  min-height: 82vh;
}
.title_font-family{
  font-family:Georgia, Times, Times New Roman, serif;
}
#p-text{
  font-size: 1.3rem;
}
.text-justify{
  text-align: justify;
}
.index_section2{
  background-color: #1e89cf;
}

.max_width610{
  width: 100% !important;
  max-width: 610px !important
}
#index_title1{
  font-size: medium;
  font-weight: bold;
}
body{
  /*
  font-family: 'Katibeh';
  font-size: 22px;
  */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* For nav */
.navbar .nav-link {
  color: #fff !important;
}
.lienNav:hover{
    background-color: #0B5BC2;
}


#login,
#trajet,
#register,
#contact_id {
  background-color: var(--bs-body-bg) !important; /* utilise la couleur du thème */
}
/* Pour les messages qui apparaissent lorsqu'on survole */
.custom-tooltip {
  --bs-tooltip-bg: var(--bs-primary);
}

/* Pour le border cintillent */
@keyframes blink {
  0% { border-color: transparent; }
  50% { border-color: red; }
  100% { border-color: transparent; }
}

.blinking-border {
  border-width: 2px !important;
  border-style: solid;
  border-color: red; /* ou une autre couleur visible */
  animation: blink 1s infinite;
  border-radius: inherit; /* pour suivre le rounded-4 */
}

/* Desactiver les liens */
.link-disabled {
  pointer-events: none;
  cursor: not-allowed;
}

.requiredcolorstart{
  color: red;
}

.desc_article_txtarea,#descriptionArticle,#contact_message,#commentaire{
  height: 8em;
}

#img_profil_shield{
  bottom: 0; right: 0; 
  background-color: rgba(255, 255, 255, 0.7);
}
#img_profil_svgicon{
  color:lightblue;
}
@media (max-width: 768px) {
  #img_profil_svgicon{
    width: 45px;
    height: 45px;
  }
  #img_profil_shield{
    width: 10px;
    height: 10px;
  }
}

#image403denied,#img404{
  width:300px; overflow:hidden;
}

/* Mes annonces */
#typeannonce{
  width: 230px;
}
.result_annonces_contener,.margin_auto{
  margin: auto;
}
#result_annonces{
  max-width: 600px;
}
.card_bgcolor{
  background-color:#e9ecef;
}
.card_disabled {
  background-color: #e9ecef; /* gris clair */
  color: #6c757d;           /* texte grisé */
  pointer-events: none;      /* désactive tous les clics */
  opacity: 0.7;              /* optionnel : effet visuel */
  cursor: not-allowed;       /* curseur “interdit” */
}
.smallsize{
  font-size: small;
}
.xs_size{
  font-size: x-small !important;
}
.max_width500{
  max-width: 500px;
}
.black_color{
  color: black;
}
.optionnel_color{
  color:burlywood;
}
.annonces_img_div,.max_width200{
  max-width: 200px;
}
.font_weight_normal{
  font-weight: normal;
}
.bg_disabled{
  background-color: #d8dbde;
}
.display_none{
  display: none;
}
.display_inline{
  display: inline;
}
.opacity0, .opacity_zero{
  opacity: 0;
}


/******************* Datalist des pays et drapeaux  */
.countrydiv,.citydiv {
  position: relative;
}

.country-input-container {
  /* Styles pour simuler la bordure d'un input */
  border: 1px solid #ced4da;
  border-radius: 0.45rem 0.45rem 0.45rem 0.45rem; /* Arrondit les coins du côté droit */
  padding: 0.375rem 0.75rem; /* Ajoute un padding pour le contenu */
  background-color: #fff;
}

.country-input {
  padding: 10px;
  font-size: 16px;

  border: none; /* Supprime les bordures de l'input lui-même */
  background: none;
  flex-grow: 1; /* Permet à l'input de prendre l'espace restant */
  outline: none; /* Supprime la bordure de focus par défaut */
  padding: 0;
}

.country-list, .city-list {
  /* Reste en position absolue pour se superposer au reste du contenu */
  position: absolute;
  z-index: 10;
  width: calc(100% - 10px); /* Ajuste la largeur pour prendre en compte le padding */
  left: 0;
  top: calc(100% + 5px);
  list-style-type: none;
  padding: 0;
  margin-top: 5px; /* Petit espace entre l'input et la liste */
  border: 1px solid #ccc;
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.country-list li,.city-list li {
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.country-list li:hover, .city-list li:hover {
  background-color: #1e89cf;
}

.selected-flag {
  width: 20px;
  display: none;
  height: 15px;
  margin-right: 5px; /* Un peu d'espace entre le drapeau et l'input */
}

.country-list img,.flagimg {
  width: 20px;
  height: 15px;
  margin-right: 5px; /* Un peu d'espace entre le drapeau et l'input */
}
.country-input, .city-input {
  /* Assure que cet input s'ajuste bien */
  flex-grow: 1;
}

.country-display {
  display: flex;
  align-items: center;
  margin-left: 10px; /* Ajoute de l'espace entre l'input de la ville et celui du pays */
}

/* Pour le partiel du trajet*/
.height-auto{
  height: auto;
  align-self: flex-start;
}

/************ Pour le partial des voyages detailles **************/
#contactLockedModal .modal-content {
  border: none;
  animation: modalPop .25s ease-out;
}

@keyframes modalPop {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* **********************Pour les cartes des trajets*************************/
.thetrips:hover,.expedition-card:hover {
  border-color: #0d6efd !important;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}




/************************************ Pour la pagination **********************************/
.pagination .page-link {
  color: #0d6efd;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: white;
  border-radius: 50%;
}

.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background: transparent;
}


/**
*********************  Pour les cartes des expéditions *************************
*/
.exp-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer; /* petit plus UX */
}

.exp-card:hover {
  border-color: #0d6efd !important;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
/* Indicateurs plus élégants */
.carousel-indicators [data-bs-target] {
  background-color: #0d6efd;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* --- Flèches du carousel : version réduite et responsive --- */
.exp-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  top: 50%;
}

.exp-arrow:hover {
  background: rgba(0,0,0,0.6);
}


.exp-arrow .carousel-control-prev-icon,
.exp-arrow .carousel-control-next-icon {
  width: 20px;         /* Taille de l'icône */
  height: 20px;
  background-size: 100% 100%;
  filter: invert(1);   /* Rend l’icône blanche si besoin */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) { 
  .exp-arrow {
    width: 28px;
    height: 28px;
  }

  .exp-arrow .carousel-control-prev-icon,
  .exp-arrow .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }
}


/*************** Pour les annonces en caroussel ************************/
/* Optionnel : style tes flèches personnalisées */

.custom-arrow {
  z-index: 10;
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.swiper-button-prev.custom-arrow {
  left: 0; /* facultatif : ajuste la position */
}
.swiper-button-next.custom-arrow {
  right: 0;
}
/* Cache les flèches par défaut de Swiper */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
}

.border-raduis50{
  border-radius:50%
}

.linkInTrajetSlide{
  width: 420px;
}
.cardcontainer{
  height: 260px; overflow:hidden;
}

.link-disabled {
  pointer-events: none;
  opacity: 0.6;
}



.item-caroussel-contener {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content; /* largeur auto selon le contenu */
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: .5rem 0;

  /* Scroll Netflix : */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}


.item-caroussel-contener:active {
  cursor: grabbing;
}

.item-caroussel-contener > a {
  scroll-snap-align: start;
  display: block;
}

.item-caroussel-contener a .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-caroussel-contener a:hover .card {
  transform: translateY(-8px) scale(1.02); /* remonte et agrandit un peu */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* ombre plus marquée */
}

/* Les cartes s’alignent automatiquement à la hauteur de la plus grande */
.item-caroussel-contener .card {
  height: 100%;
  min-height: 220px;
}

/* Responsive */
/* Largeur PC (par défaut) */


/* Empêche les cartes du carrousel de dépasser leur parent */
.item-caroussel-contener a {
  width: min(420px, 100%) !important;
  max-width: 100% !important;
}

/* Largeur tablette */
@media (max-width: 992px) {
  .item-caroussel-contener a {
    width: 340px;
    max-width: 340px;
  }
}

/* Largeur mobile */
@media (max-width: 768px) {
  .item-caroussel-contener a {
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
  }
}

/* Ultra small smartphones */
@media (max-width: 480px) {
  .item-caroussel-contener a {
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
  }
}
/*
@media (max-width: 576px) {
  .item-caroussel-contener {
    gap: .5rem;
  }
}
*/