/* Style général pour le bouton */
.btn-res {
    text-align: center; /* Centre le bouton dans son conteneur */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    background-color: white;
    border: 1px solid black;
    border-radius: 10000px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn i {
    margin-right: 8px;
    font-size: 18px; /* Taille de l'icône */
}

.btn:hover {
    background-color: #006699;
    color: white;
    transform: scale(1.08); /* Légère augmentation de taille au survol */
    border-color: #ccc;
}

/* Ajout d'une bordure en cas de focus pour l'accessibilité */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px #006699;
}

.post-boxed {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-boxed-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-boxed-image img:hover {
    transform: scale(1.05); 
}



.btn-res {
    text-align: center; /* Centre le bouton */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    
    border: 1px solid black;
    border-radius: 10000px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn i {
    margin-right: 8px;
    font-size: 18px; /* Taille de l'icône */
}

.btn:hover {
    background-color: #006699;
    transform: scale(1.05); /* Légère augmentation de taille au survol */
}

.page-button {
    background-color: #006699;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
}

.page-button:hover {
    background-color: #006699;
    transform: scale(1.05);
}

.page-button.active {
    background-color: #006699;
    transform: scale(1.08);
}


.post-boxed-image {
    position: relative;
    overflow: hidden;
}

.post-boxed-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-icon {
    position: absolute;
    top: 10px; /* Ajustez selon vos besoins */
    left: 10px; /* Ajustez selon vos besoins */
    border-radius: 50%; /* Icône circulaire */
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-icon i {
    color: #006699; /* Couleur de l'icône */
    font-size: 20px; /* Taille de l'icône */
}


.post-boxed-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.post-boxed-title a {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.post-boxed-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-boxed-meta li {
    font-size: 15px;
    font-weight: bold;
    color: #006699;
    margin-bottom: 10px;
}

.btn-res {
    margin-top: 0px;
    text-align: center;
}


.image-icon {
    position: relative; /* Le parent doit avoir position: relative */
    display: inline-block;
}

/* Style pour le modal de description */
#description-modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Arrière-plan semi-transparent */
  }

  /* Style pour le bouton de fermeture */
  .close-description {
    position: absolute;
    top: -8px;
    right: 4px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close-description:hover,
  .close-description:focus {
    color: #000;
    text-decoration: none;
  }
  
/* Style pour le modal */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Arrière-plan semi-transparent */
  }

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 161%;
  max-width: 800px; /* Largeur maximale pour le modal */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2001;
  top: 80px;
  left: -135px;
  }

  @media (max-width: 768px){
    .modal-content {
      background-color: #fff;
      margin: 9% ;
      padding: 0px;
      border-radius: 10px;
      width: 102%;
      max-width: 800px; /* Largeur maximale pour le modal */
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      position: relative;
      margin-top: 22%;
    }

    .close-description {
      position: absolute;
      top: 0px;
      right: 8px;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    font-size: 12px;
    font-weight: bold;
    color: black;
    border: 1px solid black;
    border-radius: 10000px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 70%;
}

.rd-navbar-fixed .rd-navbar-brand {
	z-index: 17;
	display: block;
	overflow: hidden;
	text-align: left;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: nowrap;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-justify-content: flex-start;
	-ms-flex-pack: start;
	justify-content: flex-start;
}


  }

  .modal-contenu {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    max-width: 800px; /* Largeur maximale pour le modal */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10000;
  }

  #formulaire-modal {
    display: none; /* Masqué par défaut */
    position: fixed; /* Position fixe pour couvrir tout l'écran */
    z-index: 9999; /* Assurez-vous que le modal est au-dessus des autres éléments */
    left: 0;
    top: 0;
    width: 100%; /* Prend toute la largeur de l'écran */
    height: 100%; /* Prend toute la hauteur de l'écran */
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    overflow: auto;
}

  .modal-contenuAvert {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    max-width: 800px; /* Largeur maximale pour le modal */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10000;
  }
  
  @media (max-width: 768px){
    .modal-contenu {
      background-color: #fff;
      margin: 15% auto;
      padding: 20px;
      border-radius: 10px;
      width: 80%;
      max-width: 800px; /* Largeur maximale pour le modal */
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      position: relative;
      z-index: 1000;     
    }
  }

  /* Style pour le bouton de fermeture */
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color:red;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    border-radius: 100000px;
    border-color: red;
  }

  .closeOK {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 15px; /* Diminution de la taille pour un aspect plus compact */
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px; /* Plus d'espace à l'intérieur du bouton */
    border: none;
    border-radius: 8px; /* Bordures arrondies */
    background: linear-gradient(45deg, #41e07e, #7ad65c); /* Applique un dégradé visible */
    color: white; /* Texte en blanc pour un meilleur contraste */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour donner de la profondeur */
    transition: all 0.3s ease; /* Transition pour un effet plus doux */
  }
  
  .closeOK:hover,
  .closeOK:focus {
     background: linear-gradient(45deg, #34c96a, #68c151); /* Couleurs légèrement plus sombres au survol */
   transform: scale(1.05);
   color: white;
    outline: none; /* Supprime la bordure par défaut lors du focus */
  }
  
 /* Style pour les champs du formulaire */
.wrap-input100 {
  margin-bottom: 10px;
  width: 100%;
}

.input100 {
  width: 100%; /* Assure que le champ prend toute la largeur disponible */
  padding: 8px; /* Ajuste le padding pour uniformiser la hauteur des champs */
  border-radius: 5px;
  font-size: 14px; /* Assure une taille de police uniforme */
  box-sizing: border-box; /* Inclut le padding dans la largeur totale */
  border: 1px solid #ccc;
}

.input100:focus {
  border-color: #006699;
  outline: none;
}

.boutton {
  background-color: #006699;
  color: #fff;
  border: none;
  padding: 10px 20px; /* Ajuste le padding pour uniformiser la taille du bouton */
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.boutton:hover {
  transform: scale(1.05);
}
 
  /* Style pour le bouton de soumission */
  #button-primary {
    border: 1px #ccc solid;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 10000px; 
    cursor: pointer;
    background-color: #006699;
    transition: background-color 0.3s ease;
    margin-top: 10px;
  }
  
  #button-primary:hover {
    transform: scale(1.05);
  }
  

/* Section A propos */
@media (max-width:767px){
  .section-title .title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .section-50 {
    padding: 10px;
  }

  .section-title .subtitle {
    font-size: 18px;
    color: #6c757d;
  }
}

.about-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    z-index: 1; /* Z-index plus bas pour la section "À Propos" */
    margin-top: -38px;
  }
  
  .section-title .title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 5px;
    margin-top: 3px;
  }
  
  .section-title .subtitle {
    font-size: 18px;
    color: #6c757d;
  }
  
  .about-image img {
    border-radius: 10px;
  }
  
  .about-content .about-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: justify;
  }
  
  .about-content .about-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
  }

  @media (max-width:767px){
    .about-content .about-title {
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 20px;
      text-align: center;
    }
  }
  


  .about-features {
    list-style: none;
    padding: 0;
  }
  
  .about-features li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #006699;
  }
  
  .about-features li i {
    color: #28a745;
    margin-right: 10px;
  }
  
  .btn-primary {
    background-color: #006699;
    border-color: #006699;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #006699;
    transform: scale(1.05);
  }
  

