/*html,body{
    height: 100%;
}
body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(90deg, rgba(1,1,88,0.82),rgb(1,1,29));
    transition: 1s all ease-in-out;
}*/
#init {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000000;

    width: 60px;
    height: 60px;

    background: #0F4328;
    border: none;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}
#test {
    position: fixed;
    bottom: 80px;
   /* left: 10px;*/
    right: 35px;
    width: 500px !important;
    max-width: 95%;
    z-index: 9999999;
  }


/*#init:hover {
    background: #c0392b;
}*/
.desc p{
    color: rgb(133,153,168);
    margin: 0;
    font-weight: 600;
}
.text{
    font-size: 65px;
    font-weight: 800;
    color: cadetblue;
    margin: 0;
}
.parent{
    position: relative;
    height: 100%;
    padding: 0 7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bot-img{
    width: 20rem;
    height: 20rem;
}
.child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 2px #0F4328;
  border-radius: 15px;
  height: 30rem;
  width: 25rem;
  margin: auto;
  background: white;
  overflow: hidden;
}
.header img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0 0.5rem;
    border: 1px solid rgb(231,231,231);
    padding: 5px;
}
.header{
    position: absolute;
	
    top: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid whitesmoke;
	
    background: white;
	
    width: 400px;
	max-width:100% !important;
    padding: 5px 0;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    z-index: 1;
    box-shadow: 0 0 2px rgb(175,175,175);
}
.h-child{
    display: flex;
    align-items: center;
}
.header span{
    font-size: 13px;
    margin: 0;
    padding: 0;
}
.refBtn{
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: none;
    border: none;
    border-radius: 50%;
    color: rgb(255, 255, 255);
    font-size: 18px;
    cursor: pointer;
}
.name{
    font-weight: 600;
}
.footeri {
  background: white;
  color: #0F4328;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 0 3px rgb(153,153,153);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  width: 100%;
}
#chat-box {
  flex-grow: 1;
  padding: 8px 10px;
  font-size: 12px;
  overflow-y: auto;
  background: #dfe9e7;
  text-align: center;
  margin-top: 50px; /* space for header */
}

/* these classes will be used in javascript file */
.msg{
	
    background: white;
	margin-top: 15px;
    padding: 5px 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    width: max-content;
    font-size: 14px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    box-shadow: 0 0 5px rgb(226,226,226);
    max-width: 65%;
    text-align: left;
}
.test{
    text-align: right;
    margin: 20px 0;
}
.rep{
  display: inline-block; /* ✅ limite la largeur au contenu */
    max-width: 80%;         /* ✅ évite que le message soit trop large */
    word-wrap: break-word;
    background: #0F4328;
    color: rgb(255, 255, 255);
    padding: 5px 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    font-size: 14px;
    box-shadow: 0 0 5px rgb(211,211,211);
    
}
.opt{
    padding: 5px 20px;
    columns: rgb(0, 0, 0);
    border: 1px solid #ffffff;
    border-radius: 1rem;
    margin: 0.3rem 0.5rem;
    display: inline-block;
    cursor: pointer;
    font-weight: 500;
    background: #0F4328;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
}
.link{
    text-decoration: none;
    display: block;
    text-align: center;
    color: aliceblue !important;
    background: blueviolet;
}
.m-link{
    text-decoration: none;
}
.link:active{
    background: white;
    border: 1px solid blueviolet;
    color: blueviolet;
}
@media (max-width: 768px) {
  /* Floating button */
 /* #init {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  /* Chat container */
  #test {
    position: fixed;
    bottom: 80px;
    left: 10px;
    right: 10px;
    width: auto !important;
    max-width: 95%;
    z-index: 99999999;
  }

  /* Chat box itself */
 .child {
 	
    width: 100% !important;
    height: 28rem;
  }

  .header {
    width: 100% !important;
    padding: 10px;
  }

    .footeri {
    font-size: 12px;
    padding: 10px 0;
  }

  #chat-box {
    height: 22rem;
    font-size: 12px;
  }

  .msg,
  .rep {
    font-size: 13px;
    max-width: 85%;
  }

  .opt {
    font-size: 13px;
    padding: 4px 15px;
  }

  .header img#avatar {
    width: 30px;
    height: 30px;
    padding: 4px;
  }

  .text {
    font-size: 36px;
  }

  .desc p {
    font-size: 14px;
  }

  .refBtn {
    font-size: 16px;
    bottom: 0.8rem;
    right: 0.8rem;
  }

  .parent {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .bot-img {
    width: 12rem;
    height: 12rem;
  }
}*/

@media (max-width: 400px) {
  #test {
    left: 5px;
    right: 5px;
    bottom: 80px;
    width: auto !important;
  }

  .child {
    width: 100% !important;
    height: 26rem;
    border-radius: 12px;
  }

  .footeri {
    font-size: 12px;
    padding: 10px 0;
  }

  #chat-box {
    font-size: 12px;
  }

  #init {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .refBtn {
    bottom: 0.6rem;
    right: 0.6rem;
    font-size: 16px;
  }

  .header img#avatar {
    width: 30px;
    height: 30px;
  }
}