/* Conteneur de la pagination */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0;
}

/* Boutons de pagination */
#pagination button,
#pagination input[type="number"] {
  margin: 0 5px;
  padding: 10px 15px;
  border: 1px solid #006699;
  border-radius: 5px;
  background-color: #fff;
  color: #006699;
  cursor: pointer;
  font-size: 14px;
}

/* État du bouton survolé ou en focus */
#pagination button:hover,
#pagination input[type="number"]:focus {
  background-color: #006699;
  color: #fff;
}

/* Boutons désactivés */
#pagination button[disabled] {
  background-color: #ccc;
  color: #666;
  border: 1px solid #999;
  cursor: not-allowed;
}

/* Bouton "Précédente" et "Suivante" */
#pagination button:first-child {
  margin-left: 0;
}

#pagination button:last-child {
  margin-right: 0;
}

/* Champ de saisie pour le numéro de page */
#pagination input[type="number"] {
  width: 50px;
  text-align: center;
  border: 1px solid #006699;
  border-radius: 5px;
  font-size: 14px;
}

/* Bouton "Aller" */
#pagination button:last-of-type {
  background-color: #006699;
  color: #fff;
  font-weight: bold;
}

/* Styles pour le bouton de page actif */
.page-button.active {
  background-color: #006699;
  color: #fff;
  font-weight: bold;
  border: none;
}

@media only screen and (max-width: 390px) {
  .modal-contenu {
    width: 90%; /* Ajuste la largeur du modal pour les écrans plus petits */
    padding: 1rem;
  }
}

/* iPhone 6, 7, 8, SE (2nd generation) */
@media only screen and (max-width: 375px) and (min-device-pixel-ratio: 2) {
  .ui-to-top {
      width: 35px;
      height: 35px;
      font-size: 16px;
      right: 10px;
      bottom: 10px;
  }
}

/* iPhone X, XS, 11 Pro */
@media only screen and (max-width: 375px) and (min-device-pixel-ratio: 3) {
  .ui-to-top {
      width: 35px;
      height: 35px;
      font-size: 16px;
      right: 10px;
      bottom: 10px;
  }
}

/* iPhone 12, 13, 14, Pro (et les modèles similaires) */
@media only screen and (max-width: 390px) and (min-device-pixel-ratio: 3) {
  .ui-to-top {
      width: 35px;
      height: 35px;
      font-size: 16px;
      right: 10px;
      bottom: 10px;
  }
}

/* iPhone 12, 13, 14 Pro Max */
@media only screen and (max-width: 430px) and (min-device-pixel-ratio: 3) {
  .ui-to-top {
      width: 40px;
      height: 40px;
      font-size: 18px;
      right: 12px;
      bottom: 12px;
  }
}

/* Tous les iPhones sous iOS */
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-device-pixel-ratio: 3) {
  .ui-to-top {
      width: 35px;
      height: 35px;
      font-size: 16px;
      right: 10px;
      bottom: 10px;
  }
}

/* Gérer les encoches sur iPhone X et modèles ultérieurs */
@media only screen and (max-width: 812px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) {
  .ui-to-top {
      width: 35px;
      height: 35px;
      font-size: 16px;
      right: 10px;
      bottom: calc(10px + env(safe-area-inset-bottom)); /* Prend en compte la zone de sécurité */
  }
}




.filter-container {
  display: flex; /* Disposition en ligne pour les filtres */
  flex-wrap: wrap;
  justify-content: space-between; /* Espacement égal entre les filtres */
  align-items: center; /* Alignement vertical centré */
  margin-bottom: 20px; /* Espacement inférieur */
}

/* Style général pour les filtres */
.filter-container > div {
  flex: 1; /* Chaque filtre prend une portion égale de l'espace disponible */
  margin: 0 10px; /* Espacement latéral entre les filtres */
}

/* Style pour le filtre de catégorie */
.filter-categ {
  max-width: 300px; /* Largeur maximale pour le filtre de catégorie */
}

#category-filter {
  width: 100%; /* Largeur du filtre de catégorie */
  padding: 10px; /* Espacement interne */
  font-size: 16px; /* Taille de la police */
  border: 1px solid #ced4da; /* Bordure grise claire */
  border-radius: 5px; /* Coins arrondis */
  background-color: #f8f9fa; /* Couleur de fond légère */
  color: #495057; /* Couleur du texte */
}

/* Style pour le filtre de prix */
.filter-prix {
  max-width: 400px; /* Largeur maximale pour le filtre de prix */
}

.price-range {
  display: flex; /* Disposition en ligne pour les champs de saisie */
  align-items: center; /* Alignement vertical centré */
  gap: 10px; /* Espacement entre les champs de saisie */
}

#price-min, #price-max {
  flex: 1; /* Champs de saisie prennent l'espace disponible */
  padding: 10px; /* Espacement interne */
  font-size: 16px; /* Taille de la police */
  border: 1px solid #ced4da; /* Bordure grise claire */
  border-radius: 5px; /* Coins arrondis */
  background-color: #fff; /* Couleur de fond blanche */
  color: #495057; /* Couleur du texte */
}

#price-min::placeholder, #price-max::placeholder {
  color: #a5a5a5; /* Couleur des placeholders */
}



/* Bouton pour appliquer le filtre */
#apply-price-filter {
  padding: 10px 20px; /* Espacement interne */
  font-size: 16px; /* Taille de la police */
  border: 1px solid black; /* Pas de bordure */
  border-radius: 10000px; /* Coins arrondis */
  background-color: #006699; /* Couleur de fond bleue */
  color: #fff; /* Couleur du texte */
  cursor: pointer; /* Curseur pointeur */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transition pour le survol */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre portée légère */
  margin-top: 10px;
}

/* Effet de survol pour le bouton */
#apply-price-filter:hover {
  background-color: #0056b3; /* Couleur de fond bleue plus foncée */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Ombre portée plus marquée */
}

/* Conteneur des produits */
#products-container.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  margin: 0 auto;
}

#products-container > .col-sm-6,
#products-container > .col-lg-3 {
  width: 100%;
  max-width: 100%;
  flex: none;
  padding: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  #products-container.row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #products-container.row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #products-container.row {
    grid-template-columns: 1fr;
  }
}

/* Sur le mobile..............*/
@media (max-width: 768px) {
  #products-container {
      grid-template-columns: repeat(2, 1fr); /* Deux colonnes de taille égale pour les écrans de 768px ou moins */
      gap: 5px; /* Ajuster l'espacement si nécessaire */
  }
}

@media (max-width: 480px) {
  #products-container {
      grid-template-columns: repeat(2, 1fr); /* Deux colonnes de taille égale pour les écrans de 768px ou moins */
      gap: 5px; /* Ajuster l'espacement si nécessaire */
  }
}

/* Style de chaque produit */
.post-boxed {
  flex: 1 1 calc(33.333% - 20px); /* Trois produits par ligne avec un espace entre eux */
  box-sizing: border-box; /* Inclure la bordure et le padding dans la largeur totale */
  background-color: #fff; /* Couleur de fond blanche */
  border: 1px solid #ddd; /* Bordure légère */
  border-radius: 10px; /* Coins arrondis */
  overflow: hidden; /* Pour s'assurer que rien ne dépasse */
  margin-bottom: 20px; /* Espacement inférieur */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre portée légère */
  transition: box-shadow 0.3s ease; /* Transition pour le survol */
}

/* Effet de survol pour les produits */
.post-boxed:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Ombre portée plus marquée */
}

/* La pagination */
.pagination{
  margin-top: 10px;
}

/* Formulaire de filtres */
.filtre {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-fields {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-agence ,.filter-categorie, .filter-ville, .filter-price {
  flex: 1;
  min-width: 250px;
}

fieldset {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
}

legend {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  background-color: #006699;
  width: 40%;
  border-radius: 5px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-select,
.filter-price-input {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  font-family: Lato, Helvetica, Arial, sans-serif;
  margin-top: 5px;
}

.filter-select:focus,
.filter-price-input:focus {
  border-color: #006699;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button.filter-submit {
  width: 139px;
  padding: 7px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  background-color: #006699;
  border: none;
  border-radius: 10000px;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s ease;
}

button.filter-submit:hover {
  transform: scale(1.05);
}

button.filter-submit i {
  margin-right: 8px;
}

/* Ajustement des champs de prix pour éviter le débordement */
.price-fields {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap; /* Empêche les champs de s'empiler sur plusieurs lignes */
}

.price-fields .filter-price-input {
  flex: 1;
  width: 100%;
  max-width: 150px; /* Limite la largeur pour éviter le débordement */
}

@media (max-width: 768px) {
  .filter-fields {
      flex-direction: column;
      gap: 10px;
  }

  .filter-categorie, .filter-ville, .filter-price {
      min-width: 100%;
  }

  button.filter-submit {
      width: 43%;
  }

  /* Pour les petits écrans, les champs de prix reviennent en colonne */
  .price-fields {
      flex-direction: column;
  }
}


select option:hover{
  background-color: #006699;
  color: white;
}

/* Le spinner */
.loading-spinner {
  align-self: center;
  border: 4px solid #006699;
  border-top: 4px solid white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animation de transition */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

/* Rotation de l'icone */
#icon-rotate {
  transition: transform 0.4s ease;
}

.rotate {
  transform: rotate(180deg);
}

/* indisponibilité */
.btn-non-disponible {
  background-color: #808080;  
  color: black;
  cursor: not-allowed;
  pointer-events: none;
  border: none; 
}


 @import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
      .modal-box{ font-family: 'Raleway', sans-serif; }
.modal-box .show-modal{
    color: #fff;
    background: #006699;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 10px 15px;
    margin: 80px auto 0;
    border: none;
    outline: none;
    border-radius: 50px 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: block;
    transition: all 0.3s ease 0s;
}
.modal-box .show-modal:hover,
.modal-box .show-modal:focus{
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    outline: none;
}
.modal-backdrop.in{ opacity: 0; }
.modal-box .modal-dialog{
    width: 400px;
    margin: 70px auto 0;
}
.modal.fade .modal-dialog{ transform: scale(0.5); }
.modal.in .modal-dialog{ transform: scale(1); }
.modal-box .modal-dialog .modal-content{
    color: black;
    text-align: center;
    border: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px 5px rgba(122,214,92,0.3);
    font-weight: bold;
}
.modal-box .modal-dialog .modal-content .closeOK{
  font-size: 35px;
  font-weight: 600;
  text-shadow: none;
  line-height: 12px;
  height: 60px;
  width: 100px;
  overflow: hidden;
  opacity: 1;
  position: absolute;
  left: auto;
  right: 275px;
  top: 365px;
  z-index: 1;
  transition: all 0.3s ease 0s;
}
.modal-box .modal-dialog .modal-content .closeOK:hover{ color: white; }
.modal-box .modal-dialog .modal-content .closeOK:focus{ outline: none; }
.modal-box .modal-dialog .modal-content .modal-body{ padding: 23px 19px 30px !important; }
.modal-box .modal-dialog .modal-content .modal-body .icon{
    color: #fff;
    background: linear-gradient(45deg, #41e07e, #7ad65c);
    font-size: 100px;
    line-height: 170px;
    width: 170px;
    height: 170px;
    margin: 0 auto 55px;
    box-shadow: 0 0 0 7px #fff,
    0 0 0 15px rgba(65, 224, 126, 0.4),
    0 0 0 22px #fff,
    0 0 0 25px rgba(65, 224, 126, 0.15);
    border-radius: 50%;
}
.modal-box .modal-dialog .modal-content .modal-body .icon i{ line-height:inherit; }
.modal-box .modal-dialog .modal-content .modal-body .title{
    font-size: 50px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 15px;
    font-family:Lato, Helvetica, Arial, sans-serif;
}
.modal-box .modal-dialog .modal-content .modal-body .description{
    font-size: 30px;
    letter-spacing: 1px;;
    margin: 0 auto 25px;
}
.modal-box .modal-dialog .modal-content .modal-body .btn{
    color: #fff;
    background:#006699;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 15%;
    padding: 10px 7px;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease 0s;
}
.modal-box .modal-dialog .modal-content .modal-body .btn:hover{
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    box-shadow: 5px 5px rgba(0,0,0,0.1),-5px -5px rgba(0,0,0,0.1);
}
.modal-box .modal-dialog .modal-content .modal-body .btn:focus{ outline: none; }
@media only screen and (max-width: 480px){
    .modal-dialog{ width: 95% !important; }
}


/* Style du conteneur modal */
.modalok {
  display: none; /* Masqué par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  overflow: hidden; /* Empêche le scroll en arrière-plan */
}

/* Style de la boîte du modal */
.modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 350px;
  height: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Ombre pour l'effet de profondeur */
  animation: slide-down 0.3s ease-out; /* Animation d'ouverture */
  left: -10px;
}

/* Animation pour l'apparition du modal */
@keyframes slide-down {
  from {
      transform: translateY(-100px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Style du titre, description et icône */
.modal-header h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  font-size: 24px;
}

.modal-body p {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin: 20px 0;
}

/* Style pour l'icône avec le cercle */
.icon-container {
  display: inline-block;
  width: 83px;
  height: 83px;
  background-color: #28a745;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  margin-top: 10px;
  animation: pop-circle 0.5s ease-out forwards; /* Animation d'apparition du cercle */
}

/* Animation d'apparition du cercle */
@keyframes pop-circle {
  0% {
      transform: scale(0);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* Icône de validation (SVG) avec animation de tracé */
.checkmark {
  width: 60px;
  height: 60px;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  animation: draw-check 0.5s ease forwards 0.5s; /* Délai pour synchroniser avec le cercle */
}

/* Animation pour dessiner la coche */
@keyframes draw-check {
  0% {
      stroke-dasharray: 50;
      stroke-dashoffset: 50;
  }
  100% {
      stroke-dasharray: 50;
      stroke-dashoffset: 0;
  }
}

/* Style du bouton de fermeture */
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #28a745;;
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: none;
  width: 40px;
  height: 40px;
}

.modal-close:hover {
  transform: scaleX(1.05);
}




/************************************************************/
/* Style du conteneur modal */
.modalechec {
  display: none; /* Masqué par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  overflow: hidden; /* Empêche le scroll en arrière-plan */
}

.modalAvert {
  display: none; /* Masqué par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  overflow: hidden; /* Empêche le scroll en arrière-plan */
}

/* Style de la boîte du modal */
.modal-contenu {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Ombre pour l'effet de profondeur */
  animation: slide-down 0.3s ease-out; /* Animation d'ouverture */
}

/* Animation pour l'apparition du modal */
@keyframes slide-down {
  from {
      transform: translateY(-100px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Style du titre, description et icône */

.modal-body p {
  font-size: 16px;
  margin: 20px 0;
}

/* Style pour l'icône avec le cercle rouge */
.icon-container {
  display: inline-block;
  width: 70px;
  height: 70px;
  background-color: #28a745; /* Rouge pour l'erreur */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  margin-top: 10px;
  animation: pop-circle 0.5s ease-out forwards; /* Animation d'apparition du cercle */
}

.icon-containerechec {
  display: inline-block;
  width: 70px;
  height: 70px;
  background-color: #dc3545; /* Rouge pour l'erreur */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  margin-top: 10px;
  animation: pop-circle 0.5s ease-out forwards; /* Animation d'apparition du cercle */
}

/* Animation d'apparition du cercle */
@keyframes pop-circle {
  0% {
      transform: scale(0);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* Icône de croix (SVG) avec animation de tracé */
.crossmark {
  width: 60px;
  height: 60px;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  animation: draw-cross 0.5s ease forwards 0.5s; /* Délai pour synchroniser avec le cercle */
}

/* Animation pour dessiner la croix */
@keyframes draw-cross {
  0% {
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
  }
  100% {
      stroke-dasharray: 100;
      stroke-dashoffset: 0;
  }
}

/* Style du bouton de fermeture */
.modal-closechec {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dc3545;
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: none;
  width: 40px;
  height: 40px;
}

.modal-closechec:hover {
  transform: scale(1.05);
}



/* Le modal de disponibilité */
/* Style général pour le modal */
.modalAvert {
  display: none; /* Cacher par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
}

/* Contenu du modal */
.modal-contentAvert {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s; /* Animation d'apparition */
}

/* Animation pour faire apparaître le modal en douceur */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Bouton de fermeture */
.close {
  color: #aaa;
  float: right;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

/* Style du texte du modal */
.modal-contentAvert p {
  font-size: 2.2rem;
  margin: 20px 0;
  color: #333;
}

/* Style des boutons radio */
.modal-radios {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.modal-radios label {
  font-size: 2rem;
  cursor: pointer;
}

/* Bouton de confirmation */
.btn-confirm {
  padding: 10px 20px;
  background-color: #006699;
  color: #fff;
  border: none;
  border-radius: 10000px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-confirm:hover {
  transform: scale(1.05);
}

/* Transition douce pour le bouton radio */
.radio-button {
  margin-right: 8px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.radio-button:checked {
  transform: scale(1.2); /* Agrandir légèrement lorsqu'il est sélectionné */
}

/* Media Query pour les petits écrans */
@media (max-width: 768px) {
  .modal-contentAvert {
      width: 90%;
      margin-top: 20%;
  }
}